function createPlayer(thePlace, theFile, width, height, theImage, playlist, playlistsize, theLogo, plugin, go, start) {
	//var s = new SWFObject("player.swf", "playerID", width, height, "7");
	var s = new SWFObject("mediaplayer.swf", "playerID", width, height, "7");
	
	s.useExpressInstall('expressInstall.swf');
	
	s.addParam("allowfullscreen","true");
	s.addParam("allowscriptaccess","always");
	s.addParam("wmode", "transparent");
	
	s.addVariable("enablejs","true");
	s.addVariable("javascriptid","playerID");
	s.addVariable("file",theFile);
	s.addVariable("width",width);
	s.addVariable("height",height);
	s.addVariable("displayheight",height);
	s.addVariable("overstretch","fit");
	s.addVariable("image",theImage);
	s.addVariable("showicons","false");
	s.addVariable("thumbsinplaylist","false");
	s.addVariable("showstop","true");
	s.addVariable("showdownload","true");
	s.addVariable("searchbar","false");
	s.addVariable("autoscroll","true");
	s.addVariable("bufferlength","10");
	s.addVariable("shuffle","false");
	s.addVariable("volume","100");
	s.addVariable("backcolor","000000");
	s.addVariable("frontcolor","F7F7F7");
	s.addVariable("lightcolor","999999");
	s.addVariable("showeq","false");
	s.addVariable("skin", "simple.swf");
	
	if(plugin) {
		s.addVariable("plugins","revolt");
		s.addVariable("link","Revolt.swf");
	}
	
	if (theLogo) { s.addVariable("logo",theLogo); }
	
	if (playlist) { s.addVariable("playlist","bottom"); s.addVariable("playlistsize",playlistsize); }
	
	if (go) { s.addVariable("autostart","true"); }
	
	if (start) { s.addVariable("start",start); }
	
	s.write(thePlace);
}

function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*60*60*24*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}