var video =		xLocation.Search['video'];
var section =	xLocation.Search['section'];
var nocookie =	xLocation.Search['nocookie'];
var ddUserID = xLocation.Search['user'];
var ddOL = xLocation.Search['ol'];
var fv = "video="+video+"&section="+section+"&nocookie="+nocookie+"&user="+ddUserID+"&ol="+ddOL;
var stageHeight = 726;
var flashcontent;
var wholepage;
var testPopUpBlocker = false;
function track($obj)
{
//	var code = $obj.sectionCode+"~"+$obj.sectionName+"~"+   (($obj.pageCode != "null") ? $obj.pageCode+"~"+$obj.pageName : "");
//	if (window.changestate) { changestate (code) }
};
function popWindow($obj)
{
	if(isBlocked() == false)
	{
		$obj.isScrollable ? xWindow.openCenterScroll($obj.url,"newwin",$obj.w,$obj.h) : xWindow.openCenter($obj.url,"newwin",$obj.w,$obj.h);
	}
};
function popWallpapers($obj)
{
	if(isBlocked() == false) xWindow.openCenterScroll("html/popWallpaper.html?img="+$obj.file+"&w="+$obj.w+"&h="+$obj.h,'wallpaper',$obj.w,$obj.h);
};
function isBlocked()
{
	if(testPopUpBlocker == false) return false;
	test_window = window.open('html/popTest.html','test_window','width=1,height=1,left=0,top=0,scrollbars=no');
	var allow = test_window ? true: false;	
	if(!allow) alert("Please Enable Popup Windows.");
//	alert("allow == " + allow + " // Please Enable Popup Windows.");
	return !allow;
};	
function init(){
	flashcontent = new xElementObject("flash");
	wholepage = new xElementObject("wholepage");
	/*
	xWindow.addEvent("resize");
	xWindow.addListener("resize", "onWindowResize");
	onWindowResize();		// init
	*/
};
function setHeight(h)
{
	var setH = Math.max(h, xWindow.getHeight());
	flashcontent.setHeight(setH);
	stageHeight = h;
//		alert("setHeight: " + h + " vs. " + xWindow.getHeight());
};
function onWindowResize()
{
	setHeight(stageHeight);
};