/*Hide the Menus*/
var d = document;

d.write('<style>#ContentDescribe{ position:absolute; visibility:hidden;} .menuSubGenres{ position:absolute; visibility:hidden; } .hBox{ position:absolute; visibility:hidden; } .menuSubGenres a{ display:block; }  .navTabs ul ul { position:absolute; display:none;} .fileTabs ul ul { position:absolute; display:none;}</style>');

/*Holder of HTML page Layouts, Div for Older browsers*/
function TableTop(){
	d.write( '<table class="tableExp"><tr><td background="http://lib.artsandtv.com/img/rsquare/left.gif">&nbsp;</td><td width="30" >&nbsp;</td><td  style="background-color:#FFFFFF;height:350px; padding-top:20px; padding-left:30px;" valign="top">');
}/*padding:5px; padding-top:15px;*/

/*Holder of HTML page Layouts, Div for Older browsers*/
function TableBot(){
	d.write( '</td><td width="5"><!--nowrap style="font-size:9px; padding:5px;" valign="top"><a href="#" style="color:#000000; padding-top:5px; text-decoration:none">-->&nbsp;</td><td background="http://lib.artsandtv.com/img/rsquare/right.gif" style="width:10px;">&nbsp;</td></tr></table>');
}

function TableHeadFoot(img_num){
/*   1=top/left    2=top/Right   3=bot/right   4=bot/left */
	var x = img_num;
	var topbot = 'top';
	if(x >= 3)
		topbot = 'bot';

/*jrlnote - had to add span in order to stop IE extra spacing of this table*/
d.write('<span style="margin:0px;"><table class="tableExp"><tr><td><img src="http://lib.artsandtv.com/img/rsquare/corner3_'+ x);

	x=x+1;

	d.write('.gif" height="10" width="10" /></td><td background="http://lib.artsandtv.com/img/rsquare/'+topbot+'.gif" style="height:10px;width:780px;"></td><td><img src="http://lib.artsandtv.com/img/rsquare/corner3_'+ x +'.gif" height="10" width="10" /></td></tr></table></span>');
}

/*
<a href='javascript:TestMedia(76650,window.d.frmData.mediatext.value,"False")'>click to test</a>*/
function TestMedia(bIsUrl){
	if(bIsUrl!='')
		PopupWindow(bIsUrl, 'media_test', '1', '1', '1', '', '', '5', '5');
	else
		alert('To Test, A Value is Required.');
}

function PopupWindow(sUrl, sName, sToolbars, sScrollbars, sResizable, nHeight, nWidth, xCor, yCor){
	if (sName==''){
		sName = 'popup_window';
	}
		
	var newwin = window.open(sUrl, sName,'toolbar='+sToolbars+',scrollbars='+sScrollbars
	+',resizable='+sResizable+',status=1');
	
	if (nHeight!=''){
		newwin.resizeTo(nWidth, nHeight);
	}
	
	if (xCor!=''){
		newwin.moveTo(xCor, yCor);
	}
}


function content_alert(){alert('This LINK is offsite from ArtsandTV.company editors,\n we try our best to review all content. Viewer discretion may be advised.')};

/*Put translater at page bottom*/
/*function translate(){
	var URL = location.href;
	var provider = '| <a target=_blank href=http://translate.google.com/translate_c?sl=en&';
	
	d.write( "<a name=\"trans\"></a><br /><br /><br /><br />Translation by GOOGLE "
	+ provider +"hl=fr&u="+URL+">FR</a> |"
	+ provider +"hl=de&u="+URL+">DE</a> |"
	+ provider +"hl=it&u="+URL+">IT</a> |"
	+ provider +"hl=es&u="+URL+">ES,MX</a> |"
	+ provider +"hl=pt&u="+URL+">PT,BR</a> |"
	+ provider +"hl=zh&u="+URL+">CN</a> |"
	+ provider +"hl=ko&u="+URL+">KR</a> |"
	+ provider +"hl=ja&u="+URL+" >JP</a> |");
}
*/