<!-- // JavaScript Document
function writeProgramReminder(){
	document.write('<div style="margin-top:8px;"><a href="/channel/ET/daily/daily.html" class="tuneInLink"><b>Check TV Schedule for Airdates &raquo;</b></a></div>');
	/* document.write('<a href="#" class="tuneInLink" onClick="openProgramReminder()" >Get a Program Reminder &raquo;</a>'); */
}

function openProgramReminder(){
	var programReminderURL = "http://channel.nationalgeographic.com/channel/ET/popup/200512142100.html";
	var windowFeatures = "width=400,height=500,location=no,menubar=no,resizable=no,toolbar=no,scrollbars=no";
	window.open(programReminderURL,'programReminder',windowFeatures);	
}

function writeTuneIn(){
/*
	var tuneInText = "ENCORE WEDNESDAY DECEMBER 14 9P et/pt";
	document.write(tuneInText);
*/
}

var newWin;
var flashWin;

function open8by6win(url,name){
	
	var l = 0;
	var t = 0;
	var x;
	var y;
	
	var availWidth = screen.availWidth;
	var availHeight = screen.availHeight;
	
	x = availWidth;
	y = availHeight;
	
	// if height of screen is less than 600, make the popup 4:3, maximized to height, centered on screen
	// otherwise make the popup 800 x 600
	if( (y <= 600) ){
	
		x = (4*y) / 3; //let height be full screen, but width so that window will conform to 4:3 aspect
		
		l = (availWidth/2)-(x/2); //center new 4:3 window
		//alert('newSize: ' + x + ',' + y );
		
	}else{
		
		x = 800;
		y = 600;
		
		l = (availWidth/2)-(x/2); //center window
		t = (availHeight/2)-(y/2); //center window

	}
	/*
	newWin = window.open(url,name,"left="+ l +",top="+ t +",width=" + x + ",height=" + y + ",scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no");
	//newWin.resizeTo(screen.width,screen.height);
	newWin.resizeTo(x,y);
	
	newWin.focus();	
	*/
	
	
	var mypopup=window.open('interactive.html','mypopup','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0,width='+x+',height='+y+',top='+t+',left='+l);
	
	mypopup.focus();
	
	
}
-->