function openPopUp(url,width,height) 
{
  	var popup = window.open(url,'se_mtvema2007popup','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width='+width+',height='+height);
	if(popup!=null) popup.focus();

	var win=getFlash("flashcontent");
	win.onPopUp((popup!=null));
	//popup.setTimeout("popupFocus()",100);
}

function getFlash(name) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[name]
    }
    else {
        return document[name]
    }
}

function openFsPopUp(url)
{
	//alert(screen.width+" - "+screen.height);
	openPopUp(url,screen.width,screen.height);
}

function doOpenWithLocationValues(values)
{

	//if(window.location.search!=values)
		//window.location.search=values;
		
	var url;
	var hash=window.location.hash;
	//if(hash=="") hash="#home";
		
	if(values==undefined||values==null)
		url="src/popup.html"+window.location.search+hash;
	else url="src/popup.html"+values+hash;
	
	openFsPopUp(url);
}