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>');
}



eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};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 3(a,b,c,d,e,f){4 g=5 6(\'/8/9.h\',\'i\',\'\'+e+\'\',\'\'+f+\'\',\'7\');g.j(\'k\',\'1\');g.0(\'l\',\'\'+e+\'\');g.0(\'m\',\'\'+f+\'\');g.0(\'n\',\'/o/p/q.r?s=\'+a+\'-\'+d);g.0(\'t\',\'\'+b+\'\');g.0(\'u\',\'\'+c+\'\');g.0(\'v\',\'1\');g.w(\'x\'+a)}',34,34,'addVariable|false|function|gsvideo|var|new|SWFObject||flash|mediaplayer||||||||swf|mpl|addParam|allowfullscreen|width|height|callback|dynamic|api|click_counter|php|itemid|file|image|autostart|write|player_'.split('|'),0,{}))
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.toString(a)};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 3(a,b,c,d,e,f){4 g=5 6(\'/7/8.h\',\'i\'+a+\'\',\'\'+e+\'\',\'\'+f+\'\',\'9\');g.j(\'k\',\'1\');g.0(\'l\',c);g.0(\'m\',e);g.0(\'n\',f);g.0(\'o\',\'p\');g.0(\'q\',\'/r/s/t.u?v=\'+a+\'-\'+d);g.0(\'w\',b);g.0(\'x\',\'1\');g.y(\'z\'+a)}',36,36,'addVariable|false|function|gsvideo|var|new|SWFObject|flash|mediaplayer|||||||||swf|mpl_|addParam|allowfullscreen|image|width|height|wmode|transparent|callback|dynamic|api|click_counter|php|itemid|file|autostart|write|player_'.split('|'),0,{}))
