//if on production
if (vPrefix != ""){
	//if this is a family page
	vURL = document.URL.toLowerCase()
	if (vURL.indexOf("agcofamily") != -1) {
		//if we are not in an iframe
		if (top.location == self.location) {
			vHOST = location.hostname.toLowerCase()
			vBrand = "MF"
			if (vHOST.indexOf("agco.") != -1) {vBrand = "Agco"}
			if (vHOST.indexOf("auto") != -1) {vBrand = "AutoGuide"}
			if (vHOST.indexOf("challenger") != -1) {vBrand = "Challenger"}
			if (vHOST.indexOf("falcon") != -1) {vBrand = "Falcon"}
			if (vHOST.indexOf("fendt") != -1) {vBrand = "Fendt"}
			if (vHOST.indexOf("fieldstar") != -1) {vBrand = "Fieldstar"}
			if (vHOST.indexOf("gleaner") != -1) {vBrand = "Gleaner"}
			if (vHOST.indexOf("globaltech") != -1) {vBrand = "GTA"}
			if (vHOST.indexOf("iseki") != -1) {vBrand = "Iseki"}
			if (vHOST.indexOf("sgis") != -1) {vBrand = "SGIS"}
			vPath = location.pathname.toLowerCase()
			vRegion = "UK"
			if (vPath.indexOf("da.") != -1) {vRegion = "da"}
			if (vPath.indexOf("de.") != -1) {vRegion = "de"}
			if (vPath.indexOf("es.") != -1) {vRegion = "es"}
			if (vPath.indexOf("fr.") != -1) {vRegion = "fr"}
			if (vPath.indexOf("it.") != -1) {vRegion = "it"}
			if (vPath.indexOf("no.") != -1) {vRegion = "no"}
			if (vPath.indexOf("sv.") != -1) {vRegion = "sv"}
			vNEW = "http://" + vHOST + vPrefix  + "/" + vBrand + "/" + vRegion + "/About" + vBrand + "/Family.htm?" + vURL
			// window.status = vNEW
			top.location.replace(vNEW)
		}
	}
}

//if (vPrefix != ""){
if (document.getElementById("cmsMainTable") == null){
	var vTo   = document.getElementById("TraderFrame")
	if (vTo != null) {
		x = "<iframe " + vTo.innerHTML +">"
		x = x + "</iframe>"
		x = x.replace("&amp;","&")
		x = x.replace("&amp;","&")
		x = x.replace("&amp;","&")
		x = x.replace("&amp;","&")
		x = x.replace("&amp;","&")
		vTo.innerHTML = x
	}

}

//if this is not a family page
//vURL = document.URL.toLowerCase()
//if (vURL.indexOf("agcofamily") == -1 && vURL.indexOf("content.htm") == -1) {
	//var agt=navigator.userAgent.toLowerCase(); 
	//var ie	= (agt.indexOf("msie") != -1); 
	//window.moveTo(0,0);
	//if (ie) {
	//	window.resizeTo(603,603);
	//	} 
	//else {
	//	window.outerHeight = 603;
	//	window.outerWidth = 603;
	//	}
	//window.focus()
//}

// czech alphabet
vLoc=location.href
if (vLoc.indexOf("ChallengerCS") != -1) {
	var aS = document.getElementsByTagName("td")
	var iN = aS.length
	for (i=0 ; i<iN ; i++) 
	{	sI = aS[i].innerHTML
		f=String.fromCharCode(232); t=String.fromCharCode(269); while(sI.indexOf(f) != -1) { sI = sI.replace(f,t) }
		f=String.fromCharCode(248); t=String.fromCharCode(345); while(sI.indexOf(f) != -1) { sI = sI.replace(f,t) }
		f=String.fromCharCode(236); t=String.fromCharCode(283); while(sI.indexOf(f) != -1) { sI = sI.replace(f,t) }
		f=String.fromCharCode(242); t=String.fromCharCode(328); while(sI.indexOf(f) != -1) { sI = sI.replace(f,t) }
		f=String.fromCharCode(249); t=String.fromCharCode(367); while(sI.indexOf(f) != -1) { sI = sI.replace(f,t) }
		f=String.fromCharCode(239); t=String.fromCharCode(271); while(sI.indexOf(f) != -1) { sI = sI.replace(f,t) }
		f=String.fromCharCode(200); t=String.fromCharCode(268); while(sI.indexOf(f) != -1) { sI = sI.replace(f,t) }
//		f=String.fromCharCode(216); t=String.fromCharCode(344); while(sI.indexOf(f) != -1) { sI = sI.replace(f,t) }
//		f=String.fromCharCode(204); t=String.fromCharCode(282); while(sI.indexOf(f) != -1) { sI = sI.replace(f,t) }
//		f=String.fromCharCode(210); t=String.fromCharCode(327); while(sI.indexOf(f) != -1) { sI = sI.replace(f,t) }
//		f=String.fromCharCode(217); t=String.fromCharCode(366); while(sI.indexOf(f) != -1) { sI = sI.replace(f,t) }
		aS[i].innerHTML = sI
	}
}
