//console.log(); 
$(document).ready(function() {

   /*******
   **
   ** Navigation stuff
   **
   *******/
    $(".home-mainmenu-1 .item131").addClass("donthover"); 
	$("body#webinars .item169").addClass("active");
   	$("body#webinars .item169").removeClass("add_slashes");
	$("body#podcasts .item168").addClass("active");
   	$("body#podcasts .item168").removeClass("add_slashes");
   
   $("#main_menu > *").not(".active, .donthover").hover(function() {
   	if(!$(this).next().is(".active")){
   	
   		$(this).next().removeClass("add_slashes");
	    $(this).next().addClass("remove_slashes");
     	$(this).next().children(":first").css("padding-left", "15px");
	}
   },function(){
   	if(!$(this).next().is(".active")){
     	$(this).next().removeClass("remove_slashes");
     	$(this).next().addClass("add_slashes");
         $(this).next().children().removeAttr("style");
	}
   });

$("#main_menu > *").click(function(){
  	window.location=$(this).children().attr("href");
  });



$(".item131").not(".donthover").hover(function() {
 		$(".item131").css({backgroundImage: "url(/templates/ntb/images/topnav/home_arrow.png)", backgroundPosition: "0px 0px", backgroundRepeat:"no-repeat", paddingLeft: "20px", cursor: "pointer"});
 		$(".item131 a:first").css({backgroundImage: "url(/templates/ntb/images/topnav/home_over.png)", backgroundPosition: "right", backgroundRepeat:"no-repeat", paddingLeft:"4px", paddingRight: "17px"});
 	if (jQuery.browser.msie ) {
   		if(parseInt(jQuery.browser.version) <=6){
     		$(".item131").css({backgroundImage: "none",filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop src='/templates/ntb/images/topnav/home_arrow.png'"});
			$(".item131 a:first").css({backgroundImage: "url(/templates/ntb/images/topnav/home_overIE.png)"});
		}
	}
 	if($(this).next().is(".active")){
 	 	$(this).next().children(":first").css("padding-left", "0px");
 	 	$(this).children(":first").css({backgroundPosition:  "left",paddingRight: "8px"});
 	 }
 },function(){
   	$(".item131").removeAttr("style");
   	$(".item131 a:first").removeAttr("style");
});  
   
   
   
$(".item130").not(".active").hover(function() {
	
 	$(".item130").css({backgroundImage: "url(/templates/ntb/images/topnav/tech_arrow.png)", backgroundPosition: "0px 0px", backgroundRepeat:"no-repeat", paddingLeft: "20px", cursor: "pointer"});
 	$(".item130 a:first").css({backgroundImage: "url(/templates/ntb/images/topnav/tech_over.png)", backgroundPosition: "right", backgroundRepeat:"no-repeat", paddingLeft:"4px", paddingRight: "17px"});
	if (jQuery.browser.msie ) {
   		if(parseInt(jQuery.browser.version) <=6){
     		$(".item130").css({backgroundImage: "none",filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop src='/templates/ntb/images/topnav/tech_arrow.png'"});
			$(".item130 a:first").css({backgroundImage: "url(/templates/ntb/images/topnav/tech_overIE.png)"});
		}
 	 } 
 	 if($(this).next().is(".active")){
 	 	$(this).next().children(":first").css("padding-left", "0px");
 	 	$(this).children(":first").css({backgroundPosition:  "left",paddingRight: "8px"});
 	 }
 	 if($(this).prev().is(".donthover")){
 	   	$(this).css({backgroundImage: "url(/templates/ntb/images/topnav/tech_overon.png)"});
	 	$(this).prev().children(":first").css({backgroundPosition:  "left", paddingRight: "8px"});
 	 }
},function(){
   	$(".item130").removeAttr("style");
   	$(".item130 a:first").removeAttr("style");
   	$(this).prev().children(":first").removeAttr("style");
   	$(this).next().children(":first").removeAttr("style");
   	$(this).children(":first").removeAttr("style");
   	if($(this).prev().is(".donthover")){
   	 $(this).children(":first").css({paddingLeft: "15px"});
   	 }
   	 if($(this).prev().prev().is(".active")){
   	 $(this).prev().children(":first").css({paddingLeft: "15px"});
   	 }
});

   

$(".item184").not(".active").hover(function() {

 		$(".item184").css({backgroundImage: "url(/templates/ntb/images/topnav/exchange_arrow.png)", backgroundPosition: "0px 0px", backgroundRepeat:"no-repeat", paddingLeft: "20px", cursor: "pointer"});
 		$(".item184 a:first").css({backgroundImage: "url(/templates/ntb/images/topnav/exchange_overs.png)", backgroundPosition: "right", backgroundRepeat:"no-repeat", paddingLeft:"4px", paddingRight: "17px"});
		if (jQuery.browser.msie ) {
   			if(parseInt(jQuery.browser.version) <=6){
     			$(".item184").css({backgroundImage: "none",filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop src='/templates/ntb/images/topnav/exchange_arrow.png'"});
				$(".item184 a:first").css({backgroundImage: "url(/templates/ntb/images/topnav/exchange_oversIE.png)"});
			}
 		} 
 	if($(this).next().is(".active")){
 	 	$(this).next().children(":first").css("paddingLeft", "0px");
 	 	$(this).children(":first").css({backgroundPosition:  "left",paddingRight: "8px"});
 	 }
 	  if($(this).prev().is(".active")){
 	   	$(this).css({backgroundImage: "url(/templates/ntb/images/topnav/exchange_overon.png)"});
	 	$(this).prev().children(":first").css({backgroundPosition:  "left", paddingRight: "8px"});
 	 }
},function(){
   	$(".item184").removeAttr("style");
   	$(".item184 a:first").removeAttr("style");
   	$(this).prev().children(":first").removeAttr("style");
   	$(this).next().children(":first").removeAttr("style");
   	$(this).children(":first").removeAttr("style");
   	 if($(this).prev().is(".active")){
   	 $(this).children(":first").css({paddingLeft: "15px"});
   	 }
   	 if($(this).prev().prev().is(".active")){
   	 $(this).prev().children(":first").css({paddingLeft: "15px"});
   	 }

});   



$(".item133").not(".active").hover(function() {
 	$(".item133").css({backgroundImage: "url(/templates/ntb/images/topnav/whitepaper_arrow.png)", backgroundPosition: "0px 0px",  backgroundRepeat:"no-repeat", paddingLeft: "20px", cursor: "pointer"});
 	$(".item133 a:first").css({backgroundImage: "url(/templates/ntb/images/topnav/whitepaper_over.png)", backgroundPosition: "right", backgroundRepeat:"no-repeat", paddingLeft:"4px", paddingRight: "17px"});
	if (jQuery.browser.msie ) {
   		if(parseInt(jQuery.browser.version) <=6){
     		$(".item133").css({backgroundImage: "none",filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop src='/templates/ntb/images/topnav/whitepaper_arrow.png'"});
			$(".item133 a:first").css({backgroundImage: "url(/templates/ntb/images/topnav/whitepaper_overIE.png)"});
		}
 	 } 
 	if($(this).next().is(".active")){
 	 	$(this).next().children(":first").css("padding-left", "0px");
 	 	$(this).children(":first").css({backgroundPosition:  "left",paddingRight: "8px"});
 	 }
 	  if($(this).prev().is(".active")){
 	   	$(this).css({backgroundImage: "url(/templates/ntb/images/topnav/white_overon.png)"});
	 	$(this).prev().children(":first").css({backgroundPosition:  "left", paddingRight: "8px"});
 	 }
 },function(){
   	$(".item133").removeAttr("style");
   	$(".item133 a:first").removeAttr("style");
   		$(this).prev().children(":first").removeAttr("style");
   	$(this).next().children(":first").removeAttr("style");
   	$(this).children(":first").removeAttr("style");
   	if($(this).prev().is(".active")){
   	 $(this).children(":first").css({paddingLeft: "15px"});
   	 }
   	 if($(this).prev().prev().is(".donthover")){
   	 $(this).prev().children(":first").css({paddingLeft: "15px"});
   	 }
 });



$(".item169").not(".active").hover(function() {
 	$(".item169").css({backgroundImage: "url(/templates/ntb/images/topnav/podcast_arrow.png)",backgroundPosition: "0px 0px",  backgroundRepeat:"no-repeat", paddingLeft: "20px", cursor: "pointer"});
 	$(".item169 a:first").css({backgroundImage: "url(/templates/ntb/images/topnav/podcast_over.png)", backgroundPosition: "right", backgroundRepeat:"no-repeat", paddingLeft:"4px", paddingRight: "17px"});
	if (jQuery.browser.msie ) {
   		if(parseInt(jQuery.browser.version) <=6){
     		$(".item169").css({backgroundImage: "none",filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop src='/templates/ntb/images/topnav/podcast_arrow.png'"});
			$(".item169 a:first").css({backgroundImage: "url(/templates/ntb/images/topnav/podcast_overIE.png)"});
		}
 	 } 
 	if($(this).next().is(".active")){
 	 	$(this).next().children(":first").css("padding-left", "0px");
 	 	$(this).children(":first").css({backgroundPosition:  "left",paddingRight: "8px"});
 	 }
 	 if($(this).prev().is(".active")){
 	   	$(this).css({backgroundImage: "url(/templates/ntb/images/topnav/podcast_overon.png)"});
	 	$(this).prev().children(":first").css({backgroundPosition:  "left", paddingRight: "8px"});
 	 }
},function(){
   	$(".item169").removeAttr("style");
   	$(".item169 a:first").removeAttr("style");
   		$(this).prev().children(":first").removeAttr("style");
   	$(this).next().children(":first").removeAttr("style");
   	$(this).children(":first").removeAttr("style");
   	if($(this).prev().is(".active")){
   	 $(this).children(":first").css({paddingLeft: "15px"});
   	 }
   	 if($(this).prev().prev().is(".active")){
   	 $(this).prev().children(":first").css({paddingLeft: "15px"});
   	 }
}); 
   
   
   
$(".item168").not(".active").hover(function() {
	$(".item168").css({backgroundImage: "url(/templates/ntb/images/topnav/podcast_arrow.png)", backgroundPosition: "0px 0px",  backgroundRepeat:"no-repeat", paddingLeft: "20px", cursor: "pointer"});
 	$(".item168 a:first").css({backgroundImage: "url(/templates/ntb/images/topnav/podcast_over.png)", backgroundPosition: "right", backgroundRepeat:"no-repeat", paddingLeft:"4px", paddingRight: "17px"});
	if (jQuery.browser.msie ) {
   		if(parseInt(jQuery.browser.version) <=6){
     		$(".item168").css({backgroundImage: "none",filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop src='/templates/ntb/images/topnav/podcast_arrow.png'"});
			$(".item168 a:first").css({backgroundImage: "url(/templates/ntb/images/topnav/podcast_overIE.png)"});
		}
 	 } 
 	if($(this).next().is(".active")){
 	 	$(this).next().children(":first").css("padding-left", "0px");
 	 	$(this).children(":first").css({backgroundPosition:  "left",paddingRight: "8px"});
 	 }
 	 if($(this).prev().is(".active")){
 	   	$(this).css({backgroundImage: "url(/templates/ntb/images/topnav/podcast_overon.png)"});
	 	$(this).prev().children(":first").css({backgroundPosition:  "left", paddingRight: "8px"});
 	 }
},function(){
   	$(".item168").removeAttr("style");
   	$(".item168 a:first").removeAttr("style");
   		$(this).prev().children(":first").removeAttr("style");
   	$(this).next().children(":first").removeAttr("style");
   	$(this).children(":first").removeAttr("style");
   	if($(this).prev().is(".active")){
   	 $(this).children(":first").css({paddingLeft: "15px"});
   	 }
   	 if($(this).prev().prev().is(".active")){
   	 $(this).prev().children(":first").css({paddingLeft: "15px"});
   	 }
});  


   
$(".item135").not(".active").hover(function() {
	$(".item135").css({backgroundImage: "url(/templates/ntb/images/topnav/blog_arrow.png)", backgroundPosition: "0px 0px", backgroundRepeat:"no-repeat", paddingLeft: "20px", cursor: "pointer"});
 	$(".item135 a:first").css({backgroundImage: "url(/templates/ntb/images/topnav/blog_over.png)", backgroundPosition: "right", backgroundRepeat:"no-repeat", paddingLeft:"4px", paddingRight: "17px"});
	if (jQuery.browser.msie ) {
   		if(parseInt(jQuery.browser.version) <=6){
     		$(".item135").css({backgroundImage: "none",filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop src='/templates/ntb/images/topnav/blog_arrow.png'"});
			$(".item135 a:first").css({backgroundImage: "url(/templates/ntb/images/topnav/blog_overIE.png)"});
		}
 	 } 
 	 if($(this).next().is(".active")){
 	 	$(this).next().children(":first").css("padding-left", "0px");
 	 	$(this).children(":first").css({backgroundPosition:  "left",paddingRight: "8px"});
 	 }
 	 if($(this).prev().is(".active")){
 	   	$(this).css({backgroundImage: "url(/templates/ntb/images/topnav/blog_overon.png)"});
	 	$(this).prev().children(":first").css({backgroundPosition:  "left", paddingRight: "8px"});
 	 }
},function(){
   	$(".item135").removeAttr("style");
   	$(".item135 a:first").removeAttr("style");
   		$(this).prev().children(":first").removeAttr("style");
   	$(this).next().children(":first").removeAttr("style");
   	$(this).children(":first").removeAttr("style");
   	if($(this).prev().is(".active")){
   	 $(this).children(":first").css({paddingLeft: "15px"});
   	 }
   	 if($(this).prev().prev().is(".active")){
   	 $(this).prev().children(":first").css({paddingLeft: "15px"});
   	 }
});
   


$(".item185").not(".active").hover(function() {
 	$(".item185").css({backgroundImage: "url(/templates/ntb/images/topnav/design_arrow.png)",backgroundPosition: "0px 0px",  backgroundRepeat:"no-repeat", paddingLeft: "20px", cursor: "pointer"});
 	$(".item185 a:first").css({backgroundImage: "url(/templates/ntb/images/topnav/design_over.png)", backgroundPosition: "right", backgroundRepeat:"no-repeat", paddingLeft:"4px", paddingRight: "8px"});
	if (jQuery.browser.msie ) {
   		if(parseInt(jQuery.browser.version) <=6){
     		$(".item185").css({backgroundImage: "none",filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop src='/templates/ntb/images/topnav/design_arrow.png'"});
		}
 	 } 
 	 if($(this).next().is(".active")){
 	 	$(this).next().children(":first").css("padding-left", "0px");
 	 	$(this).children(":first").css({backgroundPosition:  "left",paddingRight: "8px"});
 	 }
 	 if($(this).prev().is(".active")){
 	   	$(this).css({backgroundImage: "url(/templates/ntb/images/topnav/design_overon.png)"});
	 	$(this).prev().children(":first").css({backgroundPosition:  "left", paddingRight: "8px"});
 	 }
 	if($(this).next().is(".active")){
 	 	$(this).next().children(":first").css("padding-left", "0px");
 	 	$(this).children(":first").css({backgroundPosition:  "left",paddingRight: "8px"});
 	 }
},function(){
   	$(".item185").removeAttr("style");
   	$(".item185 a:first").removeAttr("style");
   	
   	$(this).prev().children(":first").removeAttr("style");
   	$(this).next().children(":first").removeAttr("style");
   	$(this).children(":first").removeAttr("style");
   	if($(this).prev().is(".active")){
   	 $(this).children(":first").css({paddingLeft: "15px"});
   	 }
   	 if($(this).prev().prev().is(".active")){
   	 $(this).prev().children(":first").css({paddingLeft: "15px"});
   	 }
});


  
  $("#main_menu > *").not(".active").addClass("add_slashes");
  if (jQuery.browser.msie ) {
   	if(parseInt(jQuery.browser.version) <=6){
     	//$("#main_menu > *").css({backgroundImage: "none",filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop src='/templates/ntb/images/topnav/arrow_slash.png'"})
	}
  } //F6F6F6
   	$(".home-mainmenu-1 .item131").append('<div class="homeborder"></div>');
   	$(".tech-briefs .active:first").append('<div class="techborder"></div>');
  	$(".tech-exchange .active:first").append('<div class="exchangeborder"></div>');
   	$(".whitepapers .active:first").append('<div class="whitepaperstborder"></div>');
   	$("body#webinars .active:first").append('<div class="webinarsborder"></div>');
   	$("body#podcasts .active:first").append('<div class="podcastborder"></div>');
   	$(".blog .active:first").append('<div class="blogborder"></div>');
   
   
   
   
   	$(".active:first").not("body.media").next().removeClass("add_slashes");
   	$(".active:first").not("body.media").next().addClass("remove_slashes");
   	$(".moduletable_features .active:first").next().removeClass("remove_slashes");
   	$(".moduletable_media .active:first").next().removeClass("remove_slashes");

   	$(".home-mainmenu-1 .item131").next().removeClass("add_slashes");
   	$(".home-mainmenu-1 .item131").next().addClass("remove_slashes");
   	$(".home-mainmenu-1 .item131:first").next().children(":first").css("padding-left", "15px");
   	$(".active:first").next().children(":first").css("padding-left", "15px");
   //	$(".active .active").addClass("activeSub");
   	//$(".active .active").removeClass("active");
   	$(".activeSub").children(":first").css({color: "#FFFFFF"});
	$(".item131").removeClass("add_slashes");
	$(".active").removeClass("add_slashes");
   	$("#features_menu .active:first").next().children(":first").removeAttr("style");
   	if (jQuery.browser.msie ) {
   		$("#header_container #main_nav_menu ul.menu").css("width", "821px");
   	}else{
   		$("#header_container #main_nav_menu ul.menu").css("width", "827px");
	}

   
   
   /*******
   **
   ** Login Code
   **
   *******/
   
  if ( $("div.ntb_logindiv").length > 0 ) {
   		$("div.ntb_logindiv").html('<div class="login_div" style="display: none;"><form class="form-login" name="login" method="post" action="">\r\n<span class="usernametext">\r\n<label for="username">Username</label><input size="18" alt="username" class="inputbox" name="username" type="text">\r\n</span>\r\n<span class="passwordtext">\r\n<label for="password">Password</label>\r\n <input alt="password" size="18" class="inputbox" name="password" type="password"></span><input alt="Remember Me" value="yes" class="inputbox" name="remember" type="checkbox">\r\n<span class="modlgn_remember_text"><label for="remember">Remember Me</label></span>\r\n		<input value="Login" name="Submit" class="login_submit" type="submit">\r\n		<input value="Cancel" name="Submit" class="cancel_submit" type="submit">	\r\n	</form>\r\n</div><div class="login_right"><a href="#" class="login_link">Login</a> | <a href="/component/comprofiler/registers" mce_href="/component/comprofiler/registers">Register</a></div>');
  
  	}	 
   $.post("/",{option:'com_ntblogin',format:'raw', view:'login_check'},
   		function(data){
		if(data.id != 0){
			$(".moduletable_login").hide();
			$(".moduletable_login").before('<div class="moduletable_login2" align="right"><form class="logout_form" action="" method="post"><input type="submit" value="Logout" class="logout_submit" name="Submit"/></form><div class="logout_right">Welcome, '+data.username+' </div></div>');											
			
			if ( $(".ntb_loginbox_on").length > 0 ) {
				$(".ntb_loginbox_on").show("slow");
			}
			$(".logout_form").submit(function(){

  							rebindLogout();
							return false;
  		});
		}else{
		$(".login_right").show("slow");
		if ( $(".ntb_loginbox_off").length > 0 ) {
				$(".ntb_loginbox_off").show("slow");
			}
		}}, 'json');
		
//
		
  $(".login_link").click(function(){
  	$(".error").hide();
  	$(".login_div").show("slow");
  	$(".login_link").hide();
  	return false;

  		});
   $(".cancel_submit").click(function(){
  	$(".login_div").hide("slow");
  	$(".login_link").show();
  	return false;

  		});

   $(".login_submit").click(function(){
   

	$(".error").hide();
		var hasError = false;


		var usernameField = $(this).siblings(".usernametext").children("input").val();
		//var usernameField = $(".form-login input:eq(0)").val();
		
		if(usernameField == '') {
		$(".moduletable_login .login_div").css("left","113px");
			if ( $(".error").length > 0 ) {
				$(".error").replaceWith('<span class="error">Invalid Login</span>');
			}else {
				$(".usernametext").before('<span class="error">Invalid Login</span>');
			}
			hasError = true;
		}
		
		var passwordField = $(this).siblings(".passwordtext").children("input").val();
		// var passwordField = $(".form-login input:eq(1)").val();
		if(passwordField == '') {
			$(".moduletable_login .login_div").css("left","113px");

			if ( $(".error").length > 0 ) {
				$(".error").replaceWith('<span class="error">Invalid Login</span>');
			}else {
				$(".usernametext").before('<span class="error">Invalid Login</span>');
			}			hasError = true;
		}
		
		//var rememberField = $(".form-login input:eq(2)").val();
		var rememberField = $(this).siblings(".remember").children("input").val();
		
		if(hasError == false) {
			$(".login_div").hide("slow");
			if ( $(".temp").length > 0 ) {
				$(".temp").replaceWith('<div class="temp"><img src="/images/loadingAnimation.gif" alt="Loading" id="loading" /></div>');
			}else {
				$(".login_div").before('<div class="temp"><img src="/images/loadingAnimation.gif" alt="Loading" id="loading" /></div>');
			}
			$(".temp").show("slow");
			$.post("/",
   				{option:'com_ntblogin',format:'raw', view:'login', remeber: rememberField, username: usernameField, password: passwordField},
   					function(data){	
   						if(data.success == '1'){
   							$(".moduletable_login").hide();
							if ( $("div.moduletable_login2").length > 0 ) {
								$(".moduletable_login2").replaceWith('<div class="moduletable_login2" align="right"><form class="logout_form" action="" method="post"><input type="submit" value="Logout" class="logout_submit" name="Submit"/></form><div class="logout_right">Welcome, '+data.username+' </div></div>');
								
							}else {
								$(".moduletable_login").before('<div class="moduletable_login2" align="right"><form class="logout_form" action="" method="post"><input type="submit" value="Logout" class="logout_submit" name="Submit"/></form><div class="logout_right">Welcome, '+data.username+' </div></div>');		
								}
							if ( $(".ntb_loginbox_on").length > 0 ) {
									$(".ntb_loginbox_off").hide();
									$(".ntb_loginbox_on").show("slow");
								}
							$(".logout_form").submit(function(){
   								rebindLogout();
								return false;
  							});
  						}else{
  							$(".moduletable_login2").hide();
							$(".temp").hide("slow");
							$(".moduletable_login  .login_div").css("left","113px");
							$(".login_div").show("slow");
  							$(".login_link").hide();
							$(".usernametext").before('<span class="error">Invalid Login</span>');
  						}
  							
  		}, 'json');
		}
		
		return false;
   	});


	function rebindLogout(){
   		$.post("/",{option:'com_ntblogin',format:'raw', view:'logout'},
   			function(data){
				$(".moduletable_login2").hide();
				$(".temp").hide();
				$(".login_link").show();
				$(".moduletable_login").show();
				$(".login_right").show("slow");
				if ( $(".ntb_loginbox_on").length > 0 ) {
									$(".ntb_loginbox_on").hide();
									$(".ntb_loginbox_off").show("slow");
								}
				return false;

				}, 'json');
  	};


/*****************
*******  
******* Adslide code.
******* This a bad way of doing this but there is no choice.
******* Basically in order to the the cick event to turn the adbot back on. I need to check every secod to see if the div containing highslide-image exist. once it exist i rebind the div to show the adbot again
*******
*******/
var int_ID = null;
$(".highslide").click(function(){
     $(".adbot").hide();
      $(".adbot").before("<div class='blank_ad'> advertisement:<br/></div>");

     int_ID = setInterval(function(){
       if(!!$('.highslide-image').length) {
         $(".highslide-image").click(function(){
            $('.blank_ad').remove(); 
            $('.adbot').show(); 
         });
          $(".close").click(function(){
            $('.blank_ad').remove(); 
            $('.adbot').show(); 
         });
         clearInterval(int_ID);
       }
     }, 1000);
});



//Remove all inline stlying on the blogs. 

  $(".entry-body p").removeAttr("style");
$('#left_container > .menu li:first').addClass('firstChild');
});




