/* -- Adobe GoLive JavaScript Library */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, st) {	var s=si.toUpperCase();	var myID=id.toUpperCase()+":";	var id1=s.indexOf(myID,st);	if (id1==-1) return "";	var ch=s.charAt(id1-1);	if (ch!=" " && ch!="\t" && ch!="\n" && ch!=";" && ch!="{")		return CSGetStyleAttrValue (si, id, id1+1);	var start=id1+myID.length;	ch=s.charAt(start);	while(ch==" " || ch=="\t" || ch=="\n") {start++; ch=s.charAt(start);}	s=s.substring(start,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",0);		if (style.top=="") style.top=CSGetStyleAttrValue(si,"top",0);		if (style.width=="") style.width=CSGetStyleAttrValue(si,"width",0);		if (style.height=="") style.height=CSGetStyleAttrValue(si,"height",0);		if (style.visibility=="") style.visibility=CSGetStyleAttrValue(si,"visibility",0);		if (style.zIndex=="") style.zIndex=CSGetStyleAttrValue(si,"z-index",0);	}}function CSSetStyleVis(s,v) {	if (CSIsW3CDOM){CSIDOM();document.getElementById(s).style.visibility=(v==0)?"hidden":"visible";}	else if(IsIE())CSIEStyl(s).visibility=(v==0)?"hidden":"visible";	else CSNSStyl(s).visibility=(v==0)?'hide':'show';}function CSGetStyleVis(s) {	if (CSIsW3CDOM) {CSIDOM();return(document.getElementById(s).style.visibility=="hidden")?0:1;}	else if(IsIE())return(CSIEStyl(s).visibility=="hidden")?0:1;	else return(CSNSStyl(s).visibility=='hide')?0:1;}CSStateArray = new Object;CSCookieArray = new Object;CSCookieValArray = new Object;function CSWriteCookie(action) {	var name   = "DFT" + action[1];	var hrs    = action[2];	var path   = action[3];	var domain = action[4];	var secure = action[5];		var exp    = new Date((new Date()).getTime() + hrs * 3600000);		var cookieVal = "";	for(var prop in CSCookieArray) {		if(("DFT" + CSCookieArray[prop]) == name) {			if(cookieVal != "") cookieVal += "&";			cookieVal += prop + ":" + escape(CSStateArray[prop]);		}	}	if(hrs != 0)		cookieVal += "; expires=" + exp.toGMTString();	if(path != "")		cookieVal += "; path=" + path;	if(domain != "")		cookieVal += "; domain=" + domain;	if(secure == true)		cookieVal += "; secure";	document.cookie = name + '=' + cookieVal;}function CSReadCookie(action) {	var name    = "DFT" + action[1];	var cookies = document.cookie;	if(cookies == "") return;	var start = cookies.indexOf(name);	if(start == -1) return;	start += name.length + 1;	var end = cookies.indexOf(";", start);	if(end == -1) end = cookies.length;	var cookieVal = cookies.substring(start, end);	var arr = cookieVal.split('&');	for(var i = 0; i < arr.length; i++) {		var a = arr[i].split(':');		CSStateArray[a[0]] = unescape(a[1]);	}	}function CSDefineState(action) {	CSCookieArray[action[1]] = action[3]; }function CSSetState(action) {	CSStateArray[action[1]] = action[2];}function CSInitState(action) {	if(typeof(CSStateArray[action[1]]) == "undefined")		CSStateArray[action[1]] = action[2];}function CSCheckState(action) {	var obj1 = CSStateArray[action[1]];	var obj2 = action[2];	if(typeof(obj1) == "object") {		for(var i=0;i<obj1.length;i++) {			if(obj1[i] != obj2[i])				return false;			}		return true;		}	var res;	var op = action[3];		     if(op == "==") res = (CSStateArray[action[1]] == action[2]);			else if(op == "!=") res = (CSStateArray[action[1]] != action[2]);			else if(op == ">" ) res = (CSStateArray[action[1]] >  action[2]);			else if(op == ">=") res = (CSStateArray[action[1]] >= action[2]);			else if(op == "<" ) res = (CSStateArray[action[1]] <  action[2]);			else if(op == "<=") res = (CSStateArray[action[1]] <= action[2]);		return res;}function CSSetStylePos(s,d,p) {	if (CSIsW3CDOM)d==0?document.getElementById(s).style.left=p+"px":document.getElementById(s).style.top=p+"px";	else if(IsIE())(d==0)?CSIEStyl(s).posLeft=p:CSIEStyl(s).posTop=p;	else (d==0)?CSNSStyl(s).left=p:CSNSStyl(s).top=p;}function CSGetStylePos(s,d) {	if (CSIsW3CDOM){CSIDOM();return parseInt((d==0)?document.getElementById(s).style.left:document.getElementById(s).style.top);}	else if (IsIE()) {CSIEWinInit();return(d==0)?CSIEStyl(s).posLeft:CSIEStyl(s).posTop;}	else {return (d==0)?CSNSStyl(s).left:CSNSStyl(s).top;}}CSIEWInit=false;function CSIEWinInit() { if(CSIEWInit==true) return; else CSIEWInit=true; if (IsIE()&&CSBVers==4) { var i=0; var lyr=document.all.tags("div")[i++]; while(lyr) {lyr.style.posLeft=lyr.offsetLeft; lyr.style.posTop=lyr.offsetTop; lyr=document.all.tags("div")[i++];}}}CSLoopIsRunning = false; CSFctArray = new Array; CSTimeoutID = null;function CSLoop() {		CSLoopIsRunning = false;	for (i=0;i<CSFctArray.length;i++) {		var curFct = CSFctArray[i];		if (curFct)	{			if (curFct.DoFunction(curFct)) { CSLoopIsRunning = true; curFct.counter++; }			else CSFctArray[i] = 0;		}	}	if (CSLoopIsRunning) CSTimeoutID = setTimeout("CSLoop()", 1);}function CSStartFunction(fct,data) {	if (!CSLoopIsRunning) { CSFctArray = 0; CSFctArray = new Array; }	var fctInfo = new Object;	fctInfo.DoFunction = fct; fctInfo.counter = 0; fctInfo.data = data;	CSFctArray[CSFctArray.length] = fctInfo; 	if (!CSLoopIsRunning) CSLoop();}function CSStopFunction(sceneName) {	var i;	for (i=0;i<CSFctArray.length;i++) {		var curFct = CSFctArray[i];		if (curFct){ if (curFct.data.name == sceneName){ CSFctArray[i] = 0; return; } }	}}function CSStopComplete() {	if (CSTimeoutID == null) return;	clearTimeout (CSTimeoutID); CSLoopIsRunning = false; CSTimeoutID = null;}function CSMoveLoop(fInf) {	var ticks = 60 * (((new Date()).getTime()) - fInf.data.startTime)/1000;	var f = ticks/fInf.data.ticks;	if (f < 1) { CSSetStylePos(fInf.data.layer,0,fInf.data.start[0] * (1-f) + fInf.data.end[0] * f);		CSSetStylePos(fInf.data.layer,1,fInf.data.start[1] * (1-f) + fInf.data.end[1] * f); return true; }	else { CSSetStylePos(fInf.data.layer,0,fInf.data.end[0]);		CSSetStylePos(fInf.data.layer,1,fInf.data.end[1]); }	return false;}function CSSlideObj (layer,start,end,ticks,startTime) {	this.layer=layer;this.start=start;this.end=end;this.ticks=ticks;this.startTime=startTime;}function CSSlideLayer(l,pos,anim,ticks) {	var x = pos[0]; var y = pos[1];	if (l == '') return;	if (ticks < 0) ticks = 0;	if (!anim) { CSSetStylePos(l,0,x); CSSetStylePos(l,1,y); }	else {  var fctData = new CSSlideObj(l,new Array(CSGetStylePos(l,0),CSGetStylePos(l,1)),new Array(x,y),ticks,(new Date()).getTime()); CSStartFunction(CSMoveLoop,fctData); }}CSInit = new Array;function CSScriptInit() {if(typeof(skipPage) != "undefined") { if(skipPage) return; }idxArray = new Array;for(var i=0;i<CSInit.length;i++)	idxArray[i] = i;CSAction2(CSInit, idxArray);}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 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];}function CSActionGroup (action) {	for(var i=1;i<action.length;i++) { CSAction(new Array(action[i])); }}function CSShowHide(action) {	if (action[1] == '') return;	var type=action[2];	if(type==0) CSSetStyleVis(action[1],0);	else if(type==1) CSSetStyleVis(action[1],1);	else if(type==2) { 		if (CSGetStyleVis(action[1]) == 0) CSSetStyleVis(action[1],1);		else CSSetStyleVis(action[1],0);	}}function CSCallAction(action){	CSAction(new Array(action[1]));}// Slideshow Kit 1.5.1 by Nate Baldwin, www.mindpalette.com, April 27, 2004// Slide Show Options Action...function MPGetFileName(startString) {	thisString = startString+"";	if (thisString.lastIndexOf('/') != -1) {		var nameStart = thisString.lastIndexOf('/') + 1;		var nameEnd = thisString.length;		var thisFile = thisString.substring(nameStart, nameEnd);		} else var thisFile = thisString;	return thisFile;	}function MPValidURLString(testString) {	var validString = true;	if (testString == "") validString = false;		else if (testString == "#") validString = false;		else if (testString == "(EmptyReference!)") validString = false;		else if (testString == "(Empty Reference!)") validString = false;	if (validString == true) return true;		else return false;	}function MPCheckExtFormat(thisString) {	if (thisString.charAt(0) == ".") thisString = thisString.substring(1);	return thisString;	}function MPCheckDirFormat(thisString) {	if (thisString != "") {		if (thisString.charAt(thisString.length - 1) == "/") thisString = thisString.substring(0, thisString.length - 1);		var dirArray = thisString.split("/");		var lastIndex = dirArray.length - 1;		thisString = "";		for (n=0; n<dirArray.length; n++) {			var addThisBlock = true;			if (n == lastIndex) {				var testArray = dirArray[lastIndex].split(".");				if (testArray.length > 1) addThisBlock = false;				}			if (addThisBlock == true) thisString += dirArray[n]+"/";			}		if (thisString.charAt(thisString.length - 1) != "/") thisString += "/";		}	return thisString;	}function MPJump2ImgNum2(menu, group) {	var imgNum = menu.options[menu.selectedIndex].value;	if (imgNum != "") {		var imgSrc = this.imagelist[imgNum].imgurl;		document.images[this.imageopts.imgname].src = imgSrc;		if (this.imageopts.nextaltsrc != "" && this.imageopts.nextimgsrc != "" && this.imageopts.nextimg != "") {			if (imgNum == (this.imagelist.length - 1))				document.images[this.imageopts.nextimg].src = this.imageopts.nextaltsrc;				else document.images[this.imageopts.nextimg].src = this.imageopts.nextimgsrc;			}		if (this.imageopts.prevaltsrc != "" && this.imageopts.previmgsrc != "" && this.imageopts.previmg != "") {			if (imgNum == 0)				document.images[this.imageopts.previmg].src = this.imageopts.prevaltsrc;				else document.images[this.imageopts.previmg].src = this.imageopts.previmgsrc;			}		this.MPUpdateCaptDescDivs(imgNum);		this.MPSetToggle("pause");		this.autoscroll.run = false;		if (typeof this.autoscroll.timer == "number") {			clearTimeout(this.autoscroll.timer);			this.autoscroll.timer = false;			}		}	}function MPUpdateImgMenu(newIndex) {	var thisForm = this.imagegroup+"_form";	var thisMenu = this.imagegroup+"_menu";	if (typeof document.forms[thisForm] != "undefined") {		if (typeof document.forms[thisForm].elements[thisMenu].options[newIndex] != "undefined") {			for (m=0; m<document.forms[thisForm].elements[thisMenu].length; m++) {				if (m == (newIndex)) document.forms[thisForm].elements[thisMenu].options[m].selected = true;					else document.forms[thisForm].elements[thisMenu].options[m].selected = false;				}			}		}	}function MPSetToggle(type) {	if (this.imageopts.playbtn != "" && this.imageopts.playsrc != "" && this.imageopts.pausesrc != "") {		if (type == "play") document.images[this.imageopts.playbtn].src = this.imageopts.pausesrc;			else document.images[this.imageopts.playbtn].src = this.imageopts.playsrc;		}	}function MPAutoScrollImgSeq1(group) {	if (typeof MP_SSKParam1[group] != "undefined") {		if (MP_SSKParam1[group].autoscroll.run == true) {			var nextIndex = 0;			var thisIndex = MP_SSKParam1[group].autoscroll.index;			if (MP_SSKParam1[group].autoscroll.stall == true)				nextIndex = thisIndex;				else {				if (MP_SSKParam1[group].autoscroll.reverse == false) {					if (thisIndex < (MP_SSKParam1[group].imagelist.length - 1))						nextIndex = (MP_SSKParam1[group].autoscroll.index + 1);					} else {					if (MP_SSKParam1[group].autoscroll.index > 0) nextIndex = thisIndex - 1;						else nextIndex = (MP_SSKParam1[group].imagelist.length - 1);					}				}			if (MP_SSKParam1[group].imagelist[nextIndex][0] != "")				document.images[MP_SSKParam1[group].imageopts.imgname].src = MP_SSKParam1[group].imagelist[nextIndex].imgurl;			var timer = setTimeout("this.MPAutoScrollImgSeq1('"+group+"')", MP_SSKParam1[group].autoscroll.delay);			MP_SSKParam1[group].autoscroll.index = nextIndex;			MP_SSKParam1[group].autoscroll.timer = timer;			if (MP_SSKParam1[group].autoscroll.stall == false) {				MP_SSKParam1[group].MPUpdateImgMenu(nextIndex);				MP_SSKParam1[group].MPUpdateCaptDescDivs(nextIndex);				}			MP_SSKParam1[group].autoscroll.stall = false;			} else {			if (typeof MP_SSKParam1[group].autoscroll.timer == "number") {				clearTimeout(MP_SSKParam1[group].autoscroll.timer);				MP_SSKParam1[group].autoscroll.timer = false;				}			MP_SSKParam1[group].MPSetToggle("pause");			MP_SSKParam1[group].autoscroll.run = false;			}		}	}function MPDivTextWrite2(div, text) {	if (document.layers) {		if (typeof eval("document."+div+".document") != "undefined") {			with (eval("document."+div+".document")) {				open();				write("<"+"HTML"+"><"+"HEAD"+"><"+"/HEAD"+"><"+"BODY"+">"+text+"<"+"/BODY"+"><"+"/HTML"+">");				close();				}			}		} else if (document.all && typeof document.all[div] != "undefined") {		document.all[div].innerHTML = text;		} else if (document.getElementById && !document.all && typeof document.getElementById(div) != "undefined") {		document.getElementById(div).innerHTML = text;		}	}function MPUpdateCaptDescDivs(nextIndex) {	var thisCaptDiv = this.imageopts.captdiv;	if (thisCaptDiv == "#") thisCaptDiv = "";	var thisCaptTxt = this.imagelist[nextIndex].caption;	if (thisCaptDiv != "" && thisCaptTxt != "") MPDivTextWrite2(thisCaptDiv, thisCaptTxt);	var thisDescDiv = this.imageopts.descdiv;	var thisDescTxt = this.imagelist[nextIndex].descript;	if (thisDescDiv != "" && thisDescTxt != "") MPDivTextWrite2(thisDescDiv, thisDescTxt);	var thisCountDiv = this.imageopts.countdiv;	if (thisCountDiv == "#") thisCountDiv = "";	var thisCountTxt = (parseInt(nextIndex)+1)+" of "+this.imagelist.length;	if (thisCountDiv != "" && thisCountTxt != " of ") MPDivTextWrite2(thisCountDiv, thisCountTxt);	}if (typeof MP_SSKParam1 == "undefined") var MP_SSKParam1 = new Array();if (typeof MPImageSeqPreldArray1 == "undefined") var MPImageSeqPreldArray1 = new Array();function MPSequence2Options(action) {	var group = (action[1] != "") ? action[1] : "default";	var imageopts = new Object();	imageopts.stop = action[2];	imageopts.alert = action[3];	imageopts.startalert = (action[4] != "") ? action[4] : "beginning of slideshow";	imageopts.endalert = (action[5] != "") ? action[5] : "end of slideshow";	imageopts.nextimg = action[6];	imageopts.nextaltsrc = (MPValidURLString(action[7])) ? action[7] : "";	imageopts.previmg = action[8];	imageopts.prevaltsrc = (MPValidURLString(action[9])) ? action[9] : "";	imageopts.imgname = action[10];	imageopts.nextimgsrc = (MPValidURLString(action[11])) ? action[11] : "";	imageopts.previmgsrc = (MPValidURLString(action[12])) ? action[12] : "";	imageopts.playbtn = action[13];	imageopts.playsrc = (MPValidURLString(action[14])) ? action[14] : "";	imageopts.pausesrc = (MPValidURLString(action[15])) ? action[15] : "";	imageopts.captdiv = action[16];	imageopts.descdiv = action[17];	imageopts.countdiv = action[18];	var autoscroll = new Object();	autoscroll.run = false;	autoscroll.index = 0;	autoscroll.delay = 3000;	autoscroll.reverse = false;	autoscroll.timer = false;	autoscroll.stall = false;	var slideshow = new Object();	slideshow.imagegroup = group;	slideshow.imagelist = new Array();	slideshow.imageopts = imageopts;	slideshow.autoscroll = autoscroll;	slideshow.MPJump2ImgNum2 = MPJump2ImgNum2;	slideshow.MPAutoScrollImgSeq1 = MPAutoScrollImgSeq1;	slideshow.MPUpdateImgMenu = MPUpdateImgMenu;	slideshow.MPSetToggle = MPSetToggle;	slideshow.MPUpdateCaptDescDivs = MPUpdateCaptDescDivs;	MP_SSKParam1[group] = slideshow;	var preldArray = new Array();	var MPImageSeqPreldCount1 = MPImageSeqPreldArray1.length;	if (action[7] != "") preldArray[preldArray.length] = action[7];	if (action[9] != "") preldArray[preldArray.length] = action[9];	if (action[11] != "") preldArray[preldArray.length] = action[11];	if (action[12] != "") preldArray[preldArray.length] = action[12];	if (action[14] != "") preldArray[preldArray.length] = action[14];	if (action[15] != "") preldArray[preldArray.length] = action[15];	if (preldArray.length > 0) {		MPImageSeqPreldArray1[MPImageSeqPreldCount1] = new Array();		for (i=0; i<preldArray.length; i++) {			if (preldArray[i] != "") {				MPImageSeqPreldArray1[MPImageSeqPreldCount1][i] = new Image();				MPImageSeqPreldArray1[MPImageSeqPreldCount1][i].src = preldArray[i];				}			}		}	}//-->// SlideShowKit 1.5.1 by Nate Baldwin, www.mindpalette.com, April 27, 2004// Slide Show Detail List...function MPImgDetailList2(action) {	var thisGroup = action[1];	if (thisGroup == "") thisGroup = "default";	if (MP_SSKParam1[thisGroup] != "undefined") {		if (MPValidURLString(action[2])) {			var thisSlide = new Object();			thisSlide.imgurl = action[2];			thisSlide.linkurl = (MPValidURLString(action[3])) ? action[3] : "";			thisSlide.caption = action[4];			thisSlide.descript = action[5];			MP_SSKParam1[thisGroup].imagelist[MP_SSKParam1[thisGroup].imagelist.length] = thisSlide;			}		}	}//-->// SlideShowKit 1.5.1 by Nate Baldwin, www.mindpalette.com, April 27, 2004// Slide Show Link List Action...function MPImgLinkCapt2(action) {	var thisGroup = action[1];	if (thisGroup == "") thisGroup = "default";	if (MP_SSKParam1[thisGroup] != "undefined") {		for (i=2; i<=16; i+=3) {			if (MPValidURLString(action[i])) {				var thisSlide = new Object();				thisSlide.imgurl = action[i];				thisSlide.linkurl = (MPValidURLString(action[i+1])) ? action[i+1] : "";				thisSlide.caption = action[i+2];				thisSlide.descript = "";				MP_SSKParam1[thisGroup].imagelist[MP_SSKParam1[thisGroup].imagelist.length] = thisSlide;				}			}		}	}//-->// SlideShowKit 1.5.2 by Nate Baldwin, mindpalette.com - August 30, 2004// Slide Show Trigger Action...function MPTriggerImageSeq(action) {	var group = (action[1] != "") ? action[1] : "default";	var type = (action[2] == 1 || action[2] == "1") ? "next" : "prev";	var type = "";	if (action[2] == "1") type = "prev";		else if (action[2] == "2") type = "play";		else if (action[2] == "3") type = "pause";		else if (action[2] == "4") type = "toggle";		else if (action[2] == "5") type = "start";		else if (action[2] == "6") type = "end";		else type = "next";	var delay = (parseInt(action[3]) > 0) ? parseInt(action[3]) : 3000;	var reverse = action[4];	if (typeof MP_SSKParam1[group] != "undefined") {		if (type == "toggle") {			if (MP_SSKParam1[group].autoscroll.run == false) type = "play";				else type = "pause";			}		MP_SSKParam1[group].MPSetToggle(type);		MP_SSKParam1[group].autoscroll.run = false;		if (typeof MP_SSKParam1[group].autoscroll.timer == "number") {			clearTimeout(MP_SSKParam1[group].autoscroll.timer);			MP_SSKParam1[group].autoscroll.timer = false;			}		if (type != "pause") {			var nextIndex = (type == "end") ? (MP_SSKParam1[group].imagelist.length - 1) : 0;			var thisIndex = -1;			var imageList = MP_SSKParam1[group].imagelist;			var img = MP_SSKParam1[group].imageopts.imgname;			var stopScript = false;			var currentImage = document.images[img].src;			currentImage = MPGetFileName(currentImage);			for (n=0; n<imageList.length; n++) {				if (imageList[n] != "") {					var testImage = MPGetFileName(imageList[n].imgurl);					if (testImage == currentImage) {						thisIndex = n;						break;						}					}				}			if (type == "prev" || type == "next") {				if (type == "next") {					if (thisIndex >= (imageList.length - 1))						nextIndex = 0;						else if (typeof imageList[thisIndex + 1] == "undefined")						nextIndex = 0;						else if (imageList[thisIndex + 1].imgurl == "")						nextIndex = 0;						else nextIndex = thisIndex + 1;					if (nextIndex == 0) {						if (MP_SSKParam1[group].imageopts.stop == true) {							if (thisIndex == (imageList.length - 1)) stopScript = true;							nextIndex = (thisIndex >= 0) ? thisIndex : 0;							}						if (MP_SSKParam1[group].imageopts.alert == true && thisIndex == (imageList.length - 1))							alert(MP_SSKParam1[group].imageopts.endalert);						}					} else {					if ((thisIndex - 1) < 0)						nextIndex = imageList.length - 1;						else nextIndex = thisIndex - 1;					if (nextIndex == (imageList.length - 1)) {						if (MP_SSKParam1[group].imageopts.stop == true) {							stopScript = true;							nextIndex = (thisIndex >= 0) ? thisIndex : 0;							}						if (MP_SSKParam1[group].imageopts.alert == true) alert(MP_SSKParam1[group].imageopts.startalert);						}					}				}			}		var options = MP_SSKParam1[group].imageopts;		if (type == "play") {			MP_SSKParam1[group].autoscroll.run = true;			var startIndex = (thisIndex > 0) ? thisIndex : 0;			MP_SSKParam1[group].autoscroll.index = startIndex;			MP_SSKParam1[group].autoscroll.delay = delay;			MP_SSKParam1[group].autoscroll.reverse = reverse;			MP_SSKParam1[group].autoscroll.stall = action[5];			if (options.playbtn != "" && options.playsrc != "" && options.pausesrc != "")				document.images[options.playbtn].src = options.pausesrc;			MPAutoScrollImgSeq1(group);			} else {			if (options.nextimg != "" && options.nextaltsrc != "" && options.nextimgsrc != "") {				var fixImage = MP_SSKParam1[group].imageopts.nextimg;				if (nextIndex == (imageList.length-1))					document.images[fixImage].src = options.nextaltsrc;					else document.images[fixImage].src = options.nextimgsrc;				}			if (options.previmg != "" && options.prevaltsrc != "" && options.previmgsrc != "") {				var fixImage = MP_SSKParam1[group].imageopts.previmg;				if (nextIndex == 0)					document.images[fixImage].src = options.prevaltsrc;					else document.images[fixImage].src = options.previmgsrc;				}			if (stopScript == false) {				document.images[img].src = imageList[nextIndex].imgurl;				MP_SSKParam1[group].MPUpdateImgMenu(nextIndex);				MP_SSKParam1[group].MPUpdateCaptDescDivs(nextIndex);				}			}		}	}//-->// Version 1.1. A Michael Ahgren action.function CSRemoveIEbox(){if (document.images&&navigator.userAgent.indexOf("MSIE")!=-1){	for(i=0;i<document.links.length;i++){		target=eval("document.links[i]")		target.onfocus=blurHandler		}	}}function blurHandler(){obj=window.event.srcElementif(obj.tagName == "A"||obj.tagName=="AREA") obj.blur()}function CSConditionAction(action) {	if (action[1]) {		if (CSAction(new Array(action[1])) == true) {			if (action[2]) CSAction(new Array(action[2]));		} else if (action[3]) CSAction(new Array(action[3]));	}}// SlideShowKit 1.5.1 by Nate Baldwin, www.mindpalette.com - April 27, 2004// Slide Show Link Action...function MPImgLinkTrigger1(action) {	var imgGroup = action[1];	var linkType = "";	if (action[2] == "1") linkType = "popup";		else if (action[2] == "2") linkType = "aiw";		else linkType = "link";	var urlFound = "";	var aiwImg = "";	if (typeof MP_SSKParam1[imgGroup] != "undefined") {		var currentImg = MPGetFileName(document.images[MP_SSKParam1[imgGroup].imageopts.imgname].src);		for (n=0; n<MP_SSKParam1[imgGroup].imagelist.length; n++) {			var testImage = MPGetFileName(MP_SSKParam1[imgGroup].imagelist[n].imgurl);			if (testImage == currentImg) {				if (linkType == "aiw") {					if (action[20] != "") {						aiwImg = MPCheckDirFormat(action[20])+testImage;						break;						}					} else if (testImage == currentImg && MP_SSKParam1[imgGroup].imagelist[n].linkurl != "") {					urlFound = MP_SSKParam1[imgGroup].imagelist[n].linkurl;					break;					}				}							}		}	if (urlFound != "" || aiwImg != "") {		if (action[25] == true) {			MP_SSKParam1[imgGroup].MPSetToggle("pause");			MP_SSKParam1[imgGroup].autoscroll.run = false;			if (typeof MP_SSKParam1[imgGroup].autoscroll.timer == "number") {				clearTimeout(MP_SSKParam1[imgGroup].autoscroll.timer);				MP_SSKParam1[imgGroup].autoscroll.timer = false;				}			}		if (linkType == "link") {			var frameFound = false;			var linkTarget = action[19];			if (linkTarget != "") {				for (i=0; i<parent.frames.length; i++) {					if (parent.frames[i].name == linkTarget) {						frameFound = true;						break;						}					}				}			if (frameFound == true)				parent.frames[linkTarget].location = urlFound;				else window.location = urlFound;			} else {			var posX = action[14];			var posY = action[15];			var winWidth = action[4];			var winHeight = action[5];			var setWidth = true;			var setHeight = true;			if (winWidth == "" || winWidth == 0 || winWidth == "0") setWidth = false;			if (winHeight == "" || winHeight == 0 || winHeight == "0") setHeight = false;			if (action[6] == true) {				if (setWidth == true) posX = Math.round((screen.availWidth/2)-(winWidth/2));				if (setHeight == true) posY = Math.round((screen.availHeight/2)-(winHeight/2));				}			if (action[17] == true || action[16] == true) {				posX = 0;				winWidth = screen.availWidth;				}			if (action[18] == true || action[16] == true) {				posY = 0;				winHeight = screen.availHeight;				}			if (winWidth > (screen.availWidth - posX)) winWidth = (screen.availWidth - posX);			if (winHeight > (screen.availHeight - posY)) winHeight = (screen.availHeight - posY);			for (i=7; i<14; i++) {				action[i] == true ? action[i] = "yes" : action[i] = "no";				}			var windowOptions = "";			if (setWidth == true) windowOptions += "width=" + winWidth;			if (setHeight == true) {				if (setWidth == true) windowOptions += ",";				windowOptions += "height=" + winHeight;				}			if (setWidth == true || setHeight == true) windowOptions += ",";			windowOptions += "resizable=" + action[13];			windowOptions += ",scrollbars=" + action[7];			windowOptions += ",menubar=" + action[8];			windowOptions += ",toolbar=" + action[11];			windowOptions += ",directories=" + action[9];			windowOptions += ",location=" + action[12];			windowOptions += ",status=" + action[10];			windowOptions += ",left=" + posX;			windowOptions += ",top=" + posY;			if (linkType != "aiw") {				var thisPopup = window.open(urlFound, action[3], windowOptions);				if (thisPopup && typeof thisPopup == "object") thisPopup.focus();				} else {				var code = "";				code += '<'+'!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"'+'>'+"\n\n";				code += '<'+'html'+'>'+"\n\n";				code += '<'+'head'+'>'+"\n";				code += '<'+'meta http-equiv="content-type" content="text/html;charset=iso-8859-1"'+'>'+"\n";				code += '<'+'title'+'>'+action[21]+'<'+'/title'+'>'+"\n";				if (action[23] == true && action[24] != "") {					code += '<'+'style type="text/css" media="screen"'+'><'+'!--'+"\n";					code += 'a { color: '+action[24]+'; font-size: 12px !important; font-family: Verdana, Arial, Helvetica }'+"\n";					code += '--'+'><'+'/style'+'>'+"\n";					}				code += '<'+'/head'+'>'+"\n\n";				code += '<'+'body bgcolor="'+action[22]+'" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0"'+'>'+"\n";				code += '<'+'table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%"'+'>'+"\n";				code += '<'+'tr'+'>'+"\n";				code += '<'+'td align="center" valign="middle"'+'><'+'img src="'+aiwImg+'" alt="" border="0"'+'>'+"\n";				if (action[23] == true && action[24] != "") code += '<br'+'><'+'a href="javascript:self.close();"'+'>'+'close window'+'<'+'/a'+'>'+"\n";				code += '<'+'/td'+'><'+'/tr'+'>'+"\n";				code += '<'+'/table'+'>'+"\n";				code += '<'+'/body'+'>'+"\n\n";				code += '<'+'/html'+'>';				var thisPopup = window.open("", action[3], windowOptions);				if (thisPopup && typeof thisPopup == "object") {					thisPopup.document.open();					thisPopup.document.write(code);					thisPopup.document.close();					thisPopup.focus();					}				}			}		}	}//-->function CSFixFct() {	var d = document; var w = window;	if (d.cs.csFix.w != w.innerWidth || d.cs.csFix.h != w.innerHeight) {		d.location = d.location; }}function CSNSFix(action) { 	var d = document; var w = window;	if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {		if (typeof d.cs == 'undefined') { 			d.cs = new Object;			d.cs.csFix = new Object; 		} else if (CSIsFrame (w) == true) CSFixFct();		d.cs.csFix.w = w.innerWidth;		d.cs.csFix.h = w.innerHeight; 		window.onresize = CSFixFct;	  }}function CSIsFrame (window) {	var rootWindow = window.parent;	if (rootWindow == 'undefined') return false;	for (i = 0; i < rootWindow.frames.length; i++)		if (window == rootWindow.frames[i]) return true;	return false;}// SlideShowKit 1.5.1 by Nate Baldwin, www.mindpalette.com, April 27, 2004// Slide Show Preload Action...if (typeof MPImageSeqPreldArray1 == "undefined") var MPImageSeqPreldArray1 = new Array();function MPImgSeqPrld2(action) {	var group = (action[1] != "") ? action[1] : "default";	var limit = action[2];	var max = (action[3] > 0) ? action[3] : 10;	MPImageSeqPreldCount1 = MPImageSeqPreldArray1.length;	if (limit == false || max > MP_SSKParam1[group].imagelist.length) max = MP_SSKParam1[group].imagelist.length;	MPImageSeqPreldArray1[MPImageSeqPreldCount1] = new Array();	for (i=0; i<max; i++) {		if (MP_SSKParam1[group].imagelist[i].imgurl != "") {			MPImageSeqPreldArray1[MPImageSeqPreldCount1][i] = new Image();			MPImageSeqPreldArray1[MPImageSeqPreldCount1][i].src = MP_SSKParam1[group].imagelist[i].imgurl;			}		}	}//-->// Slideshow Kit 1.5.1 by Nate Baldwin, www.mindpalette.com, April 27, 2004// Slide Show Folder Action...function MPImgLinkFolder2(action) {	var thisGroup = (action[1] != "") ? action[1] : "default";	if (typeof MP_SSKParam1[thisGroup] != "undefined") {		var imgDir = (MPValidURLString(action[2])) ? action[2] : "";		imgDir = MPCheckDirFormat(imgDir);		var startNum = (action[3] != "") ? parseInt(action[3]) : 1;		var endNum = (action[4] != "") ? parseInt(action[4]) : 0;		var imgExt = (action[5] != "") ? MPCheckExtFormat(action[5]) : "jpg";		var linkImgs = action[6];		var linkExt = (action[7] != "") ? MPCheckExtFormat(action[7]) : "html";		var linkDir = (MPValidURLString(action[8])) ? action[8] : "";		linkDir = MPCheckDirFormat(linkDir);		if (endNum > 0 && endNum > startNum && imgDir != "") {			for (i=startNum; i<=endNum; i++) {				var thisSlide = new Object();				thisSlide.imgurl = imgDir+i+"."+imgExt;				thisSlide.linkurl = (linkImgs == true && linkDir != "") ? linkDir+i+"."+linkExt : "";				thisSlide.caption = "";				thisSlide.descript = "";				MP_SSKParam1[thisGroup].imagelist[MP_SSKParam1[thisGroup].imagelist.length] = thisSlide;				}			}		}	}//-->function CSRandomImg(action) { 	var img = CSGetImage(action[1]);	if (img) 		{		var v1 =  Math.floor(Math.random() * 10);		var whichone = v1-(Math.floor(v1/3)*3);		img.src = action[whichone+2];		}}function CSSlideNewWindow(action) {var wh = ""if (action[7] || action[8] || action[9] == true) wh=action[4]-125else wh = action[4]var wf = "";	wf = wf + "width=" + action[3];wf = wf + ",height=" + wh;wf = wf + ",resizable=" + (action[5] ? "yes" : "no");wf = wf + ",scrollbars=" + (action[6] ? "yes" : "no");wf = wf + ",menubar=" + (action[7] ? "yes" : "no");wf = wf + ",toolbar=" + (action[8] ? "yes" : "no");wf = wf + ",directories=" + (action[9] ? "yes" : "no");wf = wf + ",location=" + (action[10] ? "yes" : "no");wf = wf + ",status=" + (action[11] ? "yes" : "no");		if(navigator.appVersion.charAt(0) >=4) {var sw=screen.width-20;var sh=screen.height;var newwidth=action[3]; var newheight=action[4];var positionleft=(sw-newwidth)/2;var positiontop=""if (action[7] || action[8] || action[9] == true) positiontop=(sh-newheight)/3;else positiontop=(sh-newheight)/2.5;}newwindow=window.open(action[1],action[2],wf); newwindow.focus()	if(navigator.appVersion.charAt(0) >=4) {	for(width1 = 1 ; width1 < positionleft ; width1 = width1 + 10)	newwindow.moveTo(width1,positiontop)	}}
