var City='Las Vegas';
var State='NV';

var popX = eval(document.body.clientWidth-260);
document.getElementById("popweather").style.left=popX;
document.getElementById("popweather").style.top=10;

function quickMenuHide(){
weatherindex=1;
pop_weather();
document.getElementById('popweather').style.visibility = 'hidden';
}

var weathercontent=new Array()
weathercontent[1]='<IFRAME allowtransparency="true" STYLE="background:#FFFFFF url(http://www.pop-weather.com/images/moment.gif);" SRC="http://www.pop-weather.com/BLANK.html" width="240" height="227" frameborder="0" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="auto" onClick="quickMenuHide()"></IFRAME><DIV ALIGN="center" VALIGN="middle" STYLE="width:240px; height:23px; border-top:solid 2px #999999; background:#FFFFFF"><IMG SRC="http://www.pop-weather.com/images/close.gif" onClick="parent.quickMenuHide()"></DIV>'
weathercontent[2]='<IFRAME allowtransparency="true" STYLE="background:#FFFFFF url(http://www.pop-weather.com/images/moment.gif);" SRC="http://www.pop-weather.com/cgi-bin/pop-weather.pl?City='+City+'&State='+State+'" width="240" height="227" frameborder="0" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="auto" onClick="quickMenuHide()"></IFRAME><DIV ALIGN="center" VALIGN="middle" STYLE="width:240px; height:23px; border-top:solid 2px #999999; background:#FFFFFF; cursor:hand"><IMG SRC="http://www.pop-weather.com/images/close.gif" onClick="parent.quickMenuHide()"></DIV>'

var ie4=document.all&&!document.getElementById
var ns4=document.layers
var DOM2=document.getElementById
var weatherindex=1

function pop_weather(){
document.getElementById("popweather").style.visibility = 'visible';
document.getElementById("popweather").style.border = '5px solid #999999';

if (weatherindex>=weathercontent.length)
weatherindex=1
if (DOM2){
document.getElementById("popweather").innerHTML=weathercontent[weatherindex]
}
else if (ie4)
document.all.popweather.innerHTML=weathercontent[weatherindex]
else if (ns4){
document.popweatherns.document.popweatherns_sub.document.write(weathercontent[weatherindex])
document.popweatherns.document.popweatherns_sub.document.close()
}
}

