//#### FLASH FUNCTIONS ####

//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2007 Adobe Systems Incorporated.  All rights reserved.

var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
var isVista = (navigator.userAgent.indexOf("NT 6") != -1) ? true : false;

function ControlVersion()
{
	var version;
	var axo;
	var e;

	// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry

	try {
		// version will be set for 7.X or greater players
		axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		version = axo.GetVariable("$version");
	} catch (e) {
	}

	if (!version)
	{
		try {
			// version will be set for 6.X players only
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
			
			// installed player is some revision of 6.0
			// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
			// so we have to be careful. 
			
			// default to the first public version
			version = "WIN 6,0,21,0";

			// throws if AllowScripAccess does not exist (introduced in 6.0r47)		
			axo.AllowScriptAccess = "always";

			// safe to call for 6.0r47 or greater
			version = axo.GetVariable("$version");

		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 4.X or 5.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = axo.GetVariable("$version");
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 3.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = "WIN 3,0,18,0";
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 2.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			version = "WIN 2,0,0,11";
		} catch (e) {
			version = -1;
		}
	}
	
	return version;
}

// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
	// NS/Opera version >= 3 check for Flash plugin in plugin array
	var flashVer = -1;
	
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
			var descArray = flashDescription.split(" ");
			var tempArrayMajor = descArray[2].split(".");			
			var versionMajor = tempArrayMajor[0];
			var versionMinor = tempArrayMajor[1];
			var versionRevision = descArray[3];
			if (versionRevision == "") {
				versionRevision = descArray[4];
			}
			if (versionRevision[0] == "d") {
				versionRevision = versionRevision.substring(1);
			} else if (versionRevision[0] == "r") {
				versionRevision = versionRevision.substring(1);
				if (versionRevision.indexOf("d") > 0) {
					versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
				}
			}
			var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
		}
	}
	// MSN/WebTV 2.6 supports Flash 4
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
	// WebTV 2.5 supports Flash 3
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
	// older WebTV supports Flash 2
	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
	else if ( isIE && isWin && !isOpera ) {
		flashVer = ControlVersion();
	}	
	return flashVer;
}

function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
	versionStr = GetSwfVer();
	if (versionStr == -1 ) {
		return false;
	} else if (versionStr != 0) {
		if(isIE && isWin && !isOpera) {
			// Given "WIN 2,0,0,11"
			tempArray         = versionStr.split(" "); 	// ["WIN", "2,0,0,11"]
			tempString        = tempArray[1];			// "2,0,0,11"
			versionArray      = tempString.split(",");	// ['2', '0', '0', '11']
		} else {
			versionArray      = versionStr.split(".");
		}
		var versionMajor      = versionArray[0];
		var versionMinor      = versionArray[1];
		var versionRevision   = versionArray[2];

        	// is the major.revision >= requested major.revision AND the minor version >= requested minor
		if (versionMajor > parseFloat(reqMajorVer)) {
			return true;
		} else if (versionMajor == parseFloat(reqMajorVer)) {
			if (versionMinor > parseFloat(reqMinorVer))
				return true;
			else if (versionMinor == parseFloat(reqMinorVer)) {
				if (versionRevision >= parseFloat(reqRevision))
					return true;
			}
		}
		return false;
	}
}

function Flash(flash, id, width, height, color, version, transparent){
	this.width = width;
	this.height = height;
	this.flash = flash;
	this.id = id;
	this.color = color;
	this.transparent = transparent;
	this.flashvars = "";
	this.parameters = "";
	this.parametersEmbedded = "";
	this.version = version;
	
	this.useExpressInstall = false;
	
	// functions
	this.addFlashVar = addFlashVar;
	this.addParam = addParam;
	this.doWriteFlash = doWriteFlash;	
	this.expressInstall = expressInstall;
}

function expressInstall(flash){
	var ver = this.version.split(".");
	
	// Major version of Flash required
	var requiredMajorVersion = ver[0];
	// Minor version of Flash required
	var requiredMinorVersion = ver[1];
	// Minor version of Flash required
	var requiredRevision = ver[2];
	
	// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
	var hasProductInstall = DetectFlashVer(6, 0, 65);

	// Version check based upon the values defined in globals
	var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);	

	if(hasProductInstall && !hasReqestedVersion){
		// no express install on vista IE
		//if(isVista && isIE){
		//}else{
			this.useExpressInstall = true;
			// change source
			this.flash = flash;
				
			var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
			
			var MMredirectURL = "" + window.location;
			MMredirectURL = MMredirectURL.replace(/&/g,"%26");
			
			document.title = document.title.slice(0, 47) + " - Flash Player Installation";
			var MMdoctitle = document.title;

			this.addFlashVar("MMredirectURL", MMredirectURL);
			this.addFlashVar("MMplayerType", MMPlayerType);
			this.addFlashVar("MMdoctitle", MMdoctitle);
		//}
	}
}

function addFlashVar(name, value){
	if(this.flashvars=="")
		this.flashvars = name + "=" + value;
	else
		this.flashvars += "&" + name + "=" + value;
}

function addParam(name, value){
	this.parameters += "<param name=\"" + name + "\" value=\"" + value + "\" />\n";
	this.parametersEmbedded += " " + name + "=\"" + value + "\"";	
}

function doWriteFlash(){

	var ver = this.version.split(".");
	var hasRightVersion = DetectFlashVer(ver[0],ver[1],ver[2]);
	
	if(hasRightVersion || this.useExpressInstall){
		if(navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length){ 
			var mode = "";
			if(this.transparent)
				mode = "wmode=\"transparent\"";
			else
				mode = "bgcolor=\"" + this.color + "\"";

			var strOut = '<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" id="' + this.id + '" name="' + this.id + '" src="' + this.flash + '" quality="high" scale="noscale" '+mode+' width="' + this.width + '" height="' + this.height +'" allowScriptAccess="sameDomain" FlashVars="' + this.flashvars + '"' + this.parametersEmbedded + ' />\n';						
		}	
		else{ // IE
			var strOut = '<object id="' + this.id + '" name="' + this.id + '" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="' + this.width + '" height="' + this.height + '">\n'						
			+ '<param name="movie" value="' + this.flash + '" />\n'
			+ '<param name="allowScriptAccess" value="sameDomain" />\n'
			+ '<param name="scale" value="noscale" />\n'
			+ '<param name="quality" value="high" />\n';
		
			if(this.transparent)
				strOut += '<param name="wmode" value="transparent" />\n';
			else
				strOut += '<param name="bgcolor" value="' + this.color + '" />\n';

			
			strOut += this.parameters;
			strOut += '<param name="FlashVars" value="' + this.flashvars + '" />\n'
			strOut += '<\/object>\n';			
		}

		var obj = document.getElementById(this.id+"_alt");
		
		if(obj){
			obj.innerHTML = "";
			obj.style.display = "none";
		}	
		
		//alert(strOut);	
		document.write(strOut);
	}
}


// FLASH FUNCTIONS

var requiredVersion = 7;
var useRedirect = false;
  
var flash2Installed = false;    // boolean. true if flash 2 is installed
var flash3Installed = false;    // boolean. true if flash 3 is installed
var flash4Installed = false;    // boolean. true if flash 4 is installed
var flash5Installed = false;    // boolean. true if flash 5 is installed
var flash6Installed = false;    // boolean. true if flash 6 is installed
var flash7Installed = false;    // boolean. true if flash 7 is installed
var flash8Installed = false;    // boolean. true if flash 8 is installed
var flash9Installed = false;    // boolean. true if flash 9 is installed
var maxVersion = 9;             // highest version we can actually detect
var actualVersion = 0;          // version the user really has
var hasRightVersion = false;    // boolean. true if it's safe to embed the flash movie in the page
var jsVersion = 1.0;            // the version of javascript supported

var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;    // true if we're on ie
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; // true if we're on windows

jsVersion = 1.1;

if(isIE && isWin){
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');
	document.write('flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');
	document.write('flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
	document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');  
	document.write('flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');  
	document.write('flash7Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n');
	document.write('flash8Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8"))) \n');
	document.write('flash9Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.9"))) \n');
	document.write('<\/SCR' + 'IPT\> \n');
}

function detectFlash() {  
	if (navigator.plugins) {
		if (navigator.plugins["Shockwave Flash 2.0"]
			|| navigator.plugins["Shockwave Flash"]) {
			var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;
			var flashVersion = parseInt(flashDescription.substring(16));
			flash2Installed = flashVersion == 2;    
			flash3Installed = flashVersion == 3;
			flash4Installed = flashVersion == 4;
			flash5Installed = flashVersion == 5;
			flash6Installed = flashVersion == 6;
			flash7Installed = flashVersion == 7;
			flash8Installed = flashVersion == 8;
			flash9Installed = flashVersion >= 9;
		}
	}
	for (var i = 2; i <= maxVersion; i++) {  
		if (eval("flash" + i + "Installed") == true) actualVersion = i;
	}
	if(navigator.userAgent.indexOf("WebTV") != -1) actualVersion = 4;  
		if (actualVersion >= requiredVersion) {
			if (useRedirect) {
				if(jsVersion > 1.0) {
					window.location.replace(flashPage);  
				} else {
					window.location = flashPage;
				}
			}
				hasRightVersion = true;                
		} else {  
			if (useRedirect) {
				if(jsVersion > 1.0) {
					window.location.replace((actualVersion >= 2) ? upgradePage : noFlashPage);
			} else {
				window.location = (actualVersion >= 2) ? upgradePage : noFlashPage;
			}
		}
	}
}

detectFlash();

function writeFlash(width, height, flash, image, color, id, parameters){
	if(!useRedirect){
		if(hasRightVersion){
			var oeTags = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + width + '" height="' + height + '" id="' + id + '" align="middle">\n'
			+ '<param name="allowScriptAccess" value="sameDomain" />\n'
			+ '<param name="FlashVars" value="' + parameters + '" />\n'
			+ '<param name="scale" value="noscale" />\n'
			+ '<param name="movie" value="' + flash + '" />\n'
			+ '<param name="quality" value="high" />\n'
			+ '<param name="bgcolor" value="' + color + '" />\n'
			+ '<embed FlashVars="' + parameters + '" src="' + flash + '" quality="high" scale="noscale" bgcolor="' + color +'" width="' + width + '" height="' + height +'" name="' + id + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n'
			+ '<\/object>\n';
			//alert(oeTags);
			document.write(oeTags);
		}
		else{
			//document.write('<img src="' + image +'" height="' + height + '" width="' + width + '" />');
		}
	}
}

function writeTransFlash(width, height, flash, image, color, id, parameters){
	if(!useRedirect){
		if(hasRightVersion){
			var oeTags = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + width + '" height="' + height + '" id="' + id + '" align="middle">\n'
			+ '<param name="allowScriptAccess" value="sameDomain" />\n'
			+ '<param name="FlashVars" value="' + parameters + '" />\n'
			+ '<param name="scale" value="noscale" />\n'
			+ '<param name="movie" value="' + flash + '" />\n'
			+ '<param name="quality" value="high" />\n'
			+ '<param name="wmode" value="transparent" />\n'
			+ '<embed FlashVars="' + parameters + '" src="' + flash + '" quality="high" scale="noscale" wmode="transparent" width="' + width + '" height="' + height +'" name="' + id + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n'
			+ '<\/object>\n';
			//alert(oeTags);
			document.write(oeTags);
		}
		else{
			//document.write('<img src="' + image +'" height="' + height + '" width="' + width + '" />');
		}
	}
}



//#### GENERAL FUNCTIONS ####

function doPrint(){
	if ((window.print) && (document.all)){
		window.print();
		//window.close();
	} else if (window.print) {
		window.print();
	} else if ((document.all) && !(navigator.userAgent.indexOf("Mac") != -1)) {			
		var printWindowObject = "<object id='printWindowObject1' width=0 height=0 classid='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'></object>";
		document.body.insertAdjacentHTML("BeforeEnd",printWindowObject);
		window.document.printWindowObject1.ExecWB(6,1);
		//ID=window.setTimeout("window.close();",100);
	}

}

function $(id){
	return document.getElementById(id);
}
 
function openPopup(url,pwidth,pheight){
	var posLeft = (parseInt(screen.width)/2) - (parseInt(pwidth)/2); 
	var posTop = ((parseInt(screen.height)/2) - (parseInt(pheight)/2)) - 50;
 
	newwindow = window.open(url,null,'toolbar=0,menubar=0,location=0,directories=0,status=0,resizable=0,scrollbars=1,HEIGHT='+pheight+',WIDTH='+pwidth+',left='+posLeft+',top='+posTop);
	if (window.focus)
		newwindow.focus();
}

function popup2(url,pwidth,pheight){
	newwindow = window.open(url,null,'toolbar=0,menubar=0,location=0,directories=0,status=0,resizable=1,scrollbars=1,HEIGHT='+pheight+',WIDTH='+pwidth);
	if (window.focus)
		newwindow.focus();
}

function openQuickTour(url,pwidth,pheight){
	var posLeft = (parseInt(screen.width)/2) - (parseInt(pwidth)/2); 
	var posTop = ((parseInt(screen.height)/2) - (parseInt(pheight)/2)) - 50;
 
	newwindow = window.open(url,null,'toolbar=0,menubar=0,location=0,directories=0,status=0,resizable=0,scrollbars=0,HEIGHT='+pheight+',WIDTH='+pwidth+',left='+posLeft+',top='+posTop);
	if (window.focus)
		newwindow.focus();
}

function preload(imgObj,imgSrc){
	if(document.images){
		eval(imgObj+' = new Image()');
		eval(imgObj+'.src = "'+imgSrc+'"');
	}
}

var isIE6 = false;
if(navigator.userAgent.indexOf("MSIE 6") != -1)
	isIE6 = true;

function imgSwap(imgName, newImgSource){
	if($(imgName)){
		if(!isIE6){
			eval("document.getElementById('" + imgName + "').src = " + newImgSource + ".src");
		}else{
			$(imgName).runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + eval(newImgSource + ".src") + "', sizingMethod='image')";
		}
	}
}

//#### MODAL LAYER ####

var Modal = new function() {

	this.show = function(content, width, height) {
		scroll(0,0);	
				
		// Cut window and remove scrollbars
		var body = document.getElementsByTagName('body')[0];
		body.style.height = "100%";
		body.style.overflow = "hidden";
  
		var html = document.getElementsByTagName('html')[0];
		html.style.height = "100%";
		html.style.overflow = "hidden";

		// Create opacity overlay
		this.ol = el = document.createElement('DIV');
		el.style.width = '110%';
		el.style.height = '100%';
		el.style.position = 'absolute';
		el.style.backgroundColor = 'gray';
		el.style.filter = 'alpha(opacity=65)';
		el.style.opacity = '0.65';
		el.style.left = -document.body.style.marginLeft;
		el.style.top = -document.body.style.marginTop;
		el.style.zIndex = 10000;
		el.onclick = function() {Modal.close();};
		el.id = 'Modal_overlay';
		document.body.insertBefore(el, document.body.childNodes[0]);

		// Create window		
		this.ow = el = document.createElement('DIV');
		el.innerHTML = content;
		el.style.width = width + 'px';
		el.style.height = height + 'px';
		el.style.position = 'absolute';
		el.style.left = parseInt((parseInt(document.body.clientWidth)-width)/2) + "px";
		el.style.top = '100px';
		el.style.zIndex = 10001;
		el.id = 'Modal_window';
		document.body.insertBefore(el, document.body.childNodes[0]);

		this.handleSelects(false);

		document["onkeydown"] = Modal.keyPress;
		if (document.getElementById('Modal_focus'))
			document.getElementById('Modal_focus').focus();
	}

	this.close = function()
	{
		if (this.ol)
		{
			document.body.removeChild(document.getElementById('Modal_overlay'));
			document.body.removeChild(document.getElementById('Modal_window'));
			this.ol = null;
			this.ow = null;
			document["onkeydown"] = null;
			
			// Cut window and remove scrollbars
			var body = document.getElementsByTagName('body')[0];
			body.style.height = '';
			body.style.overflow = '';
  
			var html = document.getElementsByTagName('html')[0];
			html.style.height = '';
			html.style.overflow = '';

			this.handleSelects(true);
		}
	}
	
	this.keyPress = function(e) {
		if (!e)
			e=event;
		var key = e.keyCode;
		
		switch(key)
		{
			case 9:
				return false;

			case 27:
				Modal.close();
				return false;
			
			default:
				break;
		}
		return true;
	}

	this.handleSelects = function(show)
	{
		if (navigator.appVersion.match(/\bMSIE\b/))
		{
			var selects = document.getElementsByTagName("select");
			
			for(var i=0;i<selects.length;i++)
				selects[i].style.visibility = show?"":"hidden";
		}
	}

}



// GENERAL FUNCTIONS

/* Used for validating the input from the Dealer Locator. */
/* Mikael Gustavsson -- 060925*/
function validateFields(subForm, message)
{
	if (subForm.street.value == "" && subForm.pc.value == "" && subForm.city.value == "")
	{	alert(message)
			return false;
	}
}

/* Used for validating the input from the Dealer Locator. */
/* Mikael Gustavsson -- 061004*/
function validateEmptySearch(sform)	 
 {
	alert("sform");
	if (sform.query.value == "")
		return false;

	return true;
}

function showMedia(page, url, description, media, mediaid, logotype){
	window.open(page + '?media=' + media + '&url=' + url + '&title=' + description + '&id=' + mediaid + '&logotype=' + logotype, 'Window','toolbar=0,menubar=0,location=0,directories=0,status=0,resizable=1,scrollbars=1');
}

function popup2(url,pwidth,pheight){
	newwindow = window.open(url,null,'toolbar=0,menubar=0,location=0,directories=0,status=0,resizable=0,scrollbars=1,HEIGHT='+pheight+',WIDTH='+pwidth);
	if (window.focus)
		newwindow.focus();
}

function setFocus(formname,fieldname){
    if(eval("document."+formname)) eval("document."+searchForm+"."+fieldname+".focus()");
}

function imgSwap(imgName, newImgSource){
	if(document.getElementById(imgName)){
		eval("document.getElementById('" + imgName + "').src = " + newImgSource + ".src");
	}
}

function preload(imgObj,imgSrc){
	if(document.images){
		eval(imgObj+' = new Image()');
		eval(imgObj+'.src = "'+imgSrc+'"');
	}
}

function doPrint(){
	if ((window.print) && (document.all)){
		window.print();
		//window.close();
	} else if (window.print) {
		window.print();
	} else if ((document.all) && !(navigator.userAgent.indexOf("Mac") != -1)) {			
		var printWindowObject = "<object id='Object1' width=0 height=0 classid='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'></object>";
		document.body.insertAdjacentHTML("BeforeEnd",printWindowObject);
		window.document.printWindowObject1.ExecWB(6,1);
		//ID=window.setTimeout("window.close();",100);
	}
}

//#### MODAL LAYER ####

var Modal = new function() {

	this.show = function(content, width, height) {
		scroll(0,0);	

		var winH = (isIE) ? document.body.offsetHeight : window.innerHeight;

		if((height + 20) > winH)
			height = winH - 90;
	
		/*var ScrollTop= document.body.scrollTop;
		var ScrollLeft = document.body.scrollLeft;

		if(ScrollTop == 0) {
			if(window.pageYOffset) {
				ScrollTop = 0; //window.pageYOffset;
				ScrollLeft = 0; //window.pageXOffset;
			}
			else {
				ScrollTop = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
				ScrollLeft = (document.body.parentElement) ? document.body.parentElement.scrollLeft: 0;
			}
		}*/

		// Cut window and remove scrollbars
		var body = document.getElementsByTagName('body')[0];
		body.style.height = "100%";
		body.style.overflow = "hidden";
  
		var html = document.getElementsByTagName('html')[0];
		html.style.height = "100%";
		html.style.overflow = "hidden";

		// Create opacity overlay
		this.ol = el = document.createElement('DIV');
		el.style.width = '110%';
		el.style.height = '100%';
		el.style.position = 'absolute';
		el.style.backgroundColor = 'gray';
		el.style.filter = 'alpha(opacity=65)';
		el.style.opacity = '0.65';
		el.style.left = -document.body.style.marginLeft; // + ScrollLeft;
		el.style.top = -document.body.style.marginTop; // + ScrollTop;
		el.style.zIndex = 10000;
		el.onclick = function() {Modal.close();};
		el.id = 'Modal_overlay';
		document.body.insertBefore(el, document.body.childNodes[0]);

		// Create window		
		this.ow = el = document.createElement('DIV');
		el.innerHTML = content;
		el.style.width = width + 'px';
		el.style.height = height + 'px';
		el.style.position = 'absolute';
		el.style.left = parseInt((parseInt(document.body.clientWidth)-width)/2) + "px";
		el.style.top = '20px'; //(ScrollTop) + parseInt((parseInt(document.body.clientHeight)-height)/2) + "px";
		el.style.zIndex = 10001;
		el.id = 'Modal_window';
		document.body.insertBefore(el, document.body.childNodes[0]);

		this.handleSelects(false);

		document["onkeydown"] = Modal.keyPress;
		if (document.getElementById('Modal_focus'))
			document.getElementById('Modal_focus').focus();
	}

	this.close = function()
	{
		if (this.ol)
		{
			document.body.removeChild(document.getElementById('Modal_overlay'));
			document.body.removeChild(document.getElementById('Modal_window'));
			this.ol = null;
			this.ow = null;
			document["onkeydown"] = null;
			
			// Cut window and remove scrollbars
			var body = document.getElementsByTagName('body')[0];
			body.style.height = '';
			body.style.overflow = '';
  
			var html = document.getElementsByTagName('html')[0];
			html.style.height = '';
			html.style.overflow = '';

			this.handleSelects(true);
		}
	}
	
	this.keyPress = function(e) {
		if (!e)
			e=event;
		var key = e.keyCode;
		
		switch(key)
		{
			case 9:
				return false;

			case 27:
				Modal.close();
				return false;
			
			default:
				break;
		}
		return true;
	}

	this.handleSelects = function(show)
	{
		if (navigator.appVersion.match(/\bMSIE\b/))
		{
			var selects = document.getElementsByTagName("select");
			
			for(var i=0;i < selects.length; i++)
				selects[i].style.visibility = show?"":"hidden";
		}
	}

}

//Used for link_expand
var oldSpanId = "";
var newSpanId = "";
function openClose(Id){
    oldSpanId = newSpanId;
    newSpanId = Id;
	if(oldSpanId == newSpanId){
		if(document.getElementById("span"+newSpanId).style.display == "inline"){
			document.getElementById("span"+newSpanId).style.display = "none";
			document.getElementById("link"+newSpanId).className = "";   
		}else{
			document.getElementById("span"+newSpanId).style.display = "inline";
			document.getElementById("link"+newSpanId ).className = "linkSearchBold";
		}
	}else{
		if(document.getElementById("span"+newSpanId )){
			document.getElementById("span"+newSpanId ).style.display = "inline";
			document.getElementById("link"+newSpanId ).className = "linkSearchBold";
		}

		if(oldSpanId!=""){
			document.getElementById("span"+oldSpanId).style.display = "none";
			document.getElementById("link"+oldSpanId).className = "";            
		}
	
	}
}

function LinkMe(url) {
	if(url.length > 1)
		document.location.href = url;
}

function LinkMeExternal(url){
	if(url.length > 1)
		myWin = window.open(url);
}

/* OVERRIDDEN WEBFORM DEFAULT BUTTON */

var __defaultFired = false;
function WebForm_FireDefaultButton(event, target) {

    if (!__defaultFired && event.keyCode == 13 && !(event.srcElement && (event.srcElement.tagName.toLowerCase() == "textarea"))) {
        var defaultButton;

		if(document.getElementById)
		   defaultButton = document.getElementById(target);
		else
			defaultButton = document.all[target];
	
        if (typeof(defaultButton.click) != "undefined") {
            __defaultFired = true;
            defaultButton.click();
            event.cancelBubble = true;
            
            if (event.stopPropagation) event.stopPropagation();
            return false;
        }

        if (typeof(defaultButton.href) != "undefined") {
            __defaultFired = true;
            eval(defaultButton.href.substr(11));
            event.cancelBubble = true;
            
            if (event.stopPropagation) event.stopPropagation();
            return false;
        }

    }
    __defaultFired = false;
    return true;
}


/*

Milonic DHTML Menu - JavaScript Website Navigation System.
Version 5.744 - Built: Monday March 6 2006 - 15:50
Copyright 2006 (c) Milonic Solutions Limited. All Rights Reserved.
This is a commercial software product, please visit http://www.milonic.com/ for more information.
See http://www.milonic.com/license.php for Commercial License Agreement
All Copyright statements must always remain in place in all files at all times
*******  PLEASE NOTE: THIS IS NOT FREE SOFTWARE, IT MUST BE LICENSED FOR ALL USE  ******* 

License Details:
 Number: 201726
    URL: .
   Type: Professional
  Dated: Tuesday March 21 2006

*/


_mD=2;_d=document;_dB=_d.body;_n=navigator;_L=location;_nv=$tL(_n.appVersion);_nu=$tL(_n.userAgent);_ps=parseInt(_n.productSub);_f=false;_t=true;_toL=_X=_Y=_n=null;_W=window;$$=" ";Z$="";_wp=_W.createPopup;ie=(_d.all)?_t:_f;ie4=(!_d.getElementById&&ie)?_t:_f;ie5=(!ie4&&ie&&!_wp)?_t:_f;ie55=(!ie4&&ie&&_wp)?_t:_f;ns6=(_nu.indexOf("gecko")!=-1)?_t:_f;konq=(_nu.indexOf("konqueror")!=-1)?_t:_f;sfri=(_nu.indexOf("safari")!=-1)?_t:_f;if(konq||sfri){_ps=0;ns6=0}ns4=(_d.layers)?_t:_f;ns61=(_ps>=20010726)?_t:_f;ns7=(_ps>=20020823)?_t:_f;ns72=(_ps>=20040804)?_t:_f;ff15=(_ps>=20060000)?_t:_f;op=(_W.opera)?_t:_f;if(op||konq)ie=0;op5=(_nu.indexOf("opera 5")!=-1)?_t:_f;op6=(_nu.indexOf("opera 6")!=-1||_nu.indexOf("opera/6")!=-1)?_t:_f;op7=(_nu.indexOf("opera 7")!=-1||_nu.indexOf("opera/7")!=-1)?_t:_f;_OpV=(op&&_W.opera.version)?_W.opera.version():0;if(_OpV)op7=_t;mac=(_nv.indexOf("mac")!=-1)?_t:_f;if(ns6||ns4||op||sfri)mac=_f;ns60=_f;if(ns6&&!ns61)ns60=_t;if(op7)op=_f;IEDtD=0;if(!op&&((_d.all||ns7)&&_d.compatMode=="CSS1Compat")||(mac&&_d.doctype&&_d.doctype.name.indexOf(".dtd")!=-1))IEDtD=1;_jv="javascript:void(0)";inEditMode=_rstC=inDragMode=_d.dne=lcl=$R=$mD=_mcnt=_sL=_sT=_ofMT=_oldbW=_bW=_oldbH=_bl=_el=_st=_en=_cKA=0;_startM=_c=1;_trueItemRef=focusedMenu=t_=_itemRef=_mn=-1;_zi=_aN=_bH=999;if(op)ie55=_f;B$="absolute";$O="menu";$5="hidden";_d.write("<style>.milonic{width:1px;visibility:hidden;position:absolute}</style>");function _StO(f,m){return setTimeout(f,m)}tTipt=Z$;_m=[];_mi=[];_sm=[];_tsm=[];_cip=[];$S3="2E636F6D2F";$S4="646D2E706870";_MT=_StO(Z$,0);_oMT=_StO(Z$,0);_cMT=_StO(Z$,0);_mst=_StO(Z$,0);_Mtip=_StO(Z$,0);$u="undefined ";lNum=201726;lURL=".";lVer="5.744";_Lhr=_L.href;$6="visible";if(op5){$5=$tU($5);$6=$tU($6)}function M_hideLayer(){}function _oTree(){}function mmMouseMove(){}function _cL(){}function _TtM(){}function _ocURL(){}function mmClick(){}function autoOT(){}function _iF0C(){}function showtip(){}function isEditMode(){}function hidetip(){}function mmVisFunction(){}function doMenuResize(){}function _p8(a,d){var t=[];for(_a=0;_a<a.length;_a++){if(a[_a]!=d){t[t.length]=a[_a]}}return t}function copyOf(w){for(_cO in w){this[_cO]=w[_cO]}}function $tL(v){if(v)return v.toLowerCase()}function $tU(v){if(v)return v.toUpperCase()}function $pU(v){if(v)return parseInt(v)}function drawMenus(){_startM=1;_oldbH=0;_oldbW=0;for(_y=_mcnt;_y<_m.length;_y++){o$(_y,1)}}_$S={menu:0,text:1,url:2,showmenu:3,status:4,onbgcolor:5,oncolor:6,offbgcolor:7,offcolor:8,offborder:9,separatorcolor:10,padding:11,fontsize:12,fontstyle:13,fontweight:14,fontfamily:15,high3dcolor:16,low3dcolor:17,pagecolor:18,pagebgcolor:19,headercolor:20,headerbgcolor:21,subimagepadding:22,subimageposition:23,subimage:24,onborder:25,ondecoration:26,separatorsize:27,itemheight:28,image:29,imageposition:30,imagealign:31,overimage:32,decoration:33,type:34,target:35,align:36,imageheight:37,imagewidth:38,openonclick:39,closeonclick:40,keepalive:41,onfunction:42,offfunction:43,onbold:44,onitalic:45,bgimage:46,overbgimage:47,onsubimage:48,separatorheight:49,separatorwidth:50,separatorpadding:51,separatoralign:52,onclass:53,offclass:54,itemwidth:55,pageimage:56,targetfeatures:57,visitedcolor:58,pointer:59,imagepadding:60,valign:61,clickfunction:62,bordercolor:63,borderstyle:64,borderwidth:65,overfilter:66,outfilter:67,margin:68,pagebgimage:69,swap3d:70,separatorimage:71,pageclass:72,menubgimage:73,headerborder:74,pageborder:75,title:76,pagematch:77,rawcss:78,fileimage:79,clickcolor:80,clickbgcolor:81,clickimage:82,clicksubimage:83,imageurl:84,pagesubimage:85,dragable:86,clickclass:87,clickbgimage:88,imageborderwidth:89,overseparatorimage:90,clickseparatorimage:91,pageseparatorimage:92,menubgcolor:93,opendelay:94,tooltip:95,disabled:96,dividespan:97,tipdelay:98,tipfollow:99,tipmenu:100};function mm_style(){for($i in _$S)this[$i]=_n;this.built=0}_$M={items:0,name:1,top:2,left:3,itemwidth:4,screenposition:5,style:6,alwaysvisible:7,align:8,orientation:9,keepalive:10,openstyle:11,margin:12,overflow:13,position:14,overfilter:15,outfilter:16,menuwidth:17,itemheight:18,followscroll:19,menualign:20,mm_callItem:21,mm_obj_ref:22,mm_built:23,menuheight:24,ignorecollision:25,divides:26,zindex:27,opendelay:28,resizable:29,minwidth:30,maxwidth:31};function menuname(name){for($i in _$M)this[$i]=_n;this.name=$tL(name);_c=1;_mn++}function f_(i){_mi[_bl]=[];for($i in _x[6])if(_x[6][$i])_mi[_bl][_$S[$i]]=_x[6][$i];_mi[_bl][0]=_mn;i=i.split(";");_sc=Z$;for(var a=0;a<i.length;a++){var p=i[a].indexOf("`");if(p!=-1){_sc=";";_tI=i[a];if(p==i[a].lastIndexOf("`")){for(var b=a;b<i.length;b++){if(i[b+1]){_tI+=";"+i[b+1];a++;if(i[b+1].indexOf("`")!=-1)b=i.length}}}i[a]=_tI.replace(/`/g,Z$)}p=i[a].indexOf("=");if(p==-1){if(i[a])_si=_si+";"+i[a]+_sc}else{_si=i[a].slice(p+1);_w=i[a].slice(0,p);if(_w=="showmenu")_si=$tL(_si)}if(i[a]&&_$S[_w])_mi[_bl][_$S[_w]]=_si}_m[_mn][0][_c-2]=_bl;_c++;_bl++}_c=0;function ami(t){_t=this;if(_c==1){_c++;_m[_mn]=[];_x=_m[_mn];for($i in _t)_x[_$M[$i]]=_t[$i];_x[21]=-1;_x[0]=[];if(!_x[12])_x[12]=0;var s=_m[_mn][6];var m=_m[_mn];if(m[15]==_n)m[15]=s.overfilter;if(m[16]==_n)m[16]=s.outfilter;s[65]=(s.borderwidth)?$pU(s.borderwidth):0;s[64]=s.borderstyle;s[63]=s.bordercolor;if(_W.ignoreCollisions)m[25]=1;if(!s.built){_WzI=_zi;if(_W.menuZIndex){_WzI=_W.menuZIndex;_zi=_WzI}lcl++;var v=s.visitedcolor;if(v){_oC=s.offcolor;if(!_oC)_oC="#000000";if(!v)v="#ff0000";_d.write("<style>.g_"+lcl+":link{color:"+_oC+"}.g_"+lcl+":visited{color:"+v+"}</style>");s.g_="g_"+lcl}s.built=1}}f_(t)}menuname.prototype.aI=ami;



/*

Milonic DHTML Menu - JavaScript Website Navigation System.
Version 5.744 - Built: Monday March 6 2006 - 15:50
Copyright 2006 (c) Milonic Solutions Limited. All Rights Reserved.
This is a commercial software product, please visit http://www.milonic.com/ for more information.
See http://www.milonic.com/license.php for Commercial License Agreement
All Copyright statements must always remain in place in all files at all times
*******  PLEASE NOTE: THIS IS NOT FREE SOFTWARE, IT MUST BE LICENSED FOR ALL USE  ******* 

License Details:
 Number: 201726
    URL: .
   Type: Professional
  Dated: Tuesday March 21 2006

*/


function _p1(t){if(t._itemRef!=_itemRef)h$(t._itemRef)}function $P($){clearTimeout($);return _n}$a=Z$;$7=0;$8=0;function _DC(){if(!_W.contextObject)$bb()}function _5($){return eval($)}function $c(v){if((ns6&&!ns60)&&_M[14]=="fixed"){p=$D(v);$E(v,p[0]-_sT,p[1]-_sL)}}function gMY(e){$a=Z$;if(ns6){_X=e.pageX;_Y=e.pageY;$a=e.target.id}else{e=event;_X=e.clientX;_Y=e.clientY}if(!op&&_d.all&&_dB){_X+=_dB.scrollLeft;_Y+=_dB.scrollTop;if(IEDtD&&!mac){_Y+=_sT;_X+=_sL;}}if(inDragMode){var g=$F($O+DragLayer);$E(g,_Y-DragY,_X-DragX);if(ie55){g=$F("iFM"+_m[DragLayer].ifr);if(g)$E(g,_Y-DragY,_X-DragX)}return _f}doMenuResize(focusedMenu);mmMouseMove();_TtM()}if(!_W.disableMouseMove)_d.onmousemove=gMY;_dC=_DC;if(_d.onmousedown)_dC=_dC+_d.onmousedown;_d.onmousedown=_dC;_TbS="<table class=milonictable border=0 cellpadding=0 cellspacing=0 style='padding:0px' ";function $F(v){if(_d.getElementById)return _d.getElementById(v);if(_d.all)return _d.all[v]}function $E(g,t,l,h,w){_px="px";var s=g.style;if(w<0)w=0;if(h<0)h=0;if(op){_px=Z$;if(w!=_n)s.pixelWidth=w;if(h!=_n)s.pixelHeight=h}else{if(w!=_n)s.width=w+_px;if(h!=_n)s.height=h+_px;}if(!isNaN(t)&&t!=_n)s.top=t+_px;if(!isNaN(l)&&l!=_n)s.left=l+_px}$_=6;function $D(g){if(!g)return;var h=g.offsetHeight;var w=g.offsetWidth;if(op5){h=g.style.pixelHeight;w=g.style.pixelWidth}var o=g;var t=0;while(o!=_n){t+=o.offsetTop;o=o.offsetParent}o=g;var l=0;while(o!=_n){l+=o.offsetLeft;o=o.offsetParent}if(sfri){l-=$8;t-=$7}if(mac&&_dB){_mcdb=_dB.currentStyle;_mcf=_mcdb.marginTop;if(_mcf)t=t+$pU(_mcf);_mcf=_mcdb.marginLeft;if(_mcf)l=l+$pU(_mcf)}return(new Array(t,l,h,w))}C$=1;$4="return _f";if(ie55)$4="try{if(ap.filters){return 1}}catch(e){}";_d.write("<"+"script>function $9(ap){"+$4+"}<"+"/script>");function $2(g,m){if($9(g)){var s=g.style;var f=(s.visibility==$6)?_m[m][16]:_m[m][15];if(f){if(g.filters[0])g.filters[0].stop();var i=Z$;i="FILTER:";f=f.split(";");for(var x=0;x<f.length;x++){i+=" progid:DXImageTransform.Microsoft."+f[x];if($tU(_nv).indexOf("MSIE 5.5")>0)x=_aN;}s.filter=i;g.filters[0].apply();}}}function $3(g,m){if($9(g)){_flt=(g.style.visibility==$6)?_m[m][15]:_m[m][16];if(_flt)g.filters[0].play()}}function $Y(_mD,v){var o=$F($O+_mD);if(!o)return;var s=o.style;_m[_mD][22]=o;if(v){M_hideLayer(_mD,v);if(_kLm!=Math.ceil(_mLt*_fLm.length))_mi=[];if(!_startM)_m[_mD][23]=1;if((_m[_mD][7]==0&&_ofMT==1))return;if(s.visibility!=$6){$2(o,_mD);if(!_m[_mD][27])s.zIndex=_zi;else s.zIndex=_m[_mD][27];s.visibility=$6;$3(o,_mD);$V(_mD,1);mmVisFunction(_mD,v);if(!_m[_mD][7])_m[_mD][21]=_itemRef;$mD++}}else{if(_m[_mD][21]>-1&&_itemRef!=_m[_mD][21])d$(_m[_mD][21]);if(ns6||s.visibility==$6){if(!(ie||op7)&&_m[_mD][13]=="scroll")s.overflow=$5;hmL(_mD);$V(_mD,0);mmVisFunction(_mD,v);$2(o,_mD);s.visibility=$5;if(ns6||mac)s.top="-9999px";$3(o,_mD);$mD--}_m[_mD][21]=-1}}function $Z(){if(inEditMode)return;var g=arguments;_W.status=Z$;if(t_>-1)d$(t_,1);t_=-1;_oMT=$P(_oMT);for(_a=0;_a<_m.length;_a++){if(_m[_a]&&!_m[_a][7]&&(!_m[_a][10])&&g[0]!=_a){$Y(_a,0);M_hideLayer(_a,0)}else{hmL(_a)}}_zi=_WzI;_itemRef=-1;_sm=new Array;$j=-1;if(_W.resetAutoOpen)_ocURL()}function $d(v){if(v+$$==$u)return-1;return _mi[v][0]}function $e(v){var t=$d(v);if(t==-1)return-1;for(var x=0;x<_mi.length;x++)if(_mi[x]&&_mi[x][3]==_m[t][1])return _mi[x][0]}_mLt=201726.;function $f(v){var t=$d(v);if(t==-1)return-1;for(_x=0;_x<_mi.length;_x++)if(_mi[_x][3]==_m[t][1])return _x}function $h(v){v=$tL(v);for(_x=0;_x<_m.length;_x++)if(_m[_x]&&v==_m[_x][1])return _x}_mot=0;function e$(){var g=arguments;var i=g[0];var I=_mi[i];if(I[96])return;$G=$F("mmlink"+I[0]);hrs=$G.style;_lnk=$F("lnk"+i);if((I[34]=="header"&&!I[2])||I[34]=="form"){$F($O+I[0]).onselectstart=_n;$L(i);hrs.visibility=$5;return}_mot=$P(_mot);u_=$F("el"+i);if(u_.e$==1){$E($G,u_.t,u_.l,u_.h,u_.w);hrs.visibility=$6;return}u_.e$=1;$y=_m[I[0]];if(!$y[9]&&mac)$1A=$D($F("pTR"+i));else $1A=$D(u_);_pm=$F($O+I[0]);k_=$D(_pm);if(_pm.style.visibility!=$6)_pm.style.visibility=$6;if($G){$G._itemRef=i;$G.href=_jv;if(sfri)$G.href=_n;if(I[2])$G.href=I[2];if(I[34]=="disabled")$G.href=_jv;hrs.visibility=$6;if(I[76])$G.title=I[76];else $G.title=Z$;$G.target="_self";if(!I[57]&&I[35])$G.target=I[35];hrs.zIndex=1;if(I[34]=="html"){hrs.zIndex=-1;hrs=u_.style}if((I[86]||I[34]=="dragable")&&inDragMode==0){if(_lnk)_lnk.href=_jv;drag_drop(I[0],i);hrs.zIndex=-1}if(I[34]=="tree")u_.pt=_n;if(u_.pt!=k_[0]||u_.pl!=k_[1]||u_.ph!=k_[2]||u_.pw!=k_[3]){_bwC=0;if(!$G.border&&$G.border!=I[25]){hrs.border=I[25];$G.border=I[25];$G.C=$pU(hrs.borderTopWidth)*2}if($G.C)_bwC=$G.C;var b=_m[I[0]][6][65];v_=0;if(mac)if(_m[I[0]][12])v_=_m[I[0]][12];if(konq||sfri)v_-=b;u_.t=$1A[0]-k_[0]+v_;u_.l=$1A[1]-k_[1]+v_;if(ff15&&_m[I[0]][13]=="scroll"){u_.t=u_.t+(b);u_.l=u_.l+(b)}if(_m[I[0]][14]=="relative"){_rcor=0;if(!mac&&ie)_rcor=b;if($y[2]!="CSS")u_.t=$1A[0]+_rcor;if($y[3]!="CSS")u_.l=$1A[1]+_rcor;if(sfri){u_.t=$1A[0]+$7;u_.l=$1A[1]+$8}}if(!IEDtD&&(ie||op7))_bwC=0;u_.h=$1A[2]-_bwC;u_.w=$1A[3]-_bwC;u_.pt=k_[0];u_.pl=k_[1];u_.ph=k_[2];u_.pw=k_[3]}$E($G,u_.t,u_.l,u_.h,u_.w)}if(_m[I[0]].Ti==i)return;_Cr=(ns6)?_n:Z$;hrs.cursor=_Cr;if(I[59]){if(I[59]=="hand"&&ns6)I[59]="pointer";hrs.cursor=I[59]}if(I[32]&&I[29])$F("img"+i).src=I[32];if(I[3]&&I[3]!="M_doc*"&&I[24]&&I[48])$F("simg"+i).src=I[48];if(_lnk&&!l_){_lnk.oC=_lnk.style.color;if(I[6])_lnk.style.color=I[6];if(I[26])_lnk.style.textDecoration=I[26]}if(I[53]){u_.className=I[53];if(_lnk)_lnk.className=I[53]}if(!l_)if(I[5])u_.style.background=I[5];l_=0;if(I[47])u_.style.backgroundImage="url("+I[47]+")";if(I[71]&&I[90]){if($F("sep"+i))$F("sep"+i).style.backgroundImage="url('"+I[90]+"')"}if(!mac){if(I[44])_lnk.style.fontWeight="bold";if(I[45])_lnk.style.fontStyle="italic"}if(I[42]&&g[1])_5(I[42])}_kLm=_5($qe("6C4E756D"));function d$(){var g=arguments;var i=g[0];if(i==-1)return;u_=$F("el"+i);if(!u_)return;if(u_.e$==0)return;u_.e$=0;_trueItemRef=-1;_gs=u_.style;var I=_mi[i];_tI=$F("img"+i);if(_tI&&I[29])_tI.src=I[29];if(I[3]&&I[24]&&I[48])$F("simg"+i).src=I[24];_lnk=$F("lnk"+i);if(_lnk){if(_startM||op)_lnk.oC=I[8];if(I[34]!="header")_lnk.style.color=_lnk.oC;if(I[26])_lnk.style.textDecoration="none";if(I[33])_lnk.style.textDecoration=I[33]}if(I[54]){u_.className=I[54];if(_lnk)_lnk.className=I[54]}if(I[7])_gs.background=I[7];if(I[9])_gs.border=I[9];if(I[46])_gs.backgroundImage="url("+I[46]+")";if(I[71]){s_I=$F("sep"+i);if(s_I)s_I.style.backgroundImage="url("+I[71]+")"}if(!mac){if(I[44]&&(I[14]=="normal"||!I[14]))_lnk.style.fontWeight="normal";if(I[45]&&(I[13]=="normal"||!I[13]))_lnk.style.fontStyle="normal"}}function $1C(v){for(_a=0;_a<v.length;_a++)if(v[_a]!=$m){_m3=_m[v[_a]];if(_m3&&!(_m3[7]||_m3[10]))$Y(v[_a],0);}}function f$(){_st=-1;_en=_sm.length;_mm=_iP;if(_iP==-1){if(_sm[0]!=$j)return _sm;_mm=$j}for(_b=0;_b<_sm.length;_b++){if(_sm[_b]==_mm)_st=_b+1;if(_sm[_b]==$m)_en=_b}if(_st>-1&&_en>-1){_tsm=_sm.slice(_st,_en)}return _tsm}function _cm3(){_tar=f$();$1C(_tar);for(_b=0;_b<_tar.length;_b++){if(_tar[_b]!=$m)_sm=_p8(_sm,_tar[_b])}}function $r(){_dB=_d.body;if(!_dB)return;$7=_dB.offsetTop;$8=_dB.offsetLeft;if(!op&&(_d.all||ns72)){_mc=_dB;if(IEDtD&&!mac&&!op7)_mc=_d.documentElement;if(!_mc)return;_bH=_mc.clientHeight;_bW=_mc.clientWidth;_sT=_mc.scrollTop;_sL=_mc.scrollLeft;if(konq)_bH=_W.innerHeight}else{_bH=_W.innerHeight;_bW=_W.innerWidth;if(ns6&&_d.documentElement.offsetWidth!=_bW)_bW=_bW-16;_sT=self.scrollY;_sL=self.scrollX;if(op){_sT=_dB.scrollTop;_sL=_dB.scrollleft}}}_fLm=_5($qe("6C55524C"));function $W(i){var I=_mi[i];if(I[3]){_p6=I[39];I[39]=0;_oldMD=_menuOpenDelay;_menuOpenDelay=0;_gm=$F($O+$h(I[3]));_ofMT=1;if(_gm.style.visibility==$6&&I[40]){$Y($h(I[3]),0);e$(i)}else{h$(i)}_menuOpenDelay=_oldMD;I[39]=_p6}else{if(I[2]&&I[39])_5(I[2])}}function $x(v){var vv=0;if(v)vv=v;if(isNaN(v)&&v.indexOf("offset=")==0)vv=$pU(v.substr(7,99));return vv}function popup(){_itemRef=-1;var g=arguments;_MT=$P(_MT);_oMT=$P(_oMT);if(g[0]){$m=$h(g[0]);if(!_m[$m].tooltip)$Z($m);_M=_m[$m];if(!_M)return;if(!_M[23]&&!_startM){g$($m)}_tos=0;if(g[2])_tos=g[2];_los=0;if(g[3])_los=g[3];_gm=$F($O+$m);if(!g[1]&&(_M[2]||_M[3])){_tP=_n;_lT=_n;if(!isNaN(_M[2]))_tP=_M[2];if(!isNaN(_M[3]))_lT=_M[3];$E(_gm,_tP,_lT)}_sm[_sm.length]=$m;$pS=0;if(!_startM&&_M[13]=="scroll")$pS=1;if(g[1]){if(!_gm)return;j_=$D(_gm);if(g[1]==1){if(_M[2])if(isNaN(_M[2]))_tos=$x(_M[2]);else{_tos=_M[2];_Y=0}if(_M[3])if(isNaN(_M[3]))_los=$x(_M[3]);else{_los=_M[3];_X=0}if(!_M[25]){if(_Y+j_[2]+16>(_bH+_sT))_tos=_bH-j_[2]-_Y+_sT-16;if(_X+j_[3]>(_bW+_sL))_los=_bW-j_[3]-_X+_sL-6}$E(_gm,_Y+_tos,_X+_los)}else{_po=$F(g[1]);k_=$D(_po);if(!_M[25]){if(!$pS)if(k_[0]+j_[2]+16>(_bH+_sT))_tos=_bH-j_[2]-k_[0]+_sT-16;if(k_[1]+j_[3]>_bW+_sL)_los=_bW-j_[3]-k_[1]+_sL-2}_ttop=(k_[0]+k_[2]+$x(_M[2])+_tos)+$7;$E(_gm,_ttop,(k_[1]+$x(_M[3])+_los));if(g[4])_M.ttop=_ttop}$c(_gm)}_oldbH=-1;_zi=_zi+1;_oMT=$P(_oMT);_moD=(g[5])?g[5]:0;if(!_startM)_oMT=_StO("$Y("+$m+",1)",_moD);$z($m);if($pS)$1($m);_M[21]=-1}}function popdown(){_ofMT=1;_MT=_StO("$Z()",_menuCloseDelay);_oMT=$P(_oMT)}function g$(m){if(op5||op6)return;_gm=$F($O+m);if(!_gm)return;if(!_m[m][23])$E(_gm,-9999);_it=o$(m,0);_mcnt--;_gm.innerHTML=_it;$z(m)}$j=-1;function h$(i){if(_itemRef>-1&&_itemRef!=i)hmL(_mi[_itemRef][0]);var I=_mi[i];if(!I[65])I[65]=0;I[3]=$tL(I[3]);_mopen=I[3];$m=$h(_mopen);var _M=_m[$m];if(I[34]=="ToolTip")return;if(!I||_startM||inDragMode)return;$y=_m[I[0]];_MT=$P(_MT);if(_m[I[0]][7]&&$j!=I[0]&&!inEditMode){hmL($j);$1C(_sm);_oMT=$P(_oMT);_sm=[];if(!_W.resetAutoOpen)_DC()}if(_M&&!_M[23]&&_mopen)g$($m);if(t_>-1){_gm=0;if(I[3]){_gm=$F($O+$h(I[3]));if(_gm&&_gm.style.visibility==$6&&i==t_){e$(i,1);return}}if(t_!=i)k$(t_);_oMT=$P(_oMT)}_cMT=$P(_cMT);$m=-1;_itemRef=i;showtip();_trueItemRef=i;I=_mi[i];_moD=(_M&&_M[28])?_M[28]:_menuOpenDelay;if(I[94])_moD=I[94];$Q=0;if($y[9]){$Q=1;if(!_W.horizontalMenuDelay)_moD=0}e$(i,1);if(!_sm.length){_sm[0]=I[0];$j=I[0]}_iP=$d(i);if(_iP==-1)$j=I[0];_cMT=_StO("_cm3()",_moD);if(_mopen&&I[39]){_gm=$F($O+$m);if(_gm&&_gm.style.visibility==$6){_cMT=$P(_cMT);_tsm=_sm[_sm.length-1];if(_tsm!=$m)$Y(_tsm,0)}}if(_W.forgetClickValue)$R=0;if(_mopen&&(!I[39]||$R)&&I[34]!="tree"&&I[34]!="disabled"){$r();_pm=$F($O+I[0]);k_=$D(_pm);$m=$h(_mopen);if(I[41])_M[10]=1;if($y.kAm!=_n&&$y.kAm+$$!=$u){_sm[_sm.length]=$y.kAm}$y.kAm=_n;if(_M&&_M[10]){$y.kAm=$m}$z($m);if($m>-1){_oMT=_StO("$Y("+$m+",1)",_moD);_mnO=$F($O+$m);_mp=$D(_mnO);u_=$F("el"+i);if(!$Q&&mac)u_=$F("pTR"+i);j_=$D(u_);if($Q){$l=j_[1];$k=k_[0]+k_[2]-I[65]}else{$l=k_[1]+k_[3]-I[65];$k=j_[0]}if(sfri){if($y[14]=="relative"){$l=$l+$8;$k=$k+$7}}if(!$Q&&$y[13]=="scroll"&&!op){$k=(ns6&&!ns7)?$k-gevent:$k-_pm.scrollTop}if(!_M[25]){if(!$Q&&(!_M[2]||isNaN(_M[2]))){_hp=$k+_mp[2];if(_hp>_bH+_sT){$k=(_bH-_mp[2])+_sT-4}}if($l+_mp[3]+3>_bW+_sL){if(!$Q&&(k_[1]-_mp[3])>0){$l=k_[1]-_mp[3]-_subOffsetLeft+$y[6][65]}else{$l=(_bW-_mp[3])-8+_sL}}}if($Q){if(_M[11]=="rtl"||_M[11]=="uprtl")$l=$l-_mp[3]+j_[3]+$y[6][65];if(_M[11]=="up"||_M[11]=="uprtl"||($y[5]&&$y[5].indexOf("bottom")!=-1)){$k=k_[0]-_mp[2]-1}}else{if(_M[11]=="rtl"||_M[11]=="uprtl")$l=k_[1]-_mp[3]-(_subOffsetLeft*2);if(_M[11]=="up"||_M[11]=="uprtl"){$k=j_[0]-_mp[2]+j_[2]}$k+=_subOffsetTop;$l+=_subOffsetLeft}if(_M[2]!=_n){if(isNaN(_M[2])&&_M[2].indexOf("offset=")==0){$k=$k+$x(_M[2])}else{$k=_M[2]}}if(_M[3]!=_n){if(isNaN(_M[3])&&_M[3].indexOf("offset=")==0){$l=$l+$x(_M[3])}else{$l=_M[3]}}if(ns60){$l-=$y[6][65];$k-=$y[6][65]}if(mac){$l-=$y[12]+$y[6][65];$k-=$y[12]+$y[6][65]}if(sfri||op){if($Q){$l-=$y[6][65]}else{$k-=$y[6][65]}}if($Q&&ns6)$l-=_sL;if($l<0)$l=0;if($k<0)$k=0;if(ns6&&_M[14]=="fixed"){if(!_m[_mi[i][0]][14]&&!_m[$e(i)])$k-=_sT}$E(_mnO,$k,$l);if(_M[5])p$($m);if(!_startM&&_M[13]=="scroll")$1($m);_zi++;if(_sm[_sm.length-1]!=$m)_sm[_sm.length]=$m}}isEditMode(i);i$(_iP);t_=i;if(_ofMT==0)_oMT=$P(_oMT);_ofMT=0}_sBarW=0;function $1(m){if(op)return;_M=_m[m];if(!_M)return;if(_M.ttop){_o4s=_M[2];_M[2]=_M.ttop}if(_M[2])$Q=1;_gm=$F($O+m);if(!_gm||_M[9])return;_mp=$D(_gm);_gmt=$F("tbl"+m);_gt=$D(_gmt);_MS=_M[6];_Bw=_MS[65]*2;_Mw=_M[12]*2;_smt=_gt[2];if($Q)_smt=_gt[2]+_gt[0]-_sT;if(_smt<_bH-16){_gm.style.overflow=Z$;$k=_n;if(!$Q&&(_gt[0]+_gt[2]+16)>(_bH+_sT)){$k=(_bH-_gt[2])+_sT-16}if(!_M[24])$E(_gm,$k);$z(m);if(!_M[24]){if(_M.ttop)_M[2]=_o4s;return}}_gm.style.overflow="auto";i_=_gt[3];$E(_gm,_n,_n,50,40);if(!_gm.$BW)_gm.$BW=_gm.offsetWidth-_gm.clientWidth;$BW=_gm.$BW;if(mac)$BW=18;if(IEDtD){i_+=$BW-_Bw}else{if(ie)i_+=$BW+_Mw;else i_+=$BW-_Bw;if(ns6&&!ns7)i_=_gt[3]+15;}$k=_n;if($Q){_ht=_bH-_gt[0]-16+_sT}else{_ht=_bH-14;$k=6+_sT}$l=_n;if(!_M[25]&&_mp[1]+i_>(_bW+_sL))$l=(_bW-i_)-2;if(_M[2]&&!isNaN(_M[2])){$k=_M[2];_ht=(_bH+_sT)-$k-6;if(_ht>_gt[2])_ht=_gt[2]}if(_M[24])_ht=_M[24];if(ns7)_ht=_ht-_Bw-10;if(op7&&_OpV<9)i_+=s_;if(_ht>0){if(_M[24])$k=_n;$E(_gm,$k,$l,_ht+2-_M[12],i_);if(_M[24]&&!_M[25]){_mp=$D(_gm);if(_mp[0]+_mp[2]-_sT>_bH){$k=_mp[0]-_mp[2]}$E(_gm,$k)}$c(_gm)}if(_M.ttop)_M[2]=_o4s}function i$(_mpi){if(_mpi>-1){_ci=_m[_mpi][21];while(_ci>-1){if(_mi[_ci][34]!="tree")e$(_ci);_ci=_m[_mi[_ci][0]][21]}}}function $I(){if(_W.inResizeMode>-1)return;_mot=_StO('k$(this._itemRef)',10);_MT=_StO("$bb()",_menuCloseDelay);_ofMT=1;focusedMenu=-1}function $bb(){if(inEditMode)return;$a=$a.substr(0,4);if((_ps>20040600&&_ps<20041100)&&$a=="mmli"||$a==$O)return;if(_ofMT==1){$Z();$R=0}}function $J(s){if(_W.inResizeMode>-1)return;_mot=$P(_mot);_MT=$P(_MT);_ofMT=0;focusedMenu=s;doMenuResize(focusedMenu)}function $w(i){if(i[18])i[8]=i[18];if(i[19])i[7]=i[19];if(i[56])i[29]=i[56];if(i[69])i[46]=i[69];if(i[85]&&i[3])i[24]=i[85];if(i[72])i[54]=i[72];if(i[75])i[9]=i[75];if(i[92])i[71]=i[92];i.cpage=1}function $q(){_hrF=_L.pathname+_L.search;_hx=_Lhr.split("/");_fNm="/"+_hx[_hx.length-1];var I=_mi[_el];var t=0;if(I[77])if(_hrF.indexOf(I[77])>-1)t=1;if(I[2]){var u=I[2];if(_hrF==u||_hrF==u+"/"||u==_Lhr||u+"/"==_Lhr||_fNm=="/"+u)t=1}if(t==1){$w(I);_cip[_cip.length]=_el}}function _cA(_N,_O,i){var I=_mi[i];if(I[_N]){_tmp=I[_N];I[_N]=I[_O];I[_O]=_tmp}else return;if(_N==81&&I[7]){$F("el"+i).style.background=I[7];l_=1}if(_N==80&&I[8]&&I[1]){$F("lnk"+i).oC=I[8];$F("lnk"+i).style.color=I[8];l_=1}if(_N==87&&I[54]){$F("el"+i).className=I[54];if(_lnk)_lnk.className=I[54]}if(_N==88&&I[46]){$F("el"+i).style.backgroundImage="url("+I[88]+")";d$(i)}if(_N==91&&I[71]){$F("sep"+i).style.backgroundImage="url("+I[91]+")"}_gm=$F("simg"+i);if(_gm&&_N==83&&I[24]&&I[3])_gm.src=I[24];_gm=$F("img"+i);if(_gm&&_N==82&&I[29])_gm.src=I[29]}function _caA(i){_cA(80,8,i);_cA(81,7,i);_cA(82,29,i);_cA(83,24,i);_cA(87,54,i);_cA(88,46,i);_cA(91,71,i)}l_=0;function $K(i){var I=_mi[i];_M=_m[I[0]];_caA(i);if(_M[11]=="tab"){if((_M.Ti||_M.Ti==0)&&_M.Ti!=i)$K(_M.Ti);_M.Ti=i}_oTree();if(I[62])_5(I[62]);mmClick();if(I[2]&&I[57]){_ww=open(I[2],I[35],I[57]);_ww.focus();return _f}if(I[2]){if(I[34]=="html")_Lhr=I[2];if($F("mmlink"+I[0]).tagName=="DIV")_L.href=I[2];return _t}$R=0;if(I[39]){$R=1;$W(i)}return _f}function $t(I,_gli,_M){if(!I[1])return Z$;_Ltxt=I[1];_TiH=((I[34]=="header"||I[34]=="form"||I[34]=="dragable"||I[86])?1:0);_ofc=(I[8]?"color:"+I[8]:Z$);if(!_TiH&&I[58]&&!I.cpage)_ofc=Z$;_fsize=(I[12]?";font-Size:"+I[12]:Z$);_fstyle=(I[13]?";font-Style:"+I[13]:";font-Style:normal");_fweight=(I[14]?";font-Weight:"+I[14]:";font-Weight:normal");_ffam=(I[15]?";font-Family:"+I[15]:Z$);_tdec=(I[33]?";text-Decoration:"+I[33]:";text-Decoration:none;");_disb=(I[34]=="disabled"?"disabled":Z$);_clss=$$;if(I[54]){_clss=" class='"+I[54]+"' ";if(!I[33])_tdec=$$;if(!I[13])_fstyle=$$;if(!I[14])_fweight=$$}else if(I[58]){_clss=" class='"+_m[_mi[_gli][0]][6].g_+"' "}m_ee=$$;m_e="a";if(_TiH||!I[2])m_e="div";if(m_e!="a")m_ee=" onclick=$K("+_gli+") ";_rawC=(I[78]?I[78]:Z$);$1B=Z$;if(_M[8])$1B+=";text-align:"+_M[8];else if(I[36])$1B+=";text-align:"+I[36];m_e+=_p5;_link="<"+m_e+m_ee+" name=mM1 onfocus='_iF0C("+_gli+")'  href='"+I[2]+"' "+_disb+_clss+" id=lnk"+_gli+" style='border:none;background:transparent;display:block;"+_ofc+_ffam+_fweight+_fstyle+_fsize+_tdec+_rawC+$1B+"'>"+_Ltxt+"</"+m_e+">";return _link}function hmL(_mn){_hm=$F("mmlink"+_mn);if(_hm)_hm.style.visibility=$5}function k$(i){var I=_mi[i];if(!I)return;_oMT=$P(_oMT);hidetip();if(i>-1)hmL(I[0]);d$(i,1);o_IR=_itemRef;_itemRef=i;if(I&&I[43])_5(I[43]);_itemRef=o_IR}function _p2(M){var m=_m[M];if(m){m.Q=$P(m.Q);m.Z=$P(m.Z);m.Q=_StO("l$("+M+")",250);m.Z=_StO("l$("+M+")",30)}}function l$($m){if(_m[$m]&&_m[$m][13]!="scroll"){$z($m);p$($m)}else{}}function m$(i,_Tel){_it=Z$;_el=_Tel;var I=_mi[_el];$m=I[0];var _M=_m[$m];$q();if(I[34]=="header"){if(I[20])I[8]=I[20];if(I[21])I[7]=I[21];if(I[74])I[9]=I[74]}_ofb=(I[46]?"background-image:url("+I[46]+");":Z$);if(!_ofb)_ofb=(I[7]?"background:"+I[7]+";":Z$);$n=" onmouseover=h$("+_Tel+") ";_link=$t(I,_el,_M);$o="height:100%;";if(_M[18])$o="height:"+$pX(_M[18]);if(I[28])$o="height:"+$pX(I[28]);_clss=Z$;if(I[54])_clss=" class='"+I[54]+"' ";if($Q){if(i==0)_it+="<tr>";if(I[50])I[27]=I[50]}else{if(I[49])I[27]=I[49];if(_M[26]&&!I[97]){if(i==0||(_M[26]==_rwC)){_it+="<tr id=pTR"+_el+">";_rwC=0}_rwC++}else{_it+="<tr id=pTR"+_el+">"}}_subC=0;if(I[3]&&I[24])_subC=1;_timg=Z$;_bimg=Z$;if(I[34]=="tree"){if(I[3]){_M[8]="top";I[30]=" top"}else{if(I[79]){_subC=1;I[24]=I[79];I[3]="M_doc*"}}}if(I[29]){_imalgn=Z$;if(I[31])_imalgn=" align="+I[31];_imvalgn=Z$;if(I[30])_imvalgn=" valign="+I[30];_imcspan=Z$;if(_subC&&_imalgn&&I[31]!="left")_imcspan=" colspan=2";_imgwd=$$;_Iwid=Z$;if(I[38]){_Iwid=" width="+I[38];_imgwd=_Iwid}_Ihgt=(I[37])?" height="+I[37]:Z$;_impad=(I[60])?" style='padding:"+$pX(I[60])+"'":Z$;_alt=(I[76])?" alt='"+I[76]+"'":Z$;_timg="<td id=_imgO"+_el+$$+_imcspan+_imvalgn+_imalgn+_imgwd+_impad+">"+(I[84]?"<a href='"+I[84]+"'>":Z$)+"<img onload=_p2("+$m+") border="+(I[89]?I[89]:0)+" style='display:block' "+_Iwid+_Ihgt+_alt+" id=img"+_el+" src='"+I[29]+"'>"+(I[84]?'</a>':'')+"</td>";if(I[30]=="top")_timg+="</tr><tr>";if(I[30]=="right"){_bimg=_timg;_timg=Z$}if(I[30]=="bottom"){_bimg="<tr>"+_timg+"</tr>";_timg=Z$}}$1B=(I[11]?";padding:"+$pX(I[11]):Z$);if(!I[1])$1B=Z$;_algn=Z$;if(_M[8])_algn+=" align="+_M[8];if(I[61])_algn+=" valign="+I[61];_offbrd=Z$;if(I[9])_offbrd="border:"+I[9]+";";_nw=" nowrap ";_iw=Z$;if(I[55])_iw=I[55];if(_M[4])_iw=_M[4];if(_M[31])_nw=Z$;if(I[55]!=_M[6].itemwidth)_iw=I[55];if(_iw){_nw=Z$;_iw=" width="+_iw}if(I[97]){_iw+=" colspan="+I[97];_rwC=_M[26]}if(_subC||I[29]){x_=Z$;w_=Z$;b_=Z$;d_=Z$;if(I[3]&&I[24]){_subIR=0;if(_M[11]=="rtl"||_M[11]=="uprtl")_subIR=1;_imf=(_M[13]!="scroll")?" onload=_p2("+$m+")":Z$;_img="<img id=simg"+_el+_imf+" src='"+I[24]+"'>";a_P=Z$;if(I[22])a_P=";padding:"+$pX(I[22]);_imps="width=1";if(I[23]){_iA="width=1";_ivA=Z$;_imP=I[23].split($$);for(c_=0;c_<_imP.length;c_++){if(_imP[c_]=="left")_subIR=1;if(_imP[c_]=="right")_subIR=0;if(_imP[c_]=="top"||_imP[c_]=="bottom"||_imP[c_]=="middle"){_ivA="valign="+_imP[c_];if(_imP[c_]=="bottom")_subIR=0}if(_imP[c_]=="center"){b_="<tr>";d_="</tr>";_iA="align=center width=100%"}}_imps=_iA+$$+_ivA}_its=b_+"<td "+_imps+" style='font-size:1px"+a_P+"'>";_ite="</td>"+d_;if(_subIR){x_=_its+_img+_ite}else{w_=_its+_img+_ite}}_it+="<td "+_iw+" id=el"+_el+$n+_clss+" style='padding:0px;"+_offbrd+_ofb+$o+";'>";_pw=" width=100% ";if(_W.noSubImageSpacing)_pw=Z$;_it+=_TbS+_pw+" height=100% id=MTbl"+_el+">";_it+="<tr id=td"+_el+">";_it+=x_;_it+=_timg;if(_link){_it+="<td "+_pw+_nw+_algn+" style='"+$1B+"'>"+_link+"</td>"}_it+=_bimg;_it+=w_;_it+="</tr>";_it+="</table>";_it+="</td>"}else{if(_link)_it+="<td "+_iw+_clss+_nw+" id=el"+_el+$n+_algn+" style='"+$1B+_offbrd+$o+_ofb+"'>"+_link+"</td>"}if((_M[0][i]!=_M[0][_M[0].length-1])&&I[27]>0){_sepadd=Z$;c$=Z$;if(!I[10])I[10]=I[8];_sbg=";background:"+I[10];if(I[71])_sbg=";background-image:url("+I[71]+");";if($Q){if(I[49]){_sepA="middle";if(I[52])_sepA=I[52];_sepadd=Z$;if(I[51])_sepadd="style=padding:"+$pX(I[51]);_it+="<td id=sep"+_el+" nowrap "+_sepadd+" valign="+_sepA+" align=left width=1px><div style='font-size:1px;width:"+$pX(I[27])+";height:"+$pX(I[49])+";"+c$+_sbg+";'></div></td>"}else{if(I[16]&&I[17]){_bwid=I[27]/2;if(_bwid<1)_bwid=1;q_=_bwid+"px solid ";c$+="border-right:"+q_+I[16]+";";c$+="border-left:"+q_+I[17]+";";c$=Z$;if(mac||sfri||(ns6&&!ns7)){_it+="<td style='width:"+$pX(I[27])+"empty-cells:show;"+c$+"'></td>"}else{_iT=_TbS+"><td></td></table>";if(ns6||ns7)_iT=Z$;_it+="<td style='empty-cells:show;"+c$+"'>"+_iT+"</td>"}}else{if(I[51])_sepadd="<td nowrap width="+$pX(I[51])+"></td>";_it+=_sepadd+"<td id=sep"+_el+" style='padding:0px;width:"+$pX(I[27])+c$+_sbg+"'>"+_TbS+" width="+I[27]+"><td style=padding:0px;></td></table></td>"+_sepadd}}}else{if(I[16]&&I[17]){_bwid=I[27]/2;if(_bwid<1)_bwid=1;q_=_bwid+"px solid ";c$="border-bottom:"+q_+I[16]+";";c$+="border-top:"+q_+I[17]+";";if(mac||ns6||sfri||konq||IEDtD||op)I[27]=0}if(I[51])_sepadd="<tr><td height="+I[51]+"></td></tr>";_sepW="100%";if(I[50])_sepW=I[50];_sepA="center";if(I[52])_sepA=I[52];if(!mac)_sbg+=";overflow:hidden";_it+="</tr>"+_sepadd+"<tr><td style=padding:0px; id=sep"+_el+" align="+_sepA+"><div style='"+_sbg+";"+c$+"width:"+$pX(_sepW)+";padding:0px;height:"+$pX(I[27])+"font-size:1px;'></div></td></tr>"+_sepadd+Z$}}if(I[34]=="tree"){if(ie&&!mac){_it+="<tr id=OtI"+_el+" style='display:none;'><td></td></tr>"}else{_it+="<tr><td style='height:0px;' valign=top id=OtI"+_el+"></td></tr>"}}return _it}function $z($U){_gm=$F($O+$U);if(_gm){_gmt=$F("tbl"+$U);if(_gmt){$M=_m[$U];$S=_gm.style;$T=_gmt.offsetWidth;s_=($M[12]*2+$M[6][65]*2);if(op5)_gm.style.pixelWidth=_gmt.style.pixelWidth+s_;_px=Z$;if(mac){_px="px";_MacA=$D(_gmt);if(_MacA[2]==0&&_MacA[3]==0){_StO("$z("+$U+")",200);return}if(IEDtD)s_=0;$S.overflow=$5;$S.height=(_MacA[2]+s_)+"px";$S.width=(_MacA[3]+s_)+"px"}else{if($M[14]=="relative"||ns6){s_=0;$S.width=($T+s_)+"px"}if($M[17])$S.width=$M[17]+_px;else if($M[13]=="scroll"){if(op7)$T=$T+s_;$S.width=$T}}if($M[31]>0){if($T>$M[31])$E(_gm,_n,_n,_n,$M[31])}}}}gevent=0;function _p3(evt,$m){if(evt.target.tagName=="TD"){_egm=$F($O+$m);gevent=evt.layerY-(evt.pageY-$7)+_egm.offsetTop}}function $L(i){if(i>-1){var I=_mi[i];if(I[4]){_W.status=I[4];return _t}_W.status=Z$;if(!I[2])return _t}}function $pX(px){px=(!isNaN(px))?px+="px;":px+=";";return px}_ifc=0;_fSz="'>";function o$($m,_begn){_mcnt++;var _M=_m[$m];_mt=Z$;if(!_M)return;if(_W.noTabIndex)_p5=" tabindex=-1 ";else _p5=Z$;_MS=_M[6];_tWid=Z$;$k=Z$;$l=Z$;if(_M[7]==0)_M[7]=_n;if((!_M[14])&&(!_M[7]))$k="top:-"+$pX(_aN);if(_M[2]!=_n)if(!isNaN(_M[2]))$k="top:"+$pX(_M[2]);if(_M[3]!=_n)if(!isNaN(_M[3]))$l="left:"+$pX(_M[3]);$o_=Z$;if(_M[18])$o_=_M[18];if(_M[24])$o_=_M[24];if(_M[9]=="horizontal"||_M[9]==1){_M[9]=1;$Q=1}else{_M[9]=0;$Q=0}if($o_)$o_=" height="+$o_;_ofb=Z$;if(_MS.offbgcolor)_ofb="background:"+_MS.offbgcolor;p_=Z$;q_=Z$;_brdwid=Z$;if(_MS[65]||_MS[65]==0){_brdsty=_MS[64]?_MS[64]:"solid";_brdcol=_MS.offcolor?_MS.offcolor:Z$;if(_MS[63])_brdcol=_MS[63];if(_MS[65]||_MS[65]==0)_brdwid=_MS[65];q_=_brdwid+"px "+_brdsty+$$;p_="border:"+q_+_brdcol+";"}_Mh3=_MS.high3dcolor;_Ml3=_MS.low3dcolor;if(_Mh3&&_Ml3){_h3d=_Mh3;_l3d=_Ml3;if(_MS.swap3d){_h3d=_Ml3;_l3d=_Mh3}q_=_brdwid+"px solid ";p_="border-bottom:"+q_+_h3d+";";p_+="border-right:"+q_+_h3d+";";p_+="border-top:"+q_+_l3d+";";p_+="border-left:"+q_+_l3d+";"}_ns6ev=Z$;if(_M[13]=="scroll"&&ns6&&!ns7)_ns6ev="onmousemove='_p3(event,"+$m+")'";_bgimg=Z$;if(_MS.menubgimage)_bgimg=";background-image:url("+_MS.menubgimage+");";_wid=Z$;if(!_M[14]&&!_M[7]&&_W.fixMozillaZIndex&&ns6)_M[14]="fixed";n_=B$;if(_M[14]){n_=_M[14];if(_M[14]=="relative"){n_=Z$;$k=Z$;$l=Z$}if(_M[14]=="fixed"&&!ns6)n_=B$}$1B="padding:0px;";if(_M[12])$1B=";padding:"+$pX(_M[12]);_cls="mmenu";if(_MS.offclass)_cls=_MS.offclass;if(n_)n_="position:"+n_;_visi=$5;_mbgc=Z$;if(_begn==1){if(_M[17])_wid=";width:"+$pX(_M[17]);if(_M[24])_wid+=";height:"+$pX(_M[24]);if(_MS.menubgcolor)_mbgc=";background-color:"+_MS.menubgcolor;_mt+="<div class='"+_cls+"' onmouseout=$I() onmouseover=$J("+$m+") onselectstart='return _f' "+_ns6ev+" id=menu"+$m+" style='"+$1B+_ofb+";"+p_+_wid+"z-index:999;visibility:"+_visi+";"+n_+";"+$k+";"+$l+_bgimg+_mbgc+"'>"}if(_M[7]||!_startM||(op5||op6)||_W.buildAllMenus){_M[23]=1;if(!(mac)&&ie)_fSz="font-size:999px;'>&nbsp;";_mali=Z$;if(_M[20])_mali=" align="+_M[20];_rwC=0;if($Q){if(_M[26]>1)_rwC=Math.ceil(_M[0].length/_M[26]);_rwT=_rwC;if(_M[4]=="100%")_M[4]=Math.ceil(100/_M[0].length)+"%"}else{if(_M[17])_tWid=_M[17];if(_M[30])_tWid=_M[30];if(_M[4])_tWid=_M[4];if(_M[6].itemwidth)_tWid=_M[6].itemwidth}if(_tWid)_tWid=" width="+_tWid;_mt+=_TbS+$o_+_tWid+" id=tbl"+$m+$$+_mali+">";for(_b=0;_b<_M[0].length;_b++){_mt+=m$(_b,_M[0][_b]);_el++;if($Q&&_rwC>1){if(_b+1==_rwT){_mt+="</tr><tr>";_rwT=_rwT+_rwC}}}if(mac&&!$Q)_mt+="<tr><td id=btm"+$m+"></td></tr>";_mt+="</table>"+$$;m_e=((ns61&&_M[6].type=="tree")?"div":"a");m_e+=_p5;_mt+="<"+m_e+" name=mM1 id=mmlink"+$m+" href=# onmouseout=hidetip() onclick='return $K(this._itemRef)' onmouseover='_p1(this);_mot=$P(_mot);return $L(this._itemRef)' style='line-height:normal;background:transparent;text-decoration:none;height:1px;width:1px;overflow:hidden;position:"+B$+";"+_fSz+"</"+m_e+">"}else{if(_begn==1)for(_b=0;_b<_M[0].length;_b++){$q();_el++}}if(_begn==1)_mt+="</div>";if(_begn==1)_d.write(_mt);else return _mt;if(_M[7])_M[22]=$F($O+$m);if(_M[7]){if(ie55)$U($m)}else{if(ie55&&_ifc<_mD)$U($m);_ifc++}if(_M[19]){_M[19]+=0;_M[19]=_M[19].toString();_fs=_M[19].split(",");if(!_fs[1])_fs[1]=50;if(!_fs[2])_fs[2]=2;_M[19]=_fs[0];$X($m,_fs[1],_fs[2])}if($m==_m.length-1){_mst=$P(_mst);_mst=_StO("$N()",150);$p()}}$S2="6D696C6F6E6963";function $p(){if(!_W.disablePagePath){if(_cip.length>0){for(_c=0;_c<_cip.length;_c++){_ci=_cip[_c];_mni=$f(_ci);if(_mni==-1)_mni=_ci;if(_mni+$$!=$u){while(_mni!=-1){var I=_mi[_mni];$w(I);_gi=$F("el"+_mni);if(_gi)_gi.e$=1;d$(_mni);_omni=_mni;_mni=$f(_mni);if(_mni==_omni||_mni+$$==$u)_mni=-1}}}}}}function _p4(_oV,_num){_osV=[];if(isNaN(_oV[_num])&&_oV[_num].indexOf("offset=")==0){_osV[0]=_oV[_num].substr(7,99);_miOS=_osV[0].indexOf(";minimum=");if(_miOS>-1){_osV[1]=_osV[0].substr(_miOS+9,99);_osV[0]=_osV[0].substr(0,_miOS)}_oV[_num]=_n}return _osV}function p$($m){var _M=_m[$m];if(_M[5]){_gm=$F($O+$m);if(!_gm)return;j_=$D(_gm);_LoM=0;if(!_gm.leftOffset){_oSA=_p4(_M,3);_gm.leftOffset=_oSA[0];_gm._LoM=_oSA[1]}_lft=_n;if(!_M[3]){if(_M[5].indexOf("left")!=-1)_lft=0;if(_M[5].indexOf("center")!=-1)_lft=(_bW/2)-(j_[3]/2);if(_M[5].indexOf("right")!=-1)_lft=(_bW-j_[3]);if(_gm.leftOffset)_lft=_lft+$pU(_gm.leftOffset)}_ToM=0;if(!_gm.topOffset){_oSA=_p4(_M,2);_gm.topOffset=_oSA[0];_gm._ToM=_oSA[1]}m_=_n;if(!_M[2]>=0){m_=_n;if(_M[5].indexOf("top")!=-1)m_=0;if(_M[5].indexOf("middle")!=-1)m_=(_bH/2)-(j_[2]/2);if(_M[5].indexOf("bottom")!=-1)m_=_bH-j_[2];if(_gm.topOffset)m_=m_+$pU(_gm.topOffset)}if(_lft<0)_lft=0;if(_lft<_gm._LoM)_lft=_gm._LoM;if(m_)m_=$pU(m_);if(_lft)_lft=$pU(_lft);$E(_gm,m_,_lft);if(_M[19])_M[19]=m_;if(_M[7])$V($m,1);_gm.m_=m_}}function $X($m,b$,a$){if(!_startM&&!inDragMode){var _M=_m[$m];_fogm=_M[22];h_=$D(_fogm);_tt=(_sT>_M[2]-_M[19])?_sT-(_sT-_M[19]):_M[2]-_sT;if(h_&&h_[0]-_sT!=_tt){diff=_sT+_tt;_rcor=(diff-h_[0]<1)?a$:-a$;_fv=$pU((diff-_rcor-h_[0])/a$);if(a$==1)_fv=$pU((diff-h_[0]));if(_fv!=0)diff=h_[0]+_fv;$E(_fogm,diff);if(h_.m_)_M[19]=h_.m_;if(ie55){_fogm=$F("ifM"+$m);if(_fogm)$E(_fogm,diff)}}}_fS=_StO("$X('"+$m+"',"+b$+","+a$+")",b$)}function $qe(_s){$_s=_s.split(Z$);$s=Z$;for(_a=0;_a<_s.length;_a++){$s+="%"+$_s[_a]+$_s[_a+1];_a++}return unescape($s)}$S1="687474703A2F2F7777772E";;function $N(){$r();if(_bH!=_oldbH||_bW!=_oldbW){for(_a=0;_a<_m.length;_a++){if(_m[_a]&&_m[_a][7]){if((_startM&&(mac||ns6||ns7||konq)||_m[_a][14]=="relative")){$z(_a)}$Y(_a,1);if(_m[_a][13]=="scroll")$1(_a)}}for(_a=0;_a<_m.length;_a++){if(_m[_a]&&_m[_a][5]){p$(_a)}}}if(_startM){$mD=0;$J(-1);_ofMT=1}_startM=0;_oldbH=_bH;_oldbW=_bW;if(op){_oldbH=0;_oldbW=0}_mst=_StO("$N()",150)}function $U($m){if(_W._CFix)return;$mV="ifM"+$m;if(!_m[$m][7]){$mV="iF"+$mD;$mD++}_d.write("<iframe class=mmenu FRAMEBORDER=0 id="+$mV+_p5+" src='javascript:false' style='filter:Alpha(Opacity=0);width:1px;height:1px;top:-9px;position:"+B$+";'></iframe>")}getMenuByItem=$d;getParentItemByItem=$f;_drawMenu=o$;BDMenu=g$;gmobj=$F;menuDisplay=$Y;gpos=$D;spos=$E;_fixMenu=$z;getMenuByName=$h;itemOn=e$;itemOff=d$;_popi=h$;clickAction=$K;_setPosition=p$;closeAllMenus=$Z;if(!(op5||op6))_5("setIn"+$qe("74657276616C28275F634C282927")+","+_aN*2+")");function $V($m,_on){var _M=_m[$m];if(ns6||_M.treemenu||_M[14]=="relative"||_W._CFix)return;if(ie55){if(_on){if(_M[7]){_iFf="iFM"+$m}else{_iFf="iF"+$mD}if(_M.ifr)_iF=_M.ifr;_iF=$F(_iFf);if(!_iF){if(_d.readyState!="complete")return;_iF=_d.createElement("iframe");_iF.src="javascript:false";_iF.id=_iFf;_iF.style.filter="Alpha(Opacity=0)";_iF.style.position=B$;_iF.style.className="mmenu";if(_dB.appendChild)_dB.appendChild(_iF)}j_=$D(_M[22]);if(_iF){$E(_iF,j_[0],j_[1],j_[2],j_[3]);_iF.style.visibility=$6}_iF.style.zIndex=_M[22].style.zIndex-2}else{_gm=$F("iF"+($mD-1));if(_gm){$E(_gm,-9999);_gm.style.visibility=$5}}}}


