// JavaScript Document
//
function moreClick(id,lnk)
{
	Effect.toggle(id, 'blind', { duration: 1.0 });
	//alert(id.substr( id.length - 3 ));
	if (document.getElementById(id).style.display == "none"){
		if(id.substr( id.length - 3 ) == "TOP" || id.substr( id.length - 3 ) == "VAR"){
			$(lnk).className='less';
		}else{
			$(lnk).className='less';
		}
	}else{
		if(id.substr( id.length - 3 ) == "TOP" || id.substr( id.length - 3 ) == "VAR"){
			$(lnk).className='more';
		}else{
			$(lnk).className='more';
		}	
	}
}
function forgeClick(id) {
	if (document.getElementById(id).style.display == "none") {
		Effect.toggle('forge', 'blind', {duration: .8});
		Effect.toggle(id, 'slide', {delay: .8 , duration: .5 });
	} else {
		Effect.toggle(id, 'slide', {duration: .5 });
		Effect.toggle('forge', 'blind', {delay: .5 , duration: .8});
	}
}
function forgeSet(id) {
	document.getElementById('forge').style.display = "none";
	document.getElementById(id).style.display = "block";
}
function createPlayer(flvFile, thumbFile, startPlay, objID) {
	var thumbImage = new String();
	var s = new SWFObject("http://main.oeta.tv/media/swfPlayer/seyretplayer.swf","video","300","200","7");
	s.addParam("repeat","false");
	s.addParam("allowfullscreen","true");
	s.addVariable("displaywidth","300");
	s.addVariable("file", flvFile);
	if (thumbFile.length < 1) {
		thumbImage = "http://main.oeta.tv/media/swfPlayer/nothumbnail.png";
	} else {
		thumbImage = thumbFile;
	}
	s.addVariable("image", thumbImage);
	s.addVariable("backcolor","0x154074");
	s.addVariable("frontcolor","0xccdcf0");
	s.addVariable("lightcolor","0x000000");
	s.addVariable("screencolor","0xe5f1ff");
	s.addVariable("width","300");
	s.addVariable("height","200");
	s.addVariable("logo","http://main.oeta.tv/media/swfPlayer/logo.png");
	s.addVariable("showdigits","false");
	if (startPlay) { s.addVariable("autostart", true); }
	s.write("video");
	}
