var x,y,w,h;
var xoffset,yoffset=72;

function moveIFrame(x2,y2,w2,h2) {
	
	w=parseInt(w2);
	x=parseInt(x2);
	y=parseInt(y2);
	h=parseInt(h2);
	var frameRef=document.getElementById("content");
	xoffset = -6;
	if(navigator.appName=='Netscape'){
		xoffset = -2;
	}
	if(document.body.clientWidth>=1000){
		frameRef.style.left=x+(document.body.clientWidth-1000)/2-xoffset;
	}else {
		frameRef.style.left=0;
	}
	frameRef.style.top=y+yoffset;
	frameRef.width=w;
	frameRef.height=h;
}
function resetiframe(){
	var frameRef=document.getElementById("content");
	if(document.body.clientWidth>=1000){
		frameRef.style.left=x+(document.body.clientWidth-1000)/2-xoffset;
	}else {
		frameRef.style.left=0;
	}
	frameRef.style.top=y+yoffset;
}
function getOs()
{
    var OsObject = "";
   if(navigator.userAgent.indexOf("MSIE")>0) {
        return "MSIE";
   }
   if(navigator.userAgent.indexOf("Firefox")>0){
        return "Firefox";
   }
   if(navigator.userAgent.indexOf("Safari")>0) {
        return "Safari";
   } 
   if(navigator.userAgent.indexOf("Camino")>0){
        return "Camino";
   }
   if(navigator.userAgent.indexOf("Gecko/")>0){
        return "Gecko";
   }
  
} 
function setIFrameContent( contentSource )
{
	document.getElementById("content").src = contentSource;
}

function hideIFrame()
{
	document.getElementById("content").src ='about:blank';
	moveIFrame(0,0,1,1);
	document.getElementById("content").style.visibility="hidden";
}

function showIFrame()
{
	document.getElementById("content").style.visibility="visible";
}
function closethiswindows() 
{ 
	var isEZ = false;

	try { isEZ = /EZ/.test(window.external.BrowserVersion); } catch(e) {}

	if (isEZ) 
	{ window.external.close(); } 
	else 
	{
	    window.opener = null;
	    window.close();
	}
} 

function focusflash()
{
	var qqobj = document.getElementById( "hero" ) ;
	if ( qqobj ) { qqobj.focus(); }
}