// code for navigation rollover/out effect

var $j = jQuery.noConflict();

/*
function showADiv(vari){
var navishow = "#"+vari;
$j("#products").hide();
$j("#mission").hide();
$j("#news").hide();
$j("#community").hide();
$j("#contact").hide();

if(vari==null){
null}else{
$j("#cover").css({"height":"100%","width":"100%"});
$j(navishow).toggle();
 $j("#jNavContainer").css({"border-bottom":"none"});
}
}
*/

//menu show bottles/////////////
$j(document).ready(function(){
($j.browser.msie ) ? null : $j("#cover").hide();
							
//product menu sku rollover
$j(".showon").mouseover(function () {
$j('#products #centercolumn').hide();
var selected = $(this).attr('href');
var myarray = selected.split('/');
var lngth = (myarray.length)-2;
$j('#products #centercolumn').html('<p><img src="/products/productimages/'+myarray[lngth]+'/menu.jpg" /></p>');
$j('#products #centercolumn').fadeIn("normal");
});
 
$j(".showoff").mouseover(function () {
$j('#products #centercolumn').hide();
}); 

//main menu controls/////////////

$j("#jNavContainer").mouseleave(	 
function () {
$j("#jNavContainer > .over").hide();

($j.browser.msie) ? $j("#cover").css({"height":"0%","width":"0%"}) : $j("#cover").fadeOut("normal");

$j("#jNavContainer").css({"border-bottom":"1px #cccccc solid"});
return false;
}
);
 
//
 
$j("#jNavContainer > a").mouseenter(
function () {
$j("#jNavContainer > .over").hide();
var selecteditem = "#"+($(this).attr('href')).replace(/\//g,"");
//$j("#cover").hide();


if ($j.browser.msie ) {
$j("#cover").css({"height":"100%","width":"100%"});
}else{
$j("#cover").css({"height":"100%","width":"100%"});
$j("#cover").fadeIn("normal");
}
	


//$j("#cover").fadeIn("normal");
$j("#jNavContainer").css({"border-bottom":"none"});
($j.browser.msie ) ? $j(selecteditem).show() : $j(selecteditem).fadeIn();
}
);
//main menu controls end/////////////

});//END document ready