// jQuery additional element 

// JavaScript Pull Down Menu

$(document).ready(function(){


function MenuOn(x){
obj=document.getElementById
("submenu"+x).style.display="block";
}
function MenuOff(x){
obj=document.getElementById
("submenu"+x).style.display="none";
}

$("#menu1").hover(function(){MenuOn(1)},function(){MenuOff(1)});
$("#menu2").hover(function(){MenuOn(2)},function(){MenuOff(2)});
$("#menu3").hover(function(){MenuOn(3)},function(){MenuOff(3)});
$("#menu4").hover(function(){MenuOn(4)},function(){MenuOff(4)});

});

// JavaScript Roll Over Image


function initRollOverImages() {
var conf = {
// Write DOM : delimiter ","
swapList : 'img.swap, #globalNavBlock a img, .localNavBox a img'
};


// Process
var image_cache = new Object();
$(conf.swapList).each(function(i) {
var imgsrc = this.src;
var dot = this.src.lastIndexOf('.');
var imgsrc_o = this.src.substr(0, dot) + '_o' + this.src.substr(dot, 4);
image_cache[this.src] = new Image();
image_cache[this.src].src = imgsrc_o;
$(this).not('[@src*="_o."]').hover(
function() { this.src = imgsrc_o; },
function() { this.src = imgsrc; });
});
}


$(document).ready(initRollOverImages);


// end

// JavaScript List float Clear
$(document).ready(function(){
	$(".btnTxtLinkList li:nth-child(odd)").addClass("even");
	$(".animalProductsList li:nth-child(odd)").addClass("even");
})






// Open Window -no jQuery
function tgdisp(url, target, nWidth, nHeight){
opt = "width=" + nWidth + ",height=" + nHeight + ",scrollbars=yes,resizable=yes";
var wOpen = window.open(url, target, opt);
wOpen.focus();
wOpen.resizeTo( nWidth, nHeight );
}

