/* -- Adobe GoLive JavaScript Library */

CSStopExecution=false;
function CSAction(array) {return CSAction2(CSAct, array);}
function CSAction2(fct, array) { 
	var result;
	for (var i=0;i<array.length;i++) {
		if(CSStopExecution) return false; 
		var aa = fct[array[i]];
		if (aa == null) return false;
		var ta = new Array;
		for(var j=1;j<aa.length;j++) {
			if((aa[j]!=null)&&(typeof(aa[j])=="object")&&(aa[j].length==2)){
				if(aa[j][0]=="VAR"){ta[j]=CSStateArray[aa[j][1]];}
				else{if(aa[j][0]=="ACT"){ta[j]=CSAction(new Array(new String(aa[j][1])));}
				else ta[j]=aa[j];}
			} else ta[j]=aa[j];
		}			
		result=aa[0](ta);
	}
	return result;
}
CSAct = new Object;
function CSClickReturn () {
	var bAgent = window.navigator.userAgent; 
	var bAppName = window.navigator.appName;
	if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
		return true; /* dont follow link */
	else return false; /* dont follow link */
}

// WBCyberGallerySetup.action v3.0 - October, 2008
// 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, CGimgn, CGvis, CGhid;
var CGboxmLeft = 0, CGboxmTop = 0, CGboxcHeight = 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: 0; top: 0; z-index: 102; position: absolute; visibility: hidden; }');
document.writeln('#CGcaptionLayer { height: auto; left: 0; top: 0px; z-index: 102; 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>');
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] && !CGisMacIE) {
		CGboxb = document.getElementById("CGbackgroundLayer");
		CGboxb.doOpacity = CGSOpacity;
		CGboxb.opa = CGSaction[2];
		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;
	CGboxm.onmousedown = CGSDoHREF;
	CGboxm.autoClose = CGSaction[8];
	CGboxm.transMode = CGSaction[29];
	CGboxm.transTics = CGSaction[30];
	CGboxm.transSpeed = CGSaction[31];
	CGboxm.style.border = CGSaction[7] + " #" + CGSaction[5] + " " + CGSaction[6] + "px";
	CGimgm = CGboxm.lastChild;
	CGboxw = document.getElementById("CGwatermarkLayer");
	if (!CGisMacIE) {
		CGboxw.isImage = CGSaction[9].indexOf("Reference") == -1 && CGSaction[9] != "#";
		if (CGboxw.isImage) {
			CGboxw.doOpacity = CGSOpacity;
			CGboxw.style.backgroundImage = "url(" + CGSaction[9] + ")";
			CGboxw.style.backgroundRepeat = "no-repeat";
			CGboxw.style.backgroundPosition = "center";
		}
	}
	CGboxw.setSize = CGSSetBoxSize;
	CGboxw.scrollTo = CGSScrollTo;
	CGboxw.showHide = CGSShowHide;
	CGboxw.opa = CGSaction[10];
	CGboxc = document.getElementById("CGcaptionLayer");
	CGboxc.scrollTo = CGSScrollTo;
	CGboxc.showHide = CGSShowHide;
	if (CGSaction[11] != 0) {
		CGboxc.style.fontFamily = CGSaction[11] == 1 ? CGSaction[32] : CGSaction[11];
	}
	CGboxc.style.fontSize = CGSaction[12];
	CGboxc.style.lineHeight = CGSaction[13];
	CGboxc.style.fontWeight = CGSaction[14];
	CGboxc.style.fontStyle = CGSaction[15];
	CGboxc.style.color = "#" + CGSaction[16];
	CGboxc.style.textIndent = CGSaction[17];
	CGboxc.style.wordSpacing = CGSaction[18];
	CGboxc.style.letterSpacing = CGSaction[19];
	CGboxc.style.margin = CGSaction[20];
	CGboxc.mar = parseInt(CGSaction[20]);
	CGboxc.style.padding = CGSaction[21];
	CGboxc.pad = parseInt(CGSaction[21]);
	CGboxc.fixedWidth = CGSaction[22];
	CGboxc.style.border = CGSaction[25] + " #" + CGSaction[23] + " " + CGSaction[24] + "px";
	CGboxc.wid = parseInt(CGSaction[24]);
	if (CGSaction[26] == 0) {
		CGboxc.style.backgroundColor = null;
	}
	else if (CGSaction[26] == 1) {
		CGboxc.style.backgroundColor = "#" + CGSaction[27]
	}
	else if (CGSaction[26] == 2 && !CGisMacIE) {
		CGboxc.style.backgroundImage = "url(" + CGSaction[28] + ")";
		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 CGSOpacity(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.indexOf("Reference") == -1 && 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 CGQuickReturn() {
	clearInterval(CGboxm.CGtransInt);
	clearInterval(CGboxc.CGtransInt);
	clearInterval(CGsetLoadDelay);
	clearInterval(CGslideTimer);
	clearInterval(CGsetLoadDelay);
	if (CGboxm) {
		CGboxm.showHide(CGhid);
		if (CGboxm.autoClose) {
			this.onmouseup = null;
		}
	}
	if (CGboxw) {
		CGboxw.showHide(CGhid);
		if (CGboxw.doOpacity) CGboxw.doOpacity(null);
	}
	if (CGboxc) CGboxc.showHide(CGhid);
	if (CGboxb) {
		CGboxb.showHide(CGhid);
		CGboxb.doOpacity(null);
	}
	if (CGboxm.autoClose) {
		var p = eval(CGboxm.path + "document.body");
		if (CGboxm.path != "") p.onmouseup = null;
		document.body.onmouseup = null;
	}
	return;
}
function CGSVersion() {
	return true;
}
//

//-->

// WBCyberGallery.action v3.0 - October, 2008
// 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()) { 
		CGaction = action;
		CGloop = false;
		var path = CGaction[17] == "" ? "" : CGaction[17] + ".";
		var path2 = CGaction[17] == "" ? "" : CGaction[17];
		CGboxb = eval(path + "CGboxb");
		CGboxm = eval(path + "CGboxm");
		CGboxw = eval(path + "CGboxw");
		CGboxc = eval(path + "CGboxc");
		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;
		CGvis = (CGisW3C || CGisIE4) ? "visible" : "show";
		CGhid = (CGisW3C || CGisIE4) ? "hidden" : "hide";
		if (CGisIE && !CGisMacIE) {
			CGboxm.style.filter = "progid:DXImageTransform.Microsoft.Alpha(enebled=true)";
			CGboxc.style.filter = "progid:DXImageTransform.Microsoft.Alpha(enebled=true)";
		}
		if (action[1] < 6) {
			CGboxm.sou = action[5];
			CGboxm.pos = action[6];
			CGboxm.ali = action[7];
			CGboxm.cid = action[8];
			CGboxm.off = action[9];
			CGboxm.wpos = action[10];
			CGboxm.pro = action[13];
			CGboxm.mar = action[14];
			if (action[15] > 0) CGboxb.opa = action[15];
			CGboxw.opa2 = action[16] > 0 ? action[16] : CGboxw.opa;
			if (action[1] > 0 && !CGslideCounted) {
				CGslideCounted = true;
				for (var i = 1; eval("CGImages_" + i + "()") != ""; i++) { }
				CGtotalSlides = i-1;
			}
			if (CGboxm.autoClose) {
				var p = eval(CGboxm.path + "document.body");
				if (CGboxm.path != "") p.onmouseup = CGHideAll;
				document.body.onmouseup = CGHideAll;
			}
			else if (action[1] == 0) {
				if (CGboxb) CGboxb = null;
			}
		}
		if (action[1] == 0 && action[4].indexOf("Reference!") == -1 && action[4] != "#") {
			var img = action[4];
			CGboxm.showHide(CGhid);
			if (CGboxc) CGboxc.showHide(CGhid);
			if (CGboxm.pos > 0 && CGboxm.cid != "" && !CGisNav4) {
				var caption = "";
				if (CGboxm.sou == 1) {
					caption = CGGetImageObj("", CGboxm.cid).alt;
				}
				else if (CGboxm.sou == 2 && CGboxm.cap) {
					caption = eval("CGCaption_" + CGboxm.cid + "()");
				}
				else if (CGboxm.sou == 3 && CGboxm.cap) {
					caption = eval("CGCaption_notice"+ "()");
				}
				if (CGboxc) {
					CGboxc.innerHTML = "";
					CGboxc.innerHTML = caption;
				}
			}
			CGimgn = new Image();
			CGimgn.src = img;
			CGimgm.src = CGimgn.src;
			if (CGboxb) {
				CGboxb.doOpacity(CGboxb.opa);
				CGboxb.showHide(CGvis);
				if (CGboxb.isImage && !CGimgn.complete) CGboxb.style.backgroundImage = "url(" + CGboxb.bimage + ")";
			}
			CGsetLoadDelay = setInterval('if (CGimgn.complete) { CGFinishUp() }', CGSdelay);
		}
		else {
			if (CGboxm.autoClose) {
				var p = eval(CGboxm.path + "document.body");
				if (CGboxm.path != "") p.onmouseup = null;
				document.body.onmouseup = null;
			}
			if (CGboxb) {
				CGboxb.doOpacity(CGboxb.opa);
				CGboxb.showHide(CGvis);
			}
			if (action[1] == 1 || action[1] == 2) {
				clearInterval(CGslideTimer);
				clearInterval(CGsetLoadDelay);
				CGpause = false;
				CGtimer = action[2]*1000;
				if (action[1] == 1) {
					CGslideIndex = 0;
				}
				CGadvance = true;
				CGloop = action[3];
				CGholdLoop = CGloop;
				CGendOfLoop = false;
				CGDoSlides();
				if (!CGendOfLoop) CGslideTimer = setInterval("CGDoSlides()", CGtimer);
			}
			else if (action[1] == 3) {
				clearInterval(CGslideTimer);
				clearInterval(CGsetLoadDelay);
				CGpause = false;
				CGtimer = action[2]*1000;
				CGadvance = false;
				CGloop = action[3];
				CGholdLoop = CGloop;
				CGendOfLoop = false;
				CGDoSlides();
				if (!CGendOfLoop) CGslideTimer = setInterval("CGDoSlides()", CGtimer);
			}
			else if (action[1] == 4 || action[1] == 5) {
				clearInterval(CGslideTimer);
				clearInterval(CGsetLoadDelay);
				CGadvance = action[1] == 4 ? true : false;
				CGloop = true;
				CGDoSlides();
			}
			else if (action[1] == 6 && CGboxm.pro != null) {
				if (!CGpause) {
					CGdirection = CGadvance;
					clearInterval(CGslideTimer);
				}
				else {
					CGadvance = CGdirection;
					CGloop = CGholdLoop;
					if (CGboxb) CGboxb.showHide(CGvis);
					if (!CGendOfLoop) CGslideTimer = setInterval("CGDoSlides()", CGtimer);
				}
				CGpause = CGpause ? 0 : 1;
			}
			else if (action[1] == 7 && CGboxm.pro != null) {
				clearInterval(CGslideTimer);
				clearInterval(CGsetLoadDelay);
				CGpause = false;
				CGHideAll();
			}
		}
	}
	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) {
			clearInterval(CGslideTimer);
			clearInterval(CGsetLoadDelay);
			CGendOfLoop = true;
			return;
		}
	}
	var img = eval("CGImages_" + CGslideIndex + "()");
	if (CGboxm.url.indexOf("Reference") > -1 || CGboxm.url == "#") CGboxm.url = CGurl;
	CGboxm.showHide(CGhid);
	if (CGboxw) CGboxw.showHide(CGhid);
	if (CGboxc) CGboxc.showHide(CGhid);
	if (CGboxm.pos > 0 && !CGisNav4) {
		var caption = "";
		if (CGboxm.sou == 1) {
			caption = CGGetImageObj("", CGcap) ? CGGetImageObj("", CGcap).alt : "";
		}
		else if (CGboxm.sou == 2 && CGboxm.cap) {
			caption = eval("CGCaption_" + CGcap + "()");
		}
		else if (CGboxm.sou == 3 && CGboxm.cap) {
			caption = eval("CGCaption_notice"+ "()");
		}
		if (CGboxc) {
			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 (CGboxm.wpos > 0) {
		var top, left;
		if (CGboxm.wpos == 1) {
			var p = CGaction[17] == "" ? eval("parent") : eval("parent." + CGaction[17]);
			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;
			if (p.innerHeight) {
				left = ((p.innerWidth - CGimgm.width) / 2) + sl;
				top = ((p.innerHeight - CGimgm.height) / 2) + st;
			}
			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 - CGimgm.height) / 2) + st : ((dbch - CGimgm.height) / 2) + st;
			}
		}
		else if (CGboxm.wpos == 2) {
			left = CGaction[11];
			top = CGaction[12];
		}
		CGboxm.scrollTo(left, top);
		CGboxw.scrollTo(left, top);
	}
	if (CGboxw && CGboxm.pro) {
		CGboxw.setSize(CGimgm.width, CGimgm.height);
		var opac = CGboxm.mar ? CGboxw.opa2 : 0;
		if (CGboxw.doOpacity) CGboxw.doOpacity(opac);
	}
	if (!CGisNav4 && CGboxc && CGboxm.pos > 0) {
		var offset = parseInt(CGboxm.off), fixpad = CGisWinIE ? 0 : CGboxc.pad * 2;
		if (!CGisMacIE) {
			CGboxc.style.width = CGboxc.fixedWidth == 0 ? parseInt(CGboxm.style.width) - fixpad + "px" : CGboxc.fixedWidth - fixpad + "px";
		}
		else {
			CGboxc.style.width = CGboxc.fixedWidth == 0 ? parseInt(CGboxm.style.width) + CGboxc.wid*2 + "px" : CGboxc.fixedWidth + CGboxc.wid*2 + "px";
		}
		if (CGboxc) {
			CGboxc.style.textAlign = CGboxm.ali;
			for (var i in CGboxc) {
				if (i == "offsetHeight") {
					CGboxcHeight = CGboxc[i];
				}
			}
		}
		var boxmtop = parseInt(CGboxm.style.top), boxmleft = parseInt(CGboxm.style.left);
		if (CGboxc.fixedWidth == 0) {
			var x = (-CGboxc.wid + boxmleft) - (CGboxc.mar/2);
		}
		else {
			var y = parseInt(CGboxm.style.width);
			var x = CGboxc.fixedWidth <= y ? (boxmleft + y - CGboxc.fixedWidth)/2 - CGboxc.wid - (CGboxc.mar/2) : (boxmleft -(CGboxc.fixedWidth - y)/2) - CGboxc.wid - (CGboxc.mar/2);
		}
		if (CGboxm.pos == 1) {
			var left = x;
			var top = boxmtop - CGboxcHeight - offset;
		}
		if (CGboxm.pos == 2) {
			var left = x;
			var top = boxmtop + CGimgm.height + offset;
		}
		if (CGboxm.pos == 3) {
			var left = x;
			var top = boxmtop + offset;
		}
		if (CGboxm.pos == 4) {
			var left = x;
			var top = boxmtop + CGimgm.height - CGboxcHeight - offset;
		}
		if (CGboxm.pos == 5) {
			var left = x;
			var top = (boxmtop + CGimgm.height - CGboxcHeight) / 2;
		}
		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);
		CGboxm.CGfadeIn = true;
		CGboxm.CGtransSta = 0;
		CGboxm.CGtransEnd = !CGisMacNN ? 100 : 99;
		CGboxm.CGtransVal = CGboxm.CGtransSta;
		CGDoOpacity(CGboxm.CGtransVal);
	}
	if (CGboxb) {
		var p = CGboxm.path == "" ? eval("parent") : eval("parent." + CGaction[17]);
		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";
		}
		CGboxb.showHide(CGvis);
	}		
	if (CGboxm) CGboxm.showHide(CGvis);
	if (CGboxc && CGboxm.pos > 0) CGboxc.showHide(CGvis);
	if (CGboxw && CGboxm.pro) CGboxw.showHide(CGvis);
	if (CGboxm.transMode == 2 || CGboxm.transMode == 3) {
		CGboxm.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
		CGboxc.CGtransInt = setInterval("CGTransition()", CGboxm.transSpeed);
	}
	return;
}
function CGHideAll() {
	if (CGboxm.transMode == 1 || CGboxm.transMode == 3) {
		clearInterval(CGboxm.CGtransInt);
		clearInterval(CGboxc.CGtransInt);
		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);
	}
	else {
		if (CGboxm) {
			CGboxm.showHide(CGhid);
			if (CGboxm.autoClose) {
				this.onmouseup = null;
			}
		}
		if (CGboxw) {
			CGboxw.showHide(CGhid);
			if (CGboxw.doOpacity) CGboxw.doOpacity(null);
		}
		if (CGboxc) CGboxc.showHide(CGhid);
		if (CGboxb) {
			CGboxb.showHide(CGhid);
			CGboxb.doOpacity(null);
			CGboxb.style.width = "auto";
			CGboxb.style.height = "auto";
		}
	}
	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;
		CGboxc.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);
		if (!CGboxm.CGfadeIn) {
			if (CGboxm) {
				CGboxm.showHide(CGhid);
				if (CGboxm.autoClose) {
					this.onmouseup = null;
					document.body.onmouseup = null;
				}
			}
			if (CGboxw) {
				CGboxw.showHide(CGhid);
				if (CGboxw.doOpacity) CGboxw.doOpacity(null);
			}
			if (CGboxc) CGboxc.showHide(CGhid);
			if (CGboxb) {
				CGboxb.showHide(CGhid);
				CGboxb.doOpacity(null);
				CGboxb.style.width = "auto";
				CGboxb.style.height = "auto";
			}
			CGDoOpacity(100);
		}
	}
	return;
}
function CGDoOpacity(transVal) {
	if (CGboxm.style.MozOpacity != null) {
		CGboxm.style.MozOpacity = transVal/100;
		CGboxc.style.MozOpacity = transVal/100;
	}
	else if (CGisIE && !CGisMacIE) {
		CGboxm.filters.item("DXImageTransform.Microsoft.Alpha").opacity = transVal;
		CGboxc.filters.item("DXImageTransform.Microsoft.Alpha").opacity = transVal;
	}
	else {
		CGboxm.style.opacity = transVal/100;
		CGboxc.style.opacity = transVal/100;
	}
	return;
}
function CGVersion() {
	return true;
}
//

//-->

// OpenPopup 2.0 by Nate Baldwin, www.mindpalette.com - copyright 2003 (May 7, 2004)
if (typeof MPStoreOpenWin2 == "undefined") MPStoreOpenWin2 = new Array();
if (typeof MPStoreWinStngs2 == "undefined") {
	MPStoreWinStngs2 = new Object();
	MPStoreWinStngs2.url = "";
	MPStoreWinStngs2.name = "";
	MPStoreWinStngs2.options = "";
	MPStoreWinStngs2.focus = true;
	MPStoreWinStngs2.html = "";
	MPStoreWinStngs2.redirect = "";
	}
function MPOpenPopupWin2(action) {
	MPStoreWinStngs2.url = "";
	MPStoreWinStngs2.name = "";
	MPStoreWinStngs2.options = "";
	MPStoreWinStngs2.focus = true;
	MPStoreWinStngs2.html = "";
	MPStoreWinStngs2.redirect = "";
	var thisURL = (action[1] != "#" && action[1] != "(EmptyReference!)" && action[1] != "(Empty Reference!)") ? action[1] : "";
	var redirect = (action[31] != "#" && action[31] != "(EmptyReference!)" && action[31] != "(Empty Reference!)") ? action[31] : "";
	if (thisURL != "") {
		var urlType = (action[2] == 1) ? "image" : "page";
		MPStoreWinStngs2.focus = action[3];
		var regExpr = /[\w\S?]/;
		var validName = "";
		action[11] = (action[11] == true) ? "yes" : "no";
		var winName = (action[4] != "") ? action[4] : "PopUpWin";
		for (var n=0; n<winName.length; n++) {
			if (regExpr.test(winName.charAt(n))) validName += winName.charAt(n);
			}
		winName = (validName != "") ? validName : "PopUpWin";
		var width = (action[7] > screen.availWidth) ? screen.availWidth : action[7];
		var height = (action[9] > screen.availHeight) ? screen.availHeight : action[9];
		if (action[6] == true || action[8] == true) {
			width = screen.availWidth;
			posX = 0;
			}
		if (action[6] == true || action[10] == true) {
			height = screen.availHeight;
			posY = 0;
			}
		var posX = (action[13] != "") ? action[13] : 0;
		var posY = (action[15] != "") ? action[15] : 0;
		if (action[12] == true && width > 0 && height > 0) {
			posX = Math.round((screen.availWidth - width) / 2);
			posY = Math.round((screen.availHeight - height) / 2);
			} else {
			if (action[14] == 1 && width > 0) posX = (screen.availWidth - width - posX);
				else if (action[14] == 2) posX = Math.round((screen.availWidth - width) / 2);
			if (action[16] == 1 && height > 0) posY = (screen.availHeight - height - posY);
				else if (action[16] == 2) posY = Math.round((screen.availHeight - height) / 2);
			}
		for (i=17; i<=22; i++) {
			action[i] = (action[i] == true) ? "yes" : "no";
			}
		if (action[5] == true && typeof MPStoreOpenWin2[winName] != "undefined") {
			var oldWindow = MPStoreOpenWin2[winName];
			if (oldWindow && typeof oldWindow == "object") if (!oldWindow.closed) oldWindow.close();
			}
		var windowOptions = "";
		if (width > 0) windowOptions += "width=" + width + ",";
		if (height > 0) windowOptions += "height=" + height + ",";
		windowOptions += "resizable=" + action[11];
		windowOptions += ",scrollbars=" + action[17];
		windowOptions += ",menubar=" + action[18];
		windowOptions += ",toolbar=" + action[21];
		windowOptions += ",directories=" + action[19];
		windowOptions += ",location=" + action[22];
		windowOptions += ",status=" + action[20];
		windowOptions += ",left=" + posX;
		windowOptions += ",top=" + posY;
		if (urlType == "image") {
			var font = "Verdana, Arial, Helvetica, sans-serif";
			if (action[28] == 1) font = "Arial, Helvetica, Geneva, Swiss, SunSans-Regular, sans-serif";
				else if (action[28] == 2) font = "Helvetica, Geneva, Arial, SunSans-Regular, sans-serif";
				else if (action[28] == 3) font = "\"Times New Roman\", Times, Georgia, serif";
				else if (action[28] == 4) font = "\"Courier New\", Courier, Monaco, monospace";
			var textColor = (action[27] != "") ? action[27] : "black";
			var linkColor = (action[30] != "") ? action[30] : "#00417d";
			var textSize = (action[29] != "" && action[29] > 5) ? action[29]+"" : "12";
			var backGround = (action[24] != "") ? action[24] : "#ffffff";
			var thisHTML = "";
			thisHTML += '<'+'!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">'+"\n\n";
			thisHTML += '<'+'html>'+"\n\n";
			thisHTML += '<'+'head>'+"\n";
			thisHTML += '<'+'meta http-equiv="content-type" content="text/html;charset=iso-8859-1">'+"\n";
			if (action[23] != "") thisHTML += '<'+'title>'+action[23]+'<'+'/title>'+"\n";
			thisHTML += '<'+'style type="text/css" media="screen"><'+'!--'+"\n";
			thisHTML += 'body, div, td  { color: '+textColor+'; font-size: '+textSize+'px; font-family: '+font+'; background-color: '+backGround+'; margin: 0; padding: 0 }'+"\n";
			thisHTML += '.textpad  { margin: 0; padding: 4px 0 }'+"\n";
			if (action[25] == true) {
				thisHTML += 'a { color: '+linkColor+'; font-size: '+textSize+'px; text-decoration: none }'+"\n";
				thisHTML += 'a:link { color: '+linkColor+'; text-decoration: none }'+"\n";
				thisHTML += 'a:visited { color: '+linkColor+'; text-decoration: none }'+"\n";
				thisHTML += 'a:hover { color: '+linkColor+'; text-decoration: underline }'+"\n";
				}
			thisHTML += "--><"+"/style>\n<"+"/head>\n\n";
			thisHTML += '<'+'body bgcolor="'+backGround+'" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">'+"\n";
			if (action[26] != "") thisHTML += '<'+'div class="textpad" align="center">'+action[26]+'<'+'/div>'+"\n";
			thisHTML += '<'+'div align="center"><'+'img src="'+thisURL+'" alt="" border="0"><'+'/div>'+"\n";
			if (action[25] != "") thisHTML += '<'+'div class="textpad" align="center"><'+'a href="#" onclick="self.close();">Close Window<'+'/a><'+'/div>'+"\n";
			thisHTML += "<"+"/body>\n\n<"+"/html>";
			MPStoreWinStngs2.html = thisHTML;
			MPStoreWinStngs2.type = "image";
			thisURL = "";
			}
		MPStoreWinStngs2.name = winName;
		MPStoreWinStngs2.options = windowOptions;
		MPStoreWinStngs2.url = thisURL;
		MPStoreWinStngs2.redirect = redirect;
		var thisPopup = window.open(thisURL, winName, windowOptions);
		MPStoreOpenWin2[MPStoreWinStngs2.name] = thisPopup;
		setTimeout("MPTriggerDelayWin2()", 400);
		}
	}
function MPTriggerDelayWin2() {
	if (typeof MPStoreOpenWin2[MPStoreWinStngs2.name] == "object") {
		var thisPopup = MPStoreOpenWin2[MPStoreWinStngs2.name];
		if (thisPopup.closed) thisPopup = window.open(MPStoreWinStngs2.url, MPStoreWinStngs2.name, MPStoreWinStngs2.options);
		if (thisPopup && typeof thisPopup == "object") {
			if (MPStoreWinStngs2.type == "image" && MPStoreWinStngs2.html != "") {
				if (!thisPopup.closed) {
					thisPopup.document.open();
					thisPopup.document.write(MPStoreWinStngs2.html);
					thisPopup.document.close();
					}
				}
			}
		if (MPStoreWinStngs2.redirect != "") window.location = MPStoreWinStngs2.redirect;
		MPStoreOpenWin2[MPStoreWinStngs2.name] = thisPopup;
		if (thisPopup && typeof thisPopup == "object") if (!thisPopup.closed && MPStoreWinStngs2.focus) thisPopup.focus();
		MPStoreWinStngs2.url = "";
		MPStoreWinStngs2.name = "";
		MPStoreWinStngs2.options = "";
		MPStoreWinStngs2.focus = true;
		MPStoreWinStngs2.html = "";
		MPStoreWinStngs2.redirect = "";
		}
	}
//-->


