//self.focus();
 
 // BROWSER CHECK
var bplat = navigator.platform;
var agt=navigator.userAgent.toLowerCase();
var is_opera = (agt.indexOf("opera") != -1);


if (bplat=="MacPPC")
	{
 	document.write('<link rel="stylesheet" type="text/css" href="/includes/styles/mac.css">');
	}
 else
  	{
    document.write('<link rel="stylesheet" type="text/css" href="/includes/styles/pc.css">');
   	}

if (is_opera)
	{
 	document.write('<link rel="stylesheet" type="text/css" href="/includes/styles/opera.css">');
	}

function change(id, newClass) 
{
identity=document.getElementById(id);
if (identity != null)
	{
	identity.className=newClass;
	}
}

function MM_findObj(n, d) { //v4.01
  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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

cookie = document.cookie
var setC = cookie.indexOf("ISSUESLEFT=")
if (setC > -1)
{
loungeVar="lounge"
}
else
{
loungeVar="normal"
}

//onload = function() { content.focus() }

function any_pop(url,width,height)
	{
		newWin = window.open(url, "", "width="+ width +",height="+ height +",toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
		newWin.focus();
	}
	
function any_pop_no(url,width,height)
	{
		newWin = window.open(url, "", "width="+ width +",height="+ height +",toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes");
		newWin.focus();
	}
	function any_popstat(url,width,height)
	{
		newWin = window.open(url, "", "width="+ width +",height="+ height +",toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=yes");
		newWin.focus();
	}
	

function clickButton(e, buttonid){ 
      var bt = document.getElementById(buttonid); 
      
   
		if (typeof bt == 'object'){ 
				if(navigator.appName.indexOf("Netscape")>(-1)){ 
					if (e.keyCode == 13){ 
							bt.click(); 
							return false; 
					} 
				} 
				if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){ 
					if (event.keyCode == 13){ 
							bt.click(); 
							return false; 
					} 
				} 
		} 
      
} 



function goSearch()
{
var sType;
var sTerm=document.getElementById('sTerm').value;
var oRad = document.getElementById('sType');
if (oRad.checked==true)
{
sType=1
}
else
{
sType=2
}

document.location.href='/search/index.aspx?sTerm='+ sTerm +'&stype='+ sType
}

function any_pop(url,width,height)
	{
		newWin = window.open(url, "", "width="+ width +",height="+ height +",toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
		newWin.focus();
	}
	
function any_pop_no(url,width,height)
	{
		newWin = window.open(url, "", "width="+ width +",height="+ height +",toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes");
		newWin.focus();
	}
	function any_popstat(url,width,height)
	{
		newWin = window.open(url, "", "width="+ width +",height="+ height +",toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=yes");
		newWin.focus();
	}