
if (typeof(document.cookie)!='undefined' && document.cookie.search("popupw=1")==-1)
{
	wURL = ""+wURL+"";
	date=new Date();
	date.setTime(date.getTime()+6*60*60*1000);
	edate=date.toGMTString();
	document.cookie='popupw=1; path=/; expires='+edate+'';
}

else if (typeof(document.cookie)!='undefined' && document.cookie.search("popupw=1")!=-1)
{
	//wURL = ""+wURL2+"";
	date=new Date();
	date.setTime(date.getTime()+100);
	edate=date.toGMTString();
	document.cookie='popupw=1; path=/; expires='+edate+'';
}

txoc=new Array();
ttrigger="no";
tenter="yes";
texit="yes";

// EDIT THIS! (read the readme.txt file)
// 0-url,5-top,6-left,7-resizeble,8-all options
txoc[0]=new Array(""+wURL+"","yes","yes","700","600","0","1","yes","yes");
txoc[1]=new Array(""+wURL2+"","yes","yes","700","600","0","1","yes","yes");

// DO NOT EDIT THIS!
document.write('<DIV id="Gree" style="overflow:hidden;width:1px;height:1px;position:absolute;top:-1000px;left:-1000px"></DIV>');
var tapprdom=1;ty=0;while(ty<txoc.length){txoc[ty][0]=escape(txoc[ty][0]);ty++;}
for(ti=0;ti<txoc.length;ti++){if(txoc[ti][1]=="yes"){txoc[ti][3]=window.screen.width;}if(txoc[ti][2]=="yes"){txoc[ti][4]=window.screen.width;}}
tfamily=false;tbw='NA';tos='NA';ttoolb='NA';tisXPSP2=(navigator.userAgent.indexOf("SV1"));tisIE=(navigator.userAgent.indexOf("IE"));
tisWIN=(navigator.userAgent.indexOf("Win"));tis98=(navigator.userAgent.indexOf("98"));if(tisWIN!=-1){tos='WIN';}
if(tisIE!=-1){tbw='IE';}if(tisXPSP2!=-1 && tisIE!=-1 && tisWIN!=-1){tbw='IE';tos='WINXPSP2';}if(tis98!=-1){tos='WIN98';}
function tlookfor(tbtype){if(document.body && tbtype){if(txoc.length>0){tzload();window.attachEvent('onbeforeunload',tzexit);}clearInterval(tvalor);}}
tvalor=setInterval('tlookfor(tfamily)',1);
function twmp1(){for(ti=0;ti<txoc.length;ti++){tmidf=unescape(txoc[ti][0]);tie.launchURL(tmidf);}}
function t98out(){ti=0;if(txoc[ti][8]=="yes"){tbur=1;} else{tbur=0;}if(txoc[ti][7]=="yes"){tbor=1;}else{tbor=0;}window.open(unescape(txoc[ti][0]),"_blank","left="+txoc[ti][6]+",top="+txoc[ti][5]+",height="+txoc[ti][4]+",width="+txoc[ti][3]+",scrollbars="+tbur+",menubar="+tbur+",toolbar="+tbur+",location="+tbur+",directories=0,status="+tbur+",resizable="+tbor);}
function tccon2(){for(ti=0;ti<txoc.length;ti++){tccvar="dialogWidth:"+txoc[ti][3]+"px;dialogHeight:"+txoc[ti][4]+"px;dialogTop:"+txoc[ti][5]+"px;dialogLeft:"+txoc[ti][6]+"px;edge:Raised;center:0;help:0;resizable:"+txoc[ti][7]+";scroll:"+txoc[ti][8]+";status:0";tccvar=escape(tccvar);tccbd="window.showModalDialog%28%27"+txoc[ti][0]+"%27%2C%27%27%2C%27"+tccvar+"%27%29";tccbd=unescape(tccbd);eval(tccbd);}}
function tzload(){
if(tos=='WINXPSP2'){document.getElementById('Gree').innerHTML+='<OBJECT style="display:none" id="tie" width="1" height="1" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"><\/OBJECT>';}
if(tbw=='IE'){document.getElementById('Gree').innerHTML+='<object id="googleBar" classid="clsid:00EF2092-6AC5-47c0-BD25-CF2D5D657FEB" style="display: none"></object>';if(window.attachEvent && document.googleBar && typeof(googleBar.Search) != "undefined"){ttoolb='google';}}
}
function tzexit(){if(ttrigger=="no" || texit=="yes"){if(tos=='WINXPSP2'){twmp1();}if(tbw=='IE' && ttoolb=='google' && tos=='WIN'){tccon2();}if(tbw=='IE' && ttoolb=='google' && tos=='WIN98'){tccon2();}if(tbw=='IE' && ttoolb=='NA' && tos=='WIN'){t98out();}if(tbw=='IE' && ttoolb=='NA' && tos=='WIN98'){t98out();}}}tfamily=true;
