function player (id, autoplay) {

	if (autoplay == true) ap = "t";
	else ap = "f";

	output = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="402" id="viddler_54775bee"><param name="bgcolor" value="#000"><param name="wmode" value="transparent"><param name="flashvars" value="autoplay='+ap+'"/><param name="movie" value="'+id+'" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><embed src="'+id+'" width="640" height="402" type="application/x-shockwave-flash" allowScriptAccess="always" flashvars="autoplay='+ap+'" allowFullScreen="true" name="viddler_54775bee" wmode="transparent" bgcolor="#000"></embed></object>';

	$('big_player').update(output);
	
	
	
}



document.observe("dom:loaded", function() {
  //
	$$('.small_link').each(function(e){
		e.observe('click', function(event){
			var adres = Event.element(event).href;
			// Event.element(event).writeAttribute('href', '#id');
			if (adres == undefined) adres = Event.element(event).up(0).href;
			player(adres, true);
			Event.stop(event);
		});
	});
	
	
	
});

