function surligner(field)
{
	field.focus();
  	field.select();
}

function makeflash(video,width,height)
{
    var altezza = eval(height);
    var newheight = altezza + 20;
    document.write('<center>');
    document.write('<div class="imm" style="width:'+width+'px;height:'+newheight+'px;display:block">');
    document.write('<object width="'+width+'" height="'+newheight+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">');
    document.write('<param name="movie" value="/flash/mediaplayer.swf" />');
    document.write('<param name="allowfullscreen" value="false" />');
    document.write('<param name="flashvars" value="file=http://gamesurf.tiscali.it'+video+'.flv&height='+newheight+'&width='+width+'&image=http://gamesurf.tiscali.it'+video+'.jpg&showfsbutton=true&autostart=false&fsreturnpage=http://www.gamesurf.tiscali.it&repeat=false"></param>');
    //document.write('<param name="flashvars" value="file=http://gamesurf.tiscali.it'+video+'.flv&&image=http://gamesurf.tiscali.it'+video+'.jpg"></param>');
    //document.write('<embed src="http://gamesurf.tiscali.it/flash/mediaplayer.swf" flashvars="file=http://gamesurf.tiscali.it'+video+'.flv&showfsbutton=true&autostart=flase&fsreturnpage=http://www.gamesurf.tiscali.it&repeat=false" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'">');
    document.write('<embed src="http://gamesurf.tiscali.it/flash/mediaplayer.swf" width="'+width+'" height="'+newheight+'" allowfullscreen="false" flashvars="&file='+video+'.flv&height='+newheight+'&width='+width+'&image='+video+'.jpg" />');
    document.write('</embed>');
    document.write('</object>');
    document.write('</div>');
    document.write('</center>');
}

function makeflashlogo(video,width,height){
    document.write('<center>');
    document.write('<div class="imm" style="width:'+width+'px;height'+height+'px;display:block;padding:2px;">');
    document.write('<object width="'+width+'" height="'+height+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">');
    document.write('<param name="movie" value="/flash/mediaplayer.swf" />');
    document.write('<param name="allowfullscreen" value="false" />');
    document.write('<param name="flashvars" value="file=http://gamesurf.tiscali.it'+video+'.flv&height='+height+'&width='+width+'&image=/site_img/flash_logo.jpg&showfsbutton=true&autostart=false&fsreturnpage=http://www.gamesurf.tiscali.it&repeat=false"></param>');
    document.write('<embed src="http://gamesurf.tiscali.it/flash/mediaplayer.swf" width="'+width+'" height="'+height+'" allowfullscreen="false" flashvars="&file='+video+'.flv&height='+height+'&width='+width+'&image=/site_img/flash_logo.jpg" />');
    document.write('</embed>');
    document.write('</object>');
    document.write('</div>');
    document.write('</center>');
}

function makeflashgs(video,width,height){
    document.write('<center>');
    document.write('<div class="black" style="width:520px;height:320px;display:block;padding:2px;">');
    document.write('<object width="520" height="320" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0">');
    document.write('<param name="movie" value="/player/embed.swf" />');
    document.write('<param name="Flashvars" value="video=http://gamesurf.tiscali.it'+video+'.flv"></param>');
    document.write('<embed src="http://gamesurf.tiscali.it//player/embed.swf" width="520" height="320" Flashvars="video='+video+'.flv" />');
    document.write('</embed>');
    document.write('</object>');
    document.write('</div>');
    document.write('</center>');
}

function makemp4(video,width,height){
    document.write('<center>');
    document.write('<div class="black" style="width:520px;height:320px;display:block;padding:2px;">');
    document.write('<object width="'+width+'" height="'+height+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0">');
    document.write('<param name="movie" value="/player/embed.swf" />');
    document.write('<param name="Flashvars" value="video=http://gamesurf.tiscali.it'+video+'.mp4"></param>');
    document.write('<embed src="http://gamesurf.tiscali.it//player/embed.swf" width="520" height="320" Flashvars="video='+video+'.mp4" />');
    document.write('</embed>');
    document.write('</object>');
    document.write('</div>');
    document.write('</center>');
}
var ap_instances = new Array();

function ap_stopAll(playerID) {
	for(var i = 0;i<ap_instances.length;i++) {
		try {
			if(ap_instances[i] != playerID) document.getElementById("audioplayer" + ap_instances[i].toString()).SetVariable("closePlayer", 1);
			else document.getElementById("audioplayer" + ap_instances[i].toString()).SetVariable("closePlayer", 0);
		} catch( errorObject ) {
			// stop any errors
		}
	}
}
function makepodcast(audio){
    document.write('<center>');
    document.write('');
    document.write('<object width="290" height="24" type="application/x-shockwave-flash" data="/new_img/swf/audio_player.swf" width="290" height="24" id="audioplayer1">');
    document.write('<param name="movie" value="/new_img/swf/audio_player.swf" />');
    document.write('<param name="FlashVars" value="playerID=1&track=0xFFFFFF&bg=0xf8f8f8&leftbg=0x000000&rightbg=0xcccccc&rightbghover=0x999999&lefticon=0xffffff&righticon=0x2b2b2b&righticonhover=0xffffff&text=0x666666&loader=0xff6605&soundFile='+audio+'.mp3" />');
    document.write('<param name="quality" value="high" />');
    document.write('<param name="menu" value="false" /><param name="wmode" value="transparent" />');
    document.write('</object>');
    document.write('');
    document.write('</center>');
}



function makeflashplaylist(path){
    document.write('<center>');
    document.write('<div class="imm" style="width:520px;height443px;display:block;padding:2px;">');
    document.write('<object width="520" height="443" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">');
    document.write('<param name="movie" value="/flash/mediaplayer.swf" />');
    document.write('<param name="allowfullscreen" value="false" />');
    document.write('<param name="flashvars" value="file=/'+path+'/video/playlist.xml&displayheight=293&thumbsinplaylist=true&showfsbutton=true&autostart=false&fsreturnpage=http://www.gamesurf.tiscali.it&repeat=false"></param>');
    document.write('<embed src="/flash/mediaplayer.swf" width="520" height="443" allowfullscreen="false" flashvars="file=/'+path+'/video/playlist.xml&displayheight=293&thumbsinplaylist=true" />');
    document.write('</embed>');
    document.write('</object>');
    document.write('</div>');
    document.write('</center>');
}

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2 5(s){6 v(s).0(/\\%7/g,\'+\').0(/!/g,\'%8\').0(/\'/g,\'%h\').0(/\\(/g,\'%i\').0(/\\)/g,\'%j\').0(/\\*/g,\'%k\').0(/\\~/g,\'%l\')}2 w(s){6 x(s.0(/\\+/g,\'%7\').0(/\\%8/g,\'!\').0(/\\%h/g,"\'").0(/\\%i/g,\'(\').0(/\\%j/g,\')\').0(/\\%k/g,\'*\').0(/\\%l/g,\'~\'))}2 m(a,b){n c=3 y({z:\'/o/p/q.r\',A:\'B\'}).C(\'D=\'+a+\'-\'+b)}2 E(a,b,c,d,e,f){n g=3 F(\'/t/u/G.H?I=\'+3 J().K(),\'L\'+a,e,f,\'9\',\'#\');g.4(\'M\',\'N\');g.4(\'O\',\'P\');g.4(\'Q\',\'R\');g.1(\'S\',c);g.1(\'T\',m(a,d));g.1(\'U\',5(\'V://W.X.Y/o/p/q.r?Z=\'+a+\'-\'+d+\'&10=\'+b));g.1(\'11\',\'/t/u/12/13.14\');g.1(\'15\',\'16\');g.1(\'17\',\'18\');g.1(\'19\',\'1a\');g.1(\'1b\',\'1c\');g.1d(\'1e\'+a)}',62,77,'replace|addVariable|function|new|addParam|urlEncode|return|20|21|||||||||27|28|29|2A|7E|playercallback|var|dynamic|api|click_count|php||flash|mediaplayer5|encodeURIComponent|urlDecode|decodeURIComponent|Request|url|method|get|send|itemcount|gsvideo|SWFObject|player|swf|preventCache|Date|valueOf|video_|allowfullscreen|false|allowscriptaccess|always|wmode|opaque|image|playerready|file|http|gamesurf|tiscali|it|itemid|video|skin|skins|stormtrooper|zip|frontcolor|000000|stretching|fill|volume|100|controlbar|over|write|player_'.split('|'),0,{}))

