﻿/*	dream`s kernel script 
	create 2007.03.15
*/


function hide_and_show(target, status)
{
	status = (typeof(status) != 'undefined') ? status : '';
	
	var show_status = document.getElementById(target).style.display;
	if(typeof(show_status) != 'undefined')
	{
		if(status)
		{ document.getElementById(target).style.display = status; return true;}
		
		else
		{
			if( show_status == 'none')
			{ document.getElementById(target).style.display = 'block'; return true;}
			if( show_status != 'none')
			{ document.getElementById(target).style.display = 'none';  return true; }
		}
	}
}



function playtv(tv)
{
	var this_host = window.top.location;
	
	tv = unescape(tv);
	tv = this_host+'video/'+tv;
	
	var htmlcode = '<div style="background-color:#000000;"><embed src="mediaplayer/mediaplayer.swf" width="382" height="342" allowfullscreen="true" allowscriptaccess="always" flashvars="&file='+tv+'&height=342&width=382&autostart=true&backcolor=0xC1C1C1&frontcolor=0x000000&lightcolor=0x996600" /></div>';
	
	document.getElementById('tvshow').innerHTML = htmlcode;
}