/* -- Adobe GoLive JavaScript Library */
/* -- Global Functions */
CSInit = new Array;
CSExit = new Array;
CSStopExecution=false;
function CSAction(array) {return CSAction2(CSAct, array);}
function CSAction2(fct, array) { 
	var result;
	for (var i=0;i<array.length;i++) {
		if(CSStopExecution) return false; 
		var aa = fct[array[i]];
		if (aa == null) return false;
		var ta = new Array;
		for(var j=1;j<aa.length;j++) {
			if((aa[j]!=null)&&(typeof(aa[j])=="object")&&(aa[j].length==2)){
				if(aa[j][0]=="VAR"){ta[j]=CSStateArray[aa[j][1]];}
				else{if(aa[j][0]=="ACT"){ta[j]=CSAction(new Array(new String(aa[j][1])));}
				else ta[j]=aa[j];}
			} else ta[j]=aa[j];
		}			
		result=aa[0](ta);
	}
	return result;
}
CSAct = new Object;
function CSClickReturn () {
	var bAgent = window.navigator.userAgent; 
	var bAppName = window.navigator.appName;
	if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
		return true; /* dont follow link */
	else return false; /* dont follow link */
}
function CSURLPopupShow(formName, popupName, target) {
	var form  = (!IsIE()&&CSBVers>=5)?document.forms[formName]:CSFindElement(formName);
	var popup = form.elements[popupName];
	window.open(popup.options[popup.selectedIndex].value, target);
	popup.selectedIndex = 0;
}
CSAg = window.navigator.userAgent; CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10);
CSIsW3CDOM = ((document.getElementById) && !(IsIE()&&CSBVers<6)) ? true : false;
function IsIE() { return CSAg.indexOf("MSIE") > 0;}
function CSIEStyl(s) { return document.all.tags("div")[s].style; }
function CSNSStyl(s) { if (CSIsW3CDOM) return document.getElementById(s).style; else return CSFindElement(s,0);  }
CSIImg=false;
function CSInitImgID() {if (!CSIImg && document.images) { for (var i=0; i<document.images.length; i++) { if (!document.images[i].id) document.images[i].id=document.images[i].name; } CSIImg = true;}}
function CSFindElement(n,ly) { if (CSBVers<4) return document[n];
	if (CSIsW3CDOM) {CSInitImgID();return(document.getElementById(n));}
	var curDoc = ly?ly.document:document; var elem = curDoc[n];
	if (!elem) {for (var i=0;i<curDoc.layers.length;i++) {elem=CSFindElement(n,curDoc.layers[i]); if (elem) return elem; }}
	return elem;
}
function CSGetImage(n) {if(document.images) {return ((!IsIE()&&CSBVers<5)?CSFindElement(n,0):document.images[n]);} else {return null;}}
CSDInit=false;
function CSIDOM() { if (CSDInit)return; CSDInit=true; if(document.getElementsByTagName) {var n = document.getElementsByTagName('DIV'); for (var i=0;i<n.length;i++) {CSICSS2Prop(n[i].id);}}}
function CSICSS2Prop(id) { var n = document.getElementsByTagName('STYLE');for (var i=0;i<n.length;i++) { var cn = n[i].childNodes; for (var j=0;j<cn.length;j++) { CSSetCSS2Props(CSFetchStyle(cn[j].data, id),id); }}}
function CSFetchStyle(sc, id) {
	var s=sc; while(s.indexOf("#")!=-1) { s=s.substring(s.indexOf("#")+1,sc.length); if (s.substring(0,s.indexOf("{")).toUpperCase().indexOf(id.toUpperCase())!=-1) return(s.substring(s.indexOf("{")+1,s.indexOf("}")));}
	return "";
}
function CSGetStyleAttrValue (si, id) {
	var s=si.toUpperCase();
	var myID=id.toUpperCase()+":";
	var id1=s.indexOf(myID);
	if (id1==-1) return "";
	s=s.substring(id1+myID.length+1,si.length);
	var id2=s.indexOf(";");
	return ((id2==-1)?s:s.substring(0,id2));
}
function CSSetCSS2Props(si, id) {
	var el=document.getElementById(id);
	if (el==null) return;
	var style=document.getElementById(id).style;
	if (style) {
		if (style.left=="") style.left=CSGetStyleAttrValue(si,"left");
		if (style.top=="") style.top=CSGetStyleAttrValue(si,"top");
		if (style.width=="") style.width=CSGetStyleAttrValue(si,"width");
		if (style.height=="") style.height=CSGetStyleAttrValue(si,"height");
		if (style.visibility=="") style.visibility=CSGetStyleAttrValue(si,"visibility");
		if (style.zIndex=="") style.zIndex=CSGetStyleAttrValue(si,"z-index");
	}
}
/* -- Action Functions */
function CSprintdocument(action){
if (navigator.appName .indexOf("Microsoft") != -1 && navigator.platform.indexOf("Mac") != -1 || navigator.appVersion.indexOf("3.0") != -1) {
alert("Please use your browser\'s print command to print this document.");
	} else {
	(action[1] != "") ? (parent.frames[action[1]].print()) : (parent.print());
	}
}
function CSCloseWindow() { 
if (self.parent.frames.length != 0) {
	self.parent.close()	
	} else {
	window.close()
	}
}
// ScrollMenu.action v1.6.6 - September, 2002
// © Copyright 2000 by Walter Blady
// All rights reserved
//Millisecond delay time for auto close (1000 = 1 second)
var SCMtrapDelay = 500;
var SCMisNav4 = navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) == 4;
var SCMisIE4 = navigator.appVersion.indexOf("MSIE 4") >= 0;
var SCMW3C = document.getElementById ? true : false;
var SMisNN6 = navigator.userAgent.indexOf("Netscape6") >= 0;
var SCMcontObj, SCMclipObj, SCMprevContObj, SCMprevClipObj, SCMeaseout;
var SCMyHi = 0, SCMyLo = 0, SCMyloc = 0, SCMxHi = 0, SCMxLo = 0, SCMxloc = 0, SCMmouseTrapTimer = 0;
var SCMshiftyOrigin, SCMshiftxOrigin, SCMshiftyPlus, SCMshiftxPlus, SCMshiftyMinus, SCMshiftxMinus; 
var SCMscrollSpeed = 0, SCMshiftSpeed = 0, SCMshiftSpeedHold, SCMscrollSpeedHold, SCMdelay = 0, SCMrepeatScroll = 0;
var SCMshiftParams = null, SCMshiftBoxes = 0, SCMshiftFlag = false, SCMshiftBackFlag = false, SCMscrollReduce;
var W3CinitFlag = false, SCMshiftDoneFlag, SCMrepeatShift = 0;
var SCMshiftBack = 0, SCMshiftArray = new Array();
var i = setInterval("SCMshiftUp()", 1000);
clearInterval(i);
var SCMmenuArray = new Array(), SCMprevMenu = new Array(), SCMmenu;
var SCMvis = (SCMW3C || SCMisIE4) ? "visible" : "show";
var SCMhid = (SCMW3C || SCMisIE4) ? "hidden" : "hide";
function WBScrollMenu(action) {
	if (SCMVersion()) {
		if (action[1].length == 0 && action[11] > 0) {
			var count = 12 + action[11];
			for (var i = 12; i < count; i++) {
				obj = SCMgetObject(action[i]);
				obj.onmouseover = SCMMouseTrapTimerQuit;
				obj.onmouseout = SCMMouseTrap;
			}
			return;
		}
		clearTimeout(SCMmouseTrapTimer);
		if (action[1].length > 0) {
			SCMclipObj = SCMgetObject(action[1]);
			SCMclipObj.onmouseover = SCMMouseTrapTimerQuit;
			SCMclipObj.onmouseout = SCMMouseTrap;
			if (!W3CinitFlag && SCMW3C) {
				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++) {
						if (styleArray[j] != "" && styleArray[j].toLowerCase().indexOf("position:") > -1) {
							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");
							var styleString = styleArray[j].replace(/^.*\{\s*/, "");
							styleString = styleString.replace(/\s*\}.*$|\s*\}.*\n.*$|\s*\}.*\r.*$/, "");
							var divArray = styleString.split(/\;\s*/g);
							for (var k = 0; k < divArray.length; k++) {
								var propertyName = divArray[k].substr(0, divArray[k].indexOf(":"));
								var dash = propertyName.indexOf("-");
								if (dash > -1) {
									var propertyName = propertyName.substr(0, dash) + propertyName.substr(dash + 1, 1).toUpperCase() + propertyName.substr(dash + 2, propertyName.length);
								}
								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|mm|cm|in|%/g, "$& ");
									propertyValue = propertyValue.replace(/ \)/g, ")");
								}
								t.name = divName;
								t[propertyName] = propertyValue;
							}
						}
					}
				}
				W3CinitFlag = true;
			}
			var isOn = false, showOne, stillOn = false;
			SCMeaseout = action[10] ? true : false;
			if (!SCMmenuArray[action[3]]) SCMmenuArray[action[3]] = new Array();
			SCMmenu = SCMmenuArray[action[3]];
			SCMclipObj.menu = action[3]-1;
			SCMclipObj.level = action[4]-1;
			if (SCMW3C || SCMisIE4) SCMclipObj.style.overflow = "hidden";
			SCMmenu[action[4]] = SCMclipObj;
			SCMmenu[action[4]].level = action[4];
			SCMcontObj = SCMgetObject(action[2]);
			SCMcontObj.menu = action[3]-1;
			SCMcontObj.level = action[4]-1;
			SCMmenu[action[4]].container = SCMcontObj;
			if (SCMprevClipObj) {
				isOn = SCMisNav4 ? SCMprevClipObj.visibility == SCMvis : SCMprevClipObj.style.visibility == SCMvis;
				stillOn = action[1] != "" && action[1] == SCMprevClipObj.id && isOn;
				if (SCMclipObj == SCMprevClipObj && stillOn) return;
			}
			if (SCMprevClipObj) {
				var exclude = (SCMclipObj.menu == SCMprevClipObj.menu && SCMprevClipObj.level < SCMclipObj.level);
				if (!exclude) {
					showOne = false;
					SCMShowHide(SCMprevMenu, SCMclipObj.level, SCMhid, showOne);
				}
			}
			if (SCMshiftBoxes > 0 && SCMprevClipObj && SCMclipObj.level == 1) {
				for (var i = 0; i < SCMshiftBoxes; i++) {
					SCMscrollTo(SCMshiftArray[i], SCMshiftArray[i].leftOrigin, SCMshiftArray[i].topOrigin);
					SCMshiftBackFlag = false;
				}
			}
			if (action[11] > 0 && action[12].length > 0) {
				SCMshiftBoxes = action[11];
				for (var i = 0; i < SCMshiftBoxes; i++) {
					SCMshiftArray[i] = SCMgetObject(action[i+12]);
				}
				if (action[6] == 0) SCMshiftBack = 1;
				if (action[6] == 1) SCMshiftBack = 0;
				if (action[6] == 2) SCMshiftBack = 3;
				if (action[6] == 3) SCMshiftBack = 2;
				SCMshiftFlag = true;
				SCMshiftBackFlag = true;
			}
			else {
				SCMshiftFlag = false;
			}
			if (!stillOn) {
				SCMdelay = action[5];
				SCMshiftSpeed = action[7];
				SCMshiftSpeedHold = SCMshiftSpeed;
				SCMshiftReduce = Math.round(.25 * SCMshiftSpeed);
				SCMscrollSpeed = action[9];
				SCMscrollSpeedHold = SCMscrollSpeed;
				SCMscrollReduce = Math.round(.25 * SCMscrollSpeed);
				clearInterval(SCMrepeatScroll);
				if (SCMshiftFlag) SCMshiftParams = SCMgetObject(action[12]);
				if ((!SCMclipObj.id == action[1]) || !stillOn) {
					if (SCMW3C) {
						SCMcontObj.boxWidth = parseInt(SCMcontObj.style.width);
						SCMcontObj.boxHeight = parseInt(SCMcontObj.style.height);
						SCMcontObj.boxTop = parseInt(SCMcontObj.style.top);
						SCMcontObj.boxLeft = parseInt(SCMcontObj.style.left);
						SCMclipObj.boxWidth = parseInt(SCMclipObj.style.width);
						SCMclipObj.boxHeight = parseInt(SCMclipObj.style.height);
						var shiftTop = SCMshiftFlag ? parseInt(SCMshiftParams.style.top) : 0;
						var shiftLeft = SCMshiftFlag ? parseInt(SCMshiftParams.style.left) : 0;
						if (SCMclipObj.level == 1) {
							for (var i = 0; i < SCMshiftBoxes; i++) {
								SCMshiftArray[i].topOrigin = parseInt(SCMshiftArray[i].style.top);
								SCMshiftArray[i].leftOrigin = parseInt(SCMshiftArray[i].style.left);
							}
						}
					}
					else if (SCMisIE4) {
						SCMcontObj.boxWidth = SCMcontObj.style.pixelWidth;
						SCMcontObj.boxHeight = SCMcontObj.style.pixelHeight;
						SCMcontObj.boxTop = SCMcontObj.style.pixelTop;
						SCMcontObj.boxLeft = SCMcontObj.style.pixelLeft;
						SCMclipObj.boxWidth = SCMclipObj.style.pixelWidth;
						SCMclipObj.boxHeight = SCMclipObj.style.pixelHeight;
						var shiftTop = SCMshiftFlag ? SCMshiftParams.style.pixelTop : 0;
						var shiftLeft = SCMshiftFlag ? SCMshiftParams.style.pixelLeft : 0;
						if (SCMclipObj.level == 1) {
							for (var i = 0; i < SCMshiftBoxes; i++) {
								SCMshiftArray[i].topOrigin = SCMshiftArray[i].style.pixelTop;
								SCMshiftArray[i].leftOrigin = SCMshiftArray[i].style.pixelLeft;
							}
						}
					}
					else {
						SCMcontObj.boxWidth = SCMcontObj.clip.width;
						SCMcontObj.boxHeight = SCMcontObj.clip.height;
						SCMcontObj.boxTop = SCMcontObj.top;
						SCMcontObj.boxLeft = SCMcontObj.left;
						SCMclipObj.boxWidth = SCMclipObj.clip.width;
						SCMclipObj.boxHeight = SCMclipObj.clip.height;
						var shiftTop = SCMshiftFlag ? SCMshiftParams.top : 0;
						var shiftLeft = SCMshiftFlag ? SCMshiftParams.left : 0;
						if (SCMclipObj.level == 1) {
							for (var i = 0; i < SCMshiftBoxes; i++) {
								SCMshiftArray[i].topOrigin = SCMshiftArray[i].top;
								SCMshiftArray[i].leftOrigin = SCMshiftArray[i].left;
							}
						}
					}
					SCMyHi = 0;
					SCMyLo = SCMclipObj.boxHeight - SCMcontObj.boxHeight;
					SCMxHi = 0;
					SCMxLo = SCMclipObj.boxWidth - SCMcontObj.boxWidth;
					SCMyloc = SCMcontObj.boxTop;
					SCMxloc = SCMcontObj.boxLeft;
					SCMshiftyOrigin = shiftTop;
					SCMshiftyPlus = SCMclipObj.boxHeight + shiftTop;
					SCMshiftyMinus = shiftTop - SCMclipObj.boxHeight;
					SCMshiftxOrigin = shiftLeft;
					SCMshiftxPlus = SCMclipObj.boxWidth + shiftLeft;
					SCMshiftxMinus = shiftLeft - SCMclipObj.boxWidth;
					if (SCMshiftFlag && SCMclipObj.level == 1) {
						SCMshiftDoneFlag = false;
						SCMShift(action[6]);
					}
					else {
						SCMshiftDoneFlag = true;
					}
					var showOne = true;
					SCMShowHide(SCMmenu, SCMclipObj.level, SCMvis, showOne);
					SCMScroll(action[8]);
					SCMprevClipObj = SCMclipObj;
					SCMprevContObj = SCMcontObj;
					for (var i = 0; i < SCMmenu.length; i++) {
						SCMprevMenu[i] = SCMmenu[i];
					}
				}
			}
		}
		else {
			if (SCMprevClipObj) {
				SCMMouseTrap()			
			}	
		}
	}
	return;
}
function SCMMouseTrap() {
	SCMmouseTrapTimer = setTimeout("SCMMouseTrapp()", SCMtrapDelay);
	return;
}
function SCMMouseTrapp() {
	var showOne = false;
	clearInterval(SCMrepeatScroll);
	clearInterval(SCMrepeatShift);
	SCMShowHide(SCMprevMenu, 1, SCMhid, showOne);
	if (SCMshiftBackFlag) {
		for (var i = 0; i < SCMshiftBoxes; i++) {
			SCMscrollTo(SCMshiftArray[i], SCMshiftArray[i].leftOrigin, SCMshiftArray[i].topOrigin);
			SCMshiftBackFlag = false;
		}
	}	
	return;
}
function SCMMouseTrapTimerQuit() {
	clearTimeout(SCMmouseTrapTimer);
	return;
}
function SCMShowHide(menu, level, state, showOne) {
	if (SCMW3C) {
		for (var i = level; i < menu.length; i++) {
			if (menu[i] != null) {
				menu[i].style.visibility = state;
				if (!showOne) {
					SCMscrollTo(menu[i].container, menu[i].container.boxLeft, menu[i].container.boxTop);
				}
				var innerObjs = menu[level].getElementsByTagName("div");
				for (var j = 0; j < innerObjs.length; j++) {
					innerObjs[j].style.visibility = state;
				}
			}
			if (showOne) break;
		}
	}
	else if (SCMisIE4) {
		for (var i = level; i < menu.length; i++) {
			if (menu[i] != null) {
				menu[i].style.visibility = state;
				if (!showOne) {
					SCMscrollTo(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 (SCMisNav4) {
		for (var i = level; i < menu.length; i++) {
			if (menu[i] != null) {
				menu[i].visibility = state;
				if (!showOne) {
					SCMscrollTo(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 SCMShift(mode) {
	SCMshiftDoneFlag = false;
	SCMshiftSpeed = SCMshiftSpeedHold;
	clearInterval(SCMrepeatShift);
	if (mode == 0) SCMrepeatShift = setInterval("SCMshiftUp()", SCMdelay);
	if (mode == 1) SCMrepeatShift = setInterval("SCMshiftDown()", SCMdelay);
	if (mode == 2) SCMrepeatShift = setInterval("SCMshiftLeft()", SCMdelay);
	if (mode == 3) SCMrepeatShift = setInterval("SCMshiftRight()", SCMdelay);
	return;
}
function SCMshiftSetup() {
	return;
}
function SCMshiftUp() {
	var top = SCMGetTop(SCMshiftParams);
	if (top <= SCMshiftyMinus) {
		SCMshiftDoneFlag = true;
		clearInterval(SCMrepeatShift);
		return;
	}
	SCMshiftSpeed = SCMeaseout && SCMshiftyMinus - top >= SCMshiftSpeedHold*2 && SCMshiftSpeed > 1 ? SCMshiftSpeed-SCMshiftReduce : SCMshiftSpeed;
	SCMshiftSpeed = SCMshiftSpeed < 1 ? 1 : Math.round(SCMshiftSpeed);	
	var shift = top - SCMshiftSpeed >= SCMshiftyMinus ? SCMshiftSpeed : top - SCMshiftyMinus;
	for (var i = 0; i < SCMshiftBoxes; i++) {
		var stop = SCMGetTop(SCMshiftArray[i]);
		var sleft = SCMGetLeft(SCMshiftArray[i]);
		SCMscrollTo(SCMshiftArray[i], sleft, (stop - shift));
	}
	return;
}
function SCMshiftDown() {
	var top = SCMGetTop(SCMshiftParams);
	if (top >= SCMshiftyPlus) {
		SCMshiftDoneFlag = true;
		clearInterval(SCMrepeatShift);
		return;
	}
	SCMshiftSpeed = SCMeaseout && SCMshiftyPlus - top <= SCMshiftSpeedHold*2 && SCMshiftSpeed > 1 ? SCMshiftSpeed-SCMshiftReduce : SCMshiftSpeed;
	SCMshiftSpeed = SCMshiftSpeed < 1 ? 1 : Math.round(SCMshiftSpeed);	
	var shift = top + SCMshiftSpeed <= SCMshiftyPlus ? SCMshiftSpeed : SCMshiftyPlus - top;
	for (var i = 0; i < SCMshiftBoxes; i++) {
		var stop = SCMGetTop(SCMshiftArray[i]);
		var sleft = SCMGetLeft(SCMshiftArray[i]);
		SCMscrollTo(SCMshiftArray[i], sleft, (stop + shift));
	}
	return;
}
function SCMshiftLeft() {
	var left = SCMGetLeft(SCMshiftParams);
	if (left <= SCMshiftxMinus) {
		SCMshiftDoneFlag = true;
		clearInterval(SCMrepeatShift);
		return;
	}
	SCMshiftSpeed = SCMeaseout && SCMshiftxMinus - left >= SCMshiftSpeedHold*2 && SCMshiftSpeed > 1 ? SCMshiftSpeed-SCMshiftReduce : SCMshiftSpeed;
	SCMshiftSpeed = SCMshiftSpeed < 1 ? 1 : Math.round(SCMshiftSpeed);	
	var shift = left - SCMshiftSpeed >= SCMshiftxMinus ? SCMshiftSpeed : left - SCMshiftxMinus;
	for (var i = 0; i < SCMshiftBoxes; i++) {
		var stop = SCMGetTop(SCMshiftArray[i]);
		var sleft = SCMGetLeft(SCMshiftArray[i]);
		SCMscrollTo(SCMshiftArray[i], (sleft - shift), stop);
	}
	return;
}
function SCMshiftRight() {
	var left = SCMGetLeft(SCMshiftParams);
	if (left >= SCMshiftxPlus) {
		SCMshiftDoneFlag = true;
		clearInterval(SCMrepeatShift);
		return;
	}
	SCMshiftSpeed = SCMeaseout && SCMshiftxPlus - left <= SCMshiftSpeedHold*2 && SCMshiftSpeed > 1 ? SCMshiftSpeed-SCMshiftReduce : SCMshiftSpeed;
	SCMshiftSpeed = SCMshiftSpeed < 1 ? 1 : Math.round(SCMshiftSpeed);	
	var shift = left + SCMshiftSpeed <= SCMshiftxPlus ? SCMshiftSpeed : SCMshiftxPlus - left;
	for (var i = 0; i < SCMshiftBoxes; i++) {
		var stop = SCMGetTop(SCMshiftArray[i]);
		var sleft = SCMGetLeft(SCMshiftArray[i]);
		SCMscrollTo(SCMshiftArray[i], (sleft + shift), stop);
	}
	return;
}
function SCMGetTop(params) {
	if (SCMW3C) var top = parseInt(params.style.top);
	if (SCMisIE4) var top = params.style.pixelTop;
	if (SCMisNav4) var top = params.top;
	return top;
}
function SCMGetLeft(params) {
	if (SCMW3C) var left = parseInt(params.style.left);
	if (SCMisIE4) var left = params.style.pixelLeft;
	if (SCMisNav4) var left = params.left;
	return left;
}
function SCMScroll(mode) {
	SCMscrollSpeed = SCMscrollSpeedHold;
	clearInterval(SCMrepeatScroll);
	if (mode == 0) SCMrepeatScroll = setInterval("SCMscrollUp()", SCMdelay);
	if (mode == 1) SCMrepeatScroll = setInterval("SCMscrollDown()", SCMdelay);
	if (mode == 2) SCMrepeatScroll = setInterval("SCMscrollLeft()", SCMdelay);
	if (mode == 3) SCMrepeatScroll = setInterval("SCMscrollRight()", SCMdelay);
}
function SCMscrollUp() {
	if (SCMshiftDoneFlag) {
		SCMscrollSpeed = SCMeaseout && Math.abs(SCMyloc) <= SCMscrollSpeedHold*2 && SCMscrollSpeed > 1 ? SCMscrollSpeed-SCMscrollReduce : SCMscrollSpeed;
		SCMscrollSpeed = SCMscrollSpeed < 1 ? 1 : Math.round(SCMscrollSpeed);
		SCMyloc = (SCMyloc + SCMscrollSpeed <= SCMyHi) ? SCMyloc + SCMscrollSpeed : SCMyHi;
		SCMscrollTo(SCMcontObj, SCMxloc, SCMyloc);
		if (SCMyloc == SCMyHi) {
			clearInterval(SCMrepeatScroll);
		}
	}
	return;
}
function SCMscrollDown() {
	if (SCMshiftDoneFlag) {
		SCMscrollSpeed = SCMeaseout && Math.abs(SCMyloc) <= SCMscrollSpeedHold*2 && SCMscrollSpeed > 1 ? SCMscrollSpeed-SCMscrollReduce : SCMscrollSpeed;
		SCMscrollSpeed = SCMscrollSpeed < 1 ? 1 : Math.round(SCMscrollSpeed);	
		SCMyloc = (SCMyloc - SCMscrollSpeed >= SCMyLo) ? SCMyloc - SCMscrollSpeed : SCMyLo;
		SCMscrollTo(SCMcontObj, SCMxloc, SCMyloc);
		if (SCMyloc == SCMyLo) {
			clearInterval(SCMrepeatScroll);
		}
	}
	return;
}
function SCMscrollLeft() {
	if (SCMshiftDoneFlag) {
		SCMscrollSpeed = SCMeaseout && Math.abs(SCMxloc) <= SCMscrollSpeedHold*2 && SCMscrollSpeed > 1 ? SCMscrollSpeed-SCMscrollReduce : SCMscrollSpeed;
		SCMscrollSpeed = SCMscrollSpeed < 1 ? 1 : Math.round(SCMscrollSpeed);	
		SCMxloc = (SCMxloc + SCMscrollSpeed <= SCMxHi) ? SCMxloc + SCMscrollSpeed : SCMxHi;
		SCMscrollTo(SCMcontObj, SCMxloc, SCMyloc);
		if (SCMxloc == SCMxHi) {
			clearInterval(SCMrepeatScroll);
		}
	}
	return;
}
function SCMscrollRight() {
	if (SCMshiftDoneFlag) {
		SCMscrollSpeed = SCMeaseout && Math.abs(SCMxloc) <= SCMscrollSpeedHold*2 && SCMscrollSpeed > 1 ? SCMscrollSpeed-SCMscrollReduce : SCMscrollSpeed;
		SCMscrollSpeed = SCMscrollSpeed < 1 ? 1 : Math.round(SCMscrollSpeed);	
		SCMxloc = (SCMxloc - SCMscrollSpeed >= SCMxLo) ? SCMxloc - SCMscrollSpeed : SCMxLo;
		SCMscrollTo(SCMcontObj, SCMxloc, SCMyloc);
		if (SCMxloc == SCMxLo) {
			clearInterval(SCMrepeatScroll);
		}
	}
	return;
}
function SCMscrollTo(obj, x, y) {
	if (SCMW3C) {
		obj.style.left = x + "px";
		obj.style.top = y + "px";
	}
	else if (SCMisIE4) {
		obj.style.pixelLeft = x;
		obj.style.pixelTop = y;
	}
	else {
		obj.moveTo(x, y);
	}
	return;
}
function SCMgetObject(objName) {
	var params;
	if (SCMW3C) {
		params = eval('document.getElementById("' + objName + '")');
	}
	else if (SCMisIE4) {
		params = eval("document.all." + objName);
	}
	else {
		params = SCMFindLayerObject(objName, 0);
	}
	return params;
}
function SCMFindLayerObject(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 = SCMFindLayerObject(layer, thisDocument.layers[i]); 
			if (layerObj) {
				break;
			}
		}
	}
	return layerObj;
}
function SCMVersion() {
	return (navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 4)
          || (navigator.appName.indexOf("Explorer") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 4);
}
function CSGotoLink(action) {
	if (action[2].length) {
		var hasFrame=false;
		for(i=0;i<parent.frames.length;i++) { if (parent.frames[i].name==action[2]) { hasFrame=true; break;}}
		if (hasFrame==true)
			parent.frames[action[2]].location = action[1];
		else
			window.open (action[1],action[2],"");
	}
	else location = action[1];
}
/* EOF */
