if (parent.frames.length > 0) 
{
parent.location.href = location.href;
}

function defocus(x) {
    if (navigator.appName == 'Microsoft Internet Explorer' || document.all)
        x.blur();
}

function a(txt) {
		self.status = txt
}

function b() {
		self.status = ""
}

function openit(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function gotoUrl(url) {
  if (url == "")
    return;
  location.href = url;
}

function findit(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findit(n,d.layers[i].document); return x;
}

function swapit() { 
  var i,j=0,x,a=swapit.arguments; document.bingo=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=findit(a[i]))!=null){document.bingo[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function swapitback() { 
  var i,x,a=document.bingo; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function netscapesucks(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=netscapesucks; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
netscapesucks(true);

// #################### //

var win=null;
function popup(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}

// #################### //