// JavaScript Document
function OpenBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) 
{ //v3.0
	if(window.screen) if(isCenter) if(isCenter=="true")
	{
		var myLeft = (screen.width-myWidth)/2;
		var myTop = (screen.height-myHeight)/2;
		features+=(features!='')?',':'';
		features+=',left='+myLeft+',top='+myTop;
	}
	window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
} 

/// window scroll sync
// written by Brad Jackson, 2Advanced.com, May 2005
var isReady = false;
function flashready()
{
	isReady = true;
}

function resize ()
{
	if (isReady)
	{
		var windowheight = getHeight();
		
		d = document.getElementById ("mainDiv");

		var m  = document.getElementById ("reelworld");
		var contentHeight = m.GetVariable("contentHeight");
		
		if (contentHeight > windowheight) 	d.style.height = contentHeight +"px";
		else								d.style.height = windowheight  +"px";
			
		m.SetVariable ("divHeight", d.style.height);
		m.SetVariable ("currentWindowHeight", getHeight());
	}
}

function getHeight()
{
	 if (window.innerHeight) { 
		  return window.innerHeight; 
	 } 
	 else if (document.documentElement && document.documentElement.clientHeight != 0) { 
		  return document.documentElement.clientHeight; 
	 } 
	 else if (document.body) { 
		  return document.body.clientHeight; 
	 }      
	
	return 0;
}

window.onresize = resize;
//window.onresize(); 