// JavaScript Document

// Global Vars
qutePlayer ='/images/flvplayer.swf';
qutePlayer2 ='/images/flvplayer_v4.swf';

///
function quteVidPlayerHP(objID,width,height,disHeight,playlist)
{

        var randPlist = Math.floor(Math.random() * 1000000000);
        zdVideoPlist = "file="+playlist+"&fullscreen=true&autostart=false&playlist=right&playlistsize=250&width=400&smoothing=true&linktarget=_top&screencolor=FFFFFF&randPlist="+randPlist;	
        var soFlv = new SWFObject(qutePlayer2,"zdVideoPlayer",width,height,"9","#ffffff");
        soFlv.addParam("quality", "high");
        soFlv.addParam("wmode", "window");
        soFlv.addParam('screencolor','000000');	 		
        soFlv.addParam('allowfullscreen','true');	
        soFlv.addParam('flashvars',zdVideoPlist);		 
        soFlv.write(objID);
}

function quteVidPlayer(objID,width,height,disHeight,playlist)
{

 
             
			var s1 = new SWFObject(qutePlayer,"single",width,height,"7");
			s1.addVariable("image","/images/qute.jpg");
			s1.addVariable("logo","/images/flv_watermark.png");
			s1.addParam("repeat","list");
			s1.addParam("allowfullscreen","true");
			s1.addVariable("displayheight",disHeight);
			s1.addVariable("showdownload","true");
			s1.addVariable("file",playlist);
			s1.addVariable("backcolor","0x000000");
			s1.addVariable("frontcolor","0xCCCCCC");
			s1.addVariable("lightcolor","0x557722");
			s1.write(objID);

}

///
function loadtree()
{
window.open('ImusicTree.asp?ImusicTree=0','','fullscreen=yes,scrollbars=no');
}



function CreateFlashControl(DivID, WIDTH, HEIGHT, URL, WMODE,MENU)
{

  var d = document.getElementById(DivID);
	
	FlObj='<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0  width=' + WIDTH + ' height=' + HEIGHT +'>'
	FlObj=FlObj+'<param name="movie" value=' + URL + '>'
	FlObj=FlObj+'<param name="wmode" value=' + WMODE + '>'	
	FlObj=FlObj+'<param name="menu" value=' + MENU + '>'
	FlObj=FlObj+'<embed src='+ URL +'  wmode=' + WMODE + ' quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=' + WIDTH + ' height=' + HEIGHT +'></embed></object>'
d.innerHTML =FlObj;	
	
}

function encyTabDisplay(id){

encyB1.style.display='none';
encyB2.style.display='none';
encyB3.style.display='none';
encyB4.style.display='none';

eval('encyB'+id+'.style.display="";')

}