var navSel = "";
var d=document;

function manageMainNav(id,state){
	if (!d.getElementById("navParent")) return;
	if (state=="click"){
			if (navSel) {
				d.getElementById("sub" + navSel).style.display = "none";
				d.getElementById("subnav").style.backgroundColor = "transparent";
				d.getElementById(navSel).className = "navout";
			}
			if (d.getElementById("sub" + id)) d.getElementById("sub" + id).style.display = "block";
			d.getElementById("subnav").className = "subclick";
			d.getElementById(id).className = "navclick";
			navSel = id;			
	}else{
			if (id==navSel) return;
			hideSubNavs(navSel);
			if (d.getElementById("sub" + navSel)) d.getElementById("sub" + navSel).style.display = "none";
			if (d.getElementById("sub" + id)) d.getElementById("sub" + id).style.display = "block";
			d.getElementById(id).className = "navover";
			d.getElementById("subnav").className = "subover";
	}
}

function hideSubNavs(id){
	nParent = d.getElementById("navParent");
	for (var i=0;i<nParent.childNodes.length;i++) {
		navChildren = nParent.childNodes[i];
		if (navChildren.nodeType == 1 && nParent.childNodes[i]!=d.getElementById(navSel)) navChildren.className = "navout";
	} 
	subParent = d.getElementById("subnav");
	for (var i=0;i<subParent.childNodes.length;i++) {
		subChildren = subParent.childNodes[i];
		if (subChildren.nodeType == 1) {
			d.getElementById("subnav").className = "subout";
			subChildren.style.display = "none";
		}
	} 
	if (id && id!=navSel && id!=="all"){
		d.getElementById("subnav").className = "subout";
		d.getElementById(id).className = "navout";
	} 
	if (d.getElementById("sub"+navSel)) {
		d.getElementById("sub"+navSel).style.display = "block";
		d.getElementById("subnav").className = "subclick";
	}
}

function showMore (id,which) {
	sParent  = d.getElementById(id);
	for (var i=0;i<sParent.childNodes.length;i++) {
		sChildren = sParent.childNodes[i];
		if (sChildren.tagName == "SPAN") sChildren.style.display = "none";
	}
	
	d.getElementById(id+which).style.display = "block";
}

isLoaded=0;
var activeToolTip = "";
var divCount = "";
var entInterval;

function doDrawer (which) {
	drawersArray = new Array ('nbdl_body1','nbdl_body2','nbdl_body3');
	for (i=0; i<drawersArray.length;i++) {
		document.getElementById(drawersArray[i]).style.display = "none";
	}
	document.getElementById("nbdl_body"+which).style.display = "block";
	document.getElementById("nbdl_drawer"+which).style.backgroundColor = "#A8B11C";
}

var activeDrawer = 0;
var mo_colors = new Array(0,"#000000","#000000","#000000");
var n_colors = new Array(0,"#713B02","#9F5302","#CC6A03");

function drawer_handleMouseOver(id) {
	if(activeDrawer == id) return;
	document.getElementById("nbdl_drawer" + id).style.backgroundColor = mo_colors[id];
}

function drawer_handleMouseOut(id) {
	if(activeDrawer == id) return;
	document.getElementById("nbdl_drawer" + id).style.backgroundColor = n_colors[id];
	
}

function drawer_handleClick(id) {
	if(activeDrawer) document.getElementById("nbdl_drawer" + activeDrawer).style.backgroundColor = n_colors[activeDrawer];
	activeDrawer = id;
	document.getElementById("nbdl_drawer" + id).style.backgroundColor = "#A8B11C";
	drawersArray = new Array ('nbdl_body1','nbdl_body2','nbdl_body3');
	for (i=0; i<drawersArray.length;i++) {
		document.getElementById(drawersArray[i]).style.display = "none";
	}
	document.getElementById("nbdl_body"+id).style.display = "block";
	
}

var tabs_on = new Array(0,"images/tab_artists_on.gif","images/tab_videos_on.gif","images/tab_songs_on.gif","images/tab_mytop11_on.gif");
var tabs_on_ntrl = new Array(0,"images/tab_artists_ntrl_on.gif","images/tab_videos_ntrl_on.gif","images/tab_songs_ntrl_on.gif","images/tab_mytop11_ntrl_on.gif");
var tabs_off = new Array(0,"images/tab_artists_off.gif","images/tab_videos_off.gif","images/tab_songs_off.gif","images/tab_mytop11_off.gif");

function tabs_handleMouseOver(id,color) {
	if(activeTab == id) return;
	if (color == "ntrl"){
		eval('document.images.img' + id + '.src = tabs_on_ntrl[id]');
	}else{
		eval('document.images.img' + id + '.src = tabs_on[id]');
	}
}

function tabs_handleMouseOut(id) {
	if(activeTab == id) return;
	eval('document.images.img' + id + '.src = tabs_off[id]');	
}

function tabs_handleClick(id,color) {
	if(activeTab) {
		if (color == "ntrl") {
			eval('document.images.img' + id + '.src=tabs_on_ntrl[id]');
		}else{
			eval('document.images.img' + id + '.src=tabs_on[id]');
		}
		eval('document.images.img' + activeTab + '.src=tabs_off[activeTab]');
	}
	activeTab = id;
	listTableArray = new Array (0,'listtable1','listtable2','listtable3','listtable4');
	for (i=1; i<listTableArray.length;i++) {
		if (document.getElementById(listTableArray[i])) document.getElementById(listTableArray[i]).style.display = "none";
	}
	document.getElementById("listtable" + id).style.display = "block";
}

function returnScrollDimensions(which) {
	if(which) {
		if(document.body.scrollTop != 0)return document.body.scrollTop;
		if(document.documentElement.scrollTop != 0)return document.documentElement.scrollTop;
	} else {
		if(document.body.scrollLeft != 0)return document.body.scrollTop;
		if(document.documentElement.scrollLeft != 0)return document.documentElement.scrollLeft;
	}
return 0;
}

var x,y,zInterval;
document.onmousemove = setMouseCoords;

function setMouseCoords(e) {
	if(!isLoaded)return;
	if(document.all) {
		x = window.event.clientX + returnScrollDimensions(0);
		y = window.event.clientY + returnScrollDimensions(1);
	} else {
		x = e.pageX;
		y = e.pageY;
	}
}

function childShowToolTip(divID) {
	clearInterval(zInterval);
	document.getElementById("toolTip").style.display = "block";
}

function showToolTip(divID) {
if(activeToolTip==divID) {hideToolTip();}
	else if(activeToolTip!=divID) {
		document.getElementById("toolTip").style.top = (y-10) + "px";
		document.getElementById("toolTip").style.left = (x-140) + "px";
		document.getElementById("toolTip").innerHTML = document.getElementById("toolTip_"+divID).innerHTML;
		document.getElementById("toolTip").style.display = "block";
		activeToolTip = divID;
	}
	clearInterval(zInterval);

}

function timeOutToolTip(){
	zInterval = setTimeout("hideToolTip()",100);
}

function hideToolTip() {
	document.getElementById("toolTip").style.display = "none";
	document.getElementById("toolTip").innerHTML = "";
	clearInterval(zInterval);
	activeToolTip = "";
}

function showEntGuide () {
	if (document.getElementById("ent_guide")){
		clearInterval(entInterval);
		document.getElementById("ent_guide").style.display = "block";
	}
}
function hideEntGuide () {
	if (document.getElementById("ent_guide")){
		entInterval = setTimeout("document.getElementById(\"ent_guide\").style.display=\"none\"",100);
	}
}

//Styles
document.write('<style>body {margin:0px; font-size:10px; font-family:verdana;}form {margin:0px; padding:0px;}.input, select {width');
document.write(':120px; background-color:#F0EFE7; color:#330000; font-size:9px; vertical-align:middle;}select {width:126px; background');
document.write('-color:#E4E3D7; margin-top:2px; padding-right:0px; margin-right:0px;}a {color:#D36D00; text-decoration:none;}a:hover');
document.write(' {text-decoration:underline;}img {border:0px;}h3 {font-weight:bold; font-size:11px; margin:0px; padding:0px;}ul {p');
document.write('adding:0px; margin:0px; list-style-type:none;}ul li {background-image:url(http://cdn.digitalcity.com/ch_global/arrow_d');
document.write('ark); background-repeat: no-repeat; background-position:0px; padding-left:2px;}ul a {margin-left:5px;}.smalltext {');
document.write('font-size:9px;}.select_white {background-color:#FFFFFF; color:#000000;}.darrow {background:url(http://cdn.digitalcit');
document.write('y.com/ch_global/arrow_dark) no-repeat 0 4px; padding-left:6px;}#ad {width:728px; height:90px; margin-left:4px; paddi');
document.write('ng-bottom:4px;}#header {position:relative; top:0; width:728px; height:90px; background-image:url(http://cdn.digitalc');
document.write('ity.com/ch_movies/header_bg); background-repeat:no-repeat; margin-left:4px;border-bottom:4px solid #941617;}#aolheader');
document.write(' {padding-bottom:5px; display:none; width:732px;}.header_left {width:381px; position:absolute; left:14px; top:4px;}');
document.write('.header_left .bigImg {padding:15px 0px 0px 15px;}.header_right {width:347px; color:#FFFFFF; position:absolute; left:3');
document.write('81px; top:5px;}.header_right .search_top {height:15px;}.header_right .search_top .left {float:left;}.header_right ');
document.write('.search_top .right {float:right; padding-right:5px;}.header_right .search_body {background-color:#E37500; height:70px;');
document.write('}.header_right .search_body p {margin:5px 0px 0px 0px;}.header_right .search_body a {color:#6B0808;}.header_right ');
document.write('.search_body .left {float:left; padding:10px 0px 0px 10px;}.header_right .search_body img {vertical-align:middle;}.h');
document.write('eader_right .search_body .right {float:right; padding:10px 5px 0px 0px;}.header_right .search_body .right form {margin');
document.write('-bottom:5px;}.n1a0v5 {height:20px; width:728px; position:absolute; top:70px; left:10px;}.n1a0v5 a {border:1px soli');
document.write('d #CDCCBE; border-left:none; display:block; float:left; padding:3px 10px 0 12px; background:url(http://cdn.digitalcity.c');
document.write('om/ch_music/nav_arrow) 5px 8px no-repeat #470404; color:#fff; text-decoration:none; font:bold 10px \'Trebuchet MS\'; posit');
document.write('ion:relative; height:15px;}.n1a0v5 a:hover {background:url(http://cdn.digitalcity.com/ch_music/nav_arrow_down) 5px 8px');
document.write(' no-repeat; text-decoration:none;background-color:#941617;}.n1a0v5 #nav0 {border-left:1px solid #A4BCC1;}#subnav {');
document.write('background-color:#470404; height:20px; width:718px; position:absolute; top:115px; left:0; padding-left:10px; color:#fff;');
document.write(' font-size:9px;}#subnav div {display:none; position:absolute;}#subnav a {color:#fff; text-decoration:none; display:b');
document.write('lock; height:16px; float:left; padding:4px 10px 0 10px;}#subnav a:hover {background-color:#E37500; text-decoration:non');
document.write('e;}#subnavout {height:4px;}#subnav4 {left:350px;}a.navover  {border-bottom:1px solid #B32121; top:-2px; margin-b');
document.write('ottom:-2px; padding-bottom:2px; background:url(http://cdn.digitalcity.com/ch_music/nav_arrow_down) 5px 8px no-repeat #B3');
document.write('2121;}a.navover:hover  {border-bottom:1px solid #B32121; top:-2px; margin-bottom:-2px; padding-bottom:2px; background:');
document.write('url(http://cdn.digitalcity.com/ch_music/nav_arrow_down) 5px 8px no-repeat #B32121;}div.subover {background-color:#B321');
document.write('21 !important;}a.navout {border-bottom:1px solid #A4BCC1; top:0; padding-bottom:0; margin-bottom:0; background-color');
document.write(':#470404;}div.subout {background-color:#470404 !important;}a.navclick {background:url(http://cdn.digitalcity.com/c');
document.write('h_music/nav_arrow_down) 5px 8px no-repeat #000; border-bottom:1px solid #000; top:-2px; margin-bottom:-2px; padding-bott');
document.write('om:2px;}a.navclick:hover {background-color:#000;}div.subclick {background-color:#000 !important;}#header_nav .in');
document.write('terchannel_nav {float:right; text-align:right; background-color:#E37500; width:155px; height:19px; padding-right:5px;bor');
document.write('der-bottom:1px solid #A4BCC1;}#header_nav .interchannel_nav a {color:#690A0A;}</style>');


//Code
document.write('<div id="header"> <div class="header_left">   <a href="http://movies.channel.aol.com" target="_parent"><img border="');
document.write('0" src="http://channelevents.aol.com/movies/blockbuster/gr/mf_logo_slim.gif" width="196" height="40" alt="AOL Movies &am');
document.write('p; Moviefone" class=bigImg/></a>    </div>        <div class="header_right">            <div class="search_top');
document.write('">               <span class="left"><img border="0" src="http://cdn.channel.aol.com/ch_movies/tab_shwtimes" width="181');
document.write('" height="15" alt="Showtimes"/></span>                          </div>            <div class="search_body">     ');
document.write('           <div class="left">                    Search by Movie<br />                    <form action="http://movie');
document.write('s.channel.aol.com/search/movieresults.adp" target="_parent"  method=get>		                                <input typ');
document.write('e=hidden name="action" value="title" />                        <input type=text class="input" name="query" value="Ente');
document.write('r movie title" />&nbsp;<input type="image" src="http://cdn.channel.aol.com/ch_movies/btn_go_off" style="width:26px; heig');
document.write('ht:17px;" boarder="0" alt="go" align="absmiddle" />                    </form>                                   <');
document.write('/div>                <div class="right">                    Search by Location<br />                    <form acti');
document.write('on="http://movies.channel.aol.com/search/locationresults.adp" target="_parent" >				                        <input n');
document.write('ame="csz" type="text" class="input" value="10003"/>&nbsp;<input type="image" src="http://cdn.channel.aol.com/ch_movies/b');
document.write('tn_go_off" style="width:26px; height:17px;" alt="go" boarder="0" align="absmiddle" />                    </form>    ');
document.write('                               </div>            </div>        </div>        <div id="navParent" class="n1a0v5">');
document.write(' <a id="nav0" href="http://movies.channel.aol.com/showtimes/closesttheaters.adp" target="_parent">SHOWTIMES</a> <a i');
document.write('d="nav1" href="http://movies.channel.aol.com/intheaters/main.adp" target="_parent">IN THEATERS</a> <a id="nav2" href="');
document.write('http://movies.channel.aol.com/comingsoon/main.adp" target="_parent">COMING SOON</a> <a id="nav3" href="http://movies.c');
document.write('hannel.aol.com/reviews/main.adp" target="_parent">REVIEWS</a> <a id="nav4" href="http://movies.channel.aol.com/trailer');
document.write('s/main.adp" target="_parent">TRAILERS & CLIPS</a> <a id="nav5" href="http://movies.channel.aol.com/dvdvideo/main.adp" ');
document.write('target="_parent">DVD & VIDEO</a> <a id="nav6" href="http://movies.channel.aol.com/movietalk/main.adp" target="_parent"');
document.write('>MOVIE TALK</a>	</div>           </div>    <div style="width:1px;height:1px;"><A HREF="/ams/clickThruRedirect.ad');
document.write('p?1073771047,2147877962x2147598280,#"><IMG SRC="/PromoArt/spacer.gif.60086.1.gif" border="0" ALT="""" HEIGHT=1 WIDTH=1><');
document.write('/A></div>');
