// PeekaBoo.action v5.1 - May, 2009
// Copyright © 2001 by Walter Blady
// All rights reserved
var PaBisNN6 = navigator.userAgent.indexOf("Netscape6") >= 0;
var PaBisNN = navigator.userAgent.indexOf("Navigator") >= 0;
var PaBisIE = window.navigator.userAgent.indexOf("MSIE") >= 0;
var PaBisNav4 = navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) == 4;
var PaBisIE4 = navigator.appVersion.indexOf("MSIE 4") >= 0;
var PaBisOpera = navigator.userAgent.indexOf("Opera") >= 0;
var PaBisWin = navigator.platform.indexOf("Win") > -1;
var PaBisMac = navigator.platform.indexOf("Mac") > -1;
var PaBisMacIE = PaBisMac && PaBisIE;
var PaBisMacNN = PaBisMac && PaBisNN && parseInt(navigator.appVersion.charAt(0)) < 8;
var PaBisOperaWin = navigator.userAgent.indexOf("Opera") >= 0 && PaBisWin;
var PaBisW3C = document.getElementById ? true : false;
var PaBvis, PaBhid, W3CinitFlag, params, PaBprevBox = "", PaBprevTrigger = "", PaBpopup, PaBautoCloseTimer, PaBaction;
var PaBnoTags, StripsNotDone = true;
var PaBautoCloseDelay = 500, PaBautoOpenDelay = 300;
var PaBsuff = PaBisOpera ? "" : "px";
document.writeln('<head>');
document.writeln('<style type="text/css" media="screen"><!--');
document.writeln('#PaBbackgroundLayer { height: auto; width: auto; left: 0px; top: 0px; position: absolute; z-index: 100; visibility: hidden; }');
document.writeln('--></style>');
document.writeln('</head><body>');
document.writeln('<div id="PaBbackgroundLayer"></div>');
function WBPeekaBoo(action) {
	if (parseInt(action[30]) > 0) {
		try {
			PaBflyout1;
		}
		catch (errorCode) {
			var mess = "PeekaBoo can not find the PaBMess.js file.\n";
			mess += "You must link the PaBMess.js file, inside your site folder, to this page."
			alert(mess);
			return;
		}
	}
	if (PaBVersion()) {
		PaBaction = action;
		if (!W3CinitFlag && PaBisW3C) PaBDivPrep();
		if (action[1] == 0) {
			if (parseInt(action[22]) > 0) {
				PaBautoOpenDelay = parseInt(action[22]);
			}
			if (parseInt(action[23]) > 0) {
				PaBautoCloseDelay = parseInt(action[23]);
			}				
			return;
		}
		if (action[4] != "") {
			params = PaBgetObject(action[4]);
			clearTimeout(params.odelay);
			clearInterval(params.transSwipe);
			clearInterval(params.PaBtransInt);
			PaBvis = (PaBisW3C || PaBisIE4) ? "visible" : "show";
			PaBhid = (PaBisW3C || PaBisIE4) ? "hidden" : "hide";
			PaBboxb = document.getElementById("PaBbackgroundLayer");
			if (action[1] < 4 && (action[2] != "" || action[3] != "")) {
				params.trigger = action[2] != "" ? PaBgetObject(action[2]) : PaBFindImageObject(action[3], 0);
				if (action[18]) {
					if (!PaBboxb.doOpacity) PaBboxb.doOpacity = PaBDoOpacity;
					PaBDoBackground();
				}
				else {
					PaBboxb.doOpacity = null;
					PaBShowHide(PaBboxb, PaBhid);
				}
				if (parseInt(action[22]) > 0) {
					PaBautoOpenDelay = parseInt(action[22]);
				}
				if (parseInt(action[23]) > 0) {
					PaBautoCloseDelay = parseInt(action[23]);
				}
				if (!params.listenerOn || params.trigger != PaBprevTrigger) {
					params.orgWidth = params.style.width;
					params.orgHeight = params.style.height;
					params.autoClose = PaBautoCloseDelay;
					params.miniature = action[1] == 3;
					params.listenerOn = PaBListenOn;
					params.listenerOn();
					params.doOpacity = PaBDoOpacity;
					params.borderWidth = parseInt(params.style.borderLeftWidth + 0) + parseInt(params.style.borderRightWidth + 0);
					params.borderHeight = parseInt(params.style.borderBottomWidth + 0) + parseInt(params.style.borderTopWidth + 0);
					params.paddingWidth = parseInt(params.style.paddingLeft + 0)*2 + parseInt(params.style.paddingRight + 0)*2;
					params.paddingHeight = parseInt(params.style.paddingTop + 0)*2 + parseInt(params.style.paddingBottom + 0)*2;
					params.widthComp = params.borderWidth + params.paddingWidth;
					params.heightComp = params.borderHeight + params.paddingHeight;
					if (params.trigger.useMap) {
						var m = params.trigger.useMap.substr(params.trigger.useMap.indexOf("#")+1, params.trigger.useMap.length);
						var mm = window.document.getElementById(m);
						for (var i = 0; mm.areas[i].alt != action[5]; i++);
						params.trigger = window.document.getElementById(m).areas[i];
						params.trigger.id = params.trigger.alt;
					}
					params.trigger.popup = params;
					params.trigger.autoClose = PaBautoCloseDelay;
					params.trigger.miniature = action[1] == 3;
					params.trigger.miniFlyoutMessage = PaBMessage;
					params.trigger.listenerOn = PaBListenOn;
					params.trigger.listenerOn(action[1]);
					params.trigger.onmousemove = PaBAutoCloseTimerQuit;
					if (PaBisIE && !PaBisMacIE) {
						params.style.filter = "progid:DXImageTransform.Microsoft.Alpha(enebled=true)";
					}
				}
				params.swipein = action[24];
				params.swipeout = action[25];
				params.scrollSpeed = parseInt(action[26]);
				params.scrollInterval = parseInt(action[27]);
				params.fadeSpeed = parseInt(action[28]);
				params.fadeInterval = parseInt(action[29]);
				if (params.orgWidth) {
					params.style.width = params.orgWidth;
					params.style.height = params.orgHeight;
				}
				PaBpopup = params;
				if (PaBpopup != PaBprevBox || PaBpopup.miniature) PaBShowHide(PaBprevBox, PaBhid);
				PaBprevBox = PaBpopup;
				PaBprevTrigger = PaBpopup.trigger;
			}
			else if (action[1] == 4 && !params.orgTextColor) {
				var link = PaBisW3C ? params.getElementsByTagName("A") : null;
				var font = PaBisW3C ? params.getElementsByTagName("FONT") : null;
				params.orgTextColor = new Array();
				params.newTextColor = new Array();
				params.link = link;
				params.font = font;
				if (params.addEventListener) {
					params.addEventListener("mouseover", PaBTurnOn, false);
					params.addEventListener("mouseout", PaBTurnOff, false);
				}
				else if (params.attachEvent) {
					params.attachEvent("onmouseenter", PaBTurnOnIE);
					params.attachEvent("onmouseleave", PaBTurnOffIE);
				}
				PaBDoTextStrips(action, params);
				if (params.link[0]) {
					if (params.link[0].onclick) {
						params.onmousedown = params.link[0].onclick;
					}
					else {
						params.onclick = PaBGotoURL;
						params.url = params.link[0];
						params.target = action[i+2];
					}
					if (action[16] != "" && action[16] != "#") {
						params.onclick = PaBGotoURL;
						params.url = action[16];
						params.target = action[17];
					}
				}
				params.on = PaBTurnOn, params.onIE = PaBTurnOnIE;
				if (params.addEventListener) params.on(); else params.onIE();
			}
		}
	}
	return;
}
function PaBAutoCloseTimerQuit(e) {
	clearTimeout(PaBautoCloseTimer);
	clearTimeout(PaBpopup.odelay);
	params.PaBfadeIn = true;
	PaBpopup.doOpacity(100);
	var e = (PaBisIE) ? event : e;
	var object = (PaBisIE) ? event.srcElement : this;
	if (!object.miniature && object.onmousemove) object.onmousemove = null;
	if (PaBpopup.miniature && parseInt(PaBaction[30]) > 0) {
		PaBpopup.trigger.miniFlyoutMessage(PaBaction[30]);
	}
	if (e && object.popup && object.popup.style.visibility == PaBhid) {
		if (PaBaction[16] != "" && PaBaction[17] != "") {
			var obj = window.frames[PaBaction[17]];
			if (obj.location.href.indexOf(PaBaction[16]) == -1) obj.location.href = PaBaction[16];
		}
		if (PaBaction[1] != 2) {
			object.popup.x = e.pageX ? e.pageX : window.event.clientX;;
			object.popup.y = e.pageY ? e.pageY : window.event.clientY;
			PaBScrollTo(object, object.popup, object.popup.x, object.popup.y);
		}
		if (object.popup) {
			if (object.popup.swipein == 0) {
				object.popup.odelay = setTimeout("PaBStill()", PaBautoOpenDelay);
			}
			else if (object.popup.swipein == 1) {
				object.popup.dohorizswipe = PaBDoHorizSwipeWindow;
				object.popup.odelay = setTimeout("PaBHSwipe()", PaBautoOpenDelay);
			}
			else if (object.popup.swipein == 2) {
				object.popup.dovertswipe = PaBDoVertSwipeWindow;
				object.popup.odelay = setTimeout("PaBVSwipe()", PaBautoOpenDelay);
			}
			else if (object.popup.swipein == 3) {
				object.popup.docenterswipe = PaBDoCenterSwipeWindow;
				object.popup.odelay = setTimeout("PaBCSwipe()", PaBautoOpenDelay);
			}
			else if (object.popup.swipein == 4) {
				params.PaBtransSta = 0;
				params.PaBtransEnd = !PaBisMacNN ? 100 : 99;
				params.PaBtransVal = params.PaBtransSta;
				object.popup.odelay = setTimeout("PaBTrans()", PaBautoOpenDelay);
			}
		}
	}
	return;
}
function PaBAutoClose(obj) {
	clearTimeout(PaBpopup.odelay);
	if (PaBisIE) {
		var autoClose = obj.srcElement ? obj.srcElement.autoClose : obj.autoVlose;
	}
	else {
		var autoClose = obj.autoClose ? obj.autoClose : this.autoClose;
	}
	PaBautoCloseTimer = setTimeout("PaBAutoClosePopups()", autoClose);
	return;
}
function PaBAutoClosePopups() {
	if (PaBpopup.style.visibility != PaBhid) {
		if (PaBpopup.swipeout == 0) {
			PaBShowHide(PaBpopup, PaBhid);
		}
		else if (PaBpopup.swipeout == 1)  {
			PaBpopup.PaBfadeIn = false;
			PaBpopup.PaBtransSta = 100;
			PaBpopup.PaBtransEnd = 0;
			PaBpopup.PaBtransVal = PaBpopup.PaBtransSta;
			PaBpopup.doOpacity(PaBpopup.PaBtransSta);
			PaBTransOut();
		}
	 }
	if (PaBboxb.doOpacity) {
		PaBShowHide(PaBboxb, PaBhid);
		PaBboxb.doOpacity(100);
	}
	return;
}
function PaBStill() {
	if (PaBboxb.doOpacity) {
		PaBboxb.doOpacity(PaBboxb.opa);
		PaBShowHide(PaBboxb, PaBvis);
	}
	var t = setTimeout("PaBShowHide(PaBpopup, PaBvis)", 50);
	return;
}
function PaBHSwipe() {
	if (PaBboxb.doOpacity) {
		PaBboxb.doOpacity(PaBboxb.opa);
		PaBShowHide(PaBboxb, PaBvis);
	}
	var t = setTimeout("PaBpopup.dohorizswipe()", 50);
	return;
}
function PaBVSwipe() {
	if (PaBboxb.doOpacity) {
		PaBboxb.doOpacity(PaBboxb.opa);
		PaBShowHide(PaBboxb, PaBvis);
	}
	var t = setTimeout("PaBpopup.dovertswipe()", 50);
	return;
}
function PaBCSwipe() {
	if (PaBboxb.doOpacity) {
		PaBboxb.doOpacity(PaBboxb.opa);
		PaBShowHide(PaBboxb, PaBvis);
	}
	var t = setTimeout("PaBpopup.docenterswipe()", 50);
	return;
}
function PaBTrans() {
	clearInterval(PaBpopup.PaBtransInt);
	if (PaBboxb.doOpacity) {
		PaBboxb.doOpacity(PaBboxb.opa);
		PaBShowHide(PaBboxb, PaBvis);
	}
	var t = setTimeout("PaBTransFinish()", 50);
	return;
}
function PaBTransFinish() {
	PaBpopup.doOpacity(PaBpopup.PaBtransSta);
	PaBShowHide(PaBpopup, PaBvis);
	PaBpopup.PaBtransInt = setInterval("PaBTransition()", PaBpopup.fadeInterval);
	return;
}
function PaBTransOut() {
	clearInterval(PaBpopup.PaBtransInt);
	params.PaBfadeIn = false;
	params.PaBtransSta = 100;
	params.PaBtransEnd = 0;
	params.PaBtransVal = params.PaBtransSta;
	PaBpopup.doOpacity(PaBpopup.PaBtransSta);
	PaBShowHide(PaBpopup, PaBvis);
	PaBpopup.PaBtransInt = setInterval("PaBTransition()", PaBpopup.fadeInterval);
	return;
}
function PaBShowHide(object, state) {
	if (!object) return;
	if (PaBisW3C) {
		object.style.visibility = state;
		var innerObjs = object.getElementsByTagName("div");
		for (var i = 0; i < innerObjs.length; i++) {
			innerObjs[i].style.visibility = state;
		}
	}
	else if (PaBisIE4) {
		object.style.visibility = state;
		for (var i = 0; i < object.children.length; i++) {
			object.children[i].style.visibility = state;
			if (object.children[i].children.length > 0) {
				layerObj = PaBShowHide(object.children[i], state);
			}
		}
	}
	else if (PaBisNav4) {
		object.visibility = state;
		for (var i = 0; i < object.layers.length; i++) {
			object.layers[i].visibility = state;
			if (object.layers[i].layers.length > 0) {
				layerObj = PaBShowHide(object.layers[i], state);
			}
		}
	}
	return;
}
function PaBTurnOn() { 
	if (!PaBisNav4) {
		if (this.link.length > 0) {
			for (var i = 0; i < this.link.length; i++) {
				if (this.newTextColor[i] != "default") this.link[i].style.color = this.newTextColor[i];
			}
		}
		if (this.font.length > 0) {
			for (var i = 0; i < this.font.length; i++) {
				if (this.newTextColor[i] != "default") this.font[i].color = this.newTextColor[i];
			}
		}
		if (this.noTags) {
			if (this.newTextColor[0] != "default") this.style.color = this.newTextColor[0];
		}
		if (this.newBoxColor != "default") this.style.backgroundColor = this.newBoxColor;
		if (this.newWeight != "default") this.style.fontWeight = this.newWeight;
		if (this.newStyle != "default") this.style.fontStyle = this.newStyle;
		if (this.newDecor != "default") this.style.textDecoration = this.newDecor;
		if (this.newAlign != "default") this.style.textAlign = this.newAlign;
	}
	else {
		if (this.newTextColor[0] != "default") this.fgColor = this.newTextColor[0];
		if (this.newBoxColor != "default") this.bgColor = this.newBoxColor;
		if (this.newWeight != "default") this.fontWeight = this.newWeight;
		if (this.newStyle != "default") this.fontStyle = this.newStyle;
		if (this.newDecor != "default") this.textDecoration = this.newDecor;
		if (this.newAlign != "default") this.textAlign = this.newAlign;
	}
	return;
}
function PaBTurnOnIE() { 
	var e = event;
	if (e.srcElement.id == "") return;
	if (!PaBisNav4) {
		if (e.srcElement.link && e.srcElement.link.length > 0) {
			for (var i = 0; i < e.srcElement.link.length; i++) {
				if (e.srcElement.newTextColor[i] != "default") e.srcElement.link[i].style.color = e.srcElement.newTextColor[i];
			}
		}
		if (e.srcElement.font && e.srcElement.font.length > 0) {
			for (var i = 0; i < e.srcElement.font.length; i++) {
				if (e.srcElement.newTextColor[i] != "default") e.srcElement.font[i].color = e.srcElement.newTextColor[i];
			}
		}
		if (e.srcElement.noTags) {
			if (e.srcElement.newTextColor[0] != "default") e.srcElement.style.color = e.srcElement.newTextColor[0];
		}
		if (e.srcElement.newBoxColor != "default") e.srcElement.style.backgroundColor = e.srcElement.newBoxColor;
		if (e.srcElement.newWeight != "default") e.srcElement.style.fontWeight = e.srcElement.newWeight;
		if (e.srcElement.newStyle != "default") e.srcElement.style.fontStyle = e.srcElement.newStyle;
		if (e.srcElement.newDecor != "default") e.srcElement.style.textDecoration = e.srcElement.newDecor;
		if (e.srcElement.newAlign != "default") e.srcElement.style.textAlign = e.srcElement.newAlign;
	}
	else {
		if (e.srcElement.newTextColor[0] != "default") e.srcElement.fgColor = e.srcElement.newTextColor[0];
		if (e.srcElement.newBoxColor != "default") e.srcElement.bgColor = e.srcElement.newBoxColor;
		if (e.srcElement.newWeight != "default") e.srcElement.fontWeight = e.srcElement.newWeight;
		if (e.srcElement.newStyle != "default") e.srcElement.fontStyle = e.srcElement.newStyle;
		if (e.srcElement.newDecor != "default") e.srcElement.textDecoration = e.srcElement.newDecor;
		if (e.srcElement.newAlign != "default") e.srcElement.textAlign = e.srcElement.newAlign;
	}
	if (e.srcElement.triggerOn) PaBAutoCloseTimerQuit();
	return;
}
function PaBTurnOff() { 
	if (!PaBisNav4) {
		if (this.link.length > 0) {
			for (var i = 0; i < this.link.length; i++) {
				if (this.orgTextColor[i] != "default") this.link[i].style.color = this.orgTextColor[i];
			}
		}
		if (this.font.length > 0) {
			for (var i = 0; i < this.font.length; i++) {
				if (this.orgTextColor[i] != "default") this.font[i].color = this.orgTextColor[i];
			}
		}
		if (this.noTags) {
			if (this.orgTextColor[0] != "default") this.style.color = this.orgTextColor[0];
		}
		if (this.orgBoxColor != "default") this.style.backgroundColor = this.orgBoxColor;
		if (this.orgWeight != "default") this.style.fontWeight = this.orgWeight;
		if (this.orgStyle != "default") this.style.fontStyle = this.orgStyle;
		if (this.orgDecor != "default") this.style.textDecoration = this.orgDecor;
		if (this.orgAlign != "default") this.style.textAlign = this.orgAlign;
	}
	else {
		if (this.newTextColor[0] != "default") this.fgColor = this.newTextColor[0];
		if (this.orgBoxColor != "default") this.bgColor = this.orgBoxColor;
		if (this.orgWeight != "default") this.fontWeight = this.orgWeight;
		if (this.orgStyle != "default") this.fontStyle = this.orgStyle;
		if (this.orgDecor != "default") this.textDecoration = this.orgDecor;
		if (this.orgAlign != "default") this.textAlign = this.orgAlign;
	}
	return;
}
function PaBTurnOffIE() { 
	var e = event;
	if (e.srcElement.id == "") return;
	if (!PaBisNav4) {
		if (!e.srcElement.style) return;
		if (e.srcElement.link && e.srcElement.link.length > 0) {
			for (var i = 0; i < e.srcElement.link.length; i++) {
				if (e.srcElement.orgTextColor[i] != "default") e.srcElement.link[i].style.color = e.srcElement.orgTextColor[i];
			}
		}
		if (e.srcElement.font && e.srcElement.font.length > 0) {
			for (var i = 0; i < e.srcElement.font.length; i++) {
				if (e.srcElement.orgTextColor[i] != "default") e.srcElement.font[i].color = e.srcElement.orgTextColor[i];
			}
		}
		if (e.srcElement.noTags) {
			if (e.srcElement.orgTextColor[0] != "default") e.srcElement.style.color = e.srcElement.orgTextColor[0];
		}
		if (e.srcElement.orgBoxColor != "default") e.srcElement.style.backgroundColor = e.srcElement.orgBoxColor;
		if (e.srcElement.orgWeight != "default") e.srcElement.style.fontWeight = e.srcElement.orgWeight;
		if (e.srcElement.orgStyle != "default") e.srcElement.style.fontStyle = e.srcElement.orgStyle;
		if (e.srcElement.orgDecor != "default") e.srcElement.style.textDecoration = e.srcElement.orgDecor;
		if (e.srcElement.orgAlign != "default") e.srcElement.style.textAlign = e.srcElement.orgAlign;
	}
	else {
		if (e.srcElement.newTextColor[0] != "default") e.srcElement.fgColor = e.srcElement.newTextColor[0];
		if (e.srcElement.orgBoxColor != "default") e.srcElement.bgColor = e.srcElement.orgBoxColor;
		if (e.srcElement.orgWeight != "default") e.srcElement.fontWeight = e.srcElement.orgWeight;
		if (e.srcElement.orgStyle != "default") e.srcElement.fontStyle = e.srcElement.orgStyle;
		if (e.srcElement.orgDecor != "default") e.srcElement.textDecoration = e.srcElement.orgDecor;
		if (e.srcElement.orgAlign != "default") e.srcElement.textAlign = e.srcElement.orgAlign;
	}
	if (e.srcElement.triggerOn) PaBAutoCloseTimerQuit();
	return;
}
function PaBGotoURL() {
	if (this.target.length < 1) {
		window.location.href = this.url;
	}
	else {
		var target = eval(this.target + ".window.location");
		target.href = this.url;
	}
	return;
}
function PaBScrollTo(menu, popup, x, y) {
	var st = document.body.scrollTop + document.documentElement.scrollTop;
	var wb = !PaBisOperaWin ? document.documentElement.clientHeight : document.body.clientHeight;
	var sl = document.body.scrollLeft + document.documentElement.scrollLeft;
	var wr = !PaBisOperaWin ? document.documentElement.clientWidth : document.body.clientWidth;
	if (PaBaction[1] == 3) {
		if (popup.orgWidth != "auto") {
			xo = x-15 + parseInt(popup.orgWidth) < wr ? x-15 : x-15 - (x-15 + parseInt(popup.orgWidth) - wr);
		}
		else xo = x-15;
		if (popup.orgHeight != "auto") {
			yo = y+15 + parseInt(popup.orgHeight) < wb ? y+15 : y+15 - (y+15 + parseInt(popup.orgHeight) - wb);
		}
		else yo = y+15;
	}
	else {
		x = menu.prevx && Math.abs(x - menu.prevx) < 15 ? menu.prevx : x;
		y = menu.prevy && Math.abs(y - menu.prevy) < 15 ? menu.prevy : y;
		menu.prevx = x, menu.prevy = y;
		var yo = y, xo = x;
		if (menu.style) {
			if (menu.coords) {
				var ymid = y > (wb-st)/2 ? y - 1 : y + 1;
				var xmid = x > (wr-sl)/2 ? x + 1 : x - 1;
			}
			else {
				var ymid = (parseInt(menu.style.top)) + (parseInt(menu.style.height)/2);
				var xmid = (parseInt(menu.style.left)) + (parseInt(menu.style.width)/2);
			}
			if (y < ymid) {
				yo = (y - parseInt(popup.style.height)) >= st ? ((y - parseInt(popup.style.height))) : st;
			}
			else {
				yo = (y + parseInt(popup.style.height))-st <= wb ? y : (wb - parseInt(popup.style.height)+st);
			}
			if (x < xmid) {
				xo = (x - parseInt(popup.style.width)) >= sl ? (x - parseInt(popup.style.width)) : sl;
			}
			else {
				xo = (x + parseInt(popup.style.width))-sl <= wr ? x : (wr - parseInt(popup.style.width)+sl);
			}
			var pl = parseInt(popup.style.left), pw = parseInt(popup.style.width), ml = parseInt(menu.style.left), mw = parseInt(menu.style.width);
			if (xo < ml && (xo+pw) > (ml+mw) && xo > 0) xo = (x-pw);
			if (xo <= 0) xo = x;
		}
	}
	if (PaBisOpera) {
		popup.style.left = xo + PaBsuff;
		popup.style.top = yo + PaBsuff;
	}
	else if (PaBisW3C) {
		popup.style.left = xo + PaBsuff;
		popup.style.top = yo + PaBsuff;
	}
	else if (PaBisIE4) {
		popup.pixelLeft = xo;
		popup.pixelTop = yo;
	}
	else {
		popup.moveTo(xo, yo);
	}
	return;
}
function PaBDoBackground() {
	PaBboxb.opa = parseInt(PaBaction[19]);
	PaBboxb.style.backgroundColor = PaBaction[20];
	var p = eval("parent");
	var st = p.document.body.scrollTop + p.document.documentElement.scrollTop, sl = p.document.body.scrollLeft + p.document.documentElement.scrollLeft;
	if (p.innerHeight) {
		PaBboxb.style.height = p.innerHeight + st + "px";
		PaBboxb.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;
		PaBboxb.style.width = decw > 0 ? decw + sl + "px" : dbcw + sl + "px";
		PaBboxb.style.height = dech > 0 ? dech + st + "px" : dbch + st + "px";
	}
	return;
}
function PaBDoHorizSwipeWindow() {
	clearInterval(this.transSwipe);
	this.targetWidth = parseInt(this.orgWidth);
	this.targetHeight = parseInt(this.orgHeight);
	this.tracktop = (this.targetHeight/2) - 0;
	this.trackright = (this.targetWidth/2) + 2;
	this.trackbottom = (this.targetHeight/2) + 0;
	this.trackleft = (this.targetWidth/2) - 2;
	this.style.clip = "rect(" + this.tracktop + "px " + this.trackright + "px "  + this.trackbottom + "px " + this.trackleft + "px)";
	PaBShowHide(this, PaBvis);
	this.transSwipe = setInterval("PaBHStretchHeight()", this.scrollInterval);
	return;
}
function PaBHStretchHeight() {
	PaBpopup.style.clip = "rect(" + PaBpopup.tracktop + "px " + PaBpopup.trackright + "px "  + PaBpopup.trackbottom + "px " + PaBpopup.trackleft + "px)";
	PaBpopup.tracktop -= PaBpopup.scrollSpeed/2;
	PaBpopup.trackbottom += PaBpopup.scrollSpeed/2;
	if (PaBpopup.tracktop <= 0) {
		PaBpopup.tracktop = 0;
		PaBpopup.trackbottom = PaBpopup.targetHeight+PaBpopup.heightComp;
		clearInterval(PaBpopup.transSwipe);
		PaBpopup.transSwipe = setInterval("PaBHStretchWidth()", PaBpopup.scrollInterval);
	}
	return;
}
function PaBHStretchWidth() {
	PaBpopup.style.clip = "rect(" + PaBpopup.tracktop + "px " + PaBpopup.trackright + "px "  + PaBpopup.trackbottom + "px " + PaBpopup.trackleft + "px)"
	PaBpopup.trackleft -= PaBpopup.scrollSpeed/2;
	PaBpopup.trackright += PaBpopup.scrollSpeed/2;
	if (PaBpopup.trackleft <= 0) {
		PaBpopup.trackleft = 0;
		PaBpopup.trackright = PaBpopup.targetWidth+PaBpopup.widthComp;
		PaBpopup.style.clip = "rect(" + PaBpopup.tracktop + "px " + PaBpopup.trackright + "px "  + PaBpopup.trackbottom + "px " + PaBpopup.trackleft + "px)";
		clearInterval(PaBpopup.transSwipe);
	}
	return;
}
function PaBDoVertSwipeWindow() {
	clearInterval(this.transSwipe);
	this.targetWidth = parseInt(this.orgWidth);
	this.targetHeight = parseInt(this.orgHeight);
	this.tracktop = (this.targetHeight/2) - 2;
	this.trackright = (this.targetWidth/2) + 0;
	this.trackbottom = (this.targetHeight/2) + 2;
	this.trackleft = (this.targetWidth/2) - 0;
	this.style.clip = "rect(" + this.tracktop + "px " + this.trackright + "px "  + this.trackbottom + "px " + this.trackleft + "px)";
	PaBShowHide(this, PaBvis);
	this.transSwipe = setInterval("PaBVStretchWidth()", this.scrollInterval);
	return;
}
function PaBVStretchWidth() {
	PaBpopup.style.clip = "rect(" + PaBpopup.tracktop + "px " + PaBpopup.trackright + "px "  + PaBpopup.trackbottom + "px " + PaBpopup.trackleft + "px)";
	PaBpopup.trackleft -= PaBpopup.scrollSpeed/2;
	PaBpopup.trackright += PaBpopup.scrollSpeed/2;
	if (PaBpopup.trackleft <= 0) {
		PaBpopup.trackleft = 0;
		PaBpopup.trackright = PaBpopup.targetWidth+PaBpopup.widthComp;
		clearInterval(PaBpopup.transSwipe);
		PaBpopup.transSwipe = setInterval("PaBVStretchHeight()", PaBpopup.scrollInterval);
	}
	return;
}
function PaBVStretchHeight() {
	PaBpopup.style.clip = "rect(" + PaBpopup.tracktop + "px " + PaBpopup.trackright + "px "  + PaBpopup.trackbottom + "px " + PaBpopup.trackleft + "px)";
	PaBpopup.tracktop -= PaBpopup.scrollSpeed/2;
	PaBpopup.trackbottom += PaBpopup.scrollSpeed/2;
	if (PaBpopup.tracktop <= 0) {
		PaBpopup.tracktop = 0;
		PaBpopup.trackbottom = PaBpopup.targetHeight+PaBpopup.heightComp;
		PaBpopup.style.clip = "rect(" + PaBpopup.tracktop + "px " + PaBpopup.trackright + "px "  + PaBpopup.trackbottom + "px " + PaBpopup.trackleft + "px)"
		clearInterval(PaBpopup.transSwipe);
	}
	return;
}
function PaBDoCenterSwipeWindow() {
	clearInterval(this.transSwipe);
	this.targetWidth = parseInt(this.orgWidth);
	this.targetHeight = parseInt(this.orgHeight);
	this.tracktop = (this.targetHeight/2) - 0;
	this.trackright = (this.targetWidth/2) + 0;
	this.trackbottom = (this.targetHeight/2) + 0;
	this.trackleft = (this.targetWidth/2) - 0;
	this.ticHeight = parseInt(PaBpopup.style.height)*PaBpopup.scrollSpeed/parseInt(PaBpopup.style.width);
	this.style.clip = "rect(" + this.tracktop + "px " + this.trackright + "px "  + this.trackbottom + "px " + this.trackleft + "px)";
	PaBShowHide(this, PaBvis);
	this.transSwipe = setInterval("PaBCStretchBoth()", this.scrollInterval);
	return;
}
function PaBCStretchBoth() {
	PaBpopup.style.clip = "rect(" + PaBpopup.tracktop + "px " + PaBpopup.trackright + "px "  + PaBpopup.trackbottom + "px " + PaBpopup.trackleft + "px)";
	PaBpopup.tracktop -= PaBpopup.ticHeight/2;
	PaBpopup.trackbottom += PaBpopup.ticHeight/2;
	PaBpopup.trackleft -= PaBpopup.scrollSpeed/2;
	PaBpopup.trackright += PaBpopup.scrollSpeed/2;
	if (PaBpopup.tracktop <= 0) {
		PaBpopup.tracktop = 0, PaBpopup.trackbottom = PaBpopup.targetHeight+PaBpopup.heightComp;
	}
	if (PaBpopup.trackleft <= 0) {
		PaBpopup.trackleft = 0, PaBpopup.trackright = PaBpopup.targetWidth+PaBpopup.widthComp;
	}
	if (PaBpopup.tracktop == 0 && PaBpopup.trackleft == 0) {
		PaBpopup.style.clip = "rect(" + PaBpopup.tracktop + "px " + PaBpopup.trackright + "px "  + PaBpopup.trackbottom + "px " + PaBpopup.trackleft + "px)";
		clearInterval(PaBpopup.transSwipe);
	}
	return;
}
function PaBTransition() {
	if (PaBpopup.PaBfadeIn) {
		PaBpopup.PaBtransVal += PaBpopup.fadeSpeed;
	}
	else {
		PaBpopup.PaBtransVal -= PaBpopup.fadeSpeed;
	}
	var doFade = PaBpopup.PaBfadeIn ? PaBpopup.PaBtransVal <= PaBpopup.PaBtransEnd : PaBpopup.PaBtransVal >= PaBpopup.PaBtransEnd;
	if (doFade) {
		PaBpopup.doOpacity(PaBpopup.PaBtransVal);
	}
	else {
		clearInterval(PaBpopup.PaBtransInt);
		if (!PaBpopup.PaBfadeIn && PaBpopup.swipeout == 1) {
			PaBShowHide(PaBpopup, PaBhid);
			PaBpopup.doOpacity(100);
			if (PaBboxb.doOpacity) {
				PaBShowHide(PaBboxb, PaBhid);
				PaBboxb.doOpacity(0);
			}
		}
	}
	return;
}
function PaBDoOpacity(opa) {
	if (PaBisIE && !PaBisMacIE) {
		this.style.filter = "progid:DXImageTransform.Microsoft.Alpha(enebled=true)";
	}
	if (this.style.MozOpacity != null) {
		this.style.MozOpacity = opa != null ? opa/100 : null;
	}
	else if (PaBisIE && !PaBisMacIE) {
		this.filters.item("DXImageTransform.Microsoft.Alpha").opacity = opa != null ? opa : 0;
	}
	else {
		this.style.opacity = opa != null ? opa/100 : 0;
	}
	return;
}
function PaBgetObject(objName) {
	var object;
	if (PaBisW3C) {
		object = eval('document.getElementById("' + objName + '")');
	}
	else if (PaBisIE4) {
		object = eval("document.all." + objName);
	}
	else {
		object = PaBFindLayerObject(objName, 0);
	}
	return object;
}
function PaBFindLayerObject(layer, thisLayer) {
	if (thisLayer) {
		var thisDocument = thisLayer.document;
	}
	else {
		var thisDocument = document;
	}
	var layerObj = thisDocument[layer];
	if (layerObj) {
		return layerObj;
	}
	else {
		for (var i = 0; i < thisDocument.layers.length; i++) {
			layerObj = PaBFindLayerObject(layer, thisDocument.layers[i]); 
			if (layerObj) {
				break;
			}
		}
	}
	return layerObj;
}
function PaBFindImageObject(baseImage, thisLayer) {
	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 = TRFindImageObject(baseImage, thisDocument.layers[i]);
			if (imageObj) {
				break;
			}
		}
	}
	return imageObj;
}
function PaBListenOn() {
	if (this.addEventListener) {
		if (this.miniature) this.addEventListener("mousemove", PaBAutoCloseTimerQuit, false);
		else this.addEventListener("mouseover", PaBAutoCloseTimerQuit, false);
		this.addEventListener("mouseout", PaBAutoClose, false);
	}
	else if (this.attachEvent) {
		if (this.miniature) this.attachEvent("onmousemove", PaBAutoCloseTimerQuit);
		else this.attachEvent("onmouseenter", PaBAutoCloseTimerQuit);
		this.attachEvent("onmouseleave", PaBAutoClose);
	}
	return;
}
function PaBListenOff() {
	if (this.addEventListener) {
		if (this.miniature) this.removeEventListener("mousemove", PaBAutoCloseTimerQuit, false);
		else this.removeEventListener("mouseover", PaBAutoCloseTimerQuit, false);
		this.removeEventListener("mouseout", PaBAutoClose, false);
	}
	else if (this.attachEvent) {
		if (this.miniature) this.detachEvent("onmousemove", PaBAutoCloseTimerQuit);
		else this.detachEvent("onmouseenter", PaBAutoCloseTimerQuit);
		this.detachEvent("onmouseleave", PaBAutoClose);
s	}
	return;
}
function PaBDoTextStrips(action, params) {
	params.menuOn = true;
	params.weightArray = new Array("default", "normal", "bold", "bolder", "lighter");
	params.styleArray = new Array("default", "normal", "italic");
	params.decorArray = new Array("default", "none", "underline", "overline", "line-through");
	params.alignArray = new Array("default", "left", "right", "center", "justify");
	var link = PaBisW3C ? params.getElementsByTagName("A") : null;
	var font = PaBisW3C ? params.getElementsByTagName("FONT") : null;
	params.orgTextColor = new Array();
	params.newTextColor = new Array();
	params.link = link;
	params.font = font;
	if (params.addEventListener) {
		params.addEventListener("mouseover", PaBTurnOn, false);
		params.addEventListener("mouseout", PaBTurnOff, false);
	}
	else if (params.attachEvent) {
		params.attachEvent("onmouseenter", PaBTurnOnIE);
		params.attachEvent("onmouseleave", PaBTurnOffIE);
	}
	params.orgBoxColor = (PaBisW3C || PaBisIE4) ? params.style.backgroundColor : params.bgColor;
	params.newBoxColor =params.orgBoxColor;
	if (params.orgBoxColor == "") params.orgBoxColor = "transparent";
	params.noTags = params.font.length == 0 && params.link.length == 0;
	if (params.link.length > 0) {
		for (var j = 0; j < params.link.length; j++) {
			params.link[j].style.color = (params.link[j].style.color == "" && (PaBisW3C || PaBisIE4)) ? params.style.color : params.fgColor;
			params.orgTextColor[j] = (PaBisW3C || PaBisIE4) ? params.link[j].style.color : params.fgColor;
			params.newTextColor[j] = params.orgTextColor[j];
		}
	}
	if (params.font.length > 0) {
		for (var j = 0; j < params.font.length; j++) {
			params.orgTextColor[j] = (PaBisW3C || PaBisIE4) ? params.font[j].color : params.fgColor;
			params.newTextColor[j] = params.orgTextColor[j];
		}
	}
	if (params.noTags) {
		params.orgTextColor[0] = (PaBisW3C || PaBisIE4) ? params.style.color : params.fgColor;
		params.newTextColor[0] = params.orgTextColor[0];
	}
	params.orgWeight = (PaBisW3C || PaBisIE4) ? params.style.fontWeight : params.fontWeight;
	params.orgStyle = (PaBisW3C || PaBisIE4) ? params.style.fontStyle : params.fontStyle;
	params.orgDecor = (PaBisW3C || PaBisIE4) ? params.style.textDecoration : params.textDecoration;
	params.orgAlign = (PaBisW3C || PaBisIE4) ? params.style.textAlign : params.textAlign;
	var blank = PaBisNav4 ? null : "Transparent";
	if (action[6] > 0 ) {
		var color = action[6] == 2 ? blank : action[7];
		params.newBoxColor = color;
	}
	if (action[9] > 0 ) {
		var color = action[9] == 2 ? blank : action[10];
		if (params.link.length > 0) {
			for (var j = 0; j < params.link.length; j++) {
				params.newTextColor[j] = color;
			}
		}
		if (params.font.length > 0) {
			for (var j = 0; j < params.font.length; j++) {
				params.newTextColor[j] = color;
			}
		}
		if (params.noTags) {
			params.newTextColor[0] = color;
		}
	}
	params.newWeight = params.weightArray[action[12]];
	params.newStyle = params.styleArray[action[13]];
	params.newDecor = params.decorArray[action[14]];
	params.newAlign = params.alignArray[action[15]];
	return;
}
function PaBDivPrep() {
	var d = document.getElementsByTagName("div");
	var s = document.getElementsByTagName("style");
	for (var i = 0; i < s.length; i++) {
		var html = (s[i].innerHTML);
		var start = html.indexOf("!--") + 3;
		var end = html.lastIndexOf("}") + 1 - start;
		html = html.indexOf("!--") > -1 ? html.substr(start, end) : html;
		html = html.replace(/^\s*/, "");
		html = html.replace(/:\s*#/g, ": ~");
		html = html.replace(/[\n\r]/g, "");
		var styleArray = html.split(/\s*\}\s*/);
		for (var j = 0; j < styleArray.length; j++) {
			var name = styleArray[j].substr(styleArray[j].search(/\w/), styleArray[j].search(/{/));
			name = name.replace(/[ \{].+/g, "")
			for (var k = 0; k < d.length; k++) {
				var match = (name == d[k].id && name != "");
				if (match) break;
			}
			if (styleArray[j] != "" && match) {
				styleArray[j] = styleArray[j].replace(/\**#/, "");
				styleArray[j] = styleArray[j].replace(/~/g, "#");
				var styleName = styleArray[j].substr(0, styleArray[j].indexOf("{"));
				styleName = styleName.replace(/\s*/g, "");
				styleArray[j] = styleArray[j].toLowerCase();
				var t = eval("d." + styleName + ".style");
				var divName = eval("d." + styleName + ".id");
				t.name = divName;
				var styleString = styleArray[j].replace(/^.*\{\s*/, "");
				styleString = styleString.replace(/\s*\}.*$|\s*\}.*\n.*$|\s*\}.*\r.*$/, "");
				styleString = styleString.replace(/\;$/, "");
				var divArray = styleString.split(/\;\s*/g);
				for (var k = 0; k < divArray.length; k++) {
					var propertyName = divArray[k].substr(0, divArray[k].indexOf(":"));
					if (propertyName.indexOf("-") > -1) {
						var nameArray = propertyName.split("-");
						for (var n = 1; n < nameArray.length; n++) {
							nameArray[n] = nameArray[n].substring(0, 1).toUpperCase() + nameArray[n].substring(1, nameArray[n].length);
						}
						propertyName = nameArray.join("");
					}
					var propertyValue = divArray[k].substr(divArray[k].indexOf(":"), divArray[k].length);
					propertyValue = propertyValue.replace(/:*(-->)*}*\n*/g, "");
					propertyValue = propertyValue.replace(/^\s*|\s*$/, "");
					if (PaBisNN6 && propertyValue.indexOf("(") > -1) {
						propertyValue = propertyValue.replace(/auto|pt|pi|px|em|ex|PaB|cm|in|%/g, "$& ");
						propertyValue = propertyValue.replace(/ \)/g, ")");
					}
					t[propertyName] = propertyValue;
				}
			}
		}
	}
	W3CinitFlag = true;
	return;
}
function PaBMessage(no) {
	this.popup.innerHTML = "";
	this.popup.innerHTML = eval("PaBflyout" + no + "()");
	return;
}
function PaBVersion() {
	return true;
}
//
