

	var search_default_text = 'search ytv.com';


	// this is the old stuff, mostly for search funcitonality
	
	function do_search()
	{
		var terms = escape(document.forms[0].q.value.replace( /^\s+|\s+$/g, "" ));
		// location = search_url + 'q=' + terms;
		document.forms[0].submit();
	}
	
	function do_focus(obj)
	{
		if(document.forms[0].q.value == search_default_text)
			document.forms[0].q.value = "";
		obj.className = 'activated';	
	}	
	
	function do_blur(obj)
	{
		document.forms[0].q.value = document.forms[0].q.value.replace( /^\s+|\s+$/g, "" )	
		if(document.forms[0].q.value == search_default_text || document.forms[0].q.value == '')
		{
			document.forms[0].q.value = search_default_text;
			obj.className = 'default';	
		}	
	}	

	// start of Feb 8th, 2010 stuff (for "show info")
	
		function click_tab(x) 
		{
			for(i=0; i < 3; i++)
			{
				if(i==x)
				{
					document.getElementById('panel' + i).style.display = 'block';
				}	
				else
				{
					document.getElementById('panel' + i).style.display = 'none';		
				}	
			}	

			document.getElementById('show_tabs').className = 'tab_' + x;
		}	
	
	
		function load_showinfo_data()
		{
			var data = '4^SpongeBob SquarePants^The Sponge Who Could Fly^SpongeBob is jellyfishing when he wistfully realizes that he wants to fly with the jellyfish. He proceeds to come up with numerous ways to fly. He and Patrick try everything from constructing a plane to tying SpongeBob to a kite. All of his efforts are...^Monday February 08 at 3:50 PM^^2/8/2010 5:30:00 AM<br />2/8/2010 5:30:00 AM<br />2/8/2010 3:50:00 PM<br />2/8/2010 3:50:00 PM<br />2/8/2010 5:25:00 PM<br />2/8/2010 5:25:00 PM<br />2/9/2010 5:30:00 AM<br />2/9/2010 5:30:00 AM<br />2/9/2010 3:50:00 PM<br />2/9/2010 3:50:00 PM<br />2/9/2010 5:25:00 PM<br />2/9/2010 5:25:00 PM<br />';
			
		    var nugget = data.split('^');

		    document.getElementById('panel_0_content').innerHTML = '<br/><b>' + nugget[1] + '</b><br />' + nugget[5];
			document.getElementById('panel_1_content').innerHTML = '<br/>Next Episode:<br/><b>' + nugget[2] + '</b><br />' + nugget[3] + '<br />Airs ' + nugget[4];
			document.getElementById('panel_2_content').innerHTML = '<br/>' + nugget[6];			
		}

		function pass_showinfo_data(passed_data)
		{
			var data = passed_data;
			if(passed_data == '')
				data = 'No data^No data^No data^No data^No data^No data^No data';			
		    var nugget = data.split('^');

		    document.getElementById('panel_0_content').innerHTML = '<br/><b>' + nugget[1] + '</b><br />' + nugget[5];
			document.getElementById('panel_1_content').innerHTML = '<br/>Next Episode:<br/><b>' + nugget[2] + '</b><br />' + nugget[3] + '<br />Airs ' + nugget[4];
			document.getElementById('panel_2_content').innerHTML = '<br/>' + nugget[6];			
		}

		// nav and dropdown controls
		
		var navTimer = "";
		var timeOutVal = 150;
		
		var preLoadBg = new Image();
		
		
		bop = new Object(); 
		bop.targetDiv = "";
			bop.hide = function()
			{
				document.getElementById(bop.targetDiv).style.visibility = "hidden";
			}
			
			function openNav(myDiv)
			{
				if(bop.targetDiv != "")	bop.hide();
					bop.targetDiv = myDiv;
					clearTimeout(navTimer);
					document.getElementById(myDiv).style.visibility = "visible";
				        
					document.getElementById(myDiv).onmouseout = function(){
						navTimer = setTimeout("bop.hide()", timeOutVal - 50);
					}
					document.getElementById(myDiv).onmouseover = function(){
						clearTimeout(navTimer);
					}
			}
			
			function hideNav(myDiv){	
				bop.targetDiv = myDiv;
				navTimer = setTimeout("bop.hide()", timeOutVal);
			}
			
			function hideShowElement(divName, value)
			{
			    if (document.getElementById(divName)!= null)
			        document.getElementById(divName).style.visibility = value;
			}
			
			function setNavOn()
			{
		
			}
			
	// end of Feb 8th, 2010 stuff			

// START OF PASTE

var strVar="\n";
strVar += "\n";
strVar += "<script type=\"text\/javascript\" src=\"http:\/\/www.ytv.com\/Utility\/Partner\/assets\/default_v2.js\"><\/script>\n";
strVar += "<style type=\"text\/css\">\n";
strVar += "\n";
strVar += "	body.default\n";
strVar += "	{\n";
strVar += "		background-color: #03366c; margin: 0; background-image: none;\n";
strVar += "	}\n";
strVar += "\n";
strVar += "	#header_wrapper\n";
strVar += "	{\n";
strVar += "		background-image: url(http:\/\/www.ytv.com\/Utility\/Partner\/assets\/YTV_pwrap_bg_wrapper.gif); \n";
strVar += "		background-position: center top; font-family:Arial, Helvetica, sans-serif; font-size: 12px; background-repeat: no-repeat; background-color: #03366c;\n";
strVar += "	}\n";
strVar += "\n";
strVar += "	#header_wrapper div#sprite_1 a\n";
strVar += "	{\n";
strVar += "		position: absolute; display:block; text-decoration: none; border: 0;\n";
strVar += "		background-image: url(http:\/\/www.ytv.com\/Utility\/Partner\/assets\/YTV_pwrap_sprite_1.png); background-repeat: no-repeat;\n";
strVar += "	}\n";
strVar += "\n";
strVar += "			#header_wrapper div#sprite_1 a#n1 \n";
strVar += "			{\n";
strVar += "				left: 130px; top: 128px; width: 76px; height: 26px;\n";
strVar += "				background-position: 0px -116px;\n";
strVar += "			}\n";
strVar += "		    \n";
strVar += "			#header_wrapper div#sprite_1 a#n2 \n";
strVar += "			{\n";
strVar += "				left: 205px; top: 128px; width: 73px; height: 26px;\n";
strVar += "				background-position: 0px -58px;\n";
strVar += "			}\n";
strVar += "		\n";
strVar += "			#header_wrapper div#sprite_1 a#n3\n";
strVar += "			{\n";
strVar += "				left: 277px; top: 128px; width: 80px; height: 26px;\n";
strVar += "				background-position: 0px -174px;\n";
strVar += "			}\n";
strVar += "		\n";
strVar += "			#header_wrapper div#sprite_1 a#n4\n";
strVar += "			{\n";
strVar += "				left: 358px; top: 128px; width: 107px; height: 26px;\n";
strVar += "				background-position: 0px 0px;\n";
strVar += "			}\n";
strVar += "			    \n";
strVar += "			#header_wrapper div#sprite_1 a#n1:active 	{ background-position: 0px -116px; }\n";
strVar += "			#header_wrapper div#sprite_1 a#n1:hover 	{ background-position: 0px -145px; }\n";
strVar += "		\n";
strVar += "			#header_wrapper div#sprite_1 a#n2:active 	{ background-position: 0px -58px; }\n";
strVar += "			#header_wrapper div#sprite_1 a#n2:hover 	{ background-position: 0px -87px; }\n";
strVar += "		\n";
strVar += "			#header_wrapper div#sprite_1 a#n3:active 	{ background-position: 0px -174px; }\n";
strVar += "			#header_wrapper div#sprite_1 a#n3:hover 	{ background-position: 0px -203px; }\n";
strVar += "		\n";
strVar += "			#header_wrapper div#sprite_1 a#n4:active 	{ background-position: 0px 0px; }\n";
strVar += "			#header_wrapper div#sprite_1 a#n4:hover 	{ background-position: 0px -29px; }\n";
strVar += "\n";
strVar += "\n";
strVar += "\n";
strVar += "	#header_wrapper div#sprite_2 a\n";
strVar += "	{\n";
strVar += "		position: absolute; display:block; text-decoration: none; border: 0;\n";
strVar += "		background-image: url(http:\/\/www.ytv.com\/Utility\/Partner\/assets\/YTV_pwrap_sprite_2.gif); background-repeat: no-repeat;\n";
strVar += "	}\n";
strVar += "\n";
strVar += "			#header_wrapper div#sprite_2 a#x1 \n";
strVar += "			{\n";
strVar += "				left: 0px; top: 66px; width: 102px; height: 95px;\n";
strVar += "				background-position: 0px 0px;\n";
strVar += "			}\n";
strVar += "\n";
strVar += "			#header_wrapper div#sprite_2 a#x2\n";
strVar += "			{\n";
strVar += "				left: 463px; top: 101px; width: 110px; height: 60px;\n";
strVar += "				background-position: 0px 0px;\n";
strVar += "			}\n";
strVar += "\n";
strVar += "			#header_wrapper div#sprite_2 a#x3\n";
strVar += "			{\n";
strVar += "				left: 704px; top: 126px; width: 44px; height: 30px;\n";
strVar += "				background-position: 0px 0px;\n";
strVar += "			}\n";
strVar += "\n";
strVar += "			#header_wrapper div#sprite_2 a#x4\n";
strVar += "			{\n";
strVar += "				left: 760px; top: 102px; width: 58px; height: 58px;\n";
strVar += "				background-position: 0px 0px;\n";
strVar += "			}\n";
strVar += "\n";
strVar += "			#header_wrapper div#sprite_2 a#x5\n";
strVar += "			{\n";
strVar += "				left: 822px; top: 128px; width: 68px; height: 33px;\n";
strVar += "				background-position: 0px 0px; \n";
strVar += "			}\n";
strVar += "\n";
strVar += "			#header_wrapper div#sprite_2 a#x6\n";
strVar += "			{\n";
strVar += "				left: 892px; top: 128px; width: 65px; height: 33px;\n";
strVar += "				background-position: 0px 0px;\n";
strVar += "			}\n";
strVar += "\n";
strVar += "\n";
strVar += "	#header_wrapper input#q\n";
strVar += "	{\n";
strVar += "		position: absolute; left: 583px; top: 131px; \n";
strVar += "		width:117px !important;\n";
strVar += "		font-weight: bold;\n";
strVar += "	}\n";
strVar += "	\n";
strVar += "						#header_wrapper input#q.default\n";
strVar += "						{	\n";
strVar += "							color:#bdbdbd;\n";
strVar += "						}	\n";
strVar += "				\n";
strVar += "						#header_wrapper input#q.activated\n";
strVar += "						{	\n";
strVar += "							color:Black;\n";
strVar += "						}		\n";
strVar += "	\n";
strVar += "	\n";
strVar += "	#header_wrapper ul#navigation-list \n";
strVar += "	{\n";
strVar += "		list-style-image:none;\n";
strVar += "		list-style-position:outside;\n";
strVar += "		list-style-type:none;\n";
strVar += "		margin:0;\n";
strVar += "		padding:0;\n";
strVar += "	}	\n";
strVar += "	\n";
strVar += "	#header_wrapper ul#navigation-list li\n";
strVar += "	{\n";
strVar += "		float: left;\n";
strVar += "		margin: 0; padding: 0;\n";
strVar += "		position: relative;\n";
strVar += "		text-indent: -9999px;\n";
strVar += "	}	\n";
strVar += "	\n";
strVar += "	\/* New Styles re-factored Feb 02, 2010 *\/\n";
strVar += "	\n";
strVar += "	#header_wrapper div#header_container\n";
strVar += "	{\n";
strVar += "		width: 973px; height: 163px; margin: 0 auto; background-image: url(http:\/\/www.ytv.com\/Utility\/Partner\/assets\/YTV_pwrap_bg_main.jpg); \n";
strVar += "		position: relative; background-repeat: no-repeat;\n";
strVar += "	}\n";
strVar += "	\n";
strVar += "	\/* New Styles re-factored Feb 08, 2010 for show info panel *\/\n";
strVar += "			#show_tabs\n";
strVar += "			{\n";
strVar += "				position: absolute; display:block; text-decoration: none; border: 0;\n";
strVar += "				background-image: url(http:\/\/www.ytv.com\/Utility\/Partner\/assets\/YTV_pwrap_showinfo_sprite.png); background-repeat: no-repeat;\n";
strVar += "				left: 4px; top: 11px; width: 232px; height: 250px; z-index: 9999;\n";
strVar += "				\n";
strVar += "				font-family:Arial, Helvetica, sans-serif;\n";
strVar += "				color: #0366aa;\n";
strVar += "				font-size: 13px;\n";
strVar += "			}\n";
strVar += "		\n";
strVar += "					.tab_0\n";
strVar += "					{ background-position: -0px -0px }\n";
strVar += "					\n";
strVar += "					.tab_1\n";
strVar += "					{ background-position: -0px -260px; }\n";
strVar += "		\n";
strVar += "					.tab_2\n";
strVar += "					{ background-position: -0px -520px; }\n";
strVar += "					\n";
strVar += "		\n";
strVar += "			img.tab\n";
strVar += "			{\n";
strVar += "				border: 0;\n";
strVar += "				height: 20px;\n";
strVar += "			}\n";
strVar += "		\n";
strVar += "			.panel\n";
strVar += "			{\n";
strVar += "				padding: 2px 10px 5px 6px; width: 220px; min-height: 235px;\n";
strVar += "			}\n";
strVar += "			\n";
strVar += "			#panel0, #panel1, #panel2\n";
strVar += "			{\n";
strVar += "				display: block;\n";
strVar += "				position: absolute;\n";
strVar += "			}\n";
strVar += "		\n";
strVar += "			#panel1, #panel2\n";
strVar += "			{\n";
strVar += "				display: none;\n";
strVar += "			}\n";
strVar += "			\n";
strVar += "			\n";
strVar += "			.panel_content\n";
strVar += "			{\n";
strVar += "				background-color: #fff; line-height: 1.2; font-size: 12px;\n";
strVar += "			}\n";
strVar += "			\n";
strVar += "			div#nav_showsNav\n";
strVar += "			{\n";
strVar += "				width:240px; height: 272px; background-image: url(http:\/\/www.ytv.com\/Utility\/Partner\/assets\/YTV_pwrap_showinfo_bg.png); \n";
strVar += "				position: absolute; left: 463px; top: 163px; border: 0; visibility: hidden; z-index: 100;\n";
strVar += "			}\n";
strVar += "<\/style>\n";
strVar += "\n";
strVar += "	<!-- start: Replaced by script above -->\n";
strVar += "			<div id=\"main\"><form method=\"get\" action=\"http:\/\/www.ytv.com\/search\/default.aspx\">\n";
strVar += "	\n";
strVar += "			<!-- main nav -->\n";
strVar += "			<div id=\"sprite_1\">\n";
strVar += "				<ul id=\"navigation-list\">\n";
strVar += "					<li><a href=\"http:\/\/www.ytv.com\/shows\/default.aspx\" id=\"n1\" title=\"Shows\">Shows<\/a><\/li>\n";
strVar += "					<li><a href=\"http:\/\/www.ytv.com\/games\/default.aspx\" id=\"n2\" title=\"Games\">Games<\/a><\/li>\n";
strVar += "					<li><a href=\"http:\/\/www.ytv.com\/videos\/default.aspx\" id=\"n3\" title=\"Videos\">Videos<\/a><\/li>\n";
strVar += "					<li><a href=\"http:\/\/promos.ytv.com\/\" id=\"n4\" title=\"Contests\">Contests<\/a><\/li>\n";
strVar += "				<\/ul>	\n";
strVar += "			<\/div>	\n";
strVar += "\n";
strVar += "			<!-- various clickable items -->			\n";
strVar += "			<div id=\"sprite_2\">\n";
strVar += "				<a href=\"http:\/\/www.ytv.com\/\" id=\"x1\" title=\"YTV.com\"><br \/><\/a>\n";
strVar += "				<a href=\"\" id=\"x2\"  title=\"Show Info\" onmouseout=\"hideNav('nav_showsNav');\" onmouseover=\"openNav('nav_showsNav');\"><br \/><\/a>\n";
strVar += "				<a href=\"javascript:do_search()\"\" id=\"x3\" title=\"Search\"><br \/><\/a>\n";
strVar += "				<a href=\"http:\/\/www.ytv.com\/user\/CreateUser.aspx\" id=\"x4\" title=\"Y-List\"><br \/><\/a>\n";
strVar += "				<a href=\"http:\/\/www.ytv.com\/sitekick\/dock.aspx\" id=\"x5\" title=\"Sitekick\"><br \/><\/a>\n";
strVar += "				<a href=\"http:\/\/forums.ytv.com\/\" id=\"x6\" title=\"Boards\"><br \/><\/a>\n";
strVar += "			<\/div>	\n";
strVar += "\n";
strVar += "\n";
strVar += "			<!-- START show info popup and panels -->\n";
strVar += "		    <div id=\"nav_showsNav\" style=\"\">\n";
strVar += "				<div id=\"show_tabs\" class=\"tab_0\">\n";
strVar += "					<div id=\"panel0\" class=\"panel\"><a href=\"javascript: click_tab(0)\" title=\"News\"><img src=\"http:\/\/www.ytv.com\/Utility\/Partner\/assets\/dot_blank.gif\" width=\"40\" class=\"tab\" border=\"0\"><\/a><a href=\"javascript: click_tab(1)\" title=\"Episode Info\"><img src=\"http:\/\/www.ytv.com\/Utility\/Partner\/assets\/dot_blank.gif\" width=\"90\" class=\"tab\" border=\"0\"><\/a><a href=\"javascript: click_tab(2)\" title=\"Showtimes\"><img src=\"http:\/\/www.ytv.com\/Utility\/Partner\/assets\/dot_blank.gif\" width=\"90\" class=\"tab\" border=\"0\"><\/a>\n";
strVar += "						<div id=\"panel_0_content\" class=\"panel_content\">\n";
strVar += "						 	<br\/><b>Grabbing Data...<\/b>[0]<br \/><img src=\"http:\/\/www.ytv.com\/Utility\/Partner\/assets\/YTV_pwrap_showinfo_ajax.gif\" \/>\n";
strVar += "						<\/div>\n";
strVar += "					<\/div>			\n";
strVar += "					<div id=\"panel1\" class=\"panel\"><a href=\"javascript: click_tab(0)\" title=\"News\"><img src=\"http:\/\/www.ytv.com\/Utility\/Partner\/assets\/dot_blank.gif\" width=\"40\" class=\"tab\" border=\"0\"><\/a><a href=\"javascript: click_tab(1)\" title=\"Episode Info\"><img src=\"http:\/\/www.ytv.com\/Utility\/Partner\/assets\/dot_blank.gif\" width=\"90\" class=\"tab\" border=\"0\"><\/a><a href=\"javascript: click_tab(2)\" title=\"Showtimes\"><img src=\"http:\/\/www.ytv.com\/Utility\/Partner\/assets\/dot_blank.gif\" width=\"90\" class=\"tab\" border=\"0\"><\/a>\n";
strVar += "						<div id=\"panel_1_content\" class=\"panel_content\">\n";
strVar += "							<br\/><b>Grabbing Data...<\/b>[1]<br \/><img src=\"http:\/\/www.ytv.com\/Utility\/Partner\/assets\/YTV_pwrap_showinfo_ajax.gif\" \/>\n";
strVar += "						<\/div>\n";
strVar += "					<\/div>	\n";
strVar += "					<div id=\"panel2\" class=\"panel\"><a href=\"javascript: click_tab(0)\" title=\"News\"><img src=\"http:\/\/www.ytv.com\/Utility\/Partner\/assets\/dot_blank.gif\" width=\"40\" class=\"tab\" border=\"0\"><\/a><a href=\"javascript: click_tab(1)\" title=\"Episode Info\"><img src=\"http:\/\/www.ytv.com\/Utility\/Partner\/assets\/dot_blank.gif\" width=\"90\" class=\"tab\" border=\"0\"><\/a><a href=\"javascript: click_tab(2)\" title=\"Showtimes\"><img src=\"http:\/\/www.ytv.com\/Utility\/Partner\/assets\/dot_blank.gif\" width=\"90\" class=\"tab\" border=\"0\"><\/a>\n";
strVar += "						<div id=\"panel_2_content\" class=\"panel_content\">\n";
strVar += "							<br\/><b>Grabbing Data...<\/b>[2]<br \/><img src=\"http:\/\/www.ytv.com\/Utility\/Partner\/assets\/YTV_pwrap_showinfo_ajax.gif\" \/>\n";
strVar += "						<\/div>\n";
strVar += "					<\/div>\n";
strVar += "				<\/div>\n";
strVar += "		    <\/div>\n";
strVar += "			<!-- END show info popup and panels -->\n";
strVar += "\n";
strVar += "			<!-- search -->			\n";
strVar += "			<input type=\"text\" name=\"q\" id=\"q\" maxlength=\"64\" value=\"search ytv.com\" class=\"default\" onfocus=\"do_focus(this)\" onblur=\"do_blur(this)\" \/><\/form></div>\n";
strVar += "				\n";

strVar += "\n";
strVar += "\n";
strVar += "\n";

// END OF PASTE

document.write(strVar);