<!-- //
function popupName(strUrl, intWidth, intHeight, strName) {
	window.open(strUrl, strName, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=' + intWidth +',height=' + intHeight+ '');
}
function popup(strUrl, intWidth, intHeight) {
	window.open(strUrl, 'zoovillage', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=' + intWidth +',height=' + intHeight+ '');
}
function popupArgsName(strUrl, args, strName) {
	window.open(strUrl, strName, '' + args + '');
}
function popupArgs(strUrl, args) {
	window.open(strUrl, 'zoovillageArgs', '' + args + '');
}

function getObj(objName) {
	var objReturn;
	if(document.getElementById) {
		objReturn = document.getElementById(objName);
	} else if (document.all){
		objReturn = document.all[objName];
	}
	return objReturn;
}

var countryMenu = new Array()
countryMenu[0] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=4">Austria</a></td><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/austria.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[1] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=19">Belgium</a></td><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/belgium.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[2] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=19">Cyprus</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/cyprus.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[3] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=20">Czech Republic</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/czech_republic.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[4] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=6">Denmark</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/denmark.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[5] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=21">Estonia</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/estonia.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[6] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=3">Finland</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/finland.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[7] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=7">France</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/france.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[8] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=8">Germany</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/germany.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[9] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=9">Greece</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/greece.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[10] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=22">Hungary</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/hungary.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[11] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=10">Ireland</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/ireland.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[12] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=11">Italy</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/italy.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[13] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=23">Latvia</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/latvia.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[14] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=24">Lithuania</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/lithuania.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[15] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=12">Luxembourg</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/luxembourg.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[16] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=13">Netherlands</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/netherlands.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[17] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=26">Poland</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/poland.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[18] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=14">Portugal</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/portugal.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[19] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=28">Slovakia</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/slovakia.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[20] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=29">Slovenia</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/slovenia.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[21] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=15">Spain</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/spain.gif" width="12" height="12" border="0"></td></tr></table>'
countryMenu[22] = '<table border=0 cellpadding=0 cellspacing=0><tr><td width=30 height=18></td><td width=110><a href="http://europe.zoovillage.com/?MarketID=2">United Kingdom</a><td width="20" align="center" valign="middle"><img src="/images/v3/top/country/unitedkingdom.gif" width="12" height="12" border="0"></td></tr></table>'

/*
countryMenu[0] = '<table border=0 cellpadding=0 cellspacing=0><tr><td></td><td></td></tr></table><a href="http://europe.zoovillage.com/?MarketID=4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Austria</a><br>'
countryMenu[1] = '<a href="http://europe.zoovillage.com/?MarketID=5">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Belgium</a><br>'
countryMenu[2] = '<a href="http://europe.zoovillage.com/?MarketID=19">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cyprus</a><br>'
countryMenu[3] = '<a href="http://europe.zoovillage.com/?MarketID=20">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Czech Republic</a><br>'
countryMenu[4] = '<a href="http://europe.zoovillage.com/?MarketID=6">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Denmark</a><br>'
countryMenu[5] = '<a href="http://europe.zoovillage.com/?MarketID=21">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Estonia</a><br>'
countryMenu[6] = '<a href="http://europe.zoovillage.com/?MarketID=3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finland</a><br>'
countryMenu[7] = '<a href="http://europe.zoovillage.com/?MarketID=7">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;France</a><br>'
countryMenu[8] = '<a href="http://europe.zoovillage.com/?MarketID=8">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Germany</a><br>'
countryMenu[9] = '<a href="http://europe.zoovillage.com/?MarketID=9">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Greece</a><br>'
countryMenu[10] = '<a href="http://europe.zoovillage.com/?MarketID=22">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hungary</a><br>'
countryMenu[11] = '<a href="http://europe.zoovillage.com/?MarketID=10">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ireland</a><br>'
countryMenu[12] = '<a href="http://europe.zoovillage.com/?MarketID=11">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Italy</a><br>'
countryMenu[13] = '<a href="http://europe.zoovillage.com/?MarketID=23">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Latvia</a><br>'
countryMenu[14] = '<a href="http://europe.zoovillage.com/?MarketID=24">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lithuania</a><br>'
countryMenu[15] = '<a href="http://europe.zoovillage.com/?MarketID=12">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Luxembourg</a><br>'
countryMenu[16] = '<a href="http://europe.zoovillage.com/?MarketID=13">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Netherlands</a><br>'
countryMenu[17] = '<a href="http://europe.zoovillage.com/?MarketID=26">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Poland</a><br>'
countryMenu[18] = '<a href="http://europe.zoovillage.com/?MarketID=14">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Portugal</a><br>'
countryMenu[19] = '<a href="http://europe.zoovillage.com/?MarketID=28">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Slovakia</a><br>'
countryMenu[20] = '<a href="http://europe.zoovillage.com/?MarketID=29">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Slovenia</a><br>'
countryMenu[21] = '<a href="http://europe.zoovillage.com/?MarketID=15">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Spain</a><br>'
countryMenu[22] = '<a href="http://europe.zoovillage.com/?MarketID=2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;United Kingdom</a><br>'
*/

var menuwidth = '165px' //default menu width
var menubgcolor = '#966d2d'  //menu bgcolor
var disappeardelay = 250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick = "yes" //hide menu when user clicks within menu?
var height_offset = 16
var downpadding = 4

var ie4 = document.all
var ns6 = document.getElementById&&!document.all

if (ie4)
	downpadding = 4

if (ie4||ns6)
	document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';" onMouseOver="clearhidemenu()" onMouseOut="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
	var totaloffset = (offsettype=="left")? what.offsetLeft : what.offsetTop;
	var parentEl = what.offsetParent;
	while (parentEl != null){
		totaloffset = (offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
		parentEl = parentEl.offsetParent;
	}
	return totaloffset;
}

function showhide(obj, e, visible, hidden, menuwidth){
	if (ie4||ns6)
		dropmenuobj.style.left = dropmenuobj.style.top="-500px"
	if (menuwidth != ""){
		dropmenuobj.widthobj = dropmenuobj.style
		dropmenuobj.widthobj.width = menuwidth
	}
	if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
		obj.visibility = visible
	else if (e.type=="click")
		obj.visibility = hidden
}

function iecompattest(){
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
	var edgeoffset = 0
	if (whichedge=="rightedge"){
		var windowedge = ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-(height_offset-1) : window.pageXOffset+window.innerWidth-(height_offset-1)
		dropmenuobj.contentmeasure = dropmenuobj.offsetWidth
		if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
			edgeoffset = dropmenuobj.contentmeasure-obj.offsetWidth
	}
	else{
		var topedge = ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
		var windowedge = ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-(height_offset-1) : window.pageYOffset+window.innerHeight-(height_offset+2)
		dropmenuobj.contentmeasure = dropmenuobj.offsetHeight
		if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
			edgeoffset = dropmenuobj.contentmeasure+obj.offsetHeight
			if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
				edgeoffset = dropmenuobj.y+obj.offsetHeight-topedge
		}
	}
	return edgeoffset
}

function populatemenu(what){
	if (ie4||ns6)
	dropmenuobj.innerHTML = what.join("")
}

function dropdownmenu(obj, e, menucontents, menuwidth){
	if (window.event) event.cancelBubble = true
	else if (e.stopPropagation) e.stopPropagation()
	clearhidemenu()
	dropmenuobj = document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
	populatemenu(menucontents)
	
	if (ie4||ns6){
		showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
		dropmenuobj.x = getposOffset(obj, "left")
		dropmenuobj.y = getposOffset(obj, "top")
		dropmenuobj.style.left = dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
		dropmenuobj.style.top = dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+(obj.offsetHeight+downpadding)+"px"
	}
	return clickreturnvalue()
}

function clickreturnvalue(){
	if (ie4||ns6) return false
	else return true
}

function contains_ns6(a, b) {
	while (b.parentNode)
		if ((b = b.parentNode) == a)
			return true;
		return false;
}

function dynamichide(e){
	if (ie4&&!dropmenuobj.contains(e.toElement))
		delayhidemenu()
	else if (ns6&&e.currentTarget != e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
		delayhidemenu()
}

function hidemenu(e){
	if (typeof dropmenuobj!="undefined"){
		if (ie4||ns6)
			dropmenuobj.style.visibility = "hidden"
	}
}

function delayhidemenu(){
	if (ie4||ns6)
		delayhide = setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
	if (typeof delayhide!="undefined")
		clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
	document.onclick = hidemenu

//-->