/***************************************************************************
 * ith zurich
 *
 * grazie:
 * Jeroen Wijerings FLV Mediaplayer @ jeroenwijering-dot-com
 * deconcept, SWFObject @ blog.deconcept-dot-com/swfobject/
 *
 * 2008 uffizi-ch
 *
 * 2009 - ergaenzung V2 z-index
 * IE: param name='wmode' value='transparent' Mozilla: wmode='transparent'
 */

/***************************************************************************
 * MEDIAPLAYER : mp3 + flv
 */

function createPlayer(thePlace, MPfad, thePlayer, theFile, start, width, height, playerheight) {
	var s1 = new SWFObject(MPfad + "/media/player/mediaplayer.swf", thePlayer, width, height, playerheight);
	s1.addParam('allowscriptaccess', 'always');
	s1.addParam("allowfullscreen", "true");
	s1.addVariable("width", width);
	s1.addVariable("height", height);
	s1.addVariable("file", theFile);
	s1.addVariable('backcolor','0x333333');
	s1.addVariable('frontcolor','0xFFFFFF');
	s1.addVariable('lightcolor','0xFF6600');
	s1.addVariable('screencolor','0xAFB1A3'); // 3333333 // FFFFFF
	s1.addVariable('searchbar','false');
	s1.addVariable('showicons','false');
	s1.addVariable('showstop','true');
	s1.addVariable('thumbsinplaylist','false');
	if (start) s1.addVariable("autostart", "true");
	s1.write(thePlace);
}

function createPlayerV2(thePlace, MPfad, thePlayer, theFile, start, width, height, playerheight) {
	var flashvars = {};
	flashvars.width = width;
	flashvars.height = height;
	flashvars.file = theFile;
	flashvars.backcolor = "0x333333";
	flashvars.frontcolor = "0xFFFFFF";
	flashvars.lightcolor = "0xFF6600";
	flashvars.screencolor = "0x333333";
	flashvars.searchbar = "false";
	flashvars.showicons = "true";
	flashvars.showstop = "true";
	flashvars.showstop = 'transparent';
	if (start) flashvars.autostart = "true";
	var params = {};
	params.allowscriptaccess = "always";
	params.allowfullscreen = "true";
	params.play = "false";
	params.loop = "false";
	params.quality = "autohigh";
	params.menu = "true";
	params.wmode = 'transparent';
	var attributes = {};
	attributes.id = thePlace;
	attributes.styleclass = "media";
	swfobject.embedSWF(MPfad + "/media/player/mediaplayer.swf", thePlace, width, height, "9.0.0", MPfad + "/media/player/expressInstall.swf", flashvars, params, attributes);
}
