
 function TextSignup(el){    
   if(el.value == "Enter your email address"){
        el.value = "";
        $(el).css("color","#000000");
   }else if(el.value == ""){
        el.value = "Enter your email address";
        $(el).css("color","");
   }
}



// submit search
function submitSearch(TrackingSrcPrefix){
   //window.location.href='/search/default.aspx?searchString=' + $('#txtSearch').val() + '&src=' + TrackingSrcPrefix + "_search";
   window.location='/search/default.aspx?searchString=' + $('#txtSearch').val() + '&src=' + TrackingSrcPrefix + "_search";
}

//check for enter key for search
function checkEnter(e){    
   
    if(window.event)
        key = window.event.keyCode; //IE
    else
        key = e.which; //firefox 
          
    if (key == 13)
    {        
        submitSearch();
        return false;
    }else{
        return true;
    }
}
 
 
 //dom ready functions
$(function(){
    //Add mouseover to all images with "hover" as classname  
    $("img.hover, input.hover").hover(function() { 
        var imgOver = $(this).attr('src').replace(".","_over.");
        $(this).attr('src',imgOver);
    }, function() {
        var imgCurrent =  $(this).attr('src').replace("_over.", ".");
        $(this).attr('src',imgCurrent);                
    }); 
    
    //Preload all hover images
    $("img.hover,input.hover").each(function(){
        jQuery("<img>").attr("src", $(this).attr('src').replace(".","_over."));                
    }); 
    
    //aligns all the nav dropdowns
    $("li.navItem ul:not(#lastSubMenu, #firstSubMenu)").each(function() {$(this).css("left",((($(this).width() - ($(this).parent().width() - 10) ) /2) * -1) + "px") });
    //$("li.navItem ul:last").css("left","inherit").css("right","-23px");;
 

});
 
 