// ScrollMenu.action v3.2 - January, 2009
// Copyright © 2000 by Walter Blady
// All rights reserved
var SMautoCloseDelay = 500;
var SMisNav4 = navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) == 4;
var SMisIE4 = navigator.appVersion.indexOf("MSIE 4") >= 0;
var SMisWinIE5 = window.navigator.platform.indexOf("Win") >= 0 && window.navigator.userAgent.indexOf("MSIE") >= 0;
var SMisIE = window.navigator.userAgent.indexOf("MSIE") >= 0;
var SMisW3C = document.getElementById ? true : false;
var SMisNN6 = navigator.userAgent.indexOf("Netscape6") >= 0;
var SMisOpera = navigator.userAgent.indexOf("Opera") >= 0, ASisOpera = false;
var SMcontObj, SMdivObj, SMprevContObj, SMprevClipObj, SMeaseout;
var SMyHi = 0, SMyLo = 0, SMyloc = 0, SMxHi = 0, SMxLo = 0, SMxloc = 0, SMMouseTrapTimer = 0;
var SMshiftyOrigin, SMshiftxOrigin, SMshiftyPlus, SMshiftxPlus, SMshiftyMinus, SMshiftxMinus; 
var SMscrollSpeed = 0, SMshiftSpeed = 0, SMshiftSpeedHold, SMscrollSpeedHold, SMdelay = 0, SMrepeatScroll = 0;
var SMshiftParams = null, SMshiftBoxes = 0, SMshiftFlag = false, SMshiftBackFlag = false, SMscrollReduce;
var W3CinitFlag = false, SMshiftDoneFlag, SMrepeatShift = 0;
var SMshiftBack = 0, SMMenu, SMMainMenu, SMMainMenuName;
var SMstyleArray = new Array(), SMdivArray = new Array(), SMmenuCloseArray = new Array();
var SMMenuArray = new Array(), SMprevMenu = new Array(), SMshiftArray = new Array();
var SMclientWidth, SMclientHeight, SMtopOffset, SMleftOffset, SMsuffix, SMcenterWidth, SMcenterHeight;
var SMsuffix = SMisW3C ? "px" : "";
if (SMisW3C) var SMtop = "top", SMleft = "left", SMwidth = "width", SMheight = "height";
if (SMisIE4) var SMtop = "pixelTop", SMleft = "pixelLeft", SMwidth = "pixelWidth", SMheight = "pixelHeight";
var i = setInterval("SMshiftUp()", 1000);
clearInterval(i);
var SMvis = (SMisW3C || SMisIE4) ? "visible" : "show";
var SMhid = (SMisW3C || SMisIE4) ? "hidden" : "hide";
var SMsuff = SMisOpera ? "" : "px";
var SMReloadFlag = false;
window.onunload = function SMReload() { SMReloadFlag = true; return; }
if (SMReloadFlag == true) { window.location.reload(true); SMReloadFlag = false; }
function WBScrollMenu(action) {
	if (SMVersion()) {
		if (!W3CinitFlag && SMisW3C) SMStd();
		if (action[23] > 0 && action[22] != "") {
			var container = SMGetObject(action[22]);
			SMPosition(action, container);
		}
		if (action[26]) {
			for (var i = 0; i < document.links.length; i++) {
				document.links[i].onfocus = SMBlur;
			}
		}
		if (parseInt(action[8]) > 0) {
			SMautoCloseDelay = parseInt(action[8]);
		}
		SMMainMenu = SMGetObject(action[1]);
		SMMainMenuName = action[1].replace(/\d/g, "");
		SMMainMenu.popupOn = SMMainMenu;
		if (SMMainMenu) {
			SMMainMenu.popLevel = parseInt(action[4]);
			clearTimeout(SMMouseTrapTimer);
			if (SMMainMenu && !SMMainMenu.autoclose) {
				var nam = action[1].replace(/\d/g, "");
				var num = 1;
				var objName = nam+num;
				for (var i = 0; SMGetObject(objName) != null; i++) {
					var obj = SMGetObject(objName);
					SMmenuCloseArray[i] = obj;
					SMMenuStrips(action, obj);
					num += 1;
					objName = nam+num;
				}
			}
			if (action[2] != "" && action[3] != "") {
				SMdivObj = SMGetObject(action[2]);
				SMMainMenu.popup = SMdivObj;
				if (SMisW3C || SMisIE4) {
					SMdivObj.style.overflow = "hidden";
					SMdivObj.style.clip = "rect(auto," + SMdivObj.style.width + "," + SMdivObj.style.height + ",auto)";
				}
				if (!SMdivObj.autoclose) {
					if (SMdivObj.addEventListener) {
						SMdivObj.addEventListener("mouseover", SMautoCloseTimerQuit, false);
						SMdivObj.addEventListener("mouseout", SMautoClose, false);
					}
					else if (SMdivObj.attachEvent) {
						SMdivObj.attachEvent("onmouseenter", SMautoCloseTimerQuit);
						SMdivObj.attachEvent("onmouseleave", SMautoClose);
					}
					SMdivObj.autoclose = parseInt(action[8]) > 0 ? parseInt(action[8]) : SMautoCloseDelay;
					SMdivObj.menu = SMMainMenu.number-1;
					SMdivObj.level = SMMainMenu.popLevel-1;
				}
				SMdivObj.accord = 0;
				var isOn = false, showOne, stillOn = false;
				SMeaseout = action[9] ? true : false;
				var menuNumber = parseInt(action[1].replace(/\D/g, ""));
				var cascadeNumber = parseInt(action[4]);
				if (!SMMenuArray[menuNumber]) SMMenuArray[menuNumber] = new Array();
				SMMenu = SMMenuArray[menuNumber];
				SMdivObj.menu = menuNumber-1;
				SMdivObj.level = cascadeNumber-1;
				SMMenu[cascadeNumber] = SMdivObj;
				SMMenu[cascadeNumber].level = cascadeNumber;
				SMcontObj = SMGetObject(action[3]);
				if (!SMcontObj.styleArray) SMTextStrips(action, SMcontObj);
				SMcontObj.menu = menuNumber-1;
				SMcontObj.level = cascadeNumber-1;
				SMMenu[cascadeNumber].container = SMcontObj;
				if (SMprevClipObj) {
					isOn = SMisNav4 ? SMprevClipObj.visibility == SMvis : SMprevClipObj.style.visibility == SMvis;
					stillOn = action[2] != "" && action[2] == SMprevClipObj.id && isOn;
					if (SMdivObj == SMprevClipObj && stillOn) return;
				}
				if (SMprevClipObj) {
					var exclude = (SMdivObj.menu == SMprevClipObj.menu && SMprevClipObj.level < SMdivObj.level);
					if (!exclude) {
						showOne = false;
						SMShowHide(SMprevMenu, SMdivObj.level, SMhid, showOne);
					}
				}
				if (SMshiftBoxes > 0 && SMprevClipObj && SMdivObj.level == 1) {
					for (var i = 0; i < SMshiftBoxes; i++) {
						SMscrollTo(SMshiftArray[i], SMshiftArray[i].leftOrigin, SMshiftArray[i].topOrigin);
						SMshiftBackFlag = false;
					}
				}
				if (action[10] > 0) {
					var nam = action[1].replace(/\d/g, "");
					var num = parseInt(action[1].replace(/\D/g, ""));
					num = action[10] > 1 ? num + 1 : num - 1
					var objName = nam+num;
					SMshiftParams = SMGetObject(objName);
					for (SMshiftBoxes = 0; SMGetObject(objName) != null; SMshiftBoxes++) {
						SMshiftArray[SMshiftBoxes] = SMGetObject(objName);
						num = action[10] > 1 ? num += 1 : num -= 1;
						objName = nam+num;
					}
					if (action[10] == 1) SMshiftBack = 1;
					if (action[10] == 2) SMshiftBack = 0;
					if (action[10] == 3) SMshiftBack = 3;
					if (action[10] == 4) SMshiftBack = 2;
					SMshiftFlag = true;
					SMshiftBackFlag = true;
				}
				else {
					SMshiftFlag = false;
				}
				if (!stillOn) {
					SMdelay = parseInt(action[6]);
					SMshiftSpeed = parseInt(action[11]);
					SMshiftSpeedHold = SMshiftSpeed;
					SMshiftReduce = Math.round(.25 * SMshiftSpeed);
					SMscrollSpeed = parseInt(action[7]);
					SMscrollSpeedHold = SMscrollSpeed;
					SMscrollReduce = Math.round(.25 * SMscrollSpeed);
					clearInterval(SMrepeatScroll);
					if ((!SMdivObj.id == action[2]) || !stillOn) {
						if (SMisW3C) {						
							SMcontObj.boxWidth = parseInt(SMcontObj.style.width);
							SMcontObj.boxHeight = parseInt(SMcontObj.style.height);
							SMcontObj.boxTop = parseInt(SMcontObj.style.top);
							SMcontObj.boxLeft = parseInt(SMcontObj.style.left);
							SMdivObj.boxWidth = parseInt(SMdivObj.style.width);
							SMdivObj.boxHeight = parseInt(SMdivObj.style.height);
							var shiftTop = SMshiftFlag ? parseInt(SMshiftParams.style.top) : 0;
							var shiftLeft = SMshiftFlag ? parseInt(SMshiftParams.style.left) : 0;
							if (SMdivObj.level == 1) {
								for (var i = 0; i < SMshiftBoxes; i++) {
									SMshiftArray[i].topOrigin = parseInt(SMshiftArray[i].style.top);
									SMshiftArray[i].leftOrigin = parseInt(SMshiftArray[i].style.left);
								}
							}
						}
						else if (SMisIE4) {
							SMcontObj.boxWidth = SMcontObj.style.pixelWidth;
							SMcontObj.boxHeight = SMcontObj.style.pixelHeight;
							SMcontObj.boxTop = SMcontObj.style.pixelTop;
							SMcontObj.boxLeft = SMcontObj.style.pixelLeft;
							SMdivObj.boxWidth = SMdivObj.style.pixelWidth;
							SMdivObj.boxHeight = SMdivObj.style.pixelHeight;
							var shiftTop = SMshiftFlag ? SMshiftParams.style.pixelTop : 0;
							var shiftLeft = SMshiftFlag ? SMshiftParams.style.pixelLeft : 0;
							if (SMdivObj.level == 1) {
								for (var i = 0; i < SMshiftBoxes; i++) {
									SMshiftArray[i].topOrigin = SMshiftArray[i].style.pixelTop;
									SMshiftArray[i].leftOrigin = SMshiftArray[i].style.pixelLeft;
								}
							}
						}
						else {
							SMcontObj.boxWidth = SMcontObj.clip.width;
							SMcontObj.boxHeight = SMcontObj.clip.height;
							SMcontObj.boxTop = SMcontObj.top;
							SMcontObj.boxLeft = SMcontObj.left;
							SMdivObj.boxWidth = SMdivObj.clip.width;
							SMdivObj.boxHeight = SMdivObj.clip.height;
							var shiftTop = SMshiftFlag ? SMshiftParams.top : 0;
							var shiftLeft = SMshiftFlag ? SMshiftParams.left : 0;
							if (SMdivObj.level == 1) {
								for (var i = 0; i < SMshiftBoxes; i++) {
									SMshiftArray[i].topOrigin = SMshiftArray[i].top;
									SMshiftArray[i].leftOrigin = SMshiftArray[i].left;
								}
							}
						}
						SMyHi = 0;
						SMyLo = SMdivObj.boxHeight - SMcontObj.boxHeight;
						SMxHi = 0;
						SMxLo = SMdivObj.boxWidth - SMcontObj.boxWidth;
						SMyloc = SMcontObj.boxTop;
						SMxloc = SMcontObj.boxLeft;
						SMshiftyOrigin = shiftTop;
						SMshiftyPlus = SMdivObj.boxHeight + shiftTop;
						SMshiftyMinus = shiftTop - SMdivObj.boxHeight;
						SMshiftxOrigin = shiftLeft;
						SMshiftxPlus = SMdivObj.boxWidth + shiftLeft;
						SMshiftxMinus = shiftLeft - SMdivObj.boxWidth;
						if (SMshiftFlag && SMdivObj.level == 1) {
							SMshiftDoneFlag = false;
							SMShift(action[10]);
						}
						else {
							SMshiftDoneFlag = true;
						}
						var showOne = true;
						SMShowHide(SMMenu, SMdivObj.level, SMvis, showOne);
						if (action[5] > 0) SMScroll(action[5]);
						SMprevClipObj = SMdivObj;
						SMprevContObj = SMcontObj;
						for (var i = 1; i < SMMenu.length; i++) {
							SMprevMenu[i] = SMMenu[i];
						}
					}
				}
			}
			else {
				if (SMprevClipObj) SMMouseTrap();
			}
		}
	}
	return;
}
function SMautoCloseTimerQuit() {
	clearTimeout(SMMouseTrapTimer);
	return;
}
function SMautoClose(obj) {
	if (SMisIE) {
		var autoclose = obj.srcElement ? obj.srcElement.autoclose : obj.autoclose;
	}
	else {
		var autoclose = obj.autoclose ? obj.autoclose : this.autoclose;
	}
	SMMouseTrapTimer = setTimeout("SMautoClosePopups()", autoclose);
	return;
}
function SMautoClosePopups() {
	var showOne = false;
	clearInterval(SMrepeatScroll);
	clearInterval(SMrepeatShift);
	SMShowHide(SMprevMenu, 1, SMhid, showOne);
	if (SMshiftBackFlag) {
		for (var i = 0; i < SMshiftBoxes; i++) {
			SMscrollTo(SMshiftArray[i], SMshiftArray[i].leftOrigin, SMshiftArray[i].topOrigin);
			SMshiftBackFlag = false;
		}
	}
	for (var i = 0; i < SMmenuCloseArray.length; i++) {
		SMTurnOff2(SMmenuCloseArray[i]);
	}
	return;
}
function SMShowHide(menu, level, state, showOne) {
	if (SMisW3C) {
		for (var i = level; i < menu.length; i++) {
			if (menu[i] != null) {
				menu[i].style.visibility = state;
				if (!showOne) {
					SMscrollTo(menu[i].container, menu[i].container.boxLeft, menu[i].container.boxTop);
				}
				var innerObjs = menu[i].getElementsByTagName("div");
				for (var j = 0; j < innerObjs.length; j++) {
					innerObjs[j].style.visibility = state;
				}
			}
			if (showOne) break;
		}
	}
	else if (SMisIE4) {
		for (var i = level; i < menu.length; i++) {
			if (menu[i] != null) {
				menu[i].style.visibility = state;
				if (!showOne) {
					SMscrollTo(menu[i].container, menu[i].container.boxLeft, menu[i].container.boxTop);
				}
				for (var j = 0; j < document.all[menu[i].id].children.length; j++) {
					menu[i].children[j].style.visibility = state;
				}
			}
			if (showOne) break;
		}
	}
	else if (SMisNav4) {
		for (var i = level; i < menu.length; i++) {
			if (menu[i] != null) {
				menu[i].visibility = state;
				if (!showOne) {
					SMscrollTo(menu[i].container, menu[i].container.boxLeft, menu[i].container.boxTop);
				}
				for (var j = 0; j < menu[i].layers.length; j++) {
					menu[i].layers[j].visibility = state;
				}
			}
			if (showOne) break;
		}
	}
	return;
}
function SMShift(mode) {
	SMshiftDoneFlag = false;
	SMshiftSpeed = SMshiftSpeedHold;
	clearInterval(SMrepeatShift);
	if (mode == 1) {
		SMdivObj.style.clip = "rect("+ SMdivObj.style.height + SMsuffix + ",auto,auto,auto)";
		SMdivObj.accord = parseInt(SMdivObj.style.height); SMrepeatShift = setInterval("SMshiftUp()", SMdelay);
	}
	if (mode == 2) { 
		SMdivObj.style.clip = "rect(auto,auto," + "0" + SMsuffix + ",auto)";
		SMdivObj.accord = 0; SMrepeatShift = setInterval("SMshiftDown()", SMdelay);
	}
	if (mode == 3) {
		SMdivObj.style.clip = "rect(auto,auto,auto" + SMdivObj.style.width + SMsuffix + ")";
		SMrepeatShift = setInterval("SMshiftLeft()", SMdelay);
	}
	if (mode == 4) { 
		SMdivObj.style.clip = "rect(auto," + "0" + SMsuffix + ",auto,auto)";
		SMdivObj.accord = 0; SMrepeatShift = setInterval("SMshiftRight()", SMdelay);
	}
	return;
}
function SMshiftSetup() {
	return;
}
function SMshiftUp() {
	var top = SMGetTop(SMshiftParams);
	if (top <= SMshiftyMinus) {
		SMshiftDoneFlag = true;
		clearInterval(SMrepeatShift);
		return;
	}
	SMshiftSpeed = SMeaseout && SMshiftyMinus - top >= SMshiftSpeedHold*2 && SMshiftSpeed > 1 ? SMshiftSpeed-SMshiftReduce : SMshiftSpeed;
	SMshiftSpeed = SMshiftSpeed < 1 ? 1 : Math.round(SMshiftSpeed);	
	var shift = top - SMshiftSpeed >= SMshiftyMinus ? SMshiftSpeed : top - SMshiftyMinus;
	for (var i = 0; i < SMshiftBoxes; i++) {
		var stop = SMGetTop(SMshiftArray[i]);
		var sleft = SMGetLeft(SMshiftArray[i]);
		SMscrollTo(SMshiftArray[i], sleft, (stop - shift));
		if (i == 0) {
			SMdivObj.accord -= shift;
			SMdivObj.style.clip = "rect(" + SMdivObj.accord + SMsuffix + ",auto,auto,auto)";
		}
	}
	return;
}
function SMshiftDown() {
	var top = SMGetTop(SMshiftParams);
	if (top >= SMshiftyPlus) {
		SMshiftDoneFlag = true;
		clearInterval(SMrepeatShift);
		return;
	}
	SMshiftSpeed = SMeaseout && SMshiftyPlus - top <= SMshiftSpeedHold*2 && SMshiftSpeed > 1 ? SMshiftSpeed-SMshiftReduce : SMshiftSpeed;
	SMshiftSpeed = SMshiftSpeed < 1 ? 1 : Math.round(SMshiftSpeed);	
	var shift = top + SMshiftSpeed <= SMshiftyPlus ? SMshiftSpeed : SMshiftyPlus - top;
	for (var i = 0; i < SMshiftBoxes; i++) {
		var stop = SMGetTop(SMshiftArray[i]);
		var sleft = SMGetLeft(SMshiftArray[i]);
		SMscrollTo(SMshiftArray[i], sleft, (stop + shift));
		if (i == 0) {
			SMdivObj.accord += shift;
			SMdivObj.style.clip = "rect(auto,auto," + SMdivObj.accord + SMsuffix + ",auto)";
		}
	}
	return;
}
function SMshiftLeft() {
	var left = SMGetLeft(SMshiftParams);
	if (left <= SMshiftxMinus) {
		SMshiftDoneFlag = true;
		clearInterval(SMrepeatShift);
		return;
	}
	SMshiftSpeed = SMeaseout && SMshiftxMinus - left >= SMshiftSpeedHold*2 && SMshiftSpeed > 1 ? SMshiftSpeed-SMshiftReduce : SMshiftSpeed;
	SMshiftSpeed = SMshiftSpeed < 1 ? 1 : Math.round(SMshiftSpeed);	
	var shift = left - SMshiftSpeed >= SMshiftxMinus ? SMshiftSpeed : left - SMshiftxMinus;
	for (var i = 0; i < SMshiftBoxes; i++) {
		var stop = SMGetTop(SMshiftArray[i]);
		var sleft = SMGetLeft(SMshiftArray[i]);
		SMscrollTo(SMshiftArray[i], (sleft - shift), stop);
		if (i == 0) {
			SMdivObj.accord -= shift;
			SMdivObj.style.clip = "rect(auto,auto,auto" + SMdivObj.accord + SMsuffix + ")";
		}
	}
	return;
}
function SMshiftRight() {
	var left = SMGetLeft(SMshiftParams);
	if (left >= SMshiftxPlus) {
		SMshiftDoneFlag = true;
		clearInterval(SMrepeatShift);
		return;
	}
	SMshiftSpeed = SMeaseout && SMshiftxPlus - left <= SMshiftSpeedHold*2 && SMshiftSpeed > 1 ? SMshiftSpeed-SMshiftReduce : SMshiftSpeed;
	SMshiftSpeed = SMshiftSpeed < 1 ? 1 : Math.round(SMshiftSpeed);	
	var shift = left + SMshiftSpeed <= SMshiftxPlus ? SMshiftSpeed : SMshiftxPlus - left;
	for (var i = 0; i < SMshiftBoxes; i++) {
		var stop = SMGetTop(SMshiftArray[i]);
		var sleft = SMGetLeft(SMshiftArray[i]);
		SMscrollTo(SMshiftArray[i], (sleft + shift), stop);
		if (i == 0) {
			SMdivObj.accord += shift;
			SMdivObj.style.clip = "rect(auto," + SMdivObj.accord + "," + SMdivObj.style.height + ",auto)";
		}
	}
	return;
}
function SMGetTop(params) {
	if (SMisW3C) var top = parseInt(params.style.top);
	if (SMisIE4) var top = params.style.pixelTop;
	if (SMisNav4) var top = params.top;
	return top;
}
function SMGetLeft(params) {
	if (SMisW3C) var left = parseInt(params.style.left);
	if (SMisIE4) var left = params.style.pixelLeft;
	if (SMisNav4) var left = params.left;
	return left;
}
function SMScroll(mode) {
	SMscrollSpeed = SMscrollSpeedHold;
	clearInterval(SMrepeatScroll);
	if (mode == 1) SMrepeatScroll = setInterval("SMscrollUp()", SMdelay);
	if (mode == 2) SMrepeatScroll = setInterval("SMscrollDown()", SMdelay);
	if (mode == 3) SMrepeatScroll = setInterval("SMscrollLeft()", SMdelay);
	if (mode == 4) SMrepeatScroll = setInterval("SMscrollRight()", SMdelay);
}
function SMscrollUp() {
	if (SMshiftDoneFlag) {
		SMscrollSpeed = SMeaseout && Math.abs(SMyloc) <= SMscrollSpeedHold*2 && SMscrollSpeed > 1 ? SMscrollSpeed-SMscrollReduce : SMscrollSpeed;
		SMscrollSpeed = SMscrollSpeed < 1 ? 1 : Math.round(SMscrollSpeed);
		SMyloc = (SMyloc + SMscrollSpeed <= SMyHi) ? SMyloc + SMscrollSpeed : SMyHi;
		SMscrollTo(SMcontObj, SMxloc, SMyloc);
		if (SMyloc == SMyHi) {
			clearInterval(SMrepeatScroll);
		}
	}
	return;
}
function SMscrollDown() {
	if (SMshiftDoneFlag) {
		SMscrollSpeed = SMeaseout && Math.abs(SMyloc) <= SMscrollSpeedHold*2 && SMscrollSpeed > 1 ? SMscrollSpeed-SMscrollReduce : SMscrollSpeed;
		SMscrollSpeed = SMscrollSpeed < 1 ? 1 : Math.round(SMscrollSpeed);	
		SMyloc = (SMyloc - SMscrollSpeed >= SMyLo) ? SMyloc - SMscrollSpeed : SMyLo;
		SMscrollTo(SMcontObj, SMxloc, SMyloc);
		if (SMyloc == SMyLo) {
			clearInterval(SMrepeatScroll);
		}
	}
	return;
}
function SMscrollLeft() {
	if (SMshiftDoneFlag) {
		SMscrollSpeed = SMeaseout && Math.abs(SMxloc) <= SMscrollSpeedHold*2 && SMscrollSpeed > 1 ? SMscrollSpeed-SMscrollReduce : SMscrollSpeed;
		SMscrollSpeed = SMscrollSpeed < 1 ? 1 : Math.round(SMscrollSpeed);	
		SMxloc = (SMxloc + SMscrollSpeed <= SMxHi) ? SMxloc + SMscrollSpeed : SMxHi;
		SMscrollTo(SMcontObj, SMxloc, SMyloc);
		if (SMxloc == SMxHi) {
			clearInterval(SMrepeatScroll);
		}
	}
	return;
}
function SMscrollRight() {
	if (SMshiftDoneFlag) {
		SMscrollSpeed = SMeaseout && Math.abs(SMxloc) <= SMscrollSpeedHold*2 && SMscrollSpeed > 1 ? SMscrollSpeed-SMscrollReduce : SMscrollSpeed;
		SMscrollSpeed = SMscrollSpeed < 1 ? 1 : Math.round(SMscrollSpeed);	
		SMxloc = (SMxloc - SMscrollSpeed >= SMxLo) ? SMxloc - SMscrollSpeed : SMxLo;
		SMscrollTo(SMcontObj, SMxloc, SMyloc);
		if (SMxloc == SMxLo) {
			clearInterval(SMrepeatScroll);
		}
	}
	return;
}
function SMscrollTo(obj, x, y) {
	clearTimeout(SMMouseTrapTimer);
	if (SMisW3C) {
		obj.style.left = x + "px";
		obj.style.top = y + "px";
	}
	else if (SMisIE4) {
		obj.style.pixelLeft = x;
		obj.style.pixelTop = y;
	}
	else {
		obj.moveTo(x, y);
	}
	return;
}
function SMGetObject(objName) {
	if (objName == "") return false;
	var params;
	if (SMisW3C) {
		params = eval('document.getElementById("' + objName + '")');
	}
	else if (SMisIE4) {
		params = eval("document.all." + objName);
	}
	else {
		params = SMFindLayerObject(objName, 0);
	}
	return params;
}
function SMFindLayerObject(layer, thisLayer) {
	if (thisLayer) {
		var thisDocument = thisLayer.document;
	}
	else {
		var thisDocument = document;
	}
	var layerObj = thisDocument[layer];
	if (layerObj) {
		return layerObj;
	}
	else {
		for (var i = 0; i < thisDocument.layers.length; i++) {
			layerObj = SMFindLayerObject(layer, thisDocument.layers[i]); 
			if (layerObj) {
				break;
			}
		}
	}
	return layerObj;
}
function SMPosition(action, SMpositionObj) {
	var clientWidth = SMisIE ? eval(document.body.clientWidth) : eval(window.innerWidth);
	var clientHeight = SMisIE ? eval(document.body.clientHeight) : eval(window.innerHeight);
	if (document.body.addEventListener) {
		if (SMisIE) {
			document.body.addEventListener("scroll", SMControl, false);
		}
		else {
			window.addEventListener("scroll", SMControl, false);
		}
		window.addEventListener("resize", SMControl, false);
		window.addEventListener("click", SMControl, false);
	}
	else if (document.body.attachEvent) {
		if (SMisIE) {
			document.body.attachEvent("onscroll", SMControl, false);
		}
		else {
			window.attachEvent("onscroll", SMControl, false);
		}
		window.attachEvent("onresize", SMControl);
		window.attachEvent("onclick", SMControl);
	}
	else {
		window.onscroll = SMControl;
		window.onresize = SMControl;
		window.onclick = SMControl;
	}
	SMstyleObj = eval(SMpositionObj.style);
	var width = SMisW3C ? parseInt(SMstyleObj[SMwidth].replace(/\D/g, "")) : SMstyleObj[SMwidth];
	var height = SMisW3C ? parseInt(SMstyleObj[SMheight].replace(/\D/g, "")) : SMstyleObj[SMheight];
	SMpositionObj.SMorigTop = SMisW3C ? parseInt(SMstyleObj[SMtop].replace(/\D/g, "")) : SMstyleObj[SMtop];
	SMpositionObj.SMorigLeft = SMisW3C ? parseInt(SMstyleObj[SMleft].replace(/\D/g, "")) : SMstyleObj[SMleft];
	SMpositionObj.SMorigRelaTop = Math.round(SMpositionObj.SMorigTop*100/clientWidth);
	SMpositionObj.SMorigRelaLeft = Math.round(SMpositionObj.SMorigLeft*100/clientHeight);
	SMpositionObj.SMorigStreWidth = Math.round(width*100/clientWidth);
	SMpositionObj.SMorigStreHeight = Math.round(height*100/clientHeight);
	SMpositionObj.SMstretchWidth = action[24];
	SMpositionObj.SMstretchHeight = action[25];
	SMpositionObj.SMcenter = action[23] == 1 ? true : false;
	SMpositionObj.SMcenterPlus = action[23] == 2 ? true : false;
	SMpositionObj.SMstayPut = action[23] == 3 ? true : false;
	if (SMpositionObj.SMcenter || SMpositionObj.SMcenterPlus) {
		if (action[24]) SMstyleObj[SMleft] = (clientWidth-width)/2 + SMsuffix;
		if (action[25]) SMstyleObj[SMtop] = (clientHeight-height)/2 + SMsuffix;
	}
	if (SMpositionObj.SMstayPut && SMisW3C && !SMisWinIE5) SMstyleObj.position = "fixed";
	SMstyleArray[SMdivArray.length] = SMstyleObj;
	SMdivArray[SMdivArray.length] = SMpositionObj;
	return;
}
function SMControl() {
	for (var i = 0; i < SMstyleArray.length; i++) {
		SMclientWidth = SMisIE ? eval(document.body.clientWidth) : eval(window.innerWidth);
		SMclientHeight = SMisIE ? eval(document.body.clientHeight) : eval(window.innerHeight);
		SMtopOffset = SMisIE ? document.body.scrollTop : window.pageYOffset;
		SMleftOffset = SMisIE ? document.body.scrollLeft : window.pageXOffset;
		if (SMdivArray[i].SMstayPut) { SMStayPut(i); }
		if (SMdivArray[i].SMcenter) { SMCenter(i); }
		if (SMdivArray[i].SMcenterPlus) { SMCenter(i); }
	}
	return;
}
function SMStayPut(i) {
	if (SMisWinIE5 || !SMisW3C) { 
		SMstyleArray[i][SMtop] = SMtopOffset + SMdivArray[i].SMorigTop + SMsuffix;
		SMstyleArray[i][SMleft] = SMleftOffset + SMdivArray[i].SMorigLeft + SMsuffix;
	}
	return;
}
function SMCenter(i) {
	var width = SMisW3C ? parseInt(SMstyleArray[i][SMwidth].replace(/\D/g, "")) : SMstyleArray[i][SMwidth];
	var height = SMisW3C ? parseInt(SMstyleArray[i][SMheight].replace(/\D/g, "")) : SMstyleArray[i][SMheight];
	SMcenterWidth = SMdivArray[i].SMcenterPlus ? SMleftOffset : 0;
	SMcenterHeight = SMdivArray[i].SMcenterPlus ? SMtopOffset : 0;
	if (SMdivArray[i].SMstretchWidth) SMstyleArray[i][SMleft] = (Math.round(SMclientWidth-width)/2)+SMcenterWidth + SMsuffix;
	if (SMdivArray[i].SMstretchHeight) SMstyleArray[i][SMtop] = (Math.round(SMclientHeight-height)/2)+SMcenterHeight + SMsuffix;
	return;
}
function SMTextStrips(action, params) {
	params.weightArray = new Array("default", "normal", "bold", "bolder", "lighter");
	params.styleArray = new Array("default", "normal", "italic");
	params.decorArray = new Array("default", "none", "underline", "overline", "line-through");
	params.alignArray = new Array("default", "left", "right", "center", "justify");
	if (SMisW3C) {
		var innerObjs = params.getElementsByTagName("div");
	}
	else if (SMisIE4) {
		var innerObjs = document.all[params.id].children;
	}
	else if (SMisNav4) {
		var innerObjs = params.layers;
	}
	if (innerObjs.length > 0) {
		for (var i = 0; i < innerObjs.length; i++) {
			var link = SMisW3C ? innerObjs[i].getElementsByTagName("A") : null;
			var font = SMisW3C ? innerObjs[i].getElementsByTagName("FONT") : null;
			innerObjs[i].orgTextColor = new Array();
			innerObjs[i].newTextColor = new Array();
			innerObjs[i].link = link;
			innerObjs[i].font = font;
			if (innerObjs[i].addEventListener) {
				innerObjs[i].addEventListener("mouseover", SMTurnOn, false);
				innerObjs[i].addEventListener("mouseout", SMTurnOff, false);
			}
			else if (innerObjs[i].attachEvent) {
				innerObjs[i].attachEvent("onmouseenter", SMTurnOnIE);
				innerObjs[i].attachEvent("onmouseleave", SMTurnOffIE);
			}
			innerObjs[i].orgBoxColor = (SMisW3C || SMisIE4) ? innerObjs[i].style.backgroundColor : innerObjs[i].bgColor;
			innerObjs[i].newBoxColor =innerObjs[i].orgBoxColor;
			if (innerObjs[i].orgBoxColor == "") innerObjs[i].orgBoxColor = "transparent";
			innerObjs[i].noTags = innerObjs[i].font.length == 0 && innerObjs[i].link.length == 0;
			if (innerObjs[i].link.length > 0) {
				for (var j = 0; j < innerObjs[i].link.length; j++) {
					innerObjs[i].link[j].style.color = (innerObjs[i].link[j].style.color == "" && (SMisW3C || SMisIE4)) ? innerObjs[i].style.color : innerObjs[i].fgColor;
					innerObjs[i].orgTextColor[j] = (SMisW3C || SMisIE4) ? innerObjs[i].link[j].style.color : innerObjs[i].fgColor;
					innerObjs[i].newTextColor[j] = innerObjs[i].orgTextColor[j];
				}
			}
			if (innerObjs[i].font.length > 0) {
				for (var j = 0; j < innerObjs[i].font.length; j++) {
					innerObjs[i].orgTextColor[j] = (SMisW3C || SMisIE4) ? innerObjs[i].font[j].color : innerObjs[i].fgColor;
					innerObjs[i].newTextColor[j] = innerObjs[i].orgTextColor[j];
				}
			}
			if (innerObjs[i].noTags) {
				innerObjs[i].orgTextColor[0] = (SMisW3C || SMisIE4) ? innerObjs[i].style.color : innerObjs[i].fgColor;
				innerObjs[i].newTextColor[0] = innerObjs[i].orgTextColor[0];
			}
			innerObjs[i].orgWeight = (SMisW3C || SMisIE4) ? innerObjs[i].style.fontWeight : innerObjs[i].fontWeight;
			innerObjs[i].orgStyle = (SMisW3C || SMisIE4) ? innerObjs[i].style.fontStyle : innerObjs[i].fontStyle;
			innerObjs[i].orgDecor = (SMisW3C || SMisIE4) ? innerObjs[i].style.textDecoration : innerObjs[i].textDecoration;
			innerObjs[i].orgAlign = (SMisW3C || SMisIE4) ? innerObjs[i].style.textAlign : innerObjs[i].textAlign;
			var blank = SMisNav4 ? null : "Transparent";
			if (action[12] > 0 ) {
				var color = action[12] == 2 ? blank : action[13];
				innerObjs[i].newBoxColor = color;
			}
			if (action[15] > 0 ) {
				var color = action[15] == 2 ? blank : action[16];
				if (innerObjs[i].link.length > 0) {
					for (var j = 0; j < innerObjs[i].link.length; j++) {
						innerObjs[i].newTextColor[j] = color;
					}
				}
				if (innerObjs[i].font.length > 0) {
					for (var j = 0; j < innerObjs[i].font.length; j++) {
						innerObjs[i].newTextColor[j] = color;
					}
				}
				if (innerObjs[i].noTags) {
					innerObjs[i].newTextColor[0] = color;
				}
			}
			innerObjs[i].newWeight = params.weightArray[action[18]];
			innerObjs[i].newStyle = params.styleArray[action[19]];
			innerObjs[i].newDecor = params.decorArray[action[20]];
			innerObjs[i].newAlign = params.alignArray[action[21]];
			if (innerObjs[i].link[0]) {
				if (innerObjs[i].link[0].onclick) {
				innerObjs[i].onmousedown = innerObjs[i].link[0].onclick;
				}
				else {
					innerObjs[i].onclick = SMGotoURL;
					innerObjs[i].url = innerObjs[i].link[0];
				}
			}
		}
	}
	return;
}
function SMMenuStrips(action, params) {
	params.menuOn = true;
	params.weightArray = new Array("default", "normal", "bold", "bolder", "lighter");
	params.styleArray = new Array("default", "normal", "italic");
	params.decorArray = new Array("default", "none", "underline", "overline", "line-through");
	params.alignArray = new Array("default", "left", "right", "center", "justify");
	var link = SMisW3C ? params.getElementsByTagName("A") : null;
	var font = SMisW3C ? params.getElementsByTagName("FONT") : null;
	params.orgTextColor = new Array();
	params.newTextColor = new Array();
	params.link = link;
	params.font = font;
	if (params.addEventListener) {
		params.addEventListener("mouseover", SMTurnOn, false);
		params.addEventListener("mouseout", SMTurnOff, false);
	}
	else if (params.attachEvent) {
		params.attachEvent("onmouseenter", SMTurnOnIE);
		params.attachEvent("onmouseleave", SMTurnOffIE);
	}
	params.orgBoxColor = (SMisW3C || SMisIE4) ? params.style.backgroundColor : params.bgColor;
	params.newBoxColor =params.orgBoxColor;
	if (params.orgBoxColor == "") params.orgBoxColor = "transparent";
	params.noTags = params.font.length == 0 && params.link.length == 0;
	if (params.link.length > 0) {
		for (var j = 0; j < params.link.length; j++) {
			params.link[j].style.color = (params.link[j].style.color == "" && (SMisW3C || SMisIE4)) ? params.style.color : params.fgColor;
			params.orgTextColor[j] = (SMisW3C || SMisIE4) ? params.link[j].style.color : params.fgColor;
			params.newTextColor[j] = params.orgTextColor[j];
		}
	}
	if (params.font.length > 0) {
		for (var j = 0; j < params.font.length; j++) {
			params.orgTextColor[j] = (SMisW3C || SMisIE4) ? params.font[j].color : params.fgColor;
			params.newTextColor[j] = params.orgTextColor[j];
		}
	}
	if (params.noTags) {
		params.orgTextColor[0] = (SMisW3C || SMisIE4) ? params.style.color : params.fgColor;
		params.newTextColor[0] = params.orgTextColor[0];
	}
	params.orgWeight = (SMisW3C || SMisIE4) ? params.style.fontWeight : params.fontWeight;
	params.orgStyle = (SMisW3C || SMisIE4) ? params.style.fontStyle : params.fontStyle;
	params.orgDecor = (SMisW3C || SMisIE4) ? params.style.textDecoration : params.textDecoration;
	params.orgAlign = (SMisW3C || SMisIE4) ? params.style.textAlign : params.textAlign;
	var blank = SMisNav4 ? null : "Transparent";
	if (action[12] > 0 ) {
		var color = action[12] == 2 ? blank : action[13];
		params.newBoxColor = color;
	}
	if (action[15] > 0 ) {
		var color = action[15] == 2 ? blank : action[16];
		if (params.link.length > 0) {
			for (var j = 0; j < params.link.length; j++) {
				params.newTextColor[j] = color;
			}
		}
		if (params.font.length > 0) {
			for (var j = 0; j < params.font.length; j++) {
				params.newTextColor[j] = color;
			}
		}
		if (params.noTags) {
			params.newTextColor[0] = color;
		}
	}
	params.newWeight = params.weightArray[action[18]];
	params.newStyle = params.styleArray[action[19]];
	params.newDecor = params.decorArray[action[20]];
	params.newAlign = params.alignArray[action[21]];
	params.autoclose = parseInt(action[8]) > 0 ? parseInt(action[8]) : SMautoCloseDelay;
	return;
}
function SMTurnOn() {
	if (this.id.replace(/\d/g, "") == SMMainMenuName) {
		for (var i = 0; i < SMmenuCloseArray.length; i++) {
			if (this.id.toLowerCase() != SMMainMenuName + (i+1)) {
				SMTurnOff2(SMmenuCloseArray[i]);
			}
		}
	}
	if (!SMisNav4) {
		if (this.link.length > 0) {
			for (var i = 0; i < this.link.length; i++) {
				if (this.newTextColor[i] != "default") this.link[i].style.color = this.newTextColor[i];
			}
		}
		if (this.font.length > 0) {
			for (var i = 0; i < this.font.length; i++) {
				if (this.newTextColor[i] != "default") this.font[i].color = this.newTextColor[i];
			}
		}
		if (this.noTags) {
			if (this.newTextColor[0] != "default") this.style.color = this.newTextColor[0];
		}
		if (this.newBoxColor != "default") this.style.backgroundColor = this.newBoxColor;
		if (this.newWeight != "default") this.style.fontWeight = this.newWeight;
		if (this.newStyle != "default") this.style.fontStyle = this.newStyle;
		if (this.newDecor != "default") this.style.textDecoration = this.newDecor;
		if (this.newAlign != "default") this.style.textAlign = this.newAlign;
	}
	else {
		if (this.newTextColor[0] != "default") this.fgColor = this.newTextColor[0];
		if (this.newBoxColor != "default") this.bgColor = this.newBoxColor;
		if (this.newWeight != "default") this.fontWeight = this.newWeight;
		if (this.newStyle != "default") this.fontStyle = this.newStyle;
		if (this.newDecor != "default") this.textDecoration = this.newDecor;
		if (this.newAlign != "default") this.textAlign = this.newAlign;
	}
	if (this.menuOn) SMautoCloseTimerQuit();
	return;
}
function SMTurnOnIE(e) {
	if (e.srcElement.id == "") return;
	if (e.srcElement.id.replace(/\d/g, "") == SMMainMenuName) {
		for (var i = 0; i < SMmenuCloseArray.length; i++) {
			if (e.srcElement.id.toLowerCase() != SMMainMenuName + (i+1)) {
				SMTurnOff2(SMmenuCloseArray[i]);
			}
		}
	}
	SMMainMenu = e.srcElement;
	if (!SMisNav4) {
		if (e.srcElement.link && e.srcElement.link.length > 0) {
			for (var i = 0; i < e.srcElement.link.length; i++) {
				if (e.srcElement.newTextColor[i] != "default") e.srcElement.link[i].style.color = e.srcElement.newTextColor[i];
			}
		}
		if (e.srcElement.font && e.srcElement.font.length > 0) {
			for (var i = 0; i < e.srcElement.font.length; i++) {
				if (e.srcElement.newTextColor[i] != "default") e.srcElement.font[i].color = e.srcElement.newTextColor[i];
			}
		}
		if (e.srcElement.noTags) {
			if (e.srcElement.newTextColor[0] != "default") e.srcElement.style.color = e.srcElement.newTextColor[0];
		}
		if (e.srcElement.newBoxColor != "default") e.srcElement.style.backgroundColor = e.srcElement.newBoxColor;
		if (e.srcElement.newWeight != "default") e.srcElement.style.fontWeight = e.srcElement.newWeight;
		if (e.srcElement.newStyle != "default") e.srcElement.style.fontStyle = e.srcElement.newStyle;
		if (e.srcElement.newDecor != "default") e.srcElement.style.textDecoration = e.srcElement.newDecor;
		if (e.srcElement.newAlign != "default") e.srcElement.style.textAlign = e.srcElement.newAlign;
	}
	else {
		if (e.srcElement.newTextColor[0] != "default") e.srcElement.fgColor = e.srcElement.newTextColor[0];
		if (e.srcElement.newBoxColor != "default") e.srcElement.bgColor = e.srcElement.newBoxColor;
		if (e.srcElement.newWeight != "default") e.srcElement.fontWeight = e.srcElement.newWeight;
		if (e.srcElement.newStyle != "default") e.srcElement.fontStyle = e.srcElement.newStyle;
		if (e.srcElement.newDecor != "default") e.srcElement.textDecoration = e.srcElement.newDecor;
		if (e.srcElement.newAlign != "default") e.srcElement.textAlign = e.srcElement.newAlign;
	}
	if (e.srcElement.menuOn) SMautoCloseTimerQuit();
	return;
}
function SMTurnOff() {
	if (this.id.replace(/\d/g, "") == SMMainMenuName && this.popup) {
		if (this.menuOn) SMautoClose(this);
		return;
	}
	if (!SMisNav4) {
		if (this.link.length > 0) {
			for (var i = 0; i < this.link.length; i++) {
				if (this.orgTextColor[i] != "default") this.link[i].style.color = this.orgTextColor[i];
			}
		}
		if (this.font.length > 0) {
			for (var i = 0; i < this.font.length; i++) {
				if (this.orgTextColor[i] != "default") this.font[i].color = this.orgTextColor[i];
			}
		}
		if (this.noTags) {
			if (this.orgTextColor[0] != "default") this.style.color = this.orgTextColor[0];
		}
		if (this.orgBoxColor != "default") this.style.backgroundColor = this.orgBoxColor;
		if (this.orgWeight != "default") this.style.fontWeight = this.orgWeight;
		if (this.orgStyle != "default") this.style.fontStyle = this.orgStyle;
		if (this.orgDecor != "default") this.style.textDecoration = this.orgDecor;
		if (this.orgAlign != "default") this.style.textAlign = this.orgAlign;
	}
	else {
		if (this.newTextColor[0] != "default") this.fgColor = this.newTextColor[0];
		if (this.orgBoxColor != "default") this.bgColor = this.orgBoxColor;
		if (this.orgWeight != "default") this.fontWeight = this.orgWeight;
		if (this.orgStyle != "default") this.fontStyle = this.orgStyle;
		if (this.orgDecor != "default") this.textDecoration = this.orgDecor;
		if (this.orgAlign != "default") this.textAlign = this.orgAlign;
	}
	if (this.menuOn) SMautoClose(this);
	return;
}
function SMTurnOffIE(e) {
	if (e.srcElement.id == "") return;
	if (e.srcElement.id.replace(/\d/g, "") == SMMainMenuName && e.srcElement.popup) {
		if (e.srcElement.menuOn) SMautoClose(e.srcElement);
		return;
	}
	if (!SMisNav4) {
		if (!e.srcElement.style) return;
		if (e.srcElement.link && e.srcElement.link.length > 0) {
			for (var i = 0; i < e.srcElement.link.length; i++) {
				if (e.srcElement.orgTextColor[i] != "default") e.srcElement.link[i].style.color = e.srcElement.orgTextColor[i];
			}
		}
		if (e.srcElement.font && e.srcElement.font.length > 0) {
			for (var i = 0; i < e.srcElement.font.length; i++) {
				if (e.srcElement.orgTextColor[i] != "default") e.srcElement.font[i].color = e.srcElement.orgTextColor[i];
			}
		}
		if (e.srcElement.noTags) {
			if (e.srcElement.orgTextColor[0] != "default") e.srcElement.style.color = e.srcElement.orgTextColor[0];
		}
		if (e.srcElement.orgBoxColor != "default") e.srcElement.style.backgroundColor = e.srcElement.orgBoxColor;
		if (e.srcElement.orgWeight != "default") e.srcElement.style.fontWeight = e.srcElement.orgWeight;
		if (e.srcElement.orgStyle != "default") e.srcElement.style.fontStyle = e.srcElement.orgStyle;
		if (e.srcElement.orgDecor != "default") e.srcElement.style.textDecoration = e.srcElement.orgDecor;
		if (e.srcElement.orgAlign != "default") e.srcElement.style.textAlign = e.srcElement.orgAlign;
	}
	else {
		if (e.srcElement.newTextColor[0] != "default") e.srcElement.fgColor = e.srcElement.newTextColor[0];
		if (e.srcElement.orgBoxColor != "default") e.srcElement.bgColor = e.srcElement.orgBoxColor;
		if (e.srcElement.orgWeight != "default") e.srcElement.fontWeight = e.srcElement.orgWeight;
		if (e.srcElement.orgStyle != "default") e.srcElement.fontStyle = e.srcElement.orgStyle;
		if (e.srcElement.orgDecor != "default") e.srcElement.textDecoration = e.srcElement.orgDecor;
		if (e.srcElement.orgAlign != "default") e.srcElement.textAlign = e.srcElement.orgAlign;
	}
	if (e.srcElement.menuOn) SMautoClose(e.srcElement);
	return;
}
function SMTurnOff2(menu) { 
	if (!SMisNav4) {
		if (menu.link.length > 0) {
			for (var i = 0; i < menu.link.length; i++) {
				if (menu.orgTextColor[i] != "default") menu.link[i].style.color = menu.orgTextColor[i];
			}
		}
		if (menu.font.length > 0) {
			for (var i = 0; i < menu.font.length; i++) {
				if (menu.orgTextColor[i] != "default") menu.font[i].color = menu.orgTextColor[i];
			}
		}
		if (menu.noTags) {
			if (menu.orgTextColor[0] != "default") menu.style.color = menu.orgTextColor[0];
		}
		if (menu.orgBoxColor != "default") menu.style.backgroundColor = menu.orgBoxColor;
		if (menu.orgWeight != "default") menu.style.fontWeight = menu.orgWeight;
		if (menu.orgStyle != "default") menu.style.fontStyle = menu.orgStyle;
		if (menu.orgDecor != "default") menu.style.textDecoration = menu.orgDecor;
		if (menu.orgAlign != "default") menu.style.textAlign = menu.orgAlign;
	}
	else {
		if (menu.newTextColor[0] != "default") menu.fgColor = menu.newTextColor[0];
		if (menu.orgBoxColor != "default") menu.bgColor = menu.orgBoxColor;
		if (menu.orgWeight != "default") menu.fontWeight = menu.orgWeight;
		if (menu.orgStyle != "default") menu.fontStyle = menu.orgStyle;
		if (menu.orgDecor != "default") menu.textDecoration = menu.orgDecor;
		if (menu.orgAlign != "default") menu.textAlign = menu.orgAlign;
	}
	return;
}
function SMGotoURL() {
	window.location.href = this.url;
	return;
}
function SMBlur() {
	if (this.tagName == "A" || this.tagName == "AREA" || this.tagName == "IMG") {
		this.blur();
	}
	return;
}
function SMStd() {
	var d = document.getElementsByTagName("div");
	var s = document.getElementsByTagName("style");
	for (var i = 0; i < s.length; i++) {
		var html = (s[i].innerHTML);
		var start = html.indexOf("!--") + 3;
		var end = html.lastIndexOf("}") + 1 - start;
		html = html.indexOf("!--") > -1 ? html.substr(start, end) : html;
		html = html.replace(/^\s*/, "");
		html = html.replace(/:\s*#/g, ": ~");
		html = html.replace(/[\n\r]/g, "");
		var styleArray = html.split(/\s*\}\s*/);
		for (var j = 0; j < styleArray.length; j++) {
			var name = styleArray[j].substr(styleArray[j].search(/\w/), styleArray[j].search(/{/));
			name = name.replace(/[ \{].+/g, "")
			for (var k = 0; k < d.length; k++) {
				var match = (name == d[k].id && name != "");
				if (match) break;
			}
			if (styleArray[j] != "" && match) {
				styleArray[j] = styleArray[j].replace(/\**#/, "");
				styleArray[j] = styleArray[j].replace(/~/g, "#");
				var styleName = styleArray[j].substr(0, styleArray[j].indexOf("{"));
				styleName = styleName.replace(/\s*/g, "");
				styleArray[j] = styleArray[j].toLowerCase();
				var t = eval("d." + styleName + ".style");
				var divName = eval("d." + styleName + ".id");
				t.name = divName;
				var styleString = styleArray[j].replace(/^.*\{\s*/, "");
				styleString = styleString.replace(/\s*\}.*$|\s*\}.*\n.*$|\s*\}.*\r.*$/, "");
				styleString = styleString.replace(/\;$/, "");
				var divArray = styleString.split(/\;\s*/g);
				for (var k = 0; k < divArray.length; k++) {
					var propertyName = divArray[k].substr(0, divArray[k].indexOf(":"));
					if (propertyName.indexOf("-") > -1) {
						var nameArray = propertyName.split("-");
						for (var n = 1; n < nameArray.length; n++) {
							nameArray[n] = nameArray[n].substring(0, 1).toUpperCase() + nameArray[n].substring(1, nameArray[n].length);
						}
						propertyName = nameArray.join("");
					}
					var propertyValue = divArray[k].substr(divArray[k].indexOf(":"), divArray[k].length);
					propertyValue = propertyValue.replace(/:*(-->)*}*\n*/g, "");
					propertyValue = propertyValue.replace(/^\s*|\s*$/, "");
					if (SMisNN6 && propertyValue.indexOf("(") > -1) {
						propertyValue = propertyValue.replace(/auto|pt|pi|px|em|ex|SM|cm|in|%/g, "$& ");
						propertyValue = propertyValue.replace(/ \)/g, ")");
					}
					t[propertyName] = propertyValue;
				}
			}
		}
	}
	W3CinitFlag = true;
	return;
}
function SMVersion() {
	return true;
}
//
