var vFlashVersion = fGetFlashVersion();
var vFlashWModeOK = fGetFlashWModeOK();
var vSiteRoot = fGetRoot();
if(document.location.search.indexOf("flash=0")>-1) vFlashVersion = 0;
if(document.location.search.indexOf("flash=1")>-1) vFlashWModeOK = 0;
var vFlashOK = (vFlashVersion>4);
var W3CDOM = (document.getElementById && document.getElementsByTagName);
/* Date */
function fWriteDate(){
	var dt = new Date();
	var d = "Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday".split("|");
	var m = "January|February|March|April|May|June|July|August|September|October|November|December".split("|");
	var t = "|st|nd|rd|th".split("|");
	var c = dt.getDate();
	var e = c%10;
	var f = Math.floor(c/10);
	document.write("<span class='day'>"+d[dt.getDay()]+"</span> "+c+"<sup>"+t[(e>3||f==1)?4:e]+"</sup> "+m[dt.getMonth()]+" "+dt.getFullYear());
}
function fWriteMap(){
	if(vFlashOK){
		fWriteFlash("_assets/media/swfMap.swf",null,null,true,null);
	}else{
		document.write('<img src="'+vSiteRoot+'_assets/media/imgMap.png" alt="" />');
	}
}
function fWriteChrome(file,top,left){
	if(vFlashOK && vFlashWModeOK){
	document.write('<div class="chrome'+file+'" style="top:'+top+'px;left:'+left+'px;" >');
		fWriteFlash("_assets/media/chrome/swfChrome"+file+".swf",null,null,true,null);
	document.write('</div>');
	}
}

function fWriteSWF(file){
	if(vFlashVersion>5)
	{
		fWriteFlash("_assets/media/"+file+".swf",null,(file=='swfLogo' ? '#000000' : null),null,"TL");
	}else{
	document.write('<a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"><img src="'+vSiteRoot+'_assets/media/'+file+'.png" alt="" /></a>');
 }
}


function fWriteFlash(swf,fid,bgcolor,transparent,noscale){
	var swf = vSiteRoot + swf;
	var txt = "";
	txt += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100%" height="100%" ';
 	if(fid) txt += 'id="'+fid+'" ' ;
	txt += 'codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0">';
	txt += '<param name="movie" value="'+swf+'" />';
	txt += '<param name="menu" value="false" />';
 	if(bgcolor) txt += '<param name="bgcolor" value="'+bgcolor+'" />';
	if(noscale) txt += '<param name="scale" value="noscale" /><param name="salign" value="'+noscale+'" />';
	if(transparent) txt += '<param name="wmode" value="transparent" />';
	txt += '<embed src="'+swf+'" menu="false" width="100%" height="100%" ';
 	if(fid) txt += 'id="'+fid+'" name="'+fid+'" ' ;
	if(bgcolor) txt += 'bgcolor="'+bgcolor+'" ';
	if(noscale) txt += 'scale="noscale" salign="'+noscale+'" ';
	if(transparent) txt += 'wmode="transparent" ';
	txt += 'swLiveConnect="true" type="application/x-shockwave-flash "';
	txt += 'pluginspage="//www.macromedia.com/go/getflashplayer" />';
	txt += '</object>';
	document.write(txt);
}
function fWriteWMV(id, w, h, url){
	var wmp7;try{if(window.ActiveXObject){wmp7 = new ActiveXObject("WMPlayer.OCX.7");}else if(window.GeckoActiveXObject){wmp7 = new GeckoActiveXObject("WMPlayer.OCX.7");}} catch(oError){}
	var classID = wmp7 ? "CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" : "CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95";
	var txt = "";
	txt += '<object classid="'+classID+'" id="'+id+'" width="'+w+'" height="'+h+'" type="application/x-oleobject"';
	txt += '<param name="name" value="'+id+'" />';
	txt += '<param name="'+(wmp7 ? 'url' : 'filename')+'" value="'+url+'" />';
	txt += '<param name="ShowStatusBar" value="true" />';
	if(!wmp7){
		txt += '<embed type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" ';
		txt += 'id="'+id+'" name="'+id+'" ';
		txt += 'src="'+url+'" filename="'+url+'" ';
		txt += 'width="'+w+'" height="'+h+'" showstatusbar="1"></embed>';
	}
	txt += '</object>';
	document.write(txt);
}

function fWriteIPix(src){
var path = vSiteRoot + "_assets/media/ipix/"
var src =  path + src;
var txt = "";
 txt += '<applet name="IpixViewer" code="IpixViewer.class" archive="'+path+'IpixViewer.jar" width="520" height="440">';
 txt += '<param name="url" value="'+src+'.ipx" />';
 txt += '<param name="toolbar" value="on" />';
 txt += '<param name="initfov" value="0" />';
 txt += '<param name="spinspeed" value="5" />';
 txt += '<param name="spinstyle" value"flat" />';
 txt += '</applet>';
 document.write(txt);
}
var aAssID = new Array();
function fToggleID(id){
	if (!document.getElementById) return;
	var o = document.getElementById(id);
	if(o==null) return;
	aAssID[id] = !aAssID[id];
	var visState = (aAssID[id]) ? 'block' : 'none';
	if(o.style) o = o.style;
	o.display = visState;
}
function fGetRoot(){
	if (!document.getElementById) document.getElementById = function() { return "/"; }
	var l = document.getElementById("iPathFinder");
	if(!l||!l.href) return "/";
	l = String(l.href);
	l = l.substring(0, l.indexOf("_assets/"));
	return l;
}
function fInitRoundedCorners(){ if(!W3CDOM) return;
	getElementsByCondition(fGetClassRoundedCornersDIV, null, ["highlight","jsHighlight"]);
	getElementsByCondition(fGetClassRoundedCornersDIV, null, ["highlight2","jsHighlight2"]);
	getElementsByCondition(fGetClassRoundedCornersDIV, null, ["navHighlight","jsNavHighlight"]);
	getElementsByCondition(fGetClassRoundedCornersDIV, null, ["gameItem","jsGameItem"]);
	getElementsByCondition(fGetClassRoundedCornersDIV, null, ["screenshots","jsScreenshots"]);
	getElementsByCondition(fGetClassRoundedCornersDIV, null, ["newsItem","jsNewsItem"]);
	getElementsByCondition(fGetClassRoundedCornersDIV, null, ["projectItem","jsProjectItem"]);
	getElementsByCondition(fGetClassRoundedCornersDIV, null, ["highlightMap","jshighlightMap"]);
	getElementsByCondition(fGetClassRoundedCornersDIV, null, ["publisher","jsPublisher"]);
}
function fAddRoundedCornersDIV(obj, c){
	var d = document.createElement('div'); d.className = c;
	obj.parentNode.replaceChild(d, obj);
	var d1 = document.createElement('div');
	var d2 = document.createElement('div');
	var d3 = document.createElement('div');
	var d4 = document.createElement('div');
	d.appendChild(d1); d1.appendChild(d2); d2.appendChild(d3); d3.appendChild(d4); d4.appendChild(obj);
}
function fAddRoundedCornersTBL(obj, c){
	var d = document.createElement('div'); d.className = c;
	obj.parentNode.replaceChild(d, obj);
	var d1 = document.createElement('div'); d1.className = "tblCrnBL";
	var d2 = document.createElement('div'); d2.className = "tblCrnBR";
	d.appendChild(obj); d.appendChild(d1); d.appendChild(d2);
}
function fGetClassRoundedCornersDIV(e,n,arr){ if(e.className==arr[0] && !e._done) { e._done = true; fAddRoundedCornersDIV(e, arr[1]);} }
function fGetClassRoundedCornersTBL(e,n,arr){ if(e.className==arr[0] && !e._done) { e._done = true; fAddRoundedCornersTBL(e, arr[1]);} }

window.onload = function(){
	fInitialiseMenu("iNavL1M", true);
	fInitRoundedCorners();
}
var currentMenu = null, mytimer = null, timerOn = false;
function fInitialiseMenu(idStr, move) { if(!W3CDOM) return;
	for(var ni=1; document.getElementById(idStr+ni); ni++){
		var menuStr = idStr+ni;
		var menuIStr = idStr+"I"+ni;
		var menu = document.getElementById(menuStr);
		var menuI = document.getElementById(menuIStr);
		menu._name = menuStr;
		menuI._myMenu = menu;
		if(menu == null || menuI == null) return;
		if(menu["childNodes"]==null) return;
		var node;
		for(var i=0; i<menu.childNodes.length; i++) {
			if(menu.childNodes[i].childNodes.length<1) continue;
			node = menu.childNodes[i].childNodes[0];
			if(node.nodeName.toLowerCase()!="a") continue;
			node.onfocus=function() { stopTime(); }
			node.onblur=function() { menu.hideMenu(); }
		}
		currentMenu = menu;
		menuI.onmouseover = function(){ if(currentMenu){ currentMenu.style.visibility = "hidden"; currentMenu = null;
			this.showMenu(); stopTime(); }	}
		menu.onmouseover = function(){ if(currentMenu){ currentMenu.style.visibility = "hidden"; currentMenu = null;
			this.showMenu(); }	}
		menuI.showMenu = function(){
			if(move) this._myMenu.style.left = this.offsetLeft+"px";
			this._myMenu.style.visibility = "visible"; currentMenu = this._myMenu; fHideShowSelectBox(true);}
		menuI.onfocus	 = function(){ this.onmouseover(); }
		menuI.onblur	 = function(){ this.onmouseout(); }
		menu.showMenu = function(){ this.style.visibility = "visible"; currentMenu = this; stopTime(); }
		menu.hideMenu = function(){
			if (!timerOn) { mytimer = setTimeout("killMenu('" + this._name + "');", 400); timerOn = true; } }
		menu.onmouseout = function(){ this.hideMenu(); }
		menuI.onmouseout = function(){ this._myMenu.hideMenu(); }
	}
}
function killMenu(id) { if(!W3CDOM) return; id = document.getElementById(id); id.style.visibility = "hidden"; stopTime(); fHideShowSelectBox(false); }
function stopTime(){ if(mytimer){ clearTimeout(mytimer); mytimer = null; timerOn = false; } }

function fHideShowSelectBox(show){
	if(!document.forms["frmOrder"]) return; if(!document.forms.frmOrder["frmPack"]) return;
	var myForm = document.forms.frmOrder;
	myForm.frmPackTXT.value = myForm.frmPack.options[myForm.frmPack.selectedIndex].text;
	fApplyStyle(myForm.frmPack, "display", ((!show) ? "block" : "none"));
	fApplyStyle(myForm.frmPackTXT, "display", ((show) ? "block" : "none"));
}
function sfMouseEvents(sfEls) {
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onfocus = function() { this.className += " hover"; }
		sfEls[i].onblur = function() { this.className = this.className.replace(new RegExp(" hover\\b"), ""); }
		sfEls[i].onmouseover = function() { this.className += " hover"; }
		sfEls[i].onmouseout = function() { this.className = this.className.replace(new RegExp(" hover\\b"), ""); }
	}
}


function getElementsByCondition(condition,container,arg){	container = container || document; var all = container.all || container.getElementsByTagName('*'); var arr = new Array(); var e; for(var k=0; k<all.length; k++){ e = all[k]; if(condition(e,k,arg)) arr[arr.length] = e; } return arr; }
function fApplyStyle(id, style, prop){ var e = (typeof(id)=="string")?document.getElementById(id):id; if(e==null) return; if(e.style) e = e.style; e[style] = prop; }
function fAddEvent(obj, evType, fn){ if(obj.addEventListener){ obj.addEventListener(evType, fn, false); return true; } else if(obj.attachEvent){ var r = obj.attachEvent("on"+evType, fn); return r; } else return false; }
function fGetFlashWModeOK(){return (navigator.platform.toLowerCase().indexOf("win")>-1)&&(navigator.appVersion.toLowerCase().indexOf('msie')>-1);}
function fGetFlashVersion(){var latestV=8;flVersion=0;var agent=navigator.userAgent.toLowerCase();if(agent.indexOf("mozilla/3")!=-1&&agent.indexOf("msie")==-1){flVersion=0;}if(navigator.plugins!=null&&navigator.plugins.length>0){var flashPlugin=navigator.plugins['Shockwave Flash'];if(typeof flashPlugin=='object'){for(var i=latestV;i>=3;i--){if(flashPlugin.description.indexOf(i+'.')!=-1){flVersion=i;break;}}}}else if(agent.indexOf("msie")!=-1&&parseInt(navigator.appVersion)>=4&&agent.indexOf("win")!=-1&&agent.indexOf("16bit")==-1){var doc='<scr'+'ipt language="VBScript"\> \n';doc+='On Error Resume Next \n';doc+='Dim obFlash \n';doc+='For i = '+latestV+' To 3 Step -1 \n';doc+='   Set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash." & i) \n';doc+='   If IsObject(obFlash) Then \n';doc+='      flVersion = i \n';doc+='      Exit For \n';doc+='   End If \n';doc+='Next \n';doc+='</scr'+'ipt\> \n';document.write(doc);}else if(agent.indexOf("webtv/2.5")!=-1)flVersion=3;else if(agent.indexOf("webtv")!=-1)flVersion=2;else{flVersion=-1;}return flVersion;}
if(!Array.prototype.pop) {
	function array_pop(){ lastElement = this[this.length-1]; this.length = Math.max(this.length-1,0); return lastElement;	}
	Array.prototype.pop = array_pop;
}





<!-- begin remove google auto fill highlight -->

  if(window.attachEvent)

    window.attachEvent("onload",setListeners);


  function setListeners(){

    inputList = document.getElementsByTagName("INPUT");

    for(i=0;i<inputList.length;i++){

      inputList[i].attachEvent("onpropertychange",restoreStyles);

      inputList[i].style.backgroundColor = "";

    }

    selectList = document.getElementsByTagName("SELECT");

    for(i=0;i<selectList.length;i++){

      selectList[i].attachEvent("onpropertychange",restoreStyles);

      selectList[i].style.backgroundColor = "";

    }

  }


  function restoreStyles(){

    if(event.srcElement.style.backgroundColor != "")

      event.srcElement.style.backgroundColor = "";

  }

<!-- end remove google auto fill highlight -->




















