//console.log(); 
$(document).ready(function() {

if (jQuery.browser.msie ) {
   	if(parseInt(jQuery.browser.version) <=6){
	
		$("#searchbar #button").css({backgroundImage: "none",filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop src='modules/mod_ntbsearchbar/images/searchbar/SEARCH_BUTTON.png'"})
		$("#balloon .link").css({backgroundImage: "none",filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop src='modules/mod_ntbsearchbar/images/searchbar/SEARCH_BALLOON_IE.png'"})
		$(".ballonright").css({backgroundImage: "none",filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop src='modules/mod_ntbsearchbar/images/searchbar/SEARCH_BALLOONRIGHT.png'"})
		$(".ballonLeft").css({backgroundImage: "none",filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop src='modules/mod_ntbsearchbar/images/searchbar/SEARCH_BALLOONLEFT.png'"})

	}
  }


/*****************
*******  
******* 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);
});


});




