function opencredit(){
var creditfile="credits.html"

if (document.all)
creditwindow=window.open(creditfile,"","width=500,height=300")
else
creditwindow=window.open(creditfile,"","width=445,height=250,scrollbars")
}

function showmessage(text,infotype){
	document.getElementById("message_text").innerHTML=text;
	document.getElementById("message").className="message_on";
	switch (infotype){
		case "error": document.getElementById("message_icon").className="messageicon_error"; break;
		case "info": document.getElementById("message_icon").className="messageicon_info"; break;
	}
}
function hidemessage(){
	document.getElementById("message_text").innerHTML="";
	document.getElementById("message").className="message_off";
}
   var startTop, startLeft;
   var effectDone = false;

   function toggleEffect(divid) {
      if ( !effectDone ) {
         startEffect(divid);
         effectDone = true;
      }
      else {
         resetEffect(divid);
         effectDone = false;
      }
   }

   function startEffect(divid) {
      startTop   = $(divid).offsetTop;
      startLeft  = $(divid).offsetLeft;
      new Rico.Effect.FadeTo( divid, 0, 100, 10, {complete:function() {hidemessage();}} );
   }


	function resetEffect(divid) { 
		new Rico.Effect.FadeTo( divid, 1, 100, 5 ); 
	}

var Flash = new Object();
Flash.Tube = function (id) {
	document.write('<object width="425" height="350" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"><param name="allowScriptAccess" value="sameDomain"/><param name="movie" value="http://www.youtube.com/v/'+id+'"><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/'+id+'" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>');
}
Flash.Liveleak = function (id) {
	document.write('<object type="application/x-shockwave-flash" width="450" height="370" wmode="transparent" data="http://www.liveleak.com/player.swf?autostart=false&token='+id+'"><param name="movie" value="http://www.liveleak.com/player.swf?autostart=false&token='+id+'"><param name="wmode" value="transparent"><param name="quality" value="high"></object>');
}
Flash.Onetwovideo= function (id) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="420" height="339"><param name="movie" value="http://www.123video.nl/123video_share.swf?mediaSrc='+id+'" /><param name="quality" value="high" /><embed src="http://www.123video.nl/123video_share.swf?mediaSrc='+id+'" quality="high" width="420" height="339" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}
