jQuery(document).ready(function($){
								
	$("#tag_cloud a").wrap(document.createElement("div"));
	$("#tag_cloud a").removeAttr("style");

	var runStyleCouncilCheck = {
		category : $("h2.pagetitle").text().slice( 0, 4 ),
		//category : $("body").attr("id"),
		categoryPost01 : $("div.widecolumn a[title='View all posts in Style Council']").attr("title"),
		categoryPost02 : $("div.widecolumn a[title='View all posts in Intro']").attr("title"),
		categoryPost03 : $("div.widecolumn a[title='View all posts in Style Council']").attr("title"),
		categoryPost04 : $("div.widecolumn a[title='View all posts in Style Council']").attr("title"),
		categoryPost05 : $("div.widecolumn a[title='View all posts in Style Council']").attr("title"),
		councilcheck : function checkForCouncil() {
			//alert(runStyleCouncilCheck.category);

			

			if ( runStyleCouncilCheck.category == "Styl" ||
				 runStyleCouncilCheck.category == "Intr" ||
				 runStyleCouncilCheck.category == "Bios" ||
				 runStyleCouncilCheck.category == "Blog" ||
				 runStyleCouncilCheck.category == "Tips" ||
				 runStyleCouncilCheck.category == "Vide" ||
				 runStyleCouncilCheck.categoryPost01 == "View all posts in Style Council"
				) {
			//if ( runStyleCouncilCheck.category == "style_council") {
				//alert(runStyleCouncilCheck.categoryPost01);
				//$("h2.pagetitle").html("db Style Watch: Get the Hottest News Now");

				$("#header").css( {
					"margin-top" : "13px",
					"background-image" : "url(/wp-content/themes/davids-bridal/images/style_council_header.gif)",
					"background-color" : "transparent",
					"height" : "134px",
					"border" : "0px",
					"background-position" : "0px 0px"
				} );

				$("#header h1").css( {
					"top" : "2px",
					"left" : "0px",		
					"width" : "360px",
					"height" : "120px",
					"margin" : "0px"
				} );

				$("#header h1 a").css( {
					"width" : "360px",
					"height" : "120px",
					"background-image" : "none",
					"background-repeat" : "no-repeat"
				} );

				$("#header div.date").css( {
					"top" : "74px",
					"right" : "4px"
				} );

				$("#header a.db_link").css( {
					"top" : "10px",
					"right" : "4px"
				} );

				$("#header h1 a").attr("href" , "/?cat=111")


			}
		
		}

	}




	var runInTheNewsCheck = {
		category : $("h2.pagetitle").text().slice( 0, 4 ),
		//category : $("body").attr("id"),
		categoryPost : $("div.widecolumn a[title='View all posts in In the News']").attr("title"),
		inthenewscheck : function checkForNews() {
			//alert(runInTheNewsCheck.category);
			if ( runInTheNewsCheck.category == "In t" ||
				 runInTheNewsCheck.category == "As S" ||
				 runInTheNewsCheck.category == "Cont" ||
				 runInTheNewsCheck.category == "Even" ||
				 runInTheNewsCheck.category == "Stor" ||
				 runInTheNewsCheck.categoryPost == "View all posts in In the News"
			   ) {
			//if ( runInTheNewsCheck.category == "in_the_news") {
				//alert(runInTheNewsCheck.categoryPost);
				//$("h2.pagetitle").html("In The News:");
				
				$("#header").css( {
					"margin-top" : "13px",
					"background-image" : "url(/wp-content/themes/davids-bridal/images/in_the_news_header.gif)",
					"background-color" : "transparent",
					"height" : "66px",
					"border-bottom" : "solid 0px red",
					"background-position" : "0px 20px"
				} );

				$("#header h1").css( {
					"top" : "27px",
					"left" : "0px",		
					"width" : "230px",
					"height" : "30px",
					"margin" : "0px"
				} );

				$("#header h1 a").css( {
					"width" : "230px",
					"height" : "30px",
					"background-image" : "none",
					"background-repeat" : "no-repeat"
				} );

				$("#header h1 a").attr("href" , "/?cat=90")
	

			}
		
		}

	}


	if ( $("body").attr("id") == "home" ) {
		
	} else {
		runStyleCouncilCheck.councilcheck();
		runInTheNewsCheck.inthenewscheck();
	}





	// display hidden areas

	$("#header, #sidebar").css( {
		"display" : "block"
	} );


	$("#sidebar > ul > li:first-child").css( {
		"border-color" : "#fff"
	} );






















});