function playVideo(titleid,clipid)
{
	openWindow('http://www.universalpictures.at/universalpictures/trailer/view/'+titleid+'/', 820, 420);
}
function videoPlay(titleid,clipid)
{
	openWindow('http://www.universalpictures.at/universalpictures/trailer/view/'+titleid+'/', 820, 420);
}
function trailer(titleid)
{
	openWindow('http://www.universalpictures.at/universalpictures/trailer/view/'+titleid+'/', 820, 420);
}



function openWindow(mypage, width, height)
{
	var myname = 'universal'+width+height;
	if(width == '') var width = 804;
	if(height == '') var height = 460;
	var scroll = 'no';
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	winprops = 'height='+height+',width='+width+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)

	if(!win)
		{
		// popup blocker
		alert("Inhalte wurden von deinem Popup-Blocker blockiert.\nBitte erlaube der Universal Pictures Website Popups anzuzeigen.");
		}
		else
		{
		// focus
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
		}

}


function hide(name) {
  if (document.getElementById(name)) document.getElementById(name).style.display = "none"; 
}

function show(name) {
  if (document.getElementById(name)) document.getElementById(name).style.display = "block"; 
}

function weitere()
{
	window.open('http://www.universalpictures.at/');
}

function impressum()
{
	openWindow('http://www.universalpictures.at/universalpictures/impressum.php', 384, 253);
}

function datenschutz()
{
	openWindow('http://www.universalpictures.at/datenschutz/');
}
function nutzung() { impressum(); }

function pdatenschutz()
{
	var mypage = 'http://www.universalpictures.at/universalpictures/data/datenschutz_paramount.html';
	var myname = 'pnutz';
	var width = 550;
	var height = 400;
	var scroll = 'yes';
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	winprops = 'height='+height+',width='+width+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)	
}

function pnutzung()
{
	var mypage = 'http://www.universalpictures.at/universalpictures/data/nutzungsbedingungen_paramount.html';
	var myname = 'pnutz';
	var width = 550;
	var height = 400;
	var scroll = 'yes';
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	winprops = 'height='+height+',width='+width+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)	
}

function showBanner()
{
//	document.getElementById('bannerContent').style.display = '';
//	document.getElementById('flashFooterContent').style.display = '';
}

function hideBanner()
{
//	document.getElementById('bannerContent').style.display = 'none';
//	document.getElementById('flashFooterContent').style.display = 'none';
}


function newsletter()
	{
	openWindow('http://www.universalpictures.at/universalpictures/newsletter.php', 547, 201);
	}		

function nav1()
	{
	window.open('http://www.universalpictures.com/');
	}
function nav2()
	{
	window.open('http://www.universalpictures.de/');
	}
	
function nav3()
	{
	openWindow('presse.php', 582, 246);
	}		

function nav4()
	{
	openWindow('partner.php', 549, 445);
	}		
	
function nav5()
	{
	openWindow('kontakt.php', 680, 381);
	}	
		
function nav6()
	{
	openWindow('impressum.php', 384, 253);
	}	
	
function nav7()
	{
	var mypage = 'http://www.universalpictures.at/startliste/';
	var myname = 'universalstart';
	var width = 830;
	var height = 600;
	var scroll = 'yes';
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	winprops = 'height='+height+',width='+width+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	}