
		
	var vh1_syndplayer = {

	//defaultId: 123456,
	id : 1548985,
	vid : '',
	lbid : 'hpc_2006',
	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/2006/";
		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(){
		//alert('test '+this.vid+' endtest');
		this.setBuffer();
		//document.write(this.buffer);
		//document.getElementById('videoHolder2').style.visibility = "hidden";
		document.getElementById('videoHolder2').innerHTML = this.buffer;
		
	}
	


}


function loadVideo(strVid){
	//alert('here');
	//document.getElementById('videoHolder2').style.visibility = "hidden";
	vh1_syndplayer.vid = strVid;
	vh1_syndplayer.flashwrite();
	//alert('pre');
	//setTimeout('showVidlayer()', 1000);
	//alert('post');
}

function showVidlayer(){
	document.getElementById('videoHolder2').style.visibility = "visible";
}

		
