/* -- 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;
}
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 newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}


userAgent = window.navigator.userAgent;
browserVers = parseInt(userAgent.charAt(userAgent.indexOf("/")+1),10);
mustInitImg = true;
function initImgID() {var di = document.images; if (mustInitImg && di) { for (var i=0; i<di.length; i++) { if (!di[i].id) di[i].id=di[i].name; } mustInitImg = false;}}

function findElement(n,ly) {
	var d = document;
	if (browserVers < 4)		return d[n];
	if ((browserVers >= 6) && (d.getElementById)) {initImgID; return(d.getElementById(n))}; 
	var cd = ly ? ly.document : d;
	var elem = cd[n];
	if (!elem) {
		for (var i=0;i<cd.layers.length;i++) {
			elem = findElement(n,cd.layers[i]);
			if (elem) return elem;
		}
	}
	return elem;
}

function changeImagesArray(array) {
	if (preloadFlag == true) {
		var d = document; var img;
		for (i=0;i<array.length;i+=2) {
			img = null; var n = array[i];
			if (d.images) {
				if (d.layers) {img = findElement(n,0);}
				else {img = d.images[n];}
			}
			if (!img && d.getElementById) {img = d.getElementById(n);}
			if (!img && d.getElementsByName) {
				var elms = d.getElementsByName(n);
				if (elms) {
					for (j=0;j<elms.length;j++) {
						if (elms[j].src) {img = elms[j]; break;}
					}
				}
			}
			if (img) {img.src = array[i+1];}
		}
	}
}


function changeImages() {
	changeImagesArray(changeImages.arguments);
}


function toggleImages() {
	for (var i=0; i<toggleImages.arguments.length; i+=2) {
		if (selected == toggleImages.arguments[i])
			changeImagesArray(toggleImages.arguments[i+1]);
	}
}

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 DJintoFrameset(action){
	var myact = action[1];
	var mypar = "";
	var myparent = "";
	var newparent = "";
	var mytemp1 = "";
	var lengthOfPassedName = 0;
	var passedName = "";
	if(parent.frames.length > 0) {
		mypar = parent.location.pathname;
		if(mypar.lastIndexOf("\\") != -1){
			myparent = mypar.substring(mypar.lastIndexOf("\\")+1, mypar.length);
		} else if(mypar.lastIndexOf("/") != -1) {
			myparent = mypar.substring(mypar.lastIndexOf("/")+1, mypar.length);
		} else {
			myparent = mypar;
		}
	}
	if(myact.lastIndexOf("\\") != -1){
		newparent = myact.substring(myact.lastIndexOf("\\")+1, myact.length);
	} else if(myact.lastIndexOf("/") != -1) {
		newparent = myact.substring(myact.lastIndexOf("/")+1, myact.length);
	} else {
		newparent = myact;
	}
	if (newparent.length > 0) {
		if(parent.frames.length == 0 || myparent != newparent || (top != parent && action[2])) {
			if(action[3]) {
				mytemp1=action[1];
			} else {
				mytemp1=action[1] + "?" + escape(window.location.href);
			}
			if(!action[2]) {
				window.location.replace(mytemp1);
			} else {
				top.location.replace(mytemp1);
			}
		} else {
			if(parent.djaframeset && parent.djaframeset != "" && !action[3]) {
				mytemp1 = parent.djaframeset;
				parent.djaframeset = "";
				window.location.replace(mytemp1);
			}
		}
	}
}
//-->
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)
	}
}

// HideAllLayers.action v1.1.3 - March, 2002
// © Copyright 2000 by Walter Blady
// All rights reserved
var HALisNav4 = navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) == 4;
var HALisIE4 = navigator.appVersion.indexOf("MSIE 4") >= 0;
var HALW3C = document.getElementById ? true : false;
var HALvis, HALhid;
function WBHideAllLayers(action) { 
	if (HALVersion()) {
		HALvis = (HALW3C || HALisIE4) ? "visible" : "show";
		HALhid = (HALW3C || HALisIE4) ? "hidden" : "hide";
		HALState = action[1];
		var path = (action[4].length > 0) ? eval(action[4] + ".document") : document;
		if (HALW3C) {
			var len = path.getElementsByTagName("div").length;
		}
		else if (HALisIE4) {
			var len = path.all.tags("div").length;
		}
		else if (HALisNav4) {
			var len = path.layers.length;
		}
		for (var i = 0; i < len; i++) {
			if (HALW3C) {
				var HALDiv = path.getElementsByTagName("div");
				if (action[2].length > 0 ) {
					if (HALDiv[i].id.indexOf(action[2]) > -1) {
						HALDiv[i].style.visibility = action[1] ? HALhid : HALvis;
						var innerObjs = HALDiv[i].getElementsByTagName("div");
						if (action[3]) {
							for (var j = 0; j < innerObjs.length; j++) {
								innerObjs[j].style.visibility = action[1] ? HALhid : HALvis;
							}
						}
					}
				}
				else {
					if (HALDiv[i].id.length > 0) HALDiv[i].style.visibility = action[1] ? HALhid : HALvis;
				}
			}
			else if (HALisIE4) {
				var HALDiv = path.all.tags("div")[i];
				if (action[2].length > 0 ) {
					if (HALDiv.id.indexOf(action[2]) > -1) {
						HALDiv.style.visibility = action[1] ? HALhid : HALvis;
						if (action[3]) {
							for (var j = 0; j < document.all[action[2]].children.length; j++) {
								HALDiv.children[j].style.visibility = action[1] ? HALhid : HALvis;
							}
						}	
					}
				}
				else {
					if (HALDiv[i].id.length > 0) HALDiv.style.visibility = action[1] ? HALhid : HALvis;
				}
			}
			else if (HALisNav4) {
				var obj = path.layers[i];
				HALFindLayerObject(action, obj, action[2]);
			}
		}
	}
	return;
}
function HALFindLayerObject(action, layerObj, layerName) {
	if (layerName.length > 0) {
		if (layerObj.id.indexOf(layerName) > -1) {
			layerObj.visibility = action[1] ? HALhid : HALvis;
			if (action[3]) {
				for (var i = 0; i < layerObj.layers.length; i++) {
					layerObj.layers[i].visibility = action[1] ? HALhid : HALvis;
					if (layerObj.layers[i].layers.length == 0) {
						return;
					}
					else {
						var obj = layerObj.layers[i];
						layerName = layerObj.layers[i].id;
						HALFindLayerObject(action, obj, layerName); 
					}
				}
			}
		}
	}
	else {
		layerObj.visibility = action[1] ? HALhid : HALvis;
	}
	if (layerObj.layers.length == 0) {
		return;
	}
	else {
		for (var i = 0; i < layerObj.layers.length; i++) {
			var obj = layerObj.layers[i];
			HALFindLayerObject(action, obj, layerName); 
		}
	}
	return layerObj;
}
function HALVersion() {
	return true;
}
//
//-->

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);
	}
}

// WBCyberGallerySetup v6.1 - August 27, 2010
// Copyright © 2003 by Walter Blady
// All rights reserved
var CGisNav4 = navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) == 4;
var CGisIE4 = navigator.appVersion.indexOf("MSIE 4") >= 0;
var CGisIE = window.navigator.userAgent.indexOf("MSIE") >= 0;
var CGisNN = window.navigator.userAgent.indexOf("Netscape") >= 0 || window.navigator.userAgent.indexOf("Navigator") >= 0;
var CGisOpera = window.navigator.userAgent.indexOf("Opera") >= 0;
var CGisW3C = document.getElementById ? true : false;
var CGisWin = navigator.platform.indexOf("Win") > -1;
var CGisMac = navigator.platform.indexOf("Mac") > -1;
var CGisMacIE = CGisMac && CGisIE;
var CGisMacNN = CGisMac && CGisNN && parseInt(navigator.appVersion.charAt(0)) < 8;
var CGisWinIE = CGisWin && navigator.appName.indexOf("Explorer") > -1;
var CGisWinIE7 = CGisWin && navigator.appVersion.indexOf("MSIE 7") >= 0;
var CGimgm = null, CGboxm = null, CGboxb = null, CGboxw = null, CGboxc = null, CGboxl = null, CGimgn, CGvis, CGhid;
var CGboxmLeft = 0, CGboxmTop = 0, CGboxcHeight = 0, CGboxcWidth = 0, CGSnameTag = "", CGSaction, CGSdelay, CGNNfixW, CGNNfixH;
var CGendInit = false;
var CGvis = (CGisW3C || CGisIE4) ? "visible" : "show";
var CGhid = (CGisW3C || CGisIE4) ? "hidden" : "hide";
document.writeln('<link href="CyberGallery_Folder/CGCSS.css" rel="stylesheet" type="text/css" />');
document.writeln('<div id="CGbackgroundLayer"></div>');
document.writeln('<div id="CGimageLayer"><img id="CGpix" src="#" alt="" name="CGpix" border="0" /></div>');
document.writeln('<div id="CGwatermarkLayer"></div>');
document.writeln('<div id="CGzipLayer"></div>');
document.writeln('<div id="CGcaptionLayer"></div>');
document.writeln('<div id="CGlineLayer"><img id="CGpix2" src="#" alt="" name="CGpix2" border="0" /></div>');
document.writeln('<div id="CGshadowLayer"></div>');
function WBCyberGallerySetup(action) {
	if (CGSVersion()) {
		CGSdelay = 100;
		CGSaction =  action;
		for (var i = 0; i < document.styleSheets.length; i++) {
			found = document.styleSheets[i].href && document.styleSheets[i].href.indexOf("CGCSS.css") > -1;
			if (found) break;
		}
		if (!found) {
			var mess = "CyberGallerySetup can not find the CGCSS.css style.\n\n";
			mess += "The CyberGallery_Folder containing the CGCSS.css style \nsheet must be in the same folder as this page.";
			alert(mess);
			return;
		}
		CGSsetDelay = setTimeout("CGSFinishUp()", 300);
	}
	return;
}
function CGSFinishUp() {
	window.onscroll = CGScrollSet;
	window.onresize = CGScrollSet;
	CGboxb = document.getElementById("CGbackgroundLayer");
	CGboxb.style.top = 0 + "px";
	CGboxb.style.left = 0 + "px";
	CGboxb.doOpacity = CGDOpacity;
	CGboxb.dimming = CGSaction[1];
	CGboxb.opa = CGboxb.dimming ? parseInt(CGSaction[2]) : 0;
	CGboxb.showHide = CGSShowHide;
	CGboxb.style.backgroundColor = "#" + CGSaction[3];
	CGboxb.bimage = CGSaction[4];
	CGboxb.isImage = CGboxb.bimage.indexOf("Reference!") == -1 && CGboxb.bimage != "#";
	CGboxb.style.backgroundRepeat = "no-repeat";
	CGboxb.style.backgroundPosition = "center";
	CGboxm = document.getElementById("CGimageLayer");
	CGboxm.setSize = CGSSetBoxSize;
	CGboxm.scrollto = CGSScrollTo;
	CGboxm.showHide = CGSShowHide;
	if (CGboxm.addEventListener) {
		CGboxm.addEventListener("mousedown", CGSDoHREF, false);
	}
	else if (CGboxm.attachEvent) {
		CGboxm.attachEvent("onmousedown", CGSDoHREF);
	}
	else {
		CGboxm.onmousedown = CGSDoHREF;
	}
	CGboxm.autoClose = CGSaction[8];
	CGboxm.transMode = CGSaction[30];
	CGboxm.transTics = parseInt(CGSaction[31]);
	CGboxm.transSpeed = parseInt(CGSaction[32]);
	CGboxm.style.backgroundColor = "#FFFFFF";
	var border = CGSaction[6].replace(/\D/g, "");
	CGboxm.borderSize = border > 0 ? parseInt(CGSaction[6]) : 0;
	CGboxm.style.border = CGSaction[7] + " " + "#" + CGSaction[5] + " " + CGboxm.borderSize + "px";
	CGimgm = CGboxm.lastChild;
	CGboxw = document.getElementById("CGwatermarkLayer");
	if (!CGisMacIE) {
		CGboxw.isImage = CGSaction[9].indexOf("Reference!") == -1 && CGSaction[9] != "#";
		if (CGboxw.isImage) {
			CGboxw.style.backgroundImage = "url(" + CGSaction[9] + ")";
			CGboxw.style.backgroundRepeat = "no-repeat";
			CGboxw.style.backgroundPosition = "center";
			CGboxw.backgroundDefault = CGSaction[9];
			CGboxw.repeateDefault = CGboxw.style.backgroundRepeat;
			CGboxw.positionDefault = CGboxw.style.backgroundPosition;
		}
	}
	CGboxw.doOpacity = CGDOpacity;
	CGboxw.setSize = CGSSetBoxSize;
	CGboxw.scrollto = CGSScrollTo;
	CGboxw.showHide = CGSShowHide;
	CGboxw.opa = parseInt(CGSaction[10]);
	CGboxw.opaDefault = CGboxw.opa;
	CGboxc = document.getElementById("CGcaptionLayer");
	CGboxc.scrollto = CGSScrollTo;
	CGboxc.showHide = CGSShowHide;
	CGboxc.doOpa = CGDOpacity;
	if (CGSaction[11] != 0) {
		CGboxc.style.fontFamily = CGSaction[11] == 1 ? CGSaction[17] : CGSaction[11];
	}
	CGboxc.fontFamilyDefault = CGboxc.style.fontFamily;
	if (parseInt(CGSaction[12]) != 0) CGboxc.style.fontSize = CGSaction[12].search(/\D/g) != -1 ? CGSaction[12] : CGSaction[12] + "px";
	CGboxc.fontSizeDefault = CGboxc.style.fontSize;
	var CGa13 = parseInt(CGSaction[13]) == 0 ?  CGSaction[12] : CGSaction[13];
	if (parseInt(CGa13) != 0) CGboxc.style.lineHeight = CGa13.search(/\D/g) != -1 ? CGa13 : CGa13 + "px";
	CGboxc.lineHeightDefault = CGboxc.style.lineHeight;
	if (CGSaction[14] != "") CGboxc.style.fontWeight = CGSaction[14];
	CGboxc.fontWeightDefault = CGboxc.style.fontWeight;
	if (CGSaction[15] != "") CGboxc.style.fontStyle = CGSaction[15];
	CGboxc.fontStyleDefault = CGboxc.style.fontStyle;
	CGboxc.style.color = "#" + CGSaction[16];
	CGboxc.colorDefault = CGboxc.style.color;
	if (parseInt(CGSaction[18]) != 0) CGboxc.style.textIndent = CGSaction[18].search(/\D/g) != -1 ? CGSaction[18] : CGSaction[18] + "px";
	CGboxc.textIndentDefault = CGboxc.style.textIndent;
	if (parseInt(CGSaction[19]) != 0) CGboxc.style.wordSpacing = CGSaction[19].search(/\D/g) != -1 ? CGSaction[19] : CGSaction[19] + "px";
	CGboxc.wordSpacingDefault = CGboxc.style.wordSpacing;
	if (parseInt(CGSaction[20]) != 0) CGboxc.style.letterSpacing = CGSaction[20].search(/\D/g) != -1 ? CGSaction[20] : CGSaction[20] + "px";
	CGboxc.letterSpacingDefault = CGboxc.style.letterSpacing;
	if (parseInt(CGSaction[21]) != 0) CGboxc.style.margin = CGSaction[21].search(/\D/g) != -1 ? CGSaction[21] : CGSaction[21] + "px";
	CGboxc.mar = parseInt(CGSaction[21]);
	CGboxc.marDefault = CGboxc.mar;
	if (parseInt(CGSaction[22]) != 0) CGboxc.style.padding = CGSaction[22].search(/\D/g) != -1 ? CGSaction[22] : CGSaction[22] + "px";
	CGboxc.pad = parseInt(CGSaction[22]);
	CGboxc.padDefault = CGboxc.pad;
	CGboxc.fixedWidth = parseInt(CGSaction[23]) > 0 ? parseInt(CGSaction[23]) : 0;
	CGboxc.fixedWidthDefault = CGboxc.fixedWidth;
	var border = CGSaction[25].replace(/\D/g, "");
	CGboxc.borderSize = border != "0" ? parseInt(border) : 0;
	CGboxc.style.border = CGSaction[26] + " " + "#"+ CGSaction[24] + " " + CGboxc.borderSize + "px";
	CGboxc.borderDefault = CGboxc.style.border;
	if (CGSaction[27] == 0) {
		CGboxc.style.backgroundColor = null;
	}
	else if (CGSaction[27] == 1) {
		CGboxc.style.backgroundColor = "#" + CGSaction[28]
	}
	else if (CGSaction[27] == 2 && !CGisMacIE) {
		CGboxc.style.backgroundImage = "url(" + CGSaction[29] + ")";
		CGboxc.style.backgroundRepeat = "no-repeat";
		CGboxc.style.backgroundPosition = "center";
	}
	CGboxc.backgroundColorDefault = CGboxc.style.backgroundColor;
	CGboxc.backgroundImageDefault = CGboxc.style.backgroundImage;
	CGboxs = document.getElementById("CGshadowLayer");
	CGboxs.showHide = CGSShowHide;
	CGboxs.shadowOn = CGSaction[33];
	CGboxs.style.backgroundColor = CGboxs.shadowOn ? "#" + CGSaction[34] : "";
	CGboxs.shadowVoffset = CGboxs.shadowOn ? parseInt(CGSaction[35]) : 0;
	CGboxs.shadowHoffset = CGboxs.shadowOn ? parseInt(CGSaction[36]) : 0;
	CGboxs.doOpacity = CGDOpacity;
	CGboxs.opa = parseInt(CGSaction[37]);
	CGboxs.opaDefault = CGboxs.opa;
	CGboxs.shadowOnDefault = CGboxs.shadowOn;
	CGboxs.backgroundColorDefault = CGboxs.style.backgroundColor;
	CGboxs.shadowVoffsetDefault = CGboxs.shadowVoffset;
	CGboxs.shadowHoffsetDefault = CGboxs.shadowHoffset;
	CGboxl = document.getElementById("CGlineLayer");
	CGboxl.showHide = CGSShowHide;
	CGboxl.windowOn = CGSaction[38];
	CGboxl.windowBorder = CGboxl.windowOn > 0 ? parseInt(CGSaction[39]) : 0;
	CGboxl.style.backgroundColor = CGboxl.windowOn > 0 && CGSaction[42].indexOf("Reference!") > -1 ? "#FFFFFF" : "";
	CGboxl.scrollSpeed = parseInt(CGSaction[40]);
	CGboxl.scrollInterval = parseInt(CGSaction[41]);
	CGimgl = CGboxl.lastChild;
	CGboxl.image = CGSaction[42];
	CGboxl.keylineColor = CGSaction[24] != "" ? "#" + CGSaction[24] : "#FFFFFF";
	CGboxl.keyline = CGSaction[42].toLowerCase().indexOf("keyline.") > -1;
	CGboxl.style.border = CGboxl.keyline ? "solid " + CGboxl.keylineColor + " 1px" : "solid #FFFFFF 0px";
	CGboxl.keylineDefault = CGboxl.keyline;
	CGboxl.keylineColorDefault = CGboxl.keylineColor;
	CGboxl.keylineBorderDefault = CGboxl.style.border;
	CGboxl.windowOnDefault = CGboxl.windowOn;
	CGboxl.windowBorderDefault = CGboxl.windowBorder;
	CGboxl.backgroundColorDefault = CGboxl.style.backgroundColor;
	CGboxl.scrollSpeedDefault = CGboxl.scrollSpeed;
	CGboxl.scrollIntervalDefault = CGboxl.scrollInterval;
	CGboxl.imageDefault = CGboxl.image;
	CGboxz = document.getElementById("CGzipLayer");
	CGboxz.trigger = CGboxm;
	CGboxz.scrollto = CGSScrollTo;
	CGboxz.showHide = CGSShowHide;
	CGboxz.scrollSpeed = CGboxl.scrollSpeed;
	CGboxz.scrollInterval = CGboxl.scrollInterval;
	if (CGSaction[43] != 0) {
		CGboxz.style.fontFamily = CGSaction[43] == 1 ? CGSaction[49] : CGSaction[43];
	}
	CGboxz.fontFamilyDefault = CGboxc.style.fontFamily;
	if (parseInt(CGSaction[44]) != 0) CGboxz.style.fontSize = CGSaction[44].search(/\D/g) != -1 ? CGSaction[44] : CGSaction[44] + "px";
	CGboxz.fontSizeDefault = CGboxz.style.fontSize;
	var CGa13 = parseInt(CGSaction[45]) == 0 ?  CGSaction[44] : CGSaction[45];
	if (parseInt(CGa13) != 0) CGboxz.style.lineHeight = CGa13.search(/\D/g) != -1 ? CGa13 : CGa13 + "px";
	CGboxz.lineHeightDefault = CGboxz.style.lineHeight;
	if (CGSaction[46] != "") CGboxz.style.fontWeight = CGSaction[46];
	CGboxz.fontWeightDefault = CGboxz.style.fontWeight;
	if (CGSaction[47] != "") CGboxz.style.fontStyle = CGSaction[47];
	CGboxz.fontStyleDefault = CGboxz.style.fontStyle;
	CGboxz.style.color = "#" + CGSaction[48];
	CGboxz.colorDefault = CGboxz.style.color;
	if (parseInt(CGSaction[50]) != 0) CGboxz.style.textIndent = CGSaction[50].search(/\D/g) != -1 ? CGSaction[50] : CGSaction[50] + "px";
	CGboxz.textIndentDefault = CGboxz.style.textIndent;
	if (parseInt(CGSaction[51]) != 0) CGboxz.style.wordSpacing = CGSaction[51].search(/\D/g) != -1 ? CGSaction[51] : CGSaction[51] + "px";
	CGboxz.wordSpacingDefault = CGboxz.style.wordSpacing;
	if (parseInt(CGSaction[52]) != 0) CGboxz.style.letterSpacing = CGSaction[52].search(/\D/g) != -1 ? CGSaction[52] : CGSaction[52] + "px";
	CGboxz.letterSpacingDefault = CGboxz.style.letterSpacing;
	if (parseInt(CGSaction[53]) != 0) CGboxz.style.margin = CGSaction[53].search(/\D/g) != -1 ? CGSaction[53] : CGSaction[53] + "px";
	CGboxz.mar = parseInt(CGSaction[53]);
	CGboxz.marDefault = CGboxz.mar;
	if (parseInt(CGSaction[54]) != 0) CGboxz.style.padding = CGSaction[54].search(/\D/g) != -1 ? CGSaction[54] : CGSaction[54] + "px";
	CGboxz.pad = parseInt(CGSaction[54]);
	CGboxz.padDefault = CGboxz.pad;
	CGboxz.fixedWidth = parseInt(CGSaction[55]) > 0 ? parseInt(CGSaction[55]) : 0;
	CGboxz.fixedWidthDefault = CGboxz.fixedWidth;
	if (CGSaction[56] != "") CGboxz.style.textAlign = CGSaction[56];
	CGboxz.textAlignDefault = CGboxz.style.textAlign;
	if (CGSaction[57] == 0) {
		CGboxz.style.backgroundColor = null;
	}
	else if (CGSaction[57] == 1) {
		CGboxz.style.backgroundColor = "#" + CGSaction[58]
	}
	else if (CGSaction[57] == 2 && !CGisMacIE) {
		CGboxz.style.backgroundImage = "url(" + CGSaction[59] + ")";
		CGboxz.style.backgroundRepeat = "no-repeat";
		CGboxz.style.backgroundPosition = "center";
	}
	CGboxz.backgroundColorDefault = CGboxz.style.backgroundColor;
	CGboxz.backgroundImageDefault = CGboxz.style.backgroundImage;
	if (CGisIE && !CGisMacIE) {
		if (CGboxb) CGboxb.style.filter = "progid:DXImageTransform.Microsoft.Alpha(enebled=true)";
		CGboxm.style.filter = "progid:DXImageTransform.Microsoft.Alpha(enebled=true)";
		CGboxc.style.filter = "progid:DXImageTransform.Microsoft.Alpha(enebled=true)";
		CGboxs.style.filter = "progid:DXImageTransform.Microsoft.Alpha(enebled=true)";
	}
	if (CGSaction[11] != 0) {
		CGboxc.style.fontFamily = CGSaction[11] == 1 ? CGSaction[17] : CGSaction[11];
	}
	CGboxc.fontFamilyDefault = CGboxc.style.fontFamily;
	if (parseInt(CGSaction[12]) != 0) CGboxc.style.fontSize = CGSaction[12].search(/\D/g) != -1 ? CGSaction[12] : CGSaction[12] + "px";
	CGboxc.fontSizeDefault = CGboxc.style.fontSize;
	var CGa13 = parseInt(CGSaction[13]) == 0 ?  CGSaction[12] : CGSaction[13];
	if (parseInt(CGa13) != 0) CGboxc.style.lineHeight = CGa13.search(/\D/g) != -1 ? CGa13 : CGa13 + "px";
	CGboxc.lineHeightDefault = CGboxc.style.lineHeight;
	if (CGSaction[14] != "") CGboxc.style.fontWeight = CGSaction[14];
	CGboxc.fontWeightDefault = CGboxc.style.fontWeight;
	if (CGSaction[15] != "") CGboxc.style.fontStyle = CGSaction[15];
	CGboxc.fontStyleDefault = CGboxc.style.fontStyle;
	CGboxc.style.color = "#" + CGSaction[16];
	CGboxc.colorDefault = CGboxc.style.color;
	if (parseInt(CGSaction[18]) != 0) CGboxc.style.textIndent = CGSaction[18].search(/\D/g) != -1 ? CGSaction[18] : CGSaction[18] + "px";
	CGboxc.textIndentDefault = CGboxc.style.textIndent;
	if (parseInt(CGSaction[19]) != 0) CGboxc.style.wordSpacing = CGSaction[19].search(/\D/g) != -1 ? CGSaction[19] : CGSaction[19] + "px";
	CGboxc.wordSpacingDefault = CGboxc.style.wordSpacing;
	if (parseInt(CGSaction[20]) != 0) CGboxc.style.letterSpacing = CGSaction[20].search(/\D/g) != -1 ? CGSaction[20] : CGSaction[20] + "px";
	CGboxc.letterSpacingDefault = CGboxc.style.letterSpacing;
	if (parseInt(CGSaction[21]) != 0) CGboxc.style.margin = CGSaction[21].search(/\D/g) != -1 ? CGSaction[21] : CGSaction[21] + "px";
	CGboxc.mar = parseInt(CGSaction[21]);
	CGboxc.marDefault = CGboxc.mar;
	if (parseInt(CGSaction[22]) != 0) CGboxc.style.padding = CGSaction[22].search(/\D/g) != -1 ? CGSaction[22] : CGSaction[22] + "px";
	CGboxc.pad = parseInt(CGSaction[22]);
	CGboxc.padDefault = CGboxc.pad;
	CGboxc.fixedWidth = parseInt(CGSaction[23]) > 0 ? parseInt(CGSaction[23]) : 0;
	CGboxc.fixedWidthDefault = CGboxc.fixedWidth;
	var border = CGSaction[25].replace(/\D/g, "");
	CGboxc.borderSize = border != "0" ? parseInt(border) : 0;
	CGboxc.style.border = CGSaction[26] + " " + "#" + CGSaction[24] + " " + CGboxc.borderSize + "px";
	CGboxc.borderDefault = CGboxc.style.border;
	if (CGSaction[27] == 0) {
		CGboxc.style.backgroundColor = null;
	}
	else if (CGSaction[27] == 1) {
		CGboxc.style.backgroundColor = "#" + CGSaction[28]
	}
	else if (CGSaction[27] == 2 && !CGisMacIE) {
		CGboxc.style.backgroundImage = "url(" + CGSaction[29] + ")";
		CGboxc.style.backgroundRepeat = "no-repeat";
		CGboxc.style.backgroundPosition = "center";
	}
	CGboxc.backgroundColorDefault = CGboxc.style.backgroundColor;
	CGboxc.backgroundImageDefault = CGboxc.style.backgroundImage;
	CGboxm.originnerHTML = CGboxm.innerHTML;
	CGendInit = true;
	return;
}
function CGSGetImageObj(frameName, imgObjName) {
	var path = frameName.length > 0 ? frameName + "." : "";
	if (CGisW3C || CGisIE) {
		var baseImage = eval(path + "document.images." + imgObjName);
	}
	else {
		baseImage = parseInt(navigator.appVersion.charAt(0)) > 3 ? CGSFindImgElement(imgObjName, 0, path) : eval(path + "document.images[imgObjName]");
	}
	return baseImage;
}
function CGSFindImgElement(baseImage, thisLayer, path) {
	if (path.length != "") {
		var thisDocument = thisLayer ? thisLayer.document : eval(path + "document");
	}
	else {
		var thisDocument = thisLayer ? thisLayer.document : document;
	}
	var imageObj = thisDocument[baseImage];
	if (imageObj) {
		return imageObj;
	}
	else {
		for (var i = 0; i < thisDocument.layers.length; i++) {
			imageObj = CGSFindImgElement(baseImage, thisDocument.layers[i], path);
			if (imageObj) {
				break;
			}
		}
	}
	return imageObj;
}
function CGSGetBoxObj(frameName, imgName) {
	var path = frameName.length > 0 ? frameName + "." : "";
	if (CGisW3C) {
		var layerObj = eval(path + 'document.getElementById("' + imgName + '")');
	}
	else if (CGisIE4) {
		var layerObj = eval(path + "document.all." + imgName);
	}
	else {
		var layerObj = CGSFindLayerObject(path, imgName, 0);
	}
	return layerObj;
}
function CGSFindLayerObject(path, layer, thisLayer) {
	if (thisLayer) {
		var thisDocument = eval(path + "thisLayer.document");
	}
	else {
		var thisDocument = eval(path + "document");
	}
	var layerObj = thisDocument[layer];
	if (layerObj) {
		return layerObj;
	}
	else {
		for (var i = 0; i < thisDocument.layers.length; i++) {
			layerObj = CGSFindLayerObject("", layer, thisDocument.layers[i]);
			if (layerObj) {
				break;
			}
		}
	}
	return layerObj;
}
function CGDOpacity(opa) {
	if (CGisIE && !CGisMacIE) {
		this.style.filter = "progid:DXImageTransform.Microsoft.Alpha(enebled=true)";
	}
	if (this.style.MozOpacity != null) {
		this.style.MozOpacity = opa != null ? opa/100 : null;
	}
	else if (CGisIE && !CGisMacIE) {
		this.filters.item("DXImageTransform.Microsoft.Alpha").opacity = opa != null ? opa : -0;
	}
	else {
		this.style.opacity = opa != null ? opa/100 : 0;
	}
	return;
}
function CGSSetBoxSize(w, h) {
	if (CGisW3C || CGisIE4) {
		this.style.width = w + "px";
		this.style.height = h + "px";
	}
	else {
		this.width = w;
		this.height = h;
	}
	return;
}
function CGSScrollTo(x, y) {
	if (CGisW3C) {
		this.style.left = x + "px";
		this.style.top = y + "px";
	}
	else if (CGisIE4) {
		this.style.pixelLeft = x;
		this.style.pixelTop = y;
	}
	else {
		this.moveTo(x, y);
	}
	return;
}
function CGSShowHide(state) {
	if (CGisW3C || CGisIE4) {
		this.style.visibility = state;
	}
	else if (CGisNav4) {
		this.visibility = state;
	}
	return;
}
function CGSDoHREF() {
	if (this.url && this.url != "" && this.url != "#") {
		if (this.win == 0) {
			var w = eval(this.path + "window.location");
			w.href = this.url;
		}
		else {	
			CGNewWind = window.open(this.url, "");
		}
	}
	return;
}
function CGScrollSet() {
	if (CGboxb && CGboxb.style.visibility == "visible") {
		var st = this.document.body.scrollTop + this.document.documentElement.scrollTop, sl = this.document.body.scrollLeft + this.document.documentElement.scrollLeft;
		if (this.innerHeight) {
			CGboxb.style.height = this.innerHeight + st + "px";
			CGboxb.style.width = this.innerWidth + sl + "px";
		}
		else {
			var decw = this.document.documentElement.clientWidth, dbcw = this.document.body.clientWidth;
			var dech = this.document.documentElement.clientHeight, dbch = this.document.body.clientHeight;
			CGboxb.style.width = decw > 0 ? decw + sl + "px" : dbcw + sl + "px";
			CGboxb.style.height = dech > 0 ? dech + st + "px" : dbch + st + "px";
		}
	}
	return;
}
function CGSVersion() {
	return true;
}
//
//-->

// WBCyberGallery v7.3.1 - November 13, 2010
// Copyright © 2003 by Walter Blady
// All rights reserved
var CGisNav4 = navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) == 4;
var CGisIE4 = navigator.appVersion.indexOf("MSIE 4") >= 0;
var CGisIE = window.navigator.userAgent.indexOf("MSIE") >= 0;
var CGisNN = window.navigator.userAgent.indexOf("Netscape") >= 0 || window.navigator.userAgent.indexOf("Navigator") >= 0;
var CGisOpera = window.navigator.userAgent.indexOf("Opera") >= 0;
var CGisW3C = document.getElementById ? true : false;
var CGisWin = navigator.platform.indexOf("Win") > -1;
var CGisMac = navigator.platform.indexOf("Mac") > -1;
var CGisMacIE = CGisMac && CGisIE;
var CGisMacNN = CGisMac && CGisNN && parseInt(navigator.appVersion.charAt(0)) < 8;
var CGisWinIE = CGisWin && navigator.appName.indexOf("Explorer") > -1;
var CGisWinIE7 = CGisWin && navigator.appVersion.indexOf("MSIE 7") >= 0;
var CGsetLoadDelay = 0, CGsetShowDelay = 0, CGleft, CGtop, CGaction, CGboxb, CGboxm, CGboxw, CGboxz, CGimgm, CGduration = "";
var CGslideTimer = 0, CGslideIndex = 0, CGtimer = 0, CGtotalSlides = 0,CGhid, CGvis, CGcaptions, CGNNfixH, CGNNfixW;
var CGpause = false, CGadvance = true, CGslideCounted = false, CGloop, CGholdLoop, CGendOfLoop = false, CGdirection, CGDelayStart, CGinitDelay = false;
var CGvis = (CGisW3C || CGisIE4) ? "visible" : "show";
var CGhid = (CGisW3C || CGisIE4) ? "hidden" : "hide";
function WBCyberGalleryStart(action) {
	if (!CGinitDelay) {
		var delay = action[2].indexOf("*") > -1 ? 0 : parseInt(action[2]);
		CGiInitDelay = true;
	}
	var delay2 = !CGDelayStart ? delay*1000 : 0;
	CGDelayStart = setTimeout('WBCyberGallery("' + action + '")', delay2);
	return;
}
function WBCyberGallery(action) {
	if (typeof action == "string") action = action.split(",");
	if (CGVersion()) { 
		CGaction = action;
		var path = CGaction[20] == "" ? "" : CGaction[20] + ".";
		var path2 = CGaction[20] == "" ? "" : CGaction[20];
		if (!eval(path + "CGendInit")) {
			WBCyberGalleryStart(action);
			return;
		}
		if (parseInt(action[18]) > 3) {
			try {
				CGzip1;
			}
			catch (errorCode) {
				var mess = "CyberGallery can not find the first Zip notice in the CGCaptions.js file.\n";
				mess += "That file must be linked to this page and there must be a Zip 1 notice when using zip notices.";
				alert(mess);
				return;
			}
		}
		CGaction = action;
		CGloop = false;
		if (action[1] < 6) {
			CGboxm = eval(path + "CGboxm");
			CGboxw = eval(path + "CGboxw");
			CGboxz = eval(path + "CGboxz");
			CGboxc = eval(path + "CGboxc");
			CGboxl = eval(path + "CGboxl");
			CGboxs = eval(path + "CGboxs");
			CGboxb = eval(path + "CGboxb");
			CGimgl = eval(path + "CGimgl");
			CGboxm.slideMode = CGaction[1] > 0 && CGaction[1] < 6 ? true : false;
			if (CGboxm.CGtransInt) clearInterval(CGboxm.CGtransInt);
			CGSdelay = eval(path + "CGSdelay");
			CGboxm.action = action;
			CGboxm.duration = "";
			CGboxm.innerHTML = CGboxm.originnerHTML;
			CGimgm = CGboxm.lastChild;
			CGboxm.path = path;
			CGboxm.path2 = path2;
			CGboxm.win = CGaction[22];
			CGboxm.url = CGaction[21].indexOf("Reference!") == -1 ? CGaction[21] : "#";
			CGboxm.defaultUrl = CGboxm.url;
			CGboxm.cap = CGcaptions != null;
			CGboxm.wpos = action[10];
			CGboxm.left = action[11] != "" ? parseInt(action[11]) : 0;
			CGboxm.top = action[12] != "" ? parseInt(action[12]) : 0;
			CGboxm.swipeOver = false;
			CGboxm.pro = action[18] > 0;
			if (CGboxm.pro) {
				if (!CGboxb.dimming) CGboxb.opa = 0;
			}
			CGboxm.swf = CGDoSWF;
			CGboxm.isswffile = false;
			CGboxm.mov = CGDoMOV;
			CGboxm.ismovfile = false;
			CGboxm.loop = action[15];
			CGboxm.autoplay = action[16];
			CGboxm.controller = action[17];
			CGboxm.mar = action[18];
			if (CGboxm.mar == 2) {
				CGDoCopyrightMark();
			}
			else {
				CGDONotCopyrightMark();
			}
			CGboxw.zip = CGboxz;
			CGboxw.zip.miniFlyoutMessage = CGZipNotice;
			if (action[18] == 4 || action[18] == 5) {
				CGboxw.zip.miniFlyoutMessage(parseInt(action[19]));
				CGboxw.onmousemove = CGDoZipOpen;
				CGZipOn();
			}
			else {
				CGboxw.zip.miniFlyoutMessage = null;
				CGboxw.onmousemove = null;
				CGZipOff();
			}
			CGboxc.sou = action[5];
			CGboxc.pos = action[6];
			CGboxc.ali = action[7];
			CGboxc.cid = action[8];
			CGboxc.innerHTML = "";
			CGboxc.off = action[9] != "" ? parseInt(action[9]) : 0;
			CGboxl.showHide(CGhid);
			CGboxl.windowOn = CGaction[25] != 0 ? CGaction[25] : CGboxl.windowOnDefault;
			CGboxl.windowBorder = CGboxl.windowOn > 0 && parseInt(CGaction[26]) > 0 ? parseInt(CGaction[26]) : CGboxl.windowBorderDefault;
			CGboxl.style.backgroundColor = CGaction[29].indexOf("Reference!") == -1 ? CGboxl.backgroundColorDefault : "";
			CGboxl.scrollSpeed = CGaction[27] != "" && CGaction[27] != "0" ? parseInt(CGaction[27]) : CGboxl.scrollSpeedDefault;
			CGboxl.scrollInterval = CGaction[28] != "" && CGaction[28] != "0" ? parseInt(CGaction[28]) : CGboxl.scrollIntervalDefault;
			CGimgl.src = null;
			CGimgl.src = CGaction[29].indexOf("Reference!") == -1 ? CGaction[29] : CGboxl.imageDefault;
			CGboxl.keylineColor = CGaction[48] != "FEFEFE" ? "#" + CGaction[48] : CGboxl.keylineColorDefault;
			CGboxl.keyline = CGaction[29].toLowerCase().indexOf("keyline.") > -1 ? CGaction[29].toLowerCase().indexOf("keyline.") > -1 : CGboxl.keylineDefault;
			CGboxl.style.border = CGboxl.keyline ? "solid " + CGboxl.keylineColor + " 1px" : CGboxl.keylineBorderDefault;
			CGboxs.shadowOverride = CGaction[30];
			if (CGboxs.shadowOverride) {
				CGboxs.shadowOn = true;
				CGboxs.style.backgroundColor = "#" + CGaction[31];
				CGboxs.shadowVoffset = parseInt(CGaction[32]);
				CGboxs.shadowHoffset = parseInt(CGaction[33]);
				CGboxs.opa = parseInt(CGaction[34]);
			}
			else {
				CGboxs.shadowOn = CGboxs.shadowOnDefault;
				CGboxs.style.backgroundColor = CGboxs.backgroundColorDefault;
				CGboxs.shadowVoffset = CGboxs.shadowVoffsetDefault;
				CGboxs.shadowHoffset = CGboxs.shadowHoffsetDefault;
				CGboxs.opa = CGboxs.opaDefault;
			}
			if (CGaction[35] != 0) {
				CGboxc.style.fontFamily = CGaction[35] == 1 ? CGaction[41] : CGaction[35];
			}
			else CGboxc.style.fontFamily = CGboxc.fontFamilyDefault;
			if (parseInt(CGaction[36]) != 0) {
				CGboxc.style.fontSize = CGaction[36].search(/\D/g) != -1 ? CGaction[36] : CGaction[36] + "px";
			}
			else CGboxc.style.fontSize = CGboxc.fontSizeDefault;
			var CGa13 = parseInt(CGaction[37]) == 0 ?  CGaction[36] : CGaction[37];
			if (parseInt(CGa13) != 0) {
				CGboxc.style.lineHeight = CGa13.search(/\D/g) != -1 ? CGa13 : CGa13 + "px";
			}
			else CGboxc.style.lineHeight = CGboxc.lineHeightDefault;
			if (CGaction[38] != "") {
				CGboxc.style.fontWeight = CGaction[38];
			}
			else CGboxc.style.fontWeight = CGboxc.fontWeightDefault;
			if (CGaction[39] != "") {
				CGboxc.style.fontStyle = CGaction[39];
			}
			else CGboxc.style.fontStyle = CGboxc.fontStyleDefault;
			if (CGaction[40] != "00101") {
				CGboxc.style.color = "#" + CGaction[40];
			}
			else CGboxc.style.color = CGboxc.colorDefault;
			if (parseInt(CGaction[42]) != 0) {
				CGboxc.style.textIndent = CGaction[42].search(/\D/g) != -1 ? CGaction[42] : CGaction[42] + "px";
			}
			else CGboxc.style.textIndent = CGboxc.textIndentDefault;
			if (parseInt(CGaction[43]) != 0) {
				CGboxc.style.wordSpacing = CGaction[43].search(/\D/g) != -1 ? CGaction[43] : CGaction[43] + "px";
			}
			else CGboxc.style.wordSpacing = CGboxc.wordSpacingDefault;
			if (parseInt(CGaction[44]) != 0) {
				CGboxc.style.letterSpacing = CGaction[44].search(/\D/g) != -1 ? CGaction[44] : CGaction[44] + "px";
			}
			else CGboxc.style.letterSpacing = CGboxc.letterSpacingDefault;
			if (parseInt(CGaction[45]) != 0) {
				CGboxc.style.margin = CGaction[45].search(/\D/g) != -1 ? CGaction[45] : CGaction[45] + "px";
				CGboxc.mar = parseInt(CGaction[45]);
			}
			else {
				CGboxc.style.margin = CGboxc.marDefault;
				CGboxc.mar = parseInt(CGboxc.marDefault);
			}
			if (parseInt(CGaction[46]) != 0) {
				CGboxc.style.padding = CGaction[46].search(/\D/g) != -1 ? CGaction[46] : CGaction[46] + "px";
				CGboxc.pad = parseInt(CGaction[46]);
			}
			else {
				CGboxc.style.padding = CGboxc.padDefault;
				CGboxc.pad = parseInt(CGboxc.padDefault);
			}
			if (parseInt(CGaction[47]) != 0) {
				CGboxc.fixedWidth = parseInt(CGaction[47]) > 0 ? parseInt(CGaction[47]) : 0;
			}
			else CGboxc.fixedWidth = CGboxc.fixedWidthDefault;
			if (parseInt(CGaction[49]) != 0) {
				var border = parseInt(CGaction[49].replace(/\D/g, ""));
				CGboxc.borderSize = border > 0 ? border : 0;
				CGboxc.style.border = CGaction[50] + " " + "#" + CGaction[48] + " " + CGboxc.borderSize + "px";
			}
			else CGboxc.style.border = CGboxc.borderDefault;
			CGboxc.style.backgroundColor = CGaction[51] == 1 ? "#" + CGaction[52] : CGboxc.backgroundColorDefault;
			CGboxc.style.backgroundImage = CGaction[51] == 2 ? CGaction[53] : CGboxc.backgroundImageDefault;
			if (CGboxb && parseInt(action[23]) > 0) CGboxb.opa = parseInt(action[23]);
			CGboxw.opa2 = parseInt(action[24]) > 0 ? parseInt(action[24]) : CGboxw.opa;
			if (CGboxb) {
				var p = CGboxm.path2 == "" ? eval("parent") : eval(CGboxm.path2);
				var st = p.document.body.scrollTop + p.document.documentElement.scrollTop, sl = p.document.body.scrollLeft + p.document.documentElement.scrollLeft;
				if (p.innerHeight) {
					CGboxb.style.height = p.innerHeight + st + "px";
					CGboxb.style.width = p.innerWidth + sl + "px";
				}
				else {
					var decw = p.document.documentElement.clientWidth, dbcw = p.document.body.clientWidth;
					var dech = p.document.documentElement.clientHeight, dbch = p.document.body.clientHeight;
					CGboxb.style.width = decw > 0 ? decw + sl + "px" : dbcw + sl + "px";
					CGboxb.style.height = dech > 0 ? dech + st + "px" : dbch + st + "px";
				}
			}
			if (action[1] > 0 && action[1] < 6 && !CGslideCounted) {
				CGslideCounted = true;
				for (var i = 1; eval("CGImages_" + i + "()").toLowerCase() != "<end>"; i++) { }
				CGtotalSlides = i - 1;
			}
			if (CGboxm.slideMode) {
				CGReleaseAutoClose();
			}
			else if (!CGboxm.autoClose) {
				CGReleaseAutoClose();
				CGDoAutoCloseImg();
			}
			else CGDoAutoClose();
		}
		if (action[1] == 0) {
			CGQuickReturn();
			if (CGboxc.sou > 0 && CGboxc.cid != "" && !CGisNav4) {
				var caption = "";
				if (CGboxc.sou == 1) {
					caption = CGGetImageObj("", CGboxc.cid).alt;
				}
				else if (CGboxc.sou == 2 && CGboxm.cap) {
					caption = eval("CGCaption_" + CGboxc.cid + "()");
				}
				else if (CGboxc.sou == 3 && CGboxm.cap) {
					caption = eval("CGCaption_default"+ "()");
				}
				CGboxc.innerHTML = "";
				CGboxc.innerHTML = caption;
			}
			var img = action[4];
			if (img == "" && CGboxc.cid != "") {
				img = CGGetImageObj("", CGboxc.cid).src;
				if (img) {
					var ex = img.substr(img.lastIndexOf(".", img.length));
					img = img.substr(0, img.lastIndexOf(".")) + "_L" + ex;
				}
			}
			if (img != "") {
				CGboxm.isswffile = img.indexOf(".swf") == -1 ? false : true;
				CGboxm.ismovfile = img.indexOf(".mov") == -1 && img.indexOf(".wmv") == -1  && img.indexOf(".mp3") == -1 ? false : true;
				CGimgn = !CGboxm.isswffile && !CGboxm.ismovfile ? new Image() : new Object();
				CGimgn.src = null;
				CGimgn.src = img;
				if (!CGboxm.isswffile && !CGboxm.ismovfile) {
					CGimgm.src = CGimgn.src;
					if (CGaction[13] != "" && CGaction[13] != "0") CGimgm.width = parseInt(CGaction[13]);
					if (CGaction[14] != "" && CGaction[14] != "0") CGimgm.height = parseInt(CGaction[14]);
				}
				else {
					CGimgm = CGimgn;
					CGimgm.width = CGaction[13] != "" && CGaction[13] != "0" ? parseInt(CGaction[13]) : 320;
					CGimgm.height = CGaction[14] != "" && CGaction[14] != "0" ? parseInt(CGaction[14]) : 240;
					CGimgm.hidden = true;
				}
			}
			if (CGboxb && !CGboxm.isswffile && !CGboxm.ismovfile) {
				if (CGboxb.isImage && !CGimgn.complete) CGboxb.style.backgroundImage = "url(" + CGboxb.bimage + ")";
				CGboxb.showHide(CGvis);
				CGboxb.doOpacity(CGboxb.opa);
			}
			if (!CGboxm.isswffile && !CGboxm.ismovfile) {
				CGsetLoadDelay = setInterval('if (CGimgn.complete) { CGFinishUp() }', CGSdelay);
			}
			else {
				CGsetLoadDelay = setTimeout('CGFinishUp()', CGSdelay);
			}
		}
		else {
			if (action[1] == 6 && CGboxm.pro != null) {
				if (!CGpause) {
					CGdirection = CGadvance;
					clearTimeout(CGslideTimer);
				}
				else {
					CGslideIndex -= 1;
					action = CGboxm.action;
					CGaction = action;
					CGadvance = CGdirection;
					CGloop = CGholdLoop;
					if (CGboxb) CGboxb.showHide(CGvis);
					if (!CGendOfLoop) {
						CGDoSlides();
					}
				}
				CGpause = CGpause ? 0 : 1;
			}
			else if (action[1] == 7 && CGboxm.pro != null) {
				clearTimeout(CGslideTimer);
				clearInterval(CGsetLoadDelay);
				CGboxm.innerHTML = CGboxm.originnerHTML;
				CGimgm = CGboxm.lastChild;
				CGpause = false;
				CGHideAll();
				return;
			}
			if (CGboxb) {
				CGboxb.doOpacity(CGboxb.opa);
				CGboxb.showHide(CGvis);
			}
			if (action[1] == 1 || action[1] == 2) {
				clearTimeout(CGslideTimer);
				clearInterval(CGsetLoadDelay);
				CGpause = false;
				CGtimer = parseInt(action[2])*1000;
				if (action[1] == 1) {
					CGslideIndex = 0;
				}
				CGadvance = true;
				CGloop = action[3];
				CGholdLoop = CGloop;
				CGendOfLoop = false;
				CGDoSlides();
			}
			else if (action[1] == 3) {
				clearTimeout(CGslideTimer);
				clearInterval(CGsetLoadDelay);
				CGpause = false;
				CGtimer = parseInt(action[2])*1000;
				CGadvance = false;
				CGloop = action[3];
				CGholdLoop = CGloop;
				CGendOfLoop = false;
				CGDoSlides();
			}
			else if (action[1] == 4 || action[1] == 5) {
				clearTimeout(CGslideTimer);
				clearInterval(CGsetLoadDelay);
				CGadvance = action[1] == 4 ? true : false;
				CGloop = true;
				CGDoSlides();
			}
		}
	}
	return;
}
function CGDoSlides() {
	CGslideIndex += CGadvance ? 1 : -1;
	if (CGslideIndex > CGtotalSlides) {
		CGslideIndex = CGloop ? 1 : CGslideIndex + -1;
		if (!CGloop) {
			clearInterval(CGslideTimer);
			clearInterval(CGsetLoadDelay);
			CGendOfLoop = true;
			return;
		}
	}
	if (CGslideIndex < 1) {
		CGslideIndex = CGloop ? CGtotalSlides : CGslideIndex + 1;
		if (!CGloop) {
			clearTimeout(CGslideTimer);
			clearInterval(CGsetLoadDelay);
			CGendOfLoop = true;
			return;
		}
	}
	var img = eval("CGImages_" + CGslideIndex + "()");
	CGboxm.duration = CGduration ;
	CGboxm.url = CGurl && CGurl != "" ? CGurl : CGboxm.defaultUrl;
	CGboxm.showHide(CGhid);
	CGboxc.showHide(CGhid);
	CGboxw.showHide(CGhid);
	CGboxl.showHide(CGhid);
	CGboxs.showHide(CGhid);
	if (CGboxc.sou > 0 && !CGisNav4) {
		var caption = "";
		if (CGboxc.sou == 1) {
			caption = CGGetImageObj("", CGcap) ? CGGetImageObj("", CGcap).alt : "";
		}
		else if (CGboxc.sou == 2 && CGboxm.cap) {
			caption = eval("CGCaption_" + CGcap + "()");
		}
		else if (CGboxc.sou == 3 && CGboxm.cap) {
			caption = eval("CGCaption_default"+ "()");
		}
		CGboxc.innerHTML = "";
		CGboxc.innerHTML = caption;
	}
	if (img == "" && CGboxc.cid != "") {
		img = CGGetImageObj("", CGboxc.cid).src;
		if (img) {
			var ex = img.substr(img.lastIndexOf(".", img.length));
			img = img.substr(0, img.lastIndexOf(".")) + "_L" + ex;
		}
	}
	if (img != "") {
		CGboxm.isswffile = img.indexOf(".swf") == -1 ? false : true;
		CGboxm.ismovfile = img.indexOf(".mov") == -1 && img.indexOf(".wmv") == -1  && img.indexOf(".mp3") == -1 ? false : true;
		CGimgn = !CGboxm.isswffile && !CGboxm.ismovfile ? new Image() : new Object();
		CGimgn.src = null;
		CGimgn.src = img;
		CGboxm.innerHTML = CGboxm.originnerHTML;
		CGimgm = CGboxm.lastChild;
		if (!CGboxm.isswffile && !CGboxm.ismovfile) {
			CGimgm.src = CGimgn.src;
			if (CGaction[13] != "" && CGaction[13] != "0") CGimgm.width = parseInt(CGaction[13]);
			if (CGaction[14] != "" && CGaction[14] != "0") CGimgm.height = parseInt(CGaction[14]);
			if (CGwidth != "") CGimgm.width = parseInt(CGwidth);
			if (CGheight != "") CGimgm.height = parseInt(CGheight);
		}
		else {
			CGimgm = CGimgn;
			CGimgm.width = CGaction[13] != "" && CGaction[13] != "0" ? parseInt(CGaction[13]) : 320;
			CGimgm.height = CGaction[14] != "" && CGaction[14] != "0" ? parseInt(CGaction[14]) : 240;
			if (CGwidth != "") CGimgm.width = parseInt(CGwidth);
			if (CGheight != "") CGimgm.height = parseInt(CGheight);
			if (CGimgm.width == "") CGimgm.width = 320;
			if (CGimgm.height == "") CGimgm.height = 240;
			CGimgm.hidden = true;
		}
	}
	if (CGboxb && !CGboxm.isswffile && !CGboxm.ismovfile) {
		if (CGboxb.isImage && !CGimgn.complete) CGboxb.style.backgroundImage = "url(" + CGboxb.bimage + ")";
		CGboxb.showHide(CGvis);
		CGboxb.doOpacity(CGboxb.opa);
	}
	if (!CGboxm.isswffile && !CGboxm.ismovfile) {
		CGsetLoadDelay = setInterval('if (CGimgn.complete) { CGFinishUp() }', CGSdelay);
	}
	else {
		CGsetLoadDelay = setTimeout('CGFinishUp()', CGSdelay);
	}
	return;
}
function CGFinishUp() {
	clearInterval(CGsetLoadDelay);
	if (CGboxb) CGboxb.style.backgroundImage = !CGisOpera && !CGisIE ? null : "url('')";
	CGboxm.setSize(CGimgm.width, CGimgm.height);
	if (!CGisNav4 && CGboxc.sou > 0) {
		var offset = CGboxc.off;
		var borsiz = CGboxc.pos == 0 || CGboxc.pos == 3 || CGboxc.pos == 4 ? 0 : CGboxm.borderSize;
		if (!CGisIE) {
			var width = CGboxc.fixedWidth == 0 ? (parseInt(CGboxm.style.width) + borsiz*2) - CGboxc.borderSize*2 - CGboxc.pad*2 : CGboxc.fixedWidth - CGboxc.borderSize*2 - CGboxc.pad*2;
		}
		else {
			var width = CGboxc.fixedWidth == 0 ? (parseInt(CGboxm.style.width) + borsiz*2) : CGboxc.fixedWidth;
		}
		CGboxc.width = (parseInt(CGboxm.style.width) + borsiz*2);
		CGboxc.style.width = width + "px";
		if (CGboxc) {
			CGboxc.style.textAlign = CGboxc.ali;
			for (var i in CGboxc) {
				if (i == "offsetHeight") {
					CGboxcHeight = 0;
					if (CGboxc.sou > 0) {
						CGboxcHeight = CGboxc[i];
					}
				}
			}
		}
	}
	var swipeWindow = CGDoPrep();
	var swipeWindowWidth = CGboxl.windowOn > 0 ? swipeWindow[0] : 0;
	var swipeWindowHeight = CGboxl.windowOn > 0 ? swipeWindow[1] : 0;
	if (CGboxm.pro) {
		CGboxw.setSize(CGimgm.width, CGimgm.height);
		if (CGaction[54] != "" && CGaction[55] != "") {
			var wposition = CGaction[54] + " " + CGaction[55];
			CGboxw.style.backgroundPosition = wposition;
		}
		else {
			CGboxw.style.backgroundPosition = CGboxw.positionDefault;
		}
		if (CGaction[56].indexOf("Reference!") == -1 && CGaction[56] != "#") {
			CGboxw.style.backgroundImage = "url(" + CGaction[56] + ")";
		}
		else {
			CGboxw.style.backgroundImage = "url(" + CGboxw.backgroundDefault + ")";
		}
		CGboxw.showHide(CGvis);
		CGboxw.doOpacity(0);
	}
	else {
		CGboxw.showHide(CGhid);
		CGboxw.doOpacity(0);
	}
	if (CGboxm.wpos >= 0) {
		var topp, left;
		var p = CGboxm.path2 == "" ? eval("parent") : eval(CGboxm.path2);
		var st = p.document.body.scrollTop > 0 ? p.document.body.scrollTop : p.document.documentElement.scrollTop; 
		var sl = p.document.body.scrollLeft > 0 ? p.document.body.scrollLeft : p.document.documentElement.scrollLeft;
		if (CGisMacIE) var st = p.document.body.scrollTop, sl = p.document.body.scrollLeft;
		var cboxPadMar = CGboxcHeight > 0 ? CGboxc.mar + (CGboxc.pad*2) : 0;
		var mch = parseInt(CGboxm.style.height) + parseInt(CGboxm.borderSize/2) + CGboxcHeight;
		if (CGboxm.wpos == 0) {
			left = CGboxm.left + CGboxm.borderSize + CGboxl.windowBorder + sl;
			topp = CGboxm.top + CGboxm.borderSize + CGboxl.windowBorder + st;
		}
		else if (CGboxm.wpos == 1) {
			if (p.innerHeight) {
				left = parseInt(((p.innerWidth - CGimgm.width)/2) + sl);
				topp = parseInt(((p.innerHeight - mch)/2) + st - (CGboxc.off/2));
			}
			else {
				left = parseInt(((p.document.body.clientWidth - CGimgm.width)/2) + sl);
				var dech = p.document.documentElement.clientHeight, dbch = p.document.body.clientHeight;
				topp = dech > 0 ? parseInt(((dech - mch)/2) + st - (CGboxc.off/2)) : ((dbch - mch)/2)  + st - (CGboxc.off/2);
			}
		}
		else if (CGboxm.wpos == 2) {
			left = CGboxm.left + CGboxm.borderSize + CGboxl.windowBorder + sl;
			topp = CGboxm.top + CGboxm.borderSize + CGboxl.windowBorder + st;
		}
		CGboxm.adjust = 0;
		if (CGboxc.pos == 1) {
			topp += CGboxcHeight;
			CGboxm.adjust = CGboxcHeight;
		}
		else if (CGboxc.pos == 0 || CGboxc.pos > 2) {
			topp += CGboxcHeight-cboxPadMar*2;
		}
		CGboxm.scrollto(left-(CGboxm.borderSize), topp-(CGboxm.borderSize));
		CGboxw.scrollto(left, topp);
		CGboxm.boxmtop = parseInt(CGboxm.style.top), CGboxm.boxmleft = parseInt(CGboxm.style.left);
		if (CGboxc.sou) {
			if (CGboxc.fixedWidth == 0) {
				var x = parseInt(CGboxm.style.left) - CGboxc.mar;
			}
			else {
				var imagewidth = parseInt(CGboxm.style.width) + CGboxm.borderSize*2;
				var imageheight = parseInt(CGboxm.style.height) + CGboxm.borderSize*2;
				var captionwidth = parseInt(CGboxc.fixedWidth) - CGboxc.borderSize*2 - CGboxc.pad*2;
				var x = (parseInt(CGboxm.style.left)) - CGboxc.mar - CGboxc.borderSize - CGboxc.pad + (imagewidth-captionwidth)/2;
			}
			CGboxc.style.clip = "rect(" + 0 + "px " + CGboxc.width  + "px "  + 0 + "px " + 0 + "px)";
			if (CGboxc.pos == 0) {
				left = x + CGboxm.borderSize;
				topp = CGboxm.boxmtop + CGimgm.height/2 - CGboxcHeight/2 + CGboxm.borderSize;
			}
			else if (CGboxc.pos == 1) {
				left = x;
				topp = CGboxm.boxmtop - CGboxcHeight - offset;
			}
			else if (CGboxc.pos == 2) {
				left = x;
				topp = CGboxm.boxmtop + CGimgm.height + CGboxm.borderSize*2 + offset;
			}
			else if (CGboxc.pos == 3) {
				left = x + CGboxm.borderSize;
				topp = CGboxm.boxmtop + CGboxm.borderSize + offset;
			}
			else if (CGboxc.pos == 4) {
				left = x + CGboxm.borderSize;
				topp = (CGboxm.boxmtop + CGimgm.height) - CGboxcHeight + CGboxm.borderSize*2 - CGboxm.borderSize - offset;
			}
			CGboxc.scrollto(left, topp);
		}
	}
	CGsetShowDelay = setTimeout('CGShowAll()', CGSdelay);
	return;
}
function CGShowAll() {
	CGboxm.swipeOver = false;
	if (CGboxm.transMode == 2 || CGboxm.transMode == 3) {
		clearInterval(CGboxm.CGtransInt);
		CGboxm.CGfadeIn = true;
		CGboxm.CGtransSta = 0;
		CGboxm.CGtransEnd = !CGisMacNN ? 100 : 99;
		CGboxm.CGtransVal = CGboxm.CGtransSta;
		CGDoOpacity(CGboxm.CGtransVal);
	}
	CGDoPrep();
	CGDoDropShadow();
	if (CGboxb) {
		CGboxb.doOpacity(CGboxb.opa);
		CGboxb.showHide(CGvis);
	}
	if (CGboxl.windowOn == 1) {
		var t = setTimeout("CGDoHorizSwipeWindow()", 50);
	}
	else if (CGboxl.windowOn == 2) {
		var t = setTimeout("CGDoVertSwipeWindow()", 50);
	}
	else if (CGboxl.windowOn == 3) {
		var t = setTimeout("CGDoCenterSwipeWindow()", 50);
	}
	else if (CGboxl.windowOn == 4) {
		var t = setTimeout("CGDoSlideSwipeWindow()", 50);
	}
	else if (CGboxl.windowOn == 5) {
		var t = setTimeout("CGDoStillSwipeWindow()", 50);
	}
	else if (CGboxm.transMode == 4 || CGboxm.transMode == 5) {
		CGDoZoomImage();
	}
	else if (CGboxm.transMode == 6 || CGboxm.transMode == 7) {
		CGDoSlideImage();
	}
	else {
		CGboxm.swipeOver = true;
		if (CGboxm && !CGboxm.ismovfile) CGboxm.showHide(CGvis);
		if (CGboxc && CGboxc.sou > 0) CGboxc.showHide(CGvis);
		if (CGboxs.shadowOn) {
			CGDoDropShadow();
			CGboxs.doOpacity(0);
			CGboxs.showHide(CGvis);
		}
		if (CGboxm && CGboxm.pro) {
			if (CGboxm.mar == 1 || CGboxm.mar == 5) {
				CGboxw.doOpacity(CGboxw.opa2);
				CGboxw.showHide(CGvis);
			}
		}
		if (CGboxm.transMode == 2 || CGboxm.transMode == 3) {
			CGboxm.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
		}
		else {
			if (CGboxs.shadowOn) {
				CGDoDropShadow();
				CGboxs.doOpacity(CGboxs.opa);
				CGboxs.showHide(CGvis);
				if (CGboxm.isswffile) CGboxm.swf();
				if (CGboxm.ismovfile) CGboxm.mov();
			}
		}
	}
	if (CGboxc.sou > 0) CGDoSlideCaptionOpen();
	if (CGaction[1] == 1 || CGaction[1] == 2 || CGaction[1] == 3 || CGaction[1] == 6) {
		var duration = CGboxm.duration == "" ? CGtimer : parseInt(CGboxm.duration) * 1000;
		CGslideTimer = setTimeout("CGDoSlides()", duration);
	}
	return;
}
function CGDoHorizSwipeWindow() {
	if (CGboxl.style.borderLeftWidth == "") CGboxl.style.borderLeftWidth = "0px";
	var swipeWindow = CGDoPrep();
	var swipeWindowWidth = CGboxl.windowOn > 0 ? swipeWindow[0] : 0;
	var swipeWindowHeight = CGboxl.windowOn > 0 ? swipeWindow[1] : 0;
	CGimgl.width = swipeWindowWidth - parseInt(CGboxl.style.borderLeftWidth) * 2;
	CGimgl.height = swipeWindowHeight - parseInt(CGboxl.style.borderLeftWidth) * 2;
	CGboxl.newLeft = parseInt(CGboxm.style.left) - CGboxl.windowBorder;
	CGboxl.newTop = parseInt(CGboxm.style.top) - CGboxc.borderSize - CGboxl.windowBorder - CGboxm.adjust;
	CGboxl.style.left = CGboxl.newLeft + "px";
	CGboxl.style.top = CGboxl.newTop + "px";
	CGboxl.targetWidth = swipeWindowWidth;
	CGboxl.targetHeight = swipeWindowHeight;
	CGboxl.style.width = swipeWindowWidth - parseInt(CGboxl.style.borderLeftWidth)*2 + "px";
	CGboxl.style.height = swipeWindowHeight - parseInt(CGboxl.style.borderLeftWidth)*2 + "px";
	CGboxl.tracktop = (CGboxl.targetHeight/2) - 0;
	CGboxl.trackright = (CGboxl.targetWidth/2) + 2;
	CGboxl.trackbottom = (CGboxl.targetHeight/2) + 0;
	CGboxl.trackleft = (CGboxl.targetWidth/2) - 2;
	CGboxl.style.clip = "rect(" + CGboxl.tracktop + "px " + CGboxl.trackright + "px "  + CGboxl.trackbottom + "px " + CGboxl.trackleft + "px)";
	CGboxl.showHide(CGvis);
	if (CGboxl.keyline) {
		CGboxl.trackright = (CGboxl.targetWidth/2);
		CGboxl.trackleft = (CGboxl.targetWidth/2) - 1;
		CGboxl.style.background = CGboxl.keylineColor;
	}
	CGboxl.CGtransInt = setInterval("if (CGimgl.complete) { CGHStretchHeight() }", CGboxl.scrollInterval);
	return;
}
function CGHStretchHeight() {
	CGboxl.style.clip = "rect(" + CGboxl.tracktop + "px " + CGboxl.trackright + "px "  + CGboxl.trackbottom + "px " + CGboxl.trackleft + "px)";
	CGboxl.tracktop -= CGboxl.scrollSpeed/2;
	CGboxl.trackbottom += CGboxl.scrollSpeed/2;
	if (CGboxl.tracktop <= 0) {
		clearInterval(CGboxl.CGtransInt);
		CGboxl.tracktop = 0;
		CGboxl.trackbottom = CGboxl.targetHeight;
		if (CGboxl.keyline) {
			CGboxl.trackright = (CGboxl.targetWidth/2) + 2;
			CGboxl.trackleft = (CGboxl.targetWidth/2) - 2;
		}
		CGboxl.CGtransInt = setInterval("CGHStretchWidth()", CGboxl.scrollInterval);
	}
	return;
}
function CGHStretchWidth() {
	CGboxl.style.clip = "rect(" + CGboxl.tracktop + "px " + CGboxl.trackright + "px "  + CGboxl.trackbottom + "px " + CGboxl.trackleft + "px)";
	CGboxl.style.background = "";
	CGboxl.trackleft -= CGboxl.scrollSpeed/2;
	CGboxl.trackright += CGboxl.scrollSpeed/2;
	if (CGboxl.trackleft <= 0) {
		clearInterval(CGboxl.CGtransInt);
		CGboxl.trackleft = 0;
		CGboxl.trackright = CGboxl.targetWidth;
		CGboxl.style.clip = "rect(" + CGboxl.tracktop + "px " + CGboxl.trackright + "px "  + CGboxl.trackbottom + "px " + CGboxl.trackleft + "px)";
		CGboxl.style.clip = "rect(" + 0 + "px " + CGboxl.trackright + "px "  + parseInt(CGboxl.trackbottom)+1 + "px " + 0 + "px)";
		if (!CGboxm.ismovfile) CGboxm.showHide(CGvis);
		if (CGboxc.sou > 0) CGboxc.showHide(CGvis);
		CGboxs.showHide(CGvis);
		if (CGboxm.pro && (CGboxm.mar == 1 || CGboxm.mar == 5)) CGboxw.doOpacity(CGboxw.opa2);
		if (CGboxm.transMode == 2 || CGboxm.transMode == 3) {
			CGboxm.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
		}
		else if (CGboxm.transMode == 4 || CGboxm.transMode == 5) {
			CGDoZoomImage();
		}
		else if (CGboxm.transMode == 6 || CGboxm.transMode == 7) {
			CGDoSlideImage();
		}
		else {
			CGDoDropShadow();
			CGboxs.doOpacity(CGboxs.opa);
			CGboxs.showHide(CGvis);
			if (CGboxm.isswffile) CGboxm.swf();
			if (CGboxm.ismovfile) CGboxm.mov();
		}
		CGboxm.swipeOver = true;
	}
	return;
}
function CGDoVertSwipeWindow() {
	if (CGboxl.style.borderLeftWidth == "") CGboxl.style.borderLeftWidth = "0px";
	var swipeWindow = CGDoPrep();
	var swipeWindowWidth = CGboxl.windowOn > 0 ? swipeWindow[0] : 0;
	var swipeWindowHeight = CGboxl.windowOn > 0 ? swipeWindow[1] : 0;
	CGimgl.width = swipeWindowWidth - parseInt(CGboxl.style.borderLeftWidth) * 2;
	CGimgl.height = swipeWindowHeight - parseInt(CGboxl.style.borderLeftWidth) * 2;
	CGboxl.newLeft = parseInt(CGboxm.style.left) - CGboxl.windowBorder;
	CGboxl.newTop = parseInt(CGboxm.style.top) - CGboxc.borderSize - CGboxl.windowBorder - CGboxm.adjust;
	CGboxl.style.left = CGboxl.newLeft + "px";
	CGboxl.style.top = CGboxl.newTop + "px";
	CGboxl.targetWidth = swipeWindowWidth;
	CGboxl.targetHeight = swipeWindowHeight;
	CGboxl.style.width = swipeWindowWidth - parseInt(CGboxl.style.borderLeftWidth)*2 + "px";
	CGboxl.style.height = swipeWindowHeight - parseInt(CGboxl.style.borderLeftWidth)*2 + "px";
	CGboxl.tracktop = (CGboxl.targetHeight/2) - 2;
	CGboxl.trackright = (CGboxl.targetWidth/2) + 0;
	CGboxl.trackbottom = (CGboxl.targetHeight/2) + 2;
	CGboxl.trackleft = (CGboxl.targetWidth/2) - 0;
	CGboxl.style.clip = "rect(" + CGboxl.tracktop + "px " + CGboxl.trackright + "px "  + CGboxl.trackbottom + "px " + CGboxl.trackleft + "px)";
	CGboxl.showHide(CGvis);
	if (CGboxl.keyline) {
		CGboxl.tracktop = (CGboxl.targetHeight/2 - 1);
		CGboxl.trackbottom = (CGboxl.targetHeight/2);
		CGboxl.style.background = CGboxl.keylineColor;
	}
	CGboxl.CGtransInt = setInterval("if (CGimgl.complete) { CGVStretchWidth() }", CGboxl.scrollInterval);
	return;
}
function CGVStretchWidth() {
	CGboxl.style.clip = "rect(" + CGboxl.tracktop + "px " + CGboxl.trackright + "px "  + CGboxl.trackbottom + "px " + CGboxl.trackleft + "px)";
	CGboxl.trackleft -= CGboxl.scrollSpeed/2;
	CGboxl.trackright += CGboxl.scrollSpeed/2;
	if (CGboxl.trackleft <= 0) {
		clearInterval(CGboxl.CGtransInt);
		CGboxl.trackleft = 0;
		CGboxl.trackright = CGboxl.targetWidth;
		if (CGboxl.keyline) {
			CGboxl.tracktop = (CGboxl.targetHeight/2) - 2;
			CGboxl.trackbottom = (CGboxl.targetHeight/2) + 2;
		}
		CGboxl.CGtransInt = setInterval("CGVStretchHeight()", CGboxl.scrollInterval);
	}
	return;
}
function CGVStretchHeight() {
	CGboxl.style.clip = "rect(" + CGboxl.tracktop + "px " + CGboxl.trackright + "px "  + CGboxl.trackbottom + "px " + CGboxl.trackleft + "px)";
	CGboxl.style.background = "";
	CGboxl.tracktop -= CGboxl.scrollSpeed/2;
	CGboxl.trackbottom += CGboxl.scrollSpeed/2;
	if (CGboxl.tracktop <= 0) {
		clearInterval(CGboxl.CGtransInt);
		CGboxl.tracktop = 0;
		CGboxl.trackbottom = CGboxl.targetHeight;
		CGboxl.style.clip = "rect(" + CGboxl.tracktop + "px " + CGboxl.trackright + "px "  + CGboxl.trackbottom + "px " + CGboxl.trackleft + "px)"
		CGboxl.style.clip = "rect(" + 0 + "px " + CGboxl.trackright + "px "  + parseInt(CGboxl.trackbottom)+1 + "px " + 0 + "px)";
		if (!CGboxm.ismovfile) CGboxm.showHide(CGvis);
		if (CGboxc.sou > 0) CGboxc.showHide(CGvis);
		CGboxs.showHide(CGvis);
		if (CGboxm.pro && (CGboxm.mar == 1 || CGboxm.mar == 5)) CGboxw.doOpacity(CGboxw.opa2);
		if (CGboxm.transMode == 2 || CGboxm.transMode == 3) {
			CGboxm.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
		}
		else if (CGboxm.transMode == 4 || CGboxm.transMode == 5) {
			CGDoZoomImage();
		}
		else if (CGboxm.transMode == 6 || CGboxm.transMode == 7) {
			CGDoSlideImage();
		}
		else {
			CGDoDropShadow();
			CGboxs.doOpacity(CGboxs.opa);
			CGboxs.showHide(CGvis);
			if (CGboxm.isswffile) CGboxm.swf();
			if (CGboxm.ismovfile) CGboxm.mov();
		}
		CGboxm.swipeOver = true;
	}
	return;
}
function CGDoCenterSwipeWindow() {
	if (CGboxl.style.borderLeftWidth == "") CGboxl.style.borderLeftWidth = "0px";
	var swipeWindow = CGDoPrep();
	var swipeWindowWidth = CGboxl.windowOn > 0 ? swipeWindow[0] : 0;
	var swipeWindowHeight = CGboxl.windowOn > 0 ? swipeWindow[1] : 0;
	CGimgl.width = swipeWindowWidth - parseInt(CGboxl.style.borderLeftWidth) * 2;
	CGimgl.height = swipeWindowHeight - parseInt(CGboxl.style.borderLeftWidth) * 2;
	CGboxl.newLeft = parseInt(CGboxm.style.left) - CGboxl.windowBorder;
	CGboxl.newTop = parseInt(CGboxm.style.top) - CGboxc.borderSize - CGboxl.windowBorder - CGboxm.adjust;
	CGboxl.style.left = CGboxl.newLeft + "px";
	CGboxl.style.top = CGboxl.newTop + "px";
	CGboxl.targetWidth = swipeWindowWidth;
	CGboxl.targetHeight = swipeWindowHeight;
	CGboxl.style.width = swipeWindowWidth - parseInt(CGboxl.style.borderLeftWidth)*2 + "px";
	CGboxl.style.height = swipeWindowHeight - parseInt(CGboxl.style.borderLeftWidth)*2 + "px";
	CGboxl.tracktop = (CGboxl.targetHeight/2) - 0;
	CGboxl.trackright = (CGboxl.targetWidth/2) + 0;
	CGboxl.trackbottom = (CGboxl.targetHeight/2) + 0;
	CGboxl.trackleft = (CGboxl.targetWidth/2) - 0;
	CGboxl.ticHeight = parseInt(swipeWindowHeight)*CGboxl.scrollSpeed/parseInt(swipeWindowWidth);
	CGboxl.style.clip = "rect(" + CGboxl.tracktop + "px " + CGboxl.trackright + "px "  + CGboxl.trackbottom + "px " + CGboxl.trackleft + "px)";
	CGboxl.showHide(CGvis);
	if (CGboxl.keyline) {
		CGboxl.tracktop = 0;
		CGboxl.trackright = CGboxl.targetWidth/2;
		CGboxl.trackbottom = CGboxl.targetHeight;
		CGboxl.trackleft = CGboxl.targetWidth/2;
	}
	CGboxl.CGtransInt = setInterval("if (CGimgl.complete) { CGCStretchBoth() }", CGboxl.scrollInterval);
	return;
}
function CGCStretchBoth() {
	CGboxl.style.clip = "rect(" + CGboxl.tracktop + "px " + CGboxl.trackright + "px "  + CGboxl.trackbottom + "px " + CGboxl.trackleft + "px)";
	CGboxl.tracktop -= CGboxl.ticHeight/2;
	CGboxl.trackbottom += CGboxl.ticHeight/2;
	CGboxl.trackleft -= CGboxl.scrollSpeed/2;
	CGboxl.trackright += CGboxl.scrollSpeed/2;
	if (CGboxl.tracktop <= 0) {
		CGboxl.tracktop = 0, CGboxl.trackbottom = CGboxl.targetHeight;
	}
	if (CGboxl.trackleft <= 0) {
		CGboxl.trackleft = 0, CGboxl.trackright = CGboxl.targetWidth;
	}
	if (CGboxl.tracktop == 0 && CGboxl.trackleft == 0) {
		clearInterval(CGboxl.CGtransInt);
		CGboxl.style.clip = "rect(" + CGboxl.tracktop + "px " + CGboxl.trackright + "px "  + CGboxl.trackbottom + "px " + CGboxl.trackleft + "px)";
		CGboxl.style.clip = "rect(" + 0 + "px " + CGboxl.trackright + "px "  + parseInt(CGboxl.trackbottom)+1 + "px " + 0 + "px)";
		if (!CGboxm.ismovfile) CGboxm.showHide(CGvis);
		if (CGboxc.sou > 0) CGboxc.showHide(CGvis);
		CGboxs.showHide(CGvis);
		if (CGboxm.pro && (CGboxm.mar == 1 || CGboxm.mar  == 5)) CGboxw.doOpacity(CGboxw.opa2);
		if (CGboxm.transMode == 2 || CGboxm.transMode == 3) {
			CGboxm.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
		}
		else if (CGboxm.transMode == 4 || CGboxm.transMode == 5) {
			CGDoZoomImage();
		}
		else if (CGboxm.transMode == 6 || CGboxm.transMode == 7) {
			CGDoSlideImage();
		}
		else {
			CGDoDropShadow();
			CGboxs.doOpacity(CGboxs.opa);
			CGboxs.showHide(CGvis);
			if (CGboxm.isswffile) CGboxm.swf();
			if (CGboxm.ismovfile) CGboxm.mov();
		}
		CGboxm.swipeOver = true;
	}
	return;
}
function CGDoSlideSwipeWindow() {
	if (CGboxl.style.borderLeftWidth == "") CGboxl.style.borderLeftWidth = "0px";
	var swipeWindow = CGDoPrep();
	var swipeWindowWidth = CGboxl.windowOn > 0 ? swipeWindow[0] : 0;
	var swipeWindowHeight = CGboxl.windowOn > 0 ? swipeWindow[1] : 0;
	CGimgl.width = swipeWindowWidth - parseInt(CGboxl.style.borderLeftWidth) * 2;
	CGimgl.height = swipeWindowHeight - parseInt(CGboxl.style.borderLeftWidth) * 2;
	CGboxl.newLeft = parseInt(CGboxm.style.left) - CGboxl.windowBorder;
	CGboxl.newTop = parseInt(CGboxm.style.top) - CGboxc.borderSize - CGboxl.windowBorder - CGboxm.adjust;
	CGboxl.style.left = CGboxl.newLeft + "px";
	CGboxl.style.top = CGboxl.newTop + "px";
	CGboxl.targetWidth = swipeWindowWidth;
	CGboxl.targetHeight = swipeWindowHeight;
	CGboxl.style.width = swipeWindowWidth - parseInt(CGboxl.style.borderLeftWidth)*2 + "px";
	CGboxl.style.height = swipeWindowHeight - parseInt(CGboxl.style.borderLeftWidth)*2 + "px";
	CGboxl.tracktop = (CGboxl.targetHeight/2) - 0;
	CGboxl.trackright = 0 + 2;
	CGboxl.trackbottom = (CGboxl.targetHeight/2) + 0;
	CGboxl.trackleft = 0 - 2;
	CGboxl.style.clip = "rect(" + CGboxl.tracktop + "px " + CGboxl.trackright + "px "  + CGboxl.trackbottom + "px " + CGboxl.trackleft + "px)";
	CGboxl.showHide(CGvis);
	if (CGboxl.keyline) {
		CGboxl.trackright = 0 + 1;
		CGboxl.trackleft = 0 ;
		CGboxl.style.background = CGboxl.keylineColor;
	}
	CGboxl.CGtransInt = setInterval("if (CGimgl.complete) { CGSStretchHeight() }", CGboxl.scrollInterval);
	return;
}
function CGSStretchHeight() {
	CGboxl.style.clip = "rect(" + CGboxl.tracktop + "px " + CGboxl.trackright + "px "  + CGboxl.trackbottom + "px " + CGboxl.trackleft + "px)";
	CGboxl.tracktop -= CGboxl.scrollSpeed/2;
	CGboxl.trackbottom += CGboxl.scrollSpeed/2;
	if (CGboxl.tracktop <= 0) {
		clearInterval(CGboxl.CGtransInt);
		CGboxl.tracktop = 0;
		CGboxl.trackbottom = CGboxl.targetHeight;
		if (CGboxl.keyline) {
			CGboxl.trackright = 2;
		}
		CGboxl.CGtransInt = setInterval("CGSStretchWidth()", CGboxl.scrollInterval);
	}
	return;
}
function CGSStretchWidth() {
	CGboxl.style.clip = "rect(" + CGboxl.tracktop + "px " + CGboxl.trackright + "px "  + CGboxl.trackbottom + "px " + CGboxl.trackleft + "px)";
	CGboxl.style.background = "";
	CGboxl.trackright += CGboxl.scrollSpeed/2;
	if (CGboxl.trackright >= CGboxl.targetWidth) {
		clearInterval(CGboxl.CGtransInt);
		CGboxl.trackright = CGboxl.targetWidth;
		CGboxl.style.clip = "rect(" + CGboxl.tracktop + "px " + CGboxl.trackright + "px "  + CGboxl.trackbottom + "px " + CGboxl.trackleft + "px)";
		CGboxl.style.clip = "rect(" + 0 + "px " + CGboxl.trackright + "px "  + parseInt(CGboxl.trackbottom)+1 + "px " + 0 + "px)";
		if (!CGboxm.ismovfile) CGboxm.showHide(CGvis);
		if (CGboxc.sou > 0) CGboxc.showHide(CGvis);
		CGboxs.showHide(CGvis);
		if (CGboxm.pro && (CGboxm.mar == 1 || CGboxm.mar == 5)) CGboxw.doOpacity(CGboxw.opa2);
		if (CGboxm.transMode == 2 || CGboxm.transMode == 3) {
			CGboxm.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
		}
		else if (CGboxm.transMode == 4 || CGboxm.transMode == 5) {
			CGDoZoomImage();
		}
		else if (CGboxm.transMode == 6 || CGboxm.transMode == 7) {
			CGDoSlideImage();
		}
		else {
			CGDoDropShadow();
			CGboxs.doOpacity(CGboxs.opa);
			CGboxs.showHide(CGvis);
			if (CGboxm.isswffile) CGboxm.swf();
			if (CGboxm.ismovfile) CGboxm.mov();
		}
		CGboxm.swipeOver = true;
	}
	return;
}
function CGDoStillSwipeWindow() {
	if (CGboxl.style.borderLeftWidth == "") CGboxl.style.borderLeftWidth = "0px";
	var swipeWindow = CGDoPrep();
	CGboxl.style.clip = "rect(" + 0 + "px " + swipeWindow[0] + parseInt(CGboxl.style.borderLeftWidth)*2 + "px "  + swipeWindow[1] + parseInt(CGboxl.style.borderLeftWidth)*2 + "px " + 0 + "px)";
	CGboxl.style.left = parseInt(CGboxm.style.left) - CGboxl.windowBorder + "px";
	CGboxl.style.top = parseInt(CGboxm.style.top) - CGboxl.windowBorder - CGboxm.adjust + "px";
	CGboxl.style.width = swipeWindow[0] - parseInt(CGboxl.style.borderLeftWidth)*2 + "px";
	CGboxl.style.height = swipeWindow[1] - parseInt(CGboxl.style.borderLeftWidth)*2 + "px";
	CGimgl.width = parseInt(CGboxl.style.width);
	CGimgl.height = parseInt(CGboxl.style.height);
	var t = setTimeout("if (CGimgl.complete) { CGDoStillSwipeWindowFinish() }", CGboxl.scrollInterval);
	return;
}
function CGDoStillSwipeWindowFinish() {
	CGboxl.showHide(CGvis);
	if (!CGboxm.ismovfile) CGboxm.showHide(CGvis);
	if (CGboxc.sou > 0) CGboxc.showHide(CGvis);
	CGboxs.showHide(CGvis);
	if (CGboxm.pro && (CGboxm.mar == 1 || CGboxm.mar == 5)) CGboxw.doOpacity(CGboxw.opa2);
	if (CGboxm.transMode == 2 || CGboxm.transMode == 3) {
		CGboxm.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
	}
	else if (CGboxm.transMode == 4 || CGboxm.transMode == 5) {
		CGDoZoomImage();
	}
	else if (CGboxm.transMode == 6 || CGboxm.transMode == 7) {
		CGDoSlideImage();
	}
	else {
		CGDoDropShadow();
		CGboxs.doOpacity(CGboxs.opa);
		CGboxs.showHide(CGvis);
		if (CGboxm.isswffile) CGboxm.swf();
		if (CGboxm.ismovfile) CGboxm.mov();
	}
	CGboxm.swipeOver = true;
	return;
}
function CGDoSlideImage() {
	if (CGboxm.style.borderLeftWidth == "") CGboxl.style.borderLeftWidth = "0px";
	CGboxm.targetWidth = parseInt(CGimgm.width + parseInt(CGboxm.style.borderLeftWidth)*2);
	CGboxm.targetHeight = parseInt(CGimgm.height + parseInt(CGboxm.style.borderLeftWidth)*2);
	CGboxm.tracktop = 0;
	CGboxm.trackright = 0;
	CGboxm.trackbottom = CGboxm.targetHeight;
	CGboxm.trackleft = 0;
	CGboxm.ticWidth = CGboxm.targetWidth/CGboxl.scrollSpeed;
	CGboxm.fadeInStep = 100/CGboxm.ticWidth;
	CGboxm.style.clip = "rect(" + CGboxm.tracktop + "px " + CGboxm.trackright + "px "  + CGboxm.trackbottom + "px " + CGboxm.trackleft + "px)";
	CGboxm.totalFadeInSteps = 0;
	CGDoOpacity(CGboxm.totalFadeInSteps);
	CGboxm.showHide(CGvis);
	CGboxm.CGtransInt = setInterval("CGCSlideImage()", CGboxl.scrollInterval);
	return;
}
function CGCSlideImage() {
	CGboxm.totalFadeInSteps += CGboxm.fadeInStep;
	CGDoOpacity(CGboxm.totalFadeInSteps);
	CGboxm.style.clip = "rect(" + CGboxm.tracktop + "px " + CGboxm.trackright + "px "  + CGboxm.trackbottom + "px " + CGboxm.trackleft + "px)";
	CGboxm.trackright += CGboxl.scrollSpeed;
	if (CGboxm.trackright >= CGboxm.targetWidth) {
		CGboxm.tracktright = CGboxm.targetWidth;
		clearInterval(CGboxm.CGtransInt);
		CGboxm.style.clip = "rect(" + CGboxm.tracktop + "px " + CGboxm.trackright + "px "  + CGboxm.trackbottom + "px " + CGboxm.trackleft + "px)";
		CGboxm.style.clip = "rect(" + 0 + "px " + CGboxm.trackright + "px "  + parseInt(CGboxm.trackbottom)+1 + "px " + 0 + "px)";
		if (!CGboxm.ismovfile) CGboxm.showHide(CGvis);
		if (CGboxc.sou > 0) CGboxc.showHide(CGvis);
		CGboxs.showHide(CGvis);
		if (CGboxm.pro && (CGboxm.mar == 1 || CGboxm.mar == 5)) CGboxw.doOpacity(CGboxw.opa2);
		CGDoDropShadow();
		CGboxs.doOpacity(CGboxs.opa);
		CGboxs.showHide(CGvis);
		if (CGboxm.isswffile)CGboxm.swf();
		if (CGboxm.ismovfile) CGboxm.mov();
		CGboxm.swipeOver = true;
		CGboxm.style.clip = "rect(" + 0 + "px " + CGboxm.targetWidth + "px "  + CGboxm.targetHeight + "px " + 0 + "px)";
	}
	return;
}
function CGDoZoomImage() {
	if (CGboxm.style.borderLeftWidth == "") CGboxl.style.borderLeftWidth = "0px";
	CGboxm.targetWidth = parseInt(CGimgm.width + parseInt(CGboxm.style.borderLeftWidth)*2);
	CGboxm.targetHeight = parseInt(CGimgm.height + parseInt(CGboxm.style.borderLeftWidth)*2);
	CGboxm.tracktop = (CGboxm.targetHeight/2) - 0;
	CGboxm.trackright = (CGboxm.targetWidth/2) + 0;
	CGboxm.trackbottom = (CGboxm.targetHeight/2) + 0;
	CGboxm.trackleft = (CGboxm.targetWidth/2) - 0;
	if (CGboxm.targetHeight >= CGboxm.targetWidth) {
		CGboxm.ticHeight = CGboxm.targetWidth*CGboxl.scrollSpeed/CGboxm.targetHeight;
		CGboxm.tbspeed = CGboxl.scrollSpeed/2;
		CGboxm.lrspeed = CGboxm.ticHeight/2;
		CGboxm.fadeInStep = 100/(parseInt(CGboxm.targetWidth/CGboxm.ticHeight))
	}
	else {
		CGboxm.ticHeight = CGboxm.targetHeight*CGboxl.scrollSpeed/CGboxm.targetWidth;
		CGboxm.tbspeed = CGboxm.ticHeight/2;
		CGboxm.lrspeed = CGboxl.scrollSpeed/2;
		CGboxm.fadeInStep = 100/(parseInt(CGboxm.targetHeight/CGboxm.ticHeight))
	}
	CGboxm.style.clip = "rect(" + CGboxm.tracktop + "px " + CGboxm.trackright + "px "  + CGboxm.trackbottom + "px " + CGboxm.trackleft + "px)";
	CGboxm.totalFadeInSteps = 0;
	CGDoOpacity(CGboxm.totalFadeInSteps);
	CGboxm.showHide(CGvis);
	CGboxm.CGtransInt = setInterval("CGCZoomImage()", CGboxl.scrollInterval);
	return;
}
function CGCZoomImage() {
	CGboxm.totalFadeInSteps += CGboxm.fadeInStep;
	CGDoOpacity(CGboxm.totalFadeInSteps);
	CGboxm.style.clip = "rect(" + CGboxm.tracktop + "px " + CGboxm.trackright + "px "  + CGboxm.trackbottom + "px " + CGboxm.trackleft + "px)";
	CGboxm.tracktop -= CGboxm.tbspeed;
	CGboxm.trackbottom += CGboxm.tbspeed;
	CGboxm.trackleft -= CGboxm.lrspeed;
	CGboxm.trackright += CGboxm.lrspeed;
	if (CGboxm.tracktop <= 0) {
		CGboxm.tracktop = 0, CGboxm.trackbottom = CGboxm.targetHeight;
	}
	if (CGboxm.trackleft <= 0) {
		CGboxm.trackleft = 0, CGboxm.trackright = CGboxm.targetWidth;
	}
	if (CGboxm.tracktop == 0 && CGboxm.trackleft == 0) {
		clearInterval(CGboxm.CGtransInt);
		CGboxm.style.clip = "rect(" + CGboxm.tracktop + "px " + CGboxm.trackright + "px "  + CGboxm.trackbottom + "px " + CGboxm.trackleft + "px)";
		CGboxm.style.clip = "rect(" + 0 + "px " + CGboxm.trackright + "px "  + parseInt(CGboxm.trackbottom)+1 + "px " + 0 + "px)";
		if (CGboxm.pro && (CGboxm.mar == 1 || CGboxm.mar == 5)) CGboxw.doOpacity(CGboxw.opa2);
		CGDoDropShadow();
		CGboxs.doOpacity(CGboxs.opa);
		CGboxs.showHide(CGvis);
		if (CGboxm.isswffile)CGboxm.swf();
		if (CGboxm.ismovfile) CGboxm.mov();
		CGboxm.swipeOver = true;
		CGboxm.style.clip = "rect(" + 0 + "px " + CGboxm.targetWidth + "px "  + CGboxm.targetHeight + "px " + 0 + "px)";
	}
	return;
}
function CGDoZipOpen() {
	clearInterval(CGboxz.transSwipe);
	if (!CGboxm.swipeOver) return;
	CGboxw.onmousemove = null;
	CGboxw.zip.style.width = parseInt(CGboxw.clientWidth) - (CGboxw.zip.pad*2) - (CGboxw.zip.mar*2) + "px";
	var t = CGboxw.offsetParent.offsetTop + CGboxw.offsetTop - (CGboxw.zip.mar*2);
	var l = CGboxw.offsetParent.offsetLeft + CGboxw.offsetLeft;
	CGboxw.zip.style.top = t + CGboxw.clientHeight - parseInt(CGboxw.zip.clientHeight) + "px";
	CGboxw.zip.style.left = l + "px";
	CGboxw.zip.targetWidth = parseInt(CGboxm.clientWidth);
	CGboxw.zip.targetHeight = parseInt(CGboxw.zip.clientHeight);
	CGboxw.zip.tracktop = CGboxw.zip.clientHeight;
	CGboxw.zip.trackright = parseInt(CGboxw.clientWidth);
	CGboxw.zip.trackbottom = CGboxw.zip.clientHeight;
	CGboxw.zip.trackleft = 0;
	CGboxw.zip.style.clip = "rect(" + CGboxw.zip.tracktop + "px " + CGboxw.zip.trackright + "px "  + CGboxw.zip.trackbottom + "px " + CGboxw.zip.trackleft + "px)";
	CGboxz.showHide(CGvis);
	CGboxz.transSwipe = setInterval("{ if (CGboxm.swipeOver) CGZStretchHeight() }", 20)
	return;
}
function CGZStretchHeight() {
	CGboxz.style.clip = "rect(" + CGboxz.tracktop + "px " + CGboxz.trackright + "px "  + CGboxz.trackbottom + "px " + CGboxz.trackleft + "px)";
	CGboxz.tracktop -= 6;
	if (CGboxz.tracktop <= 0) { 
		CGboxz.tracktop = 0;
		CGboxz.style.clip = "rect(" + CGboxz.tracktop + "px " + CGboxz.trackright + "px "  + CGboxz.trackbottom + "px " + CGboxz.trackleft + "px)"
		clearInterval(CGboxz.transSwipe);
		CGboxz.style.clip = "rect(" + 0 + "px " + CGboxz.trackright + "px "  + parseInt(CGboxz.trackbottom)+1 + "px " + 0 + "px)";
	}
	return;
}
function CGDoZipClose() {
	clearInterval(CGboxz.transSwipe);
	if (CGboxz.tracktop != 0 || CGboxz.style.visibility == CGhid) return;
	CGboxw.zip.style.clip = "rect(" + CGboxw.zip.tracktop + "px " + CGboxw.zip.trackright + "px "  + CGboxw.zip.trackbottom + "px " + CGboxw.zip.trackleft + "px)";
	CGboxz.transSwipe = setInterval("CGZCloseHeight()", 20);
	return;
}
function CGZCloseHeight() {
	CGboxz.style.clip = "rect(" + CGboxz.tracktop + "px " + CGboxz.trackright + "px "  + CGboxz.trackbottom + "px " + CGboxz.trackleft + "px)";
	CGboxz.tracktop += 6;
	if (CGboxz.tracktop >= CGboxz.targetHeight) {
		CGboxz.tracktop = CGboxz.targetHeight;
		CGboxz.style.clip = "rect(" + CGboxz.tracktop + "px " + CGboxz.trackright + "px "  + CGboxz.trackbottom + "px " + CGboxz.trackleft + "px)"
		clearInterval(CGboxz.transSwipe);
		CGShowHide(CGboxz, CGhid);
	}
	return;
}
function CGDoSlideCaptionOpen() {
	clearInterval(CGboxc.transSwipe);
	CGboxc.targetWidth = CGboxc.width;
	CGboxc.targetHeight = parseInt(CGboxc.clientHeight);
	CGboxc.tracktop = CGboxc.pos == 0 || CGboxc.pos == 2 || CGboxc.pos == 3 ? 0 : CGboxc.targetHeight;
	CGboxc.trackbottom = CGboxc.pos == 0 || CGboxc.pos == 2 || CGboxc.pos == 3 ? 0 : CGboxc.targetHeight;
	CGboxc.trackright = CGboxc.width;
	CGboxc.trackleft = 0;
	CGboxc.style.clip = "rect(" + CGboxc.tracktop + "px " + CGboxc.trackright + "px "  + CGboxc.trackbottom + "px " + CGboxc.trackleft + "px)";
	CGboxc.showHide(CGvis);
	CGboxc.ticHeight = CGboxc.targetHeight/2;
	CGboxc.fadeInStep = 100/CGboxc.ticHeight;
	CGboxc.totalFadeInSteps = 0;
	CGboxc.doOpa(CGboxc.totalFadeInSteps);
	CGboxc.transSwipe = setInterval("{ if (CGboxm.swipeOver) CGCStretchHeight() }", 20);
	return;
}
function CGCStretchHeight() {
	CGboxc.totalFadeInSteps += CGboxc.fadeInStep;
	CGboxc.doOpa(CGboxc.totalFadeInSteps);
	CGboxc.style.clip = "rect(" + CGboxc.tracktop + "px " + CGboxc.trackright + "px "  + CGboxc.trackbottom + "px " + CGboxc.trackleft + "px)";
	if (CGboxc.pos == 0 || CGboxc.pos == 2 || CGboxc.pos == 3) {
		CGboxc.trackbottom += 2;
		if (CGboxc.trackbottom >= CGboxc.clientHeight) { 
			CGboxc.trackbottom = CGboxc.clientHeight;
			CGboxc.style.clip = "rect(" + CGboxc.tracktop + "px " + CGboxc.trackright + "px "  + CGboxc.trackbottom + "px " + CGboxc.trackleft + "px)"
			clearInterval(CGboxc.transSwipe);
			CGboxc.style.clip = "rect(" + 0 + "px " + CGboxc.trackright + "px "  + parseInt(CGboxc.trackbottom)+1 + "px " + 0 + "px)";
			CGboxc.doOpa(100);
		}
	}
	else if (CGboxc.pos == 1 || CGboxc.pos == 4){
		CGboxc.tracktop -= 2;
		if (CGboxc.tracktop <= 0) { 
			CGboxc.tracktop = 0;
			CGboxc.style.clip = "rect(" + CGboxc.tracktop + "px " + CGboxc.trackright + "px "  + CGboxc.trackbottom + "px " + CGboxc.trackleft + "px)"
			clearInterval(CGboxc.transSwipe);
			CGboxc.style.clip = "rect(" + 0 + "px " + CGboxc.trackright + "px "  + parseInt(CGboxc.trackbottom)+1 + "px " + 0 + "px)";
			CGboxc.doOpa(100);
		}
	}
	return;
}
function CGHideAll() {
	CGReleaseAutoClose();
	clearInterval(CGboxm.CGtransInt);
	clearInterval(CGboxl.CGtransInt);
	clearInterval(CGboxz.transSwipe);
	CGboxz.showHide(CGhid);
	if (CGboxm.isswffile || CGboxm.ismovfile) {
		CGimgm.hidden = true;
		CGimgm.src = "";
		CGboxm.innerHTML = CGboxm.originnerHTML;
		CGimgm = CGboxm.lastChild;
	}
	if (CGboxm.transMode == 1 || CGboxm.transMode == 3 || CGboxm.transMode == 5 || CGboxm.transMode == 7) {
		CGboxm.CGfadeIn = false;
		CGboxm.CGtransSta = 100;
		CGboxm.CGtransEnd = 0;
		CGboxm.CGtransVal = CGboxm.CGtransSta;
		CGboxm.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
	}
	else {
		CGFinishHide();
	}
	CGDONotCopyrightMark();
	return;
}
function CGHideAll2(e) {
	var st = document.body.scrollTop + document.documentElement.scrollTop;
	var b = document.body.clientHeight >= document.documentElement.clientHeight;
	var wb = !b ? document.documentElement.clientHeight : document.body.clientHeight;
	var sl = document.body.scrollLeft + document.documentElement.scrollLeft;
	var r = document.body.clientWidth >= document.documentElement.clientWidth;
	var wr = !r ? document.documentElement.clientWidth : document.body.clientWidth;
	var x = 0, y = 0;
	var e = (CGisIE) ? event : e;
	if (e.type == "mouseout") {
		x = e.pageX ? e.pageX : window.event.clientX;
		y = e.pageY ? e.pageY : window.event.clientY;
	}
	if (e.type == "keydown" || e.type == "keypress" || y+1 > wb || y-1 < st || x+1 > wr || x-1 < sl) {
		clearInterval(CGboxm.CGtransInt);
		clearInterval(CGboxl.CGtransInt);
		clearInterval(CGboxz.transSwipe);
		CGimgm.src = null;
		if (CGboxm.isswffile || CGboxm.ismovfile) {
			CGimgm.hidden = true;
			CGimgm.src = "";
			CGboxm.innerHTML = CGboxm.originnerHTML;
			CGimgm = CGboxm.lastChild;
		}
		CGboxm.style.visibility = CGhid;
		if (CGboxm.transMode == 1 || CGboxm.transMode == 3 || CGboxm.transMode == 5 || CGboxm.transMode == 7) {
			CGboxm.CGfadeIn = false;
			CGboxm.CGtransSta = 100;
			CGboxm.CGtransEnd = 0;
			CGboxm.CGtransVal = CGboxm.CGtransSta;
			CGboxm.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
		}
		else {
			CGFinishHide();
		}
	}
	return;
}
function CGGetImageObj(frameName, imgObjName) {
	var path = frameName.length > 0 ? frameName + "." : "";
	if (CGisW3C || CGisIE) {
		var baseImage = eval(path + "document.images." + imgObjName);
	}
	else {
		baseImage = parseInt(navigator.appVersion.charAt(0)) > 3 ? CGFindImgElement(imgObjName, 0, path) : eval(path + "document.images[imgObjName]");
	}
	return baseImage;
}
function CGFindImgElement(baseImage, thisLayer, path) {
	if (path.length != "") {
		var thisDocument = thisLayer ? thisLayer.document : eval(path + "document");
	}
	else {
		var thisDocument = thisLayer ? thisLayer.document : document;
	}
	var imageObj = thisDocument[baseImage];
	if (imageObj) {
		return imageObj;
	}
	else {
		for (var i = 0; i < thisDocument.layers.length; i++) {
			imageObj = CGFindImgElement(baseImage, thisDocument.layers[i], path);
			if (imageObj) {
				break;
			}
		}
	}
	return imageObj;
}
function CGTransition() {
	if (CGboxm.CGfadeIn) {
		CGboxm.CGtransVal += CGboxm.transTics;
	}
	else {
		CGboxm.CGtransVal -= CGboxm.transTics;
	}
	var doFade = CGboxm.CGfadeIn ? CGboxm.CGtransVal <= CGboxm.CGtransEnd : CGboxm.CGtransVal >= CGboxm.CGtransEnd;
	if (doFade) {
		CGDoOpacity(CGboxm.CGtransVal);
	}
	else {
		clearInterval(CGboxm.CGtransInt);
		clearInterval(CGboxl.CGtransInt);
		clearInterval(CGboxz.transSwipe);
		if (!CGboxm.CGfadeIn) {
			CGFinishHide();
		}
		else {
			if (CGboxm.isswffile) CGboxm.swf();
			if (CGboxm.ismovfile) CGboxm.mov();
		}
	}
	return;
}
function CGDoOpacity(transVal) {
	if (CGboxm.style.MozOpacity != null) {
		CGboxm.style.MozOpacity = transVal/100;
		if (CGboxs.shadowOn) {
			CGboxs.style.MozOpacity = transVal <= CGboxs.opa ? transVal/100 : CGboxs.opa/100;
		}
	}
	else if (CGisIE && !CGisMacIE) {
		CGboxm.filters.item("DXImageTransform.Microsoft.Alpha").opacity = transVal;
		if (CGboxs.shadowOn) {
			CGboxs.filters.item("DXImageTransform.Microsoft.Alpha").opacity = transVal <= CGboxs.opa ? transVal : CGboxs.opa;
		}
	}
	else {
		CGboxm.style.opacity = transVal/100;
		if (CGboxs.shadowOn) {
			CGboxs.style.opacity = transVal <= CGboxs.opa ? transVal/100 : CGboxs.opa/100;
		}
	}
	return;
}
function CGDoPrep() {
	if (!CGisIE) {
		CGboxs.targetWidth = parseInt(CGboxm.style.width) + CGboxm.borderSize*2;
		CGboxl.targetWidth = CGboxs.targetWidth + CGboxl.windowBorder*2;
		CGboxs.targetHeight = parseInt(CGboxm.style.height) + CGboxm.borderSize*2;
		CGboxl.targetHeight = CGboxs.targetHeight + CGboxl.windowBorder*2;
		if ((CGboxc.pos == 1 || CGboxc.pos == 2) && CGboxc.sou != 0) {
			CGboxs.targetHeight += parseInt(CGboxcHeight) + CGboxc.off;
			CGboxl.targetHeight += parseInt(CGboxcHeight) + CGboxc.off;
		}
	}
	else {
		CGboxs.targetWidth = parseInt(CGboxm.style.width) + CGboxm.borderSize*2;
		CGboxl.targetWidth = CGboxs.targetWidth + CGboxl.windowBorder*2;
		CGboxs.targetHeight = parseInt(CGboxm.style.height) + CGboxm.borderSize*2
		CGboxl.targetHeight = parseInt(CGboxm.style.height) + CGboxm.borderSize*2 + CGboxl.windowBorder*2;
		if ((CGboxc.pos == 1 || CGboxc.pos == 2) && CGboxc.sou != 0) {
			CGboxs.targetHeight += parseInt(CGboxcHeight) + CGboxc.off;
			CGboxl.targetHeight += parseInt(CGboxcHeight) + CGboxc.off;
		}
	}
	var a = new Array();
	a[0] = CGboxl.targetWidth, a[1] = CGboxl.targetHeight;
	return a;
}
function CGDoDropShadow() {
	CGboxs.style.width = CGboxs.targetWidth + "px";
	CGboxs.style.height = CGboxs.targetHeight + "px";
	CGboxs.style.left = parseInt(CGboxm.style.left) + CGboxs.shadowHoffset + "px";
	CGboxs.style.top = parseInt(CGboxm.style.top) + CGboxs.shadowVoffset - CGboxm.adjust + "px";
	return;
}
function CGShowHide(object, state) {
	if (CGisW3C || CGisIE4) {
		object.style.visibility = state;
	}
	else if (CGisNav4) {
		object.visibility = state;
	}
	return;
}
function CGFinishHide() {
	clearInterval(CGboxm.CGtransInt);
	clearInterval(CGboxc.CGtransInt);
	clearInterval(CGboxl.CGtransInt);
	clearInterval(CGboxs.CGtransInt);
	CGDoOpacity(100);
	CGboxm.showHide(CGhid);
	CGboxl.showHide(CGhid);
	CGboxs.showHide(CGhid);
	CGboxs.doOpacity(null);
	CGboxw.showHide(CGhid);
	CGboxw.doOpacity(null);
	CGboxc.showHide(CGhid);
	CGboxz.showHide(CGhid);
	if (CGboxb) {
		CGboxb.showHide(CGhid);
		CGboxb.doOpacity(null);
		CGboxb.style.width = "auto";
		CGboxb.style.height = "auto";
	}
	return;
}
function CGQuickReturn() {
	clearInterval(CGboxm.CGtransInt);
	clearInterval(CGboxl.CGtransInt);
	clearTimeout(CGslideTimer);
	clearInterval(CGsetLoadDelay);
	clearTimeout(CGsetShowDelay);
	CGboxm.showHide(CGhid);
	CGboxw.showHide(CGhid);
	CGboxw.doOpacity(null);
	CGboxc.showHide(CGhid);
	if (CGboxb) {
		CGboxb.showHide(CGhid);
		CGboxb.doOpacity(null);
	}
	CGboxl.showHide(CGhid);
	CGboxs.showHide(CGhid);
	CGboxs.doOpacity(null);
	return;
}
function CGDoCopyrightMark() {
	var p = eval(CGboxm.path + "document");
	if (CGisW3C) {
		if (CGboxm.autoClose) {
			p.oncontextmenu = CGShowWaterMark;
			p.onkeyup = CGHideWaterMark;
			if (p.addEventListener) {
				p.addEventListener("mouseout", CGShowWaterMark, false);
				p.addEventListener("mouseover", CGHideWaterMark, false);
			}
			else if (CGboxm.attachEvent) {
				p.attachEvent("onmouseout", CGShowWaterMark);
				p.attachEvent("onmouseover", CGHideWaterMark);
			}
			else {
				p.onmouseout = CGShowWaterMark;
				p.onmouseover = CGHideWaterMark;
			}
		}
		else {
			if (CGboxw.addEventListener) {
				CGboxw.addEventListener("mouseout", CGHideWaterMark, false);
				CGboxw.addEventListener("mouseover", CGShowWaterMark2, false);
			}
			else if (CGboxm.attachEvent) {
				CGboxw.attachEvent("onmouseout", CGHideWaterMark);
				CGboxw.attachEvent("onmouseover", CGShowWaterMark2);
			}
		}
	}
	return;
}
function CGDONotCopyrightMark() {
	var p = eval(CGboxm.path + "document");
	if (CGisW3C) {
		if (CGboxm.autoClose) { 
			p.oncontextmenu = null;
			p.onkeyup = null;
			if (p.removeEventListener) {
				p.removeEventListener("mouseout", CGShowWaterMark, false);
				p.removeEventListener("mouseover", CGHideWaterMark, false);
			}
			else if (p.detachEvent) {
				p.detachEvent("onmouseout", CGShowWaterMark);
				p.detachEvent("onmouseover", CGHideWaterMark);
			}
			else {
				p.onmouseout = null;
				p.onmouseover = null;
			}
		}
		else {
			if (CGboxw.removeEventListener) {
				CGboxw.removeEventListener("mouseout", CGHideWaterMark, false);
				CGboxw.removeEventListener("mouseover", CGShowWaterMark2, false);
			}
			else if (CGboxm.detachEvent) {
				CGboxw.detachEvent("onmouseout", CGHideWaterMark);
				CGboxw.detachEvent("onmouseover", CGShowWaterMark2);
			}
		}
	}
	return;
}
function CGShowWaterMark(e) {
	clearTimeout(CGboxw.CGsetHideDelay);
	if (CGisIE) {
		if (event && (event.srcElement.id == "CGbackgroundLayer" || event.type == "keydown" || event.type == "keypress" || event.type == "mousedown")) CGboxw.doOpacity(CGboxw.opa2);
	}
	else {
		if (e && (e.target.id == "CGbackgroundLayer" || e.type == "keydown" || e.type == "keypress" || e.type == "mousedown")) CGboxw.doOpacity(CGboxw.opa2);			
	}
	return true;
}
function CGShowWaterMark2() {
	clearTimeout(CGboxw.CGsetHideDelay);
	CGboxw.doOpacity(CGboxw.opa2);
	return;
}
function CGHideWaterMark(e) {
	clearTimeout(CGboxw.CGsetHideDelay);
	CGboxw.CGsetHideDelay = setTimeout('CGHideWaterMark2()', 1500);
	return;
}
function CGHideWaterMark2() {
	CGboxw.doOpacity(0);
	return true;
}
function CGZipNotice(mcode) {
	this.innerHTML = "";
	this.innerHTML = eval("CGzip" + (mcode) + "()");
	return;
}
function CGZipOn() {
	if (CGisW3C) {
		if (CGboxw.addEventListener) {
			CGboxw.addEventListener("mouseout", CGDoZipClose, false);
			CGboxw.addEventListener("mouseover", CGDoZipOpen, false);
		}
		else if (CGboxw.attachEvent) {
			CGboxw.attachEvent("onmouseout", CGDoZipClose);
			CGboxw.attachEvent("onmouseover", CGDoZipOpen);
		}
		else {
			CGboxw.onmouseout = CGDoZipClose;
			CGboxw.onmouseover = CGDoZipOpen;
		}
	}
	return;
}
function CGZipOff() {
	if (CGisW3C) {
		if (CGboxw.removeEventListener) {
			CGboxw.removeEventListener("mouseout", CGDoZipClose, false);
			CGboxw.removeEventListener("mouseover", CGDoZipOpen, false);
		}
		else if (CGboxw.detachEvent) {
			CGboxw.detachEvent("onmouseout", CGDoZipClose);
			CGboxw.detachEvent("onmouseover", CGDoZipOpen);
		}
		else {
			CGboxw.onmouseout = null;
			CGboxw.onmouseover = null;
		}
	}
	return;
}
function CGDoAutoClose() {
	var p = eval(CGboxm.path + "document.body");
	if (CGboxm.path != "") {
		p.onkeypress = CGboxm.pro ? CGHideAll2 : null;
		p.onkeydown = CGboxm.pro ? CGHideAll2 : null;
		if (p.addEventListener) {
			p.addEventListener("mouseup", CGHideAll, false);
			if (CGboxm.pro && CGboxm.path == "") {
				p.addEventListener("mouseout", CGHideAll2, false); 
			}
			else {
				p.removeEventListener("mouseout", CGHideAll2, false);
			}
		}
		else if (p.attachEvent) {
			p.attachEvent("onmouseup", CGHideAll);
			if (CGboxm.pro && CGboxm.path == "") {
				p.attachEvent("onmouseout", CGHideAll2);
			}
			else {
				p.detachEvent("onmouseout", CGHideAll2);
			}
		}
		else {
			p.onmouseup = CGHideAll;
			p.onmouseout = CGboxm.pro && CGboxm.path == "" ? CGHideAll2 : null;
		}
	}
	document.onkeypress = CGboxm.pro ? CGHideAll2 : null;
	document.onkeydown = CGboxm.pro ? CGHideAll2 : null;
	if (document.body.addEventListener) {
		document.body.addEventListener("mouseup", CGHideAll, false);
		if (CGboxm.pro && CGboxm.path == "") {
			document.body.addEventListener("mouseout", CGHideAll2, false);
		}
		else {
			document.body.removeEventListener("mouseout", CGHideAll2, false);
		}
	}
	else if (document.body.attachEvent) {
		document.body.attachEvent("onmouseup", CGHideAll);
		if (CGboxm.pro && CGboxm.path == "") {
			document.body.attachEvent("onmouseout", CGHideAll2);
		}
		else {
			document.body.detachEvent("onmouseout", CGHideAll2);
		}
	}
	else {
		document.body.onmouseup = CGHideAll;
		document.body.onmouseout = CGboxm.pro && CGboxm.path == "" ? CGHideAll2 : null;
	}
	return;
}
function CGDoAutoCloseImg() {
	if (CGboxm.addEventListener) {
		CGboxm.addEventListener("mouseup", CGHideAll, false);
		CGboxw.addEventListener("mouseup", CGHideAll, false);
	}
	else if (CGboxm.attachEvent) {
		CGboxm.attachEvent("onmouseup", CGHideAll);
		CGboxw.attachEvent("onmouseup", CGHideAll);
	}
	else {
		CGboxm.onmouseup = CGHideAll;
		CGboxw.onmouseup = CGHideAll;
	}
	return;
}
function CGReleaseAutoClose() {
	var p = eval(CGboxm.path + "document.body");
	if (CGboxm.path != "") {
		p.onkeypress =  null;
		p.onkeydown = null;
		if (p.addEventListener) {
			p.removeEventListener("mouseup", CGHideAll, false);
			p.removeEventListener("mouseout", CGHideAll2, false);
		}
		else if (p.attachEvent) {
			p.detachEvent("onmouseup", CGHideAll);
			p.detachEvent("onmouseout", CGHideAll2);
		}
		else {
			p.onmouseup = null;
			p.onmouseout = null;
		}
	}
	document.onkeypress =  null;
	document.onkeydown = null;
	if (document.body.addEventListener) {
		document.body.removeEventListener("mouseup", CGHideAll, false);
			document.body.removeEventListener("mouseout", CGHideAll2, false);
	}
	else if (document.body.attachEvent) {
		document.body.detachEvent("onmouseup", CGHideAll);
			document.body.detachEvent("onmouseout", CGHideAll2);
	}
	else {
		document.body.onmouseup = null;
		document.body.onmouseout = null;
	}
	return;
}
function CGDoMOV() {
	var html = '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="' + CGimgm.height + '" width="' + CGimgm.width + '">';
	html +=	'<param name="loop" value="' + CGboxm.loop + '" />';
	html +=	'<param name="autoplay" value="' + CGboxm.autoplay + '" />';
	html +=	'<param name="controller" value="' + CGboxm.controller + '" />';
	html += '<param name="cache" value="true">';
	html +=	'<param name="hidden" value="false" />';
	html +=	'<param name="src" value="' + CGimgm.src + '" />';
	html +=	'<embed name="' + CGaction[8] + '" height="' + CGimgm.height + '" width="' + CGimgm.width + '" ' + 'pluginspage="http://www.apple.com/quicktime/download/" src="' + CGimgm.src + '" type="video/quicktime"  controller="' + CGboxm.controller + '" autoplay="' + CGboxm.autoplay + '" loop="' + CGboxm.loop + '" cache="true"';
	html +=	'></embed></object>';
	if (document.getElementById) {
		this.innerHTML = html;
	}
	else if (document.all) {
		if (CGimgm.src) {
			this.sexposure = 0;
		}
		else {
			this.innerHTML = "";
			this.innerHTML = html;
		}
	}
	else if (document.layers) {
		if (CGimgm.src) {
			this.sexposure = 0;
		}
		else {
			this.clip.width = this.width;
			this.clip.height = this.height;				
			this.background.src = this.sad;
		}
	}
	var t = setTimeout("CGDoMediaFinish()", 500);
	return;
}
function CGDoSWF() {
	var html = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="' + CGimgm.height + '" width="' + CGimgm.width + '"> ';
	html +=	'<param name="loop" value="' + CGboxm.loop + '" />';
	html +=	'<param name="play" value="' + CGboxm.autoplay + '" />';
	html +=	'<param name="controller" value="' + CGboxm.controller + '" />';
	html += '<param name="cache" value="true">';
	html +=	'<param name="movie" value="' + CGimgm.src + '"> ';
	html +=	'<param name="quality" value="best"> ';
	html +=	'<embed name="' + CGaction[8] + '" height="' + CGimgm.height + '" width="' + CGimgm.width + '" pluginspage="http://www.macromedia.com/go/getflashplayer" src="' + CGimgm.src + '" type="application/x-shockwave-flash" quality="best" play="' + CGboxm.autoplay + '" loop="' + CGboxm.loop + '" controller="' + CGboxm.controller + ' cache="true"';
	html +=	'></embed></object>';
	if (document.getElementById) {
		this.innerHTML = html;
	}
	else if (document.all) {
		if (CGimgm.src) {
			this.sexposure = 0;
		}
		else {
			this.innerHTML = "";
			this.innerHTML = html;
		}
	}
	else if (document.layers) {
		if (CGimgm.src) {
			this.sexposure = 0;
		}
		else {
			this.clip.width = this.width;
			this.clip.height = this.height;				
			this.background.src = this.sad;
		}
	}
	var t = setTimeout("CGDoMediaFinish()", 500);
	return;
}
function CGDoMediaFinish() {
	CGboxm.style.visibility = CGvis;
	return;
}
function CGVersion() {
	return true;
}
//
//-->

function CSOpenWindow(action) {
	var wf = "";	
	wf = wf + "width=" + action[3];
	wf = wf + ",height=" + action[4];
	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");		
	window.open(action[1],action[2],wf);
}

// OpenPopUpLite 2.0.1 action by Nate Baldwin, www.mindpalette.com, copyright 2004
if (typeof MPStoreOpenWin2 == "undefined") MPStoreOpenWin2 = new Array();
function MPOpenPopupLite(action) {
	var posX = 0;
	var posY = 0;
	if (action[4] == true) {
		posX = Math.round((screen.availWidth/2)-(action[2]/2));
		posY = Math.round((screen.availHeight/2)-(action[3]/2));
		} else {
		posX = action[12];
		posY = action[13];
		}
	if (action[16] == true) {
		posX = 0;
		posY = 0;
		action[2] = screen.availWidth;
		action[3] = screen.availHeight;
		}
	for (i=5; i<12; i++) {
		action[i] == true ? action[i] = "yes" : action[i] = "no";
		}
	var windowOptions = "";
	windowOptions += "width=" + action[2];
	windowOptions += ",height=" + action[3];
	windowOptions += ",resizable=" + action[11];
	windowOptions += ",scrollbars=" + action[5];
	windowOptions += ",menubar=" + action[6];
	windowOptions += ",toolbar=" + action[9];
	windowOptions += ",directories=" + action[7];
	windowOptions += ",location=" + action[10];
	windowOptions += ",status=" + action[8];
	windowOptions += ",left=" + posX;
	windowOptions += ",top=" + posY;
	var thisPopup = window.open(action[15], action[1], windowOptions);
	MPStoreOpenWin2[action[1]] = thisPopup;
	if (action[14] != "" && action[14] != "#" && action[14] != "(EmptyReference!)" && action[14] != "(Empty Reference!)")
		window.location = action[14];
	}
//-->



