$(document).ready(function() {
   
$(".searchTextField").focus(function(e){  
    $(this).addClass("activated");  
});  
$(".searchTextField").blur(function(e){  
    $(this).removeClass("activated");  
});  


$(".searchTextField").focus(function(){  
    if($(this).attr("value") == "Search Drinks International" ) $(this).attr("value", "");  
});  
$(".searchTextField").blur(function(){  
    if($(this).attr("value") == "") $(this).attr("value", "Search Drinks International" );  
});  



$(".newsletterTextField").focus(function(e){  
    $(this).addClass("activated");  
});  
$(".newsletterTextField").blur(function(e){  
    $(this).removeClass("activated");  
});  


$(".newsletterTextField").focus(function(){  
    if($(this).attr("value") == "Enter your email address here" ) $(this).attr("value", "");  
});  
$(".newsletterTextField").blur(function(){  
    if($(this).attr("value") == "") $(this).attr("value", "Enter your email address here" );  
});  

jQuery('ul.sf-menu').superfish();
if (jQuery("#adzoneLeaderboard").height() > 10) {
 jQuery("#adzoneLeaderboard").parent().css("padding", "10px 0");
}
else jQuery("#adzoneLeaderboard").parent().hide();

if (jQuery("#ad-1").height() > 10) {
     jQuery("#ad-1").css("padding", "15px 20px");
}
else jQuery("#ad-1").hide();

if (jQuery("#ad-2").height() > 10) {
     jQuery("#ad-2").css("padding", "15px 20px");
}
else jQuery("#ad-2").hide();

if (jQuery("#ad-3").height() > 10) {
     jQuery("#ad-3").css("padding", "15px 20px");
}
else jQuery("#ad-3").hide();

if (jQuery(".adcontainer160").height() > 10) {
     jQuery(".adcontainer160").css({'border-left': "20px solid #F6F6F6",'border-right': "20px solid #F6F6F6",'border-top': "20px solid #F6F6F6",'border-bottom': "20px solid #F6F6F6"});
}
else jQuery(".adcontainer160").hide();

var height = jQuery(window).height();
     
if (height <= 677) {
    jQuery("#header").addClass("smallheader");
    jQuery("#header").removeClass("noheader");
}
else if (height>677) {
    jQuery("#header").removeClass("smallheader");
    jQuery("#header").removeClass("noheader");
}
});



