function loadPlayer(videofile,previewfile,width,height,id,str,stt) {
	var so = new SWFObject('mediaplayer.swf','mpl',width,height,'8');
	so.addParam("allowfullscreen","true");
	so.addVariable("file",videofile);
	so.addVariable("image",previewfile);
	so.addVariable("repeat","false");		
	so.addVariable("showdigits","false");
	so.addVariable("start",stt);
	so.addVariable("autostart","true");
	so.addVariable("width", width);
	so.addVariable("height", height);
	so.addVariable("displayheight",height);
	so.addVariable("overstretch","fit");	
	so.addVariable("usefullscreen","false");
	so.addVariable("fsbuttonlink","flv/fullscreen.html%3Ffile%3D"+videofile+"%26id%3D"+id+"%26stream%3D"+str);
	if(id != '') { 
		so.addVariable("id",id); 
	} else {
		so.addVariable("type","flv");
	}
	if(str != '') { 
		so.addVariable("streamscript",str); 
	}
	so.write('flvplayer');
}
