document.domain = "aol.com";
var sb_id='150';
var tabA=new Array();
var redir=false;
var error=true;
function p_o(o){return document.getElementById(o);}
function errMsg() {
	if (error) {
		alert('We\'re sorry, the content you\'ve requested is temporarily unavailable.  Please try again later.');
	}
}
function mkTab(mod,htm) {new Tab(mod,htm)}
function Tab(mod,htm) {
	this.mod=mod;
	this.htm=htm;
	tabA=tabA.concat(this);
}
function findTab(mod) {
	for (i=0;i<tabA.length;i++) {
		if (tabA[i].mod==mod)return tabA[i];
	}
	return null;
}
String.prototype.trim=function(){return this.replace( /^\s*/, '').replace( /\s*$/, '' );}
function trimQ(q){q.value=q.value.trim();}
function allLI(arg) {
var x = p_o((arg)).getElementsByTagName("li").length;
	while (x>0) {
		p_o((arg+x)).className="";
		p_o((arg+'a'+x)).className="";x--;
	}
}
function pGet(url,i,arg,id) {
	if(arg!=null){
		allLI(arg);
		lidx = (arg +i);
		liadx = (arg+'a'+i);
	}
	if(id!=null&&(t=findTab(arg+i))!=null) {
		p_o(id).innerHTML=t.htm;
	}else{
		error=true;
		setTimeout('errMsg()',4000);
		pipe.location.replace(url);
	}
	if(arg == 'm'){
		p_o(lidx).className="current";
	}else if(arg!=null){
		p_o(lidx).className="over";
		p_o(liadx).className="sel";
	}
}
function isRedir(){return redir;}
function setLoc(mod,zip,inc,div,inc2,div2) {
	var url='locset.adp?mod='+escape(mod)+'&inc='+escape(inc)+'&div='+escape(div);
	if(zip==null){
		url+='&reset=1';
	}else{
		url+='&zip='+escape(zip);
	}
	if (inc2!=null) {
		url=url+'&inc2='+escape(inc2)+'&div2='+escape(div2);
	}
	error=true;
	redir=true;
	setTimeout('errMsg()',4000);
	pipe.location.replace(url);
}
function btnOvr(btn){
	btn.className+="over";
	btn.className=btn.className.replace("clk","");
}
function btnOut(btn){
	btn.className=btn.className.replace("over","");
	btn.className=btn.className.replace("clk", "");
}
function btnClk(btn){
	btn.className+="clk";
	btn.className=btn.className.replace("over","");
}
var selected=1;
function p_sw(i){
	if(selected==i)return;
	//waiting on real IDs to be activated.
	// IDs are 150-157 are to be installed 6/2/05
	sb_id=149+i;
	var c="";
	for(j=1;j<=7;j++){
		p_o("stopa"+j).className="";
		p_o("stop"+j).className=""
		p_o("sba"+j).className="";
		p_o("sb"+j).className=""
	}
	p_o("stopa8").className="nb";
	p_o("sba8").className="nb";
	if(selected==8)c="nb";
	p_o("stopa"+selected).className=c;
	p_o("sba"+selected).className=c;
	p_o("stop"+selected).className="";
	p_o("sb"+selected).className="";
	p_o("stopa"+i).className="ava";
	p_o("sba"+i).className="ava";
	p_o("stop"+i).className="av";
	p_o("sb"+i).className="av";
	c="fBt srBt g_";
	if(i!=1){
		p_o("stopa"+(i-1)).className="nb";
		p_o("sba"+(i-1)).className="nb";
		p_o("rsatop").style.display="none";
		p_o("rsab").style.display="none";
	}else{
		p_o("topsubmit").className=c;
		p_o("bsubmit").className=c;
		p_o("rsatop").style.display="inline";
		p_o("rsab").style.display="inline";
	}
	selected=i;
}
function imp(u){
	(new Image()).src=u;
}
function dlf_DoFSCommand(cmd,a){ 
	switch(cmd) {
		case 'imp': 
			imp(a);break; 
		case 'alert':
			alert(a);break;
		default: 
			alert('Unk cmd: '+ cmd); 
	} 
}
	
var nv=navigator;
if (nv.appName && nv.appName.indexOf('Microsoft') != -1 
		&& nv.userAgent.indexOf('Windows') != -1 
		&& nv.userAgent.indexOf('Windows 3.1') == -1){ 
	var d=document;
	d.write('<script language=\"VBScript\"\>\n'); 
	d.write('on error resume next\n'); 
	d.write('Sub dlf_FSCommand(ByVal cmd,ByVal a)\n'); 
	d.write('call dlf_DoFSCommand(cmd,a)\n'); 
	d.write('end sub\n'); 
	d.write('</script\>\n'); 
} 
initWin=function() {
	if (p_o('topQuery')) p_o('topQuery').focus();
}
window.onload=initWin;
