var MM_contentVersion = 4;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  var winName = window.open(theURL,winName,features);
}

function placeflash(moviename,widd,hidd) {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+widd+'" height="'+hidd+'">');
document.write('<param name="movie" value="'+moviename+'">');
document.write('<param name="quality" value="high">');
document.write('<embed src="'+moviename+'" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+widd+'" height="'+hidd+'"></embed>');
document.write('</object>');
}

function toggleProductInfo(strId,strId2) 
{
		var objRef = document.getElementById(strId);
	var objRef2 = document.getElementById(strId2);
	
	if (objRef.style.display=='block') {
		objRef.style.display='none';
		objRef.style.visibility='hidden';		

	} else {
		objRef.style.display='block';
		objRef.style.visibility='visible';

	}
		if (objRef2.style.display=='block') {
		objRef2.style.display='none';
		objRef2.style.visibility='hidden';		

	} else {
		objRef2.style.display='block';
		objRef2.style.visibility='visible';
	}
}

function toggleProductInfo2(strId,strId2) 
{
var objRef = document.getElementById(strId);
var objRef2 = document.getElementById(strId2);
	
objRef2.style.display='none';
objRef2.style.visibility='hidden';		

objRef.style.display='block';
objRef.style.visibility='visible';
}

function toggleProductInfo3(strId) 
{
var objRef = document.getElementById(strId);
var objRef2 = document.getElementById(strId2);
	
objRef.style.display='block';
objRef.style.visibility='visible';
		

}

function biton(strId) {
	var objRef = document.getElementById(strId);
objRef.style.display='block';
}

function bitoff(strId) {
	var objRef = document.getElementById(strId);
objRef.style.display='none';
}
function pagechange(thisbit) {
this.location.href=thisbit;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapIMG()
{
	delete imgObj;
	var imgID = MM_swapIMG.arguments[0];
	var imgFile = MM_swapIMG.arguments[1];
	var imgObj = document.getElementById(imgID);
 		z0Image = new Object;
		z0Image = new Image(226, 15);
		z0Image.src = imgFile;
 	if (imgObj.src)
 	{
		imgObj.src = z0Image.src;
	}
	delete z0Image;
	delete imgObj;
}

 function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; 
  document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2]; x.style.display = 'block';}
}
 

function cellImg(idCell, imgName) { 
document.getElementById(idCell).style.background = "url(" + imgName + ") 2px 2px no-repeat"; 
} 

function refsh() {
if (document.getElementById || document.all) {
this.history.go(0);
}
}



var l1 =   0;
var t1 =   0; 
var w1 = 400; 
var ie = document.all ? true : false;

function hidelay(prod) {
elmx = document.getElementById(prod);
elmx.style.visibility="hidden";
}

function showlay(prod) {
elmx = document.getElementById(prod);
elmx.style.visibility="visible";
}



function setpos2() {

pos = document.getElementById("franceshunt");
l1 = getLeft(pos);
t1 = getTop(pos);

elm = document.getElementById("Layer5");
elm.style.top=t1+90;
elm.style.left=l1-633;
}

function setpos2b() {


elm = document.getElementById("Layer5b");
elm.style.top=t1+90;
elm.style.left=l1-633;
}


function setpos(){

if (document.getElementById || document.all) {

pos = document.getElementById("franceshunt");
l1 = getLeft(pos);
t1 = getTop(pos);



elm = document.getElementById("Layer1");
elm.style.top=t1+123;
elm.style.left=l1-448;

elm.style.visibility="visible";


elm2 = document.getElementById("prod1");
elm2.style.top=t1+253;
elm2.style.left=l1-428;
elm2.style.visibility="hidden";

elm3 = document.getElementById("prod2");
elm3.style.top=t1+253;
elm3.style.left=l1-428;
elm3.style.visibility="hidden";


}

}


function getLeft(obj)
{
	var curleft = 0;
	if (document.getElementById || document.all)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (document.layers)
		curleft += obj.x;
	return curleft;
}

function getTop(obj)
{
	var curtop = 0;
	if (document.getElementById || document.all)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (document.layers)
		curtop += obj.y;
	return curtop;
}

