

var vh1_syndplayer = {

	//defaultId: 1548985,
	id : '',
	vid : '',
	lbid : 'hpc_2007',
	name : 'vh1syndplayer_'+this.vid+'_',
	movieLoc : '/sitewide/apps/syndplayer/swf/player.swf',
	width : 320,
	height : 314,
	bgcolor : 000000,
	flashVars : '',
	wmode : 'transparent',
	buffer : '',

	flashObj : {},

	setBuffer : function() {
		this.flashVars= "id="+this.id+"&vid="+this.vid+"&lbid="+this.lbid+"&r=www.vh1.com/shows/hpc/2007/";
		if (this.name == "false"){
			//this.name = "swf"+mediaList.length;
		}
		
		var buffer = "";
		buffer +=("<" + "OBJECT CLASSID=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" id=\"" + this.name + "\" ");
		buffer +=(" CODEBASE=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" "); 
		buffer +=(" WIDTH=" + this.width + " HEIGHT=" + this.height);
		buffer +=(" > ");	
		buffer +=(" <"+"PARAM NAME=MOVIE VALUE='" + this.movieLoc + "'> ");
		buffer +=(" <"+"PARAM NAME=PLAY VALUE='true'> ");
		buffer +=(" <"+"PARAM NAME=LOOP VALUE='true'> ");
		buffer +=(" <"+"PARAM NAME=bgcolor VALUE=#" + this.bgcolor + "> ");
		buffer +=(" <"+"PARAM NAME=QUALITY VALUE=high> ");
		// Flash Vars 
		buffer +=(" <"+"PARAM NAME=FlashVars VALUE='"+this.flashVars+"'> ");
		buffer +=(" <"+"PARAM NAME=MENU VALUE='" + this.menu + "'> ");
		// set tranparency
		buffer +=(" <"+"PARAM NAME=WMODE VALUE='" + this.wmode + "'>");
		buffer +=("<EMB"+"ED NAME=\"" + this.name + "\" SRC='" + this.movieLoc + "' ");
		buffer +=("FlashVars='" + this.flashVars + "' ");
		buffer +=(" WIDTH='" + this.width + "' HEIGHT='" + this.height + "' play=true ");
		buffer +=(" loop=true QUALITY=best ALIGN=TOP ");
		buffer +=(" BGCOLOR=#" + this.bgcolor + " ");
		buffer +=(" TYPE=application/x-shockwave-flash ");
		buffer +=(" wmode=" + this.wmode );
		buffer +=(" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\">");
		buffer +=("</EMBED>");
		buffer +=("</OBJECT>");

		this.buffer = buffer;

	}, // end set

	flashwrite : function(){
		this.setBuffer();
		btmRoundCorner = '<div id="btm_videoHolder">&nbsp;</div>';
		document.getElementById('videoHolder').innerHTML = this.buffer + btmRoundCorner;

	}

}

function loadVideo(strContentRecord, strVid){
	vh1_syndplayer.id = strContentRecord;
	vh1_syndplayer.vid = strVid;
	vh1_syndplayer.flashwrite();
}

function showVidlayer(){
	document.getElementById('videoHolder').style.visibility = "visible";
}


