//variabelen STER
	
	var abc = Math.random() + "";
    var random = abc.substring(2,abc.length);
    var urltag = "studiosport.nl"; //alleen hier de tag veranderen,zorgt voor de telling van de hits e.d.   
    var url = "http://ad.nl.doubleclick.net/adi/"+ urltag +";sz=468x60;dcopt=ist;tile=1;ord="+ random + "?";
	

/****************************************************
     Author: Pete Mulder
     Url: http://www.feelslikefriday.com
     Copyright 2004 - HITmedia
	 Last update: November 29,  2004
	 Project: Omroep.nl - Universal Mediaplayer - Livestreams
****************************************************/

/* popup vars */

var popupW = 725;
var popupH = 515;

/* Open popup. Based on script by  Eric King
  Url: http://redrival.com/eak/index.shtml */
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}


 
/* this function only allows url of the popup page */
  function openPlayer(which)	{
	NewWindow(which,'po_tv',popupW,popupH,'no','center');
 }

/* this function only allows url of the popup page */
  function openBigPlayer(which)	{
	NewWindow(which,'po_bigtv',popupDblW,popupDblH,'no','center');
 }

// Cookie slaat programmanaam op, zodat JJ nav getoond kan worden.
 function createCookieJJnav(name,value,hours)
{
	if (hours)
	{
		var date = new Date();
		date.setTime(date.getTime()+(hours*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

//#jsB001
function RunIt(){ //v1.0 PVII
if (window != top) top.location.href = location.href;
MM_showHideLayers('weer','','show','quoteopen','','show','quoteclose','','show','meersubpunt1','','show','meersubpunt2','','show','meersubpunt3','','show','meersubpuntrechts1','','show','meersubpuntrechts2','','show');
//ster.location.replace(url);
createCookieJJnav('programmaNOS','studiosport',6);
}
///jsB001


//#jsB002
function createUrl() 
{
   var content = '<nolayer><table width="514" height="69" border="0" cellspacing="0" cellpadding="0" bgcolor="#0066CC"><tr><td width="44">'
	+'<img src="/gfx/global/reclame/sterlogo.gif" border="0" /><br />'
	+'<a href="http://www.ster.nl" target=_blank onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("knop1","","/gfx/global/reclame/website_1.gif",0)><img src="/gfx/global/reclame/website_0.gif" WIDTH="44" HEIGHT="13" VSPACE="0"BORDER="0" NAME="knop1" /></A><BR /><A HREF="mailto:ster@ster.nl" onMouseOut="MM_swapImgRestore()" onMouseOver=MM_swapImage("knop2","","/gfx/global/reclame/email_1.gif",0)><IMG SRC="/gfx/global/reclame/email_0.gif" WIDTH="44" HEIGHT="13" BORDER="0" NAME="knop2" /></A></td>'
    +'<td valign="center"><iframe src="http://www.nos.nl/assets/ster/index.html" name="ster" id="ster" width="468" height="60" marginwidth="0" marginheight="0" hspace="0" vspace="0" scrolling="no" frameborder="0" bordercolor="#000000">'
   	+'<a href="../%27%2B%20url%20%2B%27" target="_blank">'
   	+'<img src="../%27%2B%20url%20%2B%27" height=60 width=468 border=0 />' + '</a>'
   	+'</iframe></td>'   	
    +'</tr></table></nolayer>';

return content;
}

///jsB002


//#jsB003


//Hieronder volgende document write functies die gebruikt worden als alternatief voor includes


function displayWeerTab()
{


} // displayWeerTab

function teletekst(pag) {
			pagina = '/gfx/nosjournaal/tabbladen/popup.html?' + pag
			window.open(pagina,'teletekst_kl','width=404, height=350, scrollbars=no');
	}
