                                                                                // JavaScript Document

/*

	Project: RLC 
	Author: RR
	Date: 8-6-09
	Description: Functions to alter sites display using JQuery;
	
	Notes:
		** JS Created  -- RR 8/6/09;		

*/


$(function(){ // document.ready

// Selected State for Main Navigation

try{
	var hiddenNav = $(".hiddenNav").attr("id");
	$(".main-nav div[rel="+hiddenNav+"]").addClass("selected");
$("span.sub-nav[rel="+hiddenNav+"]").show();
}
catch(err){}

// Selected State for the Sub Navigation

try{
	var hiddenNav = $(".hiddenNav").attr("rel");
	$(".sub-nav div[rel="+hiddenNav+"]").addClass("selected");
}
catch(err){}

try{
$(".ecomm-desc").each(function(){
var alphaExp = new RegExp(/[A-Za-z0-9_]/);
var txt = $(this).text();
if(alphaExp.test(txt) == false){
$(this).hide();
}
}); 
}catch(err){}

    try{
$("select.skufield").each(function(){
if($(this).children().length==1){
$(this).parent().hide();
}
});
}catch(err){}

// Add Value for the Search textbox
try{
$("#ctl01_tbSearch").val("Search").focus(function(){
$(this).val("");
});
}catch(err){} 

});



    

    

    

    

    

    

    

    

    
