// WBCyberGallerySetup v4.1 - March, 2009
// 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 CGvis = (CGisW3C || CGisIE4) ? "visible" : "show";
var CGhid = (CGisW3C || CGisIE4) ? "hidden" : "hide";
document.writeln('<head>');
document.writeln('<style type="text/css" media="screen"><!--');
document.writeln('#CGbackgroundLayer { height: auto; width: auto; left: 0px; top: 0px; position: absolute; z-index: 100; visibility: hidden; }');
document.writeln('#CGimageLayer { left: 290px; top: 164px; z-index: 101; position: absolute; visibility: hidden; }');
document.writeln('#CGwatermarkLayer { left: 0px; top: 0px; z-index: 102; position: absolute; visibility: hidden; }');
document.writeln('#CGcaptionLayer { height: auto; left: 0px; top: 0px; z-index: 102; position: absolute; visibility: hidden; }');
document.writeln('#CGlineLayer { height: auto; left: 0px; top: 0px; z-index: 100; position: absolute; visibility: hidden; }');
document.writeln('#CGshadowLayer { height: auto; left: 0px; top: 0px; z-index: 100; position: absolute; visibility: hidden; }');
document.writeln('--></style>');
document.writeln('</head><body>');
document.writeln('<div id="CGbackgroundLayer"></div>');
document.writeln('<div id="CGimageLayer"><img id="CGpix" src="#" alt="" name="CGpix" border="0" /></div></body>');
document.writeln('<div id="CGwatermarkLayer"></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()) { 
		CGSaction =  action;
		CGSsetDelay = setInterval("CGSFinishUp()", 200);
	}
	CGSdelay = 100;
	return;
}
function CGSFinishUp() {
	clearInterval(CGSsetDelay);
	window.onscroll = CGScrollSet;
	window.onresize = CGScrollSet;
	if (CGSaction[1]) {
		CGboxb = document.getElementById("CGbackgroundLayer");
		CGboxb.style.top = 0 + "px";
		CGboxb.style.left = 0 + "px";
		CGboxb.doOpacity = CGDOpacity;
		CGboxb.opa = parseInt(CGSaction[2]);
		CGboxb.showHide = CGSShowHide;
		CGboxb.style.backgroundColor = CGSaction[3];
		CGboxb.bimage = CGSaction[4];
		CGboxb.isImage = CGboxb.bimage != "" && 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]);
	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] != "" && CGSaction[9] != "#";
		if (CGboxw.isImage) {
			CGboxw.style.backgroundImage = "url(" + CGSaction[9] + ")";
			CGboxw.style.backgroundRepeat = "no-repeat";
			CGboxw.style.backgroundPosition = "center";
		}
	}
	CGboxw.doOpacity = CGDOpacity;
	CGboxw.setSize = CGSSetBoxSize;
	CGboxw.scrollTo = CGSScrollTo;
	CGboxw.showHide = CGSShowHide;
	CGboxw.opa = parseInt(CGSaction[10]);
	CGboxw.scrollTo(0, 0);
	CGboxc = document.getElementById("CGcaptionLayer");
	CGboxc.scrollTo = CGSScrollTo;
	CGboxc.showHide = CGSShowHide;
	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]);
	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 ? "#FFFFFF" : "";
	CGboxl.scrollSpeed = parseInt(CGSaction[40]);
	CGboxl.scrollInterval = parseInt(CGSaction[41]);
	CGimgl = CGboxl.lastChild;
	CGboxlImage = CGSaction[42];
	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];
	}
	if (CGSaction[12] != "") CGboxc.style.fontSize = CGSaction[12].search(/\D/g) != -1 ? CGSaction[12] : CGSaction[12] + "px";
	var CGa13 = CGSaction[13] == "" ?  CGSaction[12] : CGSaction[13];
	if (CGa13 != "") CGboxc.style.lineHeight = CGa13.search(/\D/g) != -1 ? CGa13 : CGa13 + "px";
	if (CGSaction[14] != "") CGboxc.style.fontWeight = CGSaction[14].search(/\D/g) != -1 ? CGSaction[14] : CGSaction[14] + "px";
	if (CGSaction[15] != "") CGboxc.style.fontStyle = CGSaction[15];
	CGboxc.style.color = CGSaction[16];
	if (CGSaction[18] != "") CGboxc.style.textIndent = CGSaction[18].search(/\D/g) != -1 ? CGSaction[18] : CGSaction[18] + "px";
	if (CGSaction[19] != "") CGboxc.style.wordSpacing = CGSaction[19].search(/\D/g) != -1 ? CGSaction[19] : CGSaction[19] + "px";
	if (CGSaction[20] != "") CGboxc.style.letterSpacing = CGSaction[20].search(/\D/g) != -1 ? CGSaction[20] : CGSaction[20] + "px";
	if (CGSaction[21] != "") CGboxc.style.margin = CGSaction[21].search(/\D/g) != -1 ? CGSaction[21] : CGSaction[21] + "px";
	CGboxc.mar = parseInt(CGSaction[21]);
	if (CGSaction[22] != "") CGboxc.style.padding = CGSaction[22].search(/\D/g) != -1 ? CGSaction[22] : CGSaction[22] + "px";
	CGboxc.pad = parseInt(CGSaction[22]);
	CGboxc.fixedWidth = parseInt(CGSaction[23]) > 0 ? parseInt(CGSaction[23]) : 0;
	var border = CGSaction[25].replace(/D/g, "");
	CGboxc.borderSize = border > 0 ? parseInt(border) : 0;
	CGboxc.style.border = CGSaction[26] + " " + CGSaction[24] + " " + CGboxc.borderSize + "px";
	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";
	}
	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 v5.4.1 - August, 2009
// 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, CGimgm;
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;
function WBCyberGallery(action) {
	if (CGVersion()) {
		if (CGboxm.CGtransInt) clearInterval(CGboxm.CGtransInt);
		if (CGboxc.CGtransInt) clearInterval(CGboxc.CGtransInt);
		if (CGboxs.CGtransInt) clearInterval(CGboxs.CGtransInt);
		CGaction = action;
		CGloop = false;
		if (action[1] < 6) {
			var path = CGaction[17] == "" ? "" : CGaction[17] + ".";
			var path2 = CGaction[17] == "" ? "" : CGaction[17];
			CGboxm.slideMode = CGaction[1] > 0 && CGaction[1] < 6 ? true : false;
			CGboxm = eval(path + "CGboxm");
			CGboxw = eval(path + "CGboxw");
			CGboxc = eval(path + "CGboxc");
			CGboxl = eval(path + "CGboxl");
			CGboxs = eval(path + "CGboxs");
			CGSdelay = eval(path + "CGSdelay");
			CGimgm = CGboxm.lastChild;
			CGboxm.path = path;
			CGboxm.path2 = path2;
			CGboxm.win = CGaction[19];
			CGboxm.url = CGaction[18];
			CGboxm.cap = CGcaptions != null;
			CGboxm.wpos = action[10];
			CGboxm.left = parseInt(action[11]);
			CGboxm.top = parseInt(action[12]);
			CGboxm.pro = action[14] > 0;
			CGboxm.mar = action[14];
			if (action[14] == 2) {
				CGDoCopyrightMark();
			}
			else {
				CGDONotCopyrightMark();
			}
			CGboxc.sou = action[5];
			CGboxc.pos = action[6];
			CGboxc.ali = action[7];
			CGboxc.cid = action[8];
			CGboxc.off = action[9] != "" ? parseInt(action[9]) : 0;
			if (CGboxb && parseInt(action[15]) > 0) CGboxb.opa = parseInt(action[15]);
			CGboxw.opa2 = parseInt(action[16]) > 0 ? parseInt(action[16]) : 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 + "()") != ""; i++) { }
				CGtotalSlides = i-1;
			}
			if (CGboxm.autoClose) {
				if (CGboxm.slideMode) {
					CGDONotAutoClose();
				}
				else {
					CGDoAutoClose();
				}
			}
			else if (action[1] == 0) {
				if (CGboxb) CGboxb = null;
			}
		}
		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_notice"+ "()");
				}
				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 != "") {
				CGimgn = new Image();
				CGimgn.src = img;
				CGimgm.src = CGimgn.src;
			}
			if (CGboxb) {
				if (CGboxb.isImage && !CGimgn.complete) CGboxb.style.backgroundImage = "url(" + CGboxb.bimage + ")";
				CGboxb.showHide(CGvis);
				CGboxb.doOpacity(CGboxb.opa);
			}
			CGsetLoadDelay = setInterval('if (CGimgn.complete) { CGFinishUp() }', CGSdelay);
		}
		else {
			if (action[1] == 6 && CGboxm.pro != null) {
				if (!CGpause) {
					CGdirection = CGadvance;
					clearTimeout(CGslideTimer);
				}
				else {
					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);
				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 + "()");
	if (CGboxm.url == "" || CGboxm.url == "#") CGboxm.url = CGurl;
	CGboxc.showHide(CGhid);
	CGboxm.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_notice"+ "()");
		}
		CGboxc.innerHTML = "";
		CGboxc.innerHTML = caption;
	}
	CGimgn = new Image();
	CGimgn.src = img;
	CGimgm.src = CGimgn.src;
	if (CGboxb && CGboxb.isImage && !CGimgn.complete) CGboxb.style.backgroundImage = "url(" + CGboxb.bimage + ")";
	CGsetLoadDelay = setInterval('if (CGimgn.complete) { 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, fixpad = CGisWinIE ? 0 : CGboxc.pad*2;
		if (!CGisIE) {
			var width = CGboxc.fixedWidth == 0 ? (parseInt(CGboxm.style.width) + CGboxm.borderSize*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) + CGboxm.borderSize*2) : CGboxc.fixedWidth;
		}
		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);
		CGboxw.showHide(CGvis);
		CGboxw.doOpacity(0);
	}
	if (CGboxm.wpos > 0) {
		var top, left;
		if (CGboxm.wpos == 1) {
			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) + CGboxm.borderSize/2 + CGboxcHeight;
			if (p.innerHeight) {
				left = ((p.innerWidth - CGimgm.width)/2) + sl;
				top = ((p.innerHeight - mch)/2) + st - (CGboxc.off/2);
			}
			else {
				left = ((p.document.body.clientWidth - CGimgm.width)/2) + sl;
				var dech = p.document.documentElement.clientHeight, dbch = p.document.body.clientHeight;
				top = dech > 0 ? ((dech - mch)/2) + st - (CGboxc.off/2) : ((dbch - mch)/2)  + st - (CGboxc.off/2);
			}
		}
		else if (CGboxm.wpos == 2) {
			left = CGboxm.left;
			top = CGboxm.top;
		}
		CGboxm.adjust = 0;
		if (CGboxc.pos == 1) {
			top += CGboxcHeight;
			CGboxm.adjust = CGboxcHeight;
		}
		else if (CGboxc.pos == 0 || CGboxc.pos > 2) {
			top += CGboxcHeight-cboxPadMar*2;
		}
		CGboxm.scrollTo(left-(CGboxm.borderSize), top-(CGboxm.borderSize));
		CGboxw.scrollTo(left, top);
		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;
			}
			if (CGboxc.pos == 0) {
				var left = x;
				var top = CGboxm.boxmtop + CGimgm.height/2 - CGboxcHeight/2 + CGboxm.borderSize;
			}
			else if (CGboxc.pos == 1) {
				var left = x;
				var top = CGboxm.boxmtop - CGboxcHeight - offset;
			}
			else if (CGboxc.pos == 2) {
				var left = x;
				var top = CGboxm.boxmtop + CGimgm.height + CGboxm.borderSize*2 + offset;
			}
			else if (CGboxc.pos == 3) {
				var left = x;
				var top = CGboxm.boxmtop + CGboxm.borderSize + offset;
			}
			else if (CGboxc.pos == 4) {
				var left = x;
				var top = (CGboxm.boxmtop + CGimgm.height) - CGboxcHeight + CGboxm.borderSize*2 - CGboxm.borderSize - offset;
			}
			CGboxc.scrollTo(left, top);
		}
	}
	CGsetShowDelay = setInterval('CGShowAll()', CGSdelay);
	return;
}
function CGShowAll() {
	clearInterval(CGsetShowDelay);
	if (CGboxm.transMode == 2 || CGboxm.transMode == 3) {
		clearInterval(CGboxm.CGtransInt);
		clearInterval(CGboxc.CGtransInt);
		clearInterval(CGboxs.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("CGDoStillSwipeWindow()", 50);
	}
	else {
		if (CGboxm) 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) {
				CGboxw.doOpacity(CGboxw.opa2);
				CGboxw.showHide(CGvis);
			}
		}
		if (CGboxm.transMode == 2 || CGboxm.transMode == 3) {
			CGboxm.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
			CGboxc.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
			CGboxs.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
		}
		else {
			if (CGboxs.shadowOn) {
				CGDoDropShadow();
				CGboxs.doOpacity(CGboxs.opa);
				CGboxs.showHide(CGvis);
			}
		}
	}
	if (CGaction[1] == 1 || CGaction[1] == 2 || CGaction[1] == 3 || CGaction[1] == 6) {
		CGslideTimer = setTimeout("CGDoSlides()", CGtimer);
	}
	return;
}
function CGDoHorizSwipeWindow() {
	var swipeWindow = CGDoPrep();
	var swipeWindowWidth = CGboxl.windowOn > 0 ? swipeWindow[0] : 0;
	var swipeWindowHeight = CGboxl.windowOn > 0 ? swipeWindow[1] : 0;
	CGimgl.width = swipeWindowWidth;
	CGimgl.height = swipeWindowHeight;
	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";
	var img = new Image();
	img.src = CGboxlImage;
	CGimgl.src = img.src;
	CGboxl.targetWidth = swipeWindowWidth;
	CGboxl.targetHeight = swipeWindowHeight;
	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);
	CGboxl.CGtransInt = setInterval("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) {
		CGboxl.tracktop = 0;
		CGboxl.trackbottom = CGboxl.targetHeight;
		clearInterval(CGboxl.CGtransInt);
		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.trackleft -= CGboxl.scrollSpeed/2;
	CGboxl.trackright += CGboxl.scrollSpeed/2;
	if (CGboxl.trackleft <= 0) {
		CGboxl.trackleft = 0;
		CGboxl.trackright = CGboxl.targetWidth;
		CGboxl.style.clip = "rect(" + CGboxl.tracktop + "px " + CGboxl.trackright + "px "  + CGboxl.trackbottom + "px " + CGboxl.trackleft + "px)"
		clearInterval(CGboxl.CGtransInt);
		CGboxl.style.clip = "rect(" + 0 + "px " + CGboxl.trackright + "px "  + parseInt(CGboxl.trackbottom)+1 + "px " + 0 + "px)";
		CGboxm.showHide(CGvis);
		if (CGboxc.sou > 0) CGboxc.showHide(CGvis);
		CGboxs.showHide(CGvis);
		if (CGboxm.pro && CGboxm.mar == 1) CGboxw.doOpacity(CGboxw.opa2);
		if (CGboxm.transMode == 2 || CGboxm.transMode == 3) {
			CGboxm.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
			CGboxc.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
			CGboxs.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
		}
		else {
			CGDoDropShadow();
			CGboxs.doOpacity(CGboxs.opa);
			CGboxs.showHide(CGvis);
		}
	}
	return;
}
function CGDoVertSwipeWindow() {
	var swipeWindow = CGDoPrep();
	var swipeWindowWidth = CGboxl.windowOn > 0 ? swipeWindow[0] : 0;
	var swipeWindowHeight = CGboxl.windowOn > 0 ? swipeWindow[1] : 0;
	CGimgl.width = swipeWindowWidth;
	CGimgl.height = swipeWindowHeight;
	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";
	var img = new Image();
	img.src = CGboxlImage;
	CGimgl.src = img.src;
	CGboxl.targetWidth = swipeWindowWidth;
	CGboxl.targetHeight = swipeWindowHeight;
	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);
	CGboxl.CGtransInt = setInterval("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) {
		CGboxl.trackleft = 0;
		CGboxl.trackright = CGboxl.targetWidth;
		clearInterval(CGboxl.CGtransInt);
		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.tracktop -= CGboxl.scrollSpeed/2;
	CGboxl.trackbottom += CGboxl.scrollSpeed/2;
	if (CGboxl.tracktop <= 0) {
		CGboxl.tracktop = 0;
		CGboxl.trackbottom = CGboxl.targetHeight;
		CGboxl.style.clip = "rect(" + CGboxl.tracktop + "px " + CGboxl.trackright + "px "  + CGboxl.trackbottom + "px " + CGboxl.trackleft + "px)"
		clearInterval(CGboxl.CGtransInt);
		CGboxl.style.clip = "rect(" + 0 + "px " + CGboxl.trackright + "px "  + parseInt(CGboxl.trackbottom)+1 + "px " + 0 + "px)";
		CGboxm.showHide(CGvis);
		if (CGboxc.sou > 0) CGboxc.showHide(CGvis);
		CGboxs.showHide(CGvis);
		if (CGboxm.pro && CGboxm.mar == 1) CGboxw.doOpacity(CGboxw.opa2);
		if (CGboxm.transMode == 2 || CGboxm.transMode == 3) {
			CGboxm.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
			CGboxc.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
			CGboxs.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
		}
		else {
			CGDoDropShadow();
			CGboxs.doOpacity(CGboxs.opa);
			CGboxs.showHide(CGvis);
		}
	}
	return;
}
function CGDoCenterSwipeWindow() {
	var swipeWindow = CGDoPrep();
	var swipeWindowWidth = CGboxl.windowOn > 0 ? swipeWindow[0] : 0;
	var swipeWindowHeight = CGboxl.windowOn > 0 ? swipeWindow[1] : 0;
	CGimgl.width = swipeWindowWidth;
	CGimgl.height = swipeWindowHeight;
	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";
	var img = new Image();
	img.src = CGboxlImage;
	CGimgl.src = img.src;
	CGboxl.targetWidth = swipeWindowWidth;
	CGboxl.targetHeight = swipeWindowHeight;
	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);
	CGboxl.CGtransInt = setInterval("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) {
		CGboxl.style.clip = "rect(" + CGboxl.tracktop + "px " + CGboxl.trackright + "px "  + CGboxl.trackbottom + "px " + CGboxl.trackleft + "px)";
		clearInterval(CGboxl.CGtransInt);
		CGboxl.style.clip = "rect(" + 0 + "px " + CGboxl.trackright + "px "  + parseInt(CGboxl.trackbottom)+1 + "px " + 0 + "px)";
		CGboxm.showHide(CGvis);
		if (CGboxc.sou > 0) CGboxc.showHide(CGvis);
		CGboxs.showHide(CGvis);
		if (CGboxm.pro && CGboxm.mar == 1) CGboxw.doOpacity(CGboxw.opa2);
		if (CGboxm.transMode == 2 || CGboxm.transMode == 3) {
			CGboxm.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
			CGboxc.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
			CGboxs.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
		}
		else {
			CGDoDropShadow();
			CGboxs.doOpacity(CGboxs.opa);
			CGboxs.showHide(CGvis);
		}
	}
	return;
}
function CGDoStillSwipeWindow() {
	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 = CGboxl.targetWidth + "px";
	CGboxl.style.height = CGboxl.targetHeight + "px";
	var img = new Image();
	img.src = CGboxlImage;
	CGimgl.src = img.src;
	CGimgl.width = parseInt(CGboxl.style.width);
	CGimgl.height = parseInt(CGboxl.style.height);
	var t = setTimeout("CGDoStillSwipeWindowFinish()", 100);
	return;
}
function CGDoStillSwipeWindowFinish() {
	CGboxl.showHide(CGvis);
	CGboxm.showHide(CGvis);
	if (CGboxc.sou > 0) CGboxc.showHide(CGvis);
	CGboxs.showHide(CGvis);
	if (CGboxm.pro && CGboxm.mar == 1) CGboxw.doOpacity(CGboxw.opa2);
	if (CGboxm.transMode == 2 || CGboxm.transMode == 3) {
		CGboxm.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
		CGboxc.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
		CGboxs.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
	}
	else {
		CGDoDropShadow();
		CGboxs.doOpacity(CGboxs.opa);
		CGboxs.showHide(CGvis);
	}
	return;
}
function CGHideAll() {
	clearInterval(CGboxm.CGtransInt);
	clearInterval(CGboxc.CGtransInt);
	clearInterval(CGboxs.CGtransInt);
	clearInterval(CGboxl.CGtransInt);
	if (CGboxm.transMode == 1 || CGboxm.transMode == 3) {
		CGboxm.CGfadeIn = false;
		CGboxm.CGtransSta = 100;
		CGboxm.CGtransEnd = 0;
		CGboxm.CGtransVal = CGboxm.CGtransSta;
		CGboxm.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
		CGboxc.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
		CGboxs.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;
	if (e.type == "mouseout") {
		x = e.pageX ? e.pageX : window.event.clientX;
		y = e.pageY ? e.pageY : window.event.clientY;
	}
	var e = (CGisIE) ? event : e;
	if (e.type == "keydown" || e.type == "keypress" || y > wb || y < st || x > wr || x < sl) {
		clearInterval(CGboxm.CGtransInt);
		clearInterval(CGboxc.CGtransInt);
		clearInterval(CGboxs.CGtransInt);
		clearInterval(CGboxl.CGtransInt);
		CGimgm.src = null;
		if (CGboxm.transMode == 1 || CGboxm.transMode == 3) {
			CGboxm.CGfadeIn = false;
			CGboxm.CGtransSta = 100;
			CGboxm.CGtransEnd = 0;
			CGboxm.CGtransVal = CGboxm.CGtransSta;
			CGboxm.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
			CGboxc.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
			CGboxs.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(CGboxc.CGtransInt);
		clearInterval(CGboxs.CGtransInt);
		clearInterval(CGboxl.CGtransInt);
		if (!CGboxm.CGfadeIn) {
			CGFinishHide();
		}
	}
	return;
}
function CGDoOpacity(transVal) {
	if (CGboxm.style.MozOpacity != null) {
		CGboxm.style.MozOpacity = transVal/100;
		CGboxc.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;
		CGboxc.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;
		CGboxc.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() {
	CGDoOpacity(100);
	CGboxm.showHide(CGhid);
	CGboxl.showHide(CGhid);
	CGboxs.showHide(CGhid);
	if (CGboxm.autoClose) {
		if (this.removeEventListener) {
			this.removeEventListener("mouseup", CGSDoHREF, false);
			document.body.removeEventListener("mouseup", CGSDoHREF, false);
		}
		else if (this.detachEvent) {
			this.detachEvent("onmouseup", CGSDoHREF);
			document.body.detachEvent("onmouseup", CGSDoHREF);
		}
		else {
			this.onmouseup = null;
			document.body.onmouseup = null;
		}
	}
	CGboxw.showHide(CGhid);
	CGboxw.doOpacity(null);
	CGboxc.showHide(CGhid);
	CGboxs.doOpacity(null);
	CGboxs.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(CGboxc.CGtransInt);
	clearInterval(CGboxl.CGtransInt);
	clearTimeout(CGslideTimer);
	clearInterval(CGsetLoadDelay);
	clearInterval(CGsetShowDelay);
	clearInterval(CGboxs.CGtransInt);
	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.path != "") {
			p.oncontextmenu = CGShowWaterMark;
			p.onkeyup = CGHideWaterMark;
			if (CGboxm.path2.addEventListener) {
				CGboxm.path2.addEventListener("mouseout", CGShowWaterMark, false);
				CGboxm.path2.addEventListener("mouseover", CGHideWaterMark, false);
			}
			else if (CGboxm.path2.attachEvent) {
				CGboxm.path2.attachEvent("onmouseout", CGShowWaterMark);
				CGboxm.path2.attachEvent("onmouseover", CGHideWaterMark);
			}
			else {
				CGboxm.path2.onmouseout = CGShowWaterMark;
				CGboxm.path2.onmouseover = CGHideWaterMark;
			}
		}
		else {
			document.oncontextmenu = CGShowWaterMark;
			document.onkeyup = CGHideWaterMark;
			if (document.addEventListener) {
				document.addEventListener("mouseout", CGShowWaterMark, false);
				document.addEventListener("mouseover", CGHideWaterMark, false);
			}
			else if (CGboxm.path2.attachEvent) {
				document.attachEvent("onmouseout", CGShowWaterMark);
				document.attachEvent("onmouseover", CGHideWaterMark);
			}
			else {
				document.onmouseout = CGShowWaterMark;
				document.onmouseover = CGHideWaterMark;
			}
		}
	}
	return;
}
function CGDONotCopyrightMark() {
	var p = eval(CGboxm.path + "document");
	if (CGisW3C) {
		if (CGboxm.path != "") {
			p.oncontextmenu = null;
			p.onkeyup = null;
			if (CGboxm.path2.removeEventListener) {
				CGboxm.path2.removeEventListener("mouseout", CGShowWaterMark, false);
				CGboxm.path2.removeEventListener("mouseover", CGHideWaterMark, false);
			}
			else if (CGboxm.path2.detachEvent) {
				CGboxm.path2.detachEvent("onmouseout", CGShowWaterMark);
				CGboxm.path2.detachEvent("onmouseover", CGHideWaterMark);
			}
			else {
				CGboxm.path2.onmouseout = null;
				CGboxm.path2.onmouseover = null;
			}
		}
		else {
			document.oncontextmenu = null;
			document.onkeyup = null;
			if (document.removeEventListener) {
				document.removeEventListener("mouseout", CGShowWaterMark, false);
				document.removeEventListener("mouseover", CGHideWaterMark, false);
			}
			else if (CGboxm.path2.detachEvent) {
				document.detachEvent("onmouseout", CGShowWaterMark);
				document.detachEvent("onmouseover", CGHideWaterMark);
			}
			else {
				document.onmouseout = null;
				document.onmouseover = null;
			}
		}
	}
	return;
}
function CGShowWaterMark(e) {
	clearTimeout(CGboxw.CGsetHideDelay);
	if (CGisIE) {
		if (event.srcElement.id == "CGbackgroundLayer" || event.type == "keydown" || event.type == "keypress" || event.type == "mousedown") CGboxw.doOpacity(CGboxw.opa2);
	}
	else {
		if (e.target.id == "CGbackgroundLayer" || e.type == "keydown" || e.type == "keypress" || e.type == "mousedown") CGboxw.doOpacity(CGboxw.opa2);
	}
	return true;
}
function CGHideWaterMark(e) {
	clearTimeout(CGboxw.CGsetHideDelay);
	CGboxw.CGsetHideDelay = setTimeout('CGHideWaterMark2()', 1500);
	return;
}
function CGHideWaterMark2() {
	CGboxw.doOpacity(0);
	return true;
}
function CGDoAutoClose() {
	var p = eval(CGboxm.path + "document.body");
	if (CGboxm.path != "") {
		p.onkeypress = CGHideAll2;
		p.onkeydown = CGHideAll2;
		if (p.addEventListener) {
			p.addEventListener("mouseup", CGHideAll, false);
			p.addEventListener("mouseout", CGHideAll2, false);
		}
		else if (p.attachEvent) {
			p.attachEvent("onmouseup", CGHideAll);
			p.attachEvent("onmouseout", CGHideAll2);
		}
		else {
			p.onmouseup = CGHideAll;
			p.onmouseout = CGHideAll2;
		}
	}
	document.onkeypress = CGHideAll2;
	document.onkeydown = CGHideAll2;
	if (document.body.addEventListener) {
		document.body.addEventListener("mouseup", CGHideAll, false);
		document.body.addEventListener("mouseout", CGHideAll2, false);
	}
	else if (document.body.attachEvent) {
		document.body.attachEvent("onmouseup", CGHideAll);
		document.body.attachEvent("onmouseout", CGHideAll2);
	}
	else {
		document.body.onmouseup = CGHideAll;
		document.body.onmouseout = CGHideAll2;
	}
	return;
}
function CGDONotAutoClose() {
	var p = eval(CGboxm.path + "document.body");
	if (CGboxm.path != "") {
		p.onkeypress = null;
		p.onkeydown = null;
		if (p.removeEventListener) {
			p.removeEventListener("mouseup", CGHideAll, false);
			p.removeEventListener("mouseout", CGHideAll2, false);
		}
		else if (p.detachEvent) {
			p.detachEvent("onmouseup", CGHideAll);
			p.detachEvent("onmouseout", CGHideAll2);
		}
		else {
			p.onmouseup = null;
			p.onmouseout = null;
		}
	}
	document.onkeypress = null;
	document.onkeydown = null;
	if (document.body.removeEventListener) {
		document.body.removeEventListener("mouseup", CGHideAll, false);
		document.body.removeEventListener("mouseout", CGHideAll2, false);
	}
	else if (document.body.detachEvent) {
		document.body.detachEvent("onmouseup", CGHideAll);
		document.body.detachEvent("onmouseout", CGHideAll2);
	}
	else {
		document.body.onmouseup = null;
		document.body.onmouseout = null;
	}
	return;
}
function CGVersion() {
	return true;
}
//
