document.write('<div id="receiver" >');document.write('<\/div>');

/* Must be there for Opera. Without it, the browser sometimes won't start the video. Over my head!! */
if(window.opera){document.write('<div style="position:absolute;bottom:0px;left:50%;z-index:1">&nbsp;<\/div>')}


document.write('<style type="text/css">a:hover{color:darkred; background:silver}<\/style>');
document.write('<style type="text/css">button{font-family:verdana;font-size:9px}<\/style>');
document.write('<style type="text/css">.ul{margin-top:-4px;background:#dedede;border:1px solid red;margin-bottom:-4px;}<\/style>');



document.write("<!--[if IE 6]>");
document.write("<scrip");
document.write("t>");
document.write("alert('You are using Internet Explorer 6. On that browser, the video`s may have starting problems. If a video doesn`t start. click (again) on `Instant Replay` [top right].')");
document.write("<\/scrip");
document.write("t>");
document.write("<![endif]-->");




var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
if(is_chrome){document.write('<style type="text/css">#chrome{position:fixed;top:0px;display:inline;margin-left:-10px}<\/style>');}
if(!is_chrome){document.write('<style type="text/css">#chrome{position:fixed;margin-left:-10px;}<\/style>');}


function get_movie(id,url,width,height,left,top)

{

var hheight=height.substring(0).substring(0,[height.substring(0).indexOf('%')])/1.5+"%";

var wwidth=width.substring(0).substring(0,[width.substring(0).indexOf('%')]);
var lleft=left.substring(0).substring(0,[left.substring(0).indexOf('%')]);
var ttop=height.substring(0).substring(0,[height.substring(0).indexOf('%')])/2.2+"%";
var hide_logo_top=parseInt(top)+parseInt(height)+"%";
var hide_logo_left=parseInt(left)+parseInt(width)+"%";

var left_pos=(parseInt(lleft)*2+parseInt(wwidth))/2+"%";

var area_for_url_and_include=hheight.substring(0).substring(0,[hheight.substring(0).indexOf('%')])/1.2+"%";
var the_url=url.substring(0).substring(0,[url.substring(0).indexOf('&')-0]);
var the_id_yt=the_url.substring(13).substring(12,[the_url.substring(12).indexOf('/')+the_url.length-13]);
//var the_id_dm=the_url.substring(19).substring(19,[the_url.substring(18).indexOf('/')+the_url.length-19]);
var the_id_dm=the_url;
var the_id_tc=the_url.substring(21).substring(21,[the_url.substring(12).indexOf('/')+the_url.length-13]);
goto_yt="http://www.youtube.com/watch?v="+the_id_yt;
//goto_dm="http://www.dailymotion.com/video/"+the_id_dm;
goto_dm=the_url;
goto_tc="http://www.tubechop.com/search.php?q="+the_id_tc;
goto_others=the_url;


var warning='';
//identify_yt=url.substring(0).substring(0,[url.substring(14).indexOf('&')]);
//identify_tc=url.substring(0).substring(0,[url.substring(30).indexOf('&')]);
//identify_dm=url.substring(0).substring(0,[url.substring(29).indexOf('&')]);

identify_dm=url.substring(0).substring(0,26);
identify_yt=url.substring(0).substring(0,22);
identify_tc=url.substring(0).substring(0,23);
identify_gv=url.substring(0).substring(0,22);




if(identify_yt=="http://www.youtube.com"){warning="This may not work if you are using Internet Explorer. In that case, replace <span style='color:red'>http://www.youtube.com/v/VIDEO_ID<\/span> with <span style='color:red'>http://www.youtube.com/watch?v=VIDEO_ID<\/span>"}


if(identify_tc=="http://swf.tubechop.com"){the_url=goto_tc};


if(the_url.length==0){the_url=url;goto_others=url}

add_to_info_yt="<a href='javascript:void(0)' onmousedown='document.getElementById(\"info\").style.display=\"none\";document.getElementById(\"help_info\").style.display=\"block\";blur()' style='color:darkred;font-weight:bold'><div style=\"height:10px;background:white\"><\/div>CLOSE<\/a>";

add_to_info_dm="<a href='javascript:void(0)' onmousedown='document.getElementById(\"info\").style.display=\"none\";document.getElementById(\"help_info\").style.display=\"block\";blur()' style='color:darkred;font-weight:bold'><div style=\"height:10px;background:white\"><\/div>CLOSE<\/a>";

add_to_info_tc="<a href='javascript:void(0)' onmousedown='document.getElementById(\"info\").style.display=\"none\";document.getElementById(\"help_info\").style.display=\"block\";blur()' style='color:darkred;font-weight:bold'><div style=\"height:10px;background:white\"><\/div>CLOSE<\/a>";

add_to_info_gv="<a href='javascript:void(0)' onmousedown='document.getElementById(\"info\").style.display=\"none\";document.getElementById(\"help_info\").style.display=\"block\";blur()' style='color:darkred;font-weight:bold'><div style=\"height:10px;background:white\"><\/div>CLOSE<\/a>";


add_to_info_others='<hr><div style="position:relative;margin-top:1px;float:left;text-align:left;background:#dedede;margin-left:5px">&nbsp;See video on <br>&nbsp;original channel <span style="background:black;border:1px solid #dedede;font-size:15px;color:white">&rarr;<\/span><\/div><a href="javascript:void(0)" style="color:darkred;font-family:arial;" onclick="window.open(goto_others)"> <img src="images1/others.jpg" style="border:0;border-color:transparent;height:40px;margin-bottom:10px;margin-top:0px;margin-right:10px;float:right" title="Click to see this video on the site that provides it"><\/a><br><br><br><a href="javascript:void(0)" style="color:darkred;font-weight:bold;margin-left:60px" onmousedown="document.getElementById(\'info\').style.display=\'none\';document.getElementById(\'help_info\').style.display=\'block\';">CLOSE<\/a>'


url_and_valid_include="<div id='embed_and_url' style='position:relative;top:0px;height:"+area_for_url_and_include+";overflow:auto;margin:30px;font-family:verdana;font-size:10px;background:white;border:5px outset black' ><button onmousedown='document.getElementById(\"embed_and_url\").style.display=\"none\";document.getElementById(\"infos\").style.zIndex=-1;document.getElementById(\"infos\").style.opacity=0;document.getElementById(\"infos\").style.filter.Alpha(Opacity=0)' style='cursor:pointer;float:right;' >HIDE INFO<\/button><a style=\"position:relative;color:darkred;background:#dedede;border:2px outset white;padding:2px;margin-left:-2px;font-size:12px\">URL and valid HTML4 strict video-include:<\/a><div style='background:white;color:black;padding:2px'><br><b>URL<\/b>:<br>"+the_url+" (the last part is the VIDEO_ID)<br>"+warning+"<hr><\/div><div style='background:white;color:black;padding:2px'><b>Include<\/b> <span style='color:red'>(This will only be valid HTML 4 Strict if you replace all occurrences of `&` with `&<span>amp;<\/span>`. The styles are just illustrations)<\/span>:<br>&lt;!--[if IE]&gt;&lt;object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' style='position:absolute;left:20%; top:20%; height:80%;width:80%'&gt;&lt;![endif]--&gt;&lt;!--[if !IE]&gt;&lt;!--&gt;&lt;object type='application/x-shockwave-flash' style='position:absolute;left:20%; top:20%; height:80%;width:80%' data='"+url+"' &gt;&lt;!--&lt;![endif]--&gt;&lt;param name='movie' value='"+url+"' &gt;&lt;param name='allowFullScreen' value='true' &gt;&lt;param name='wmode' value='transparent' &gt;&lt;param name='flashvars' value='autoplay=true' &gt;&lt;param name='allowNetworking' value='internal'&gt;&lt;param name='allowScriptAccess' value='never'&gt;&lt;/object&gt;<\/div><\/div>";






if(url.search("fs=1")==-1&&identify_yt=="http://www.youtube.com"){alert('At least one YouTube-URL does not have the fullscreen option (`fs=1`). \nAs a result, the player will not display properly.\n\nSyntax:&amp;fs=1.')}

if(url.search("border=1")==-1&&identify_yt=="http://www.youtube.com"){alert('There is at least one YouTube-URL that does not have `border=1`. \nAs a result, the player will not display properly.\n\nSyntax:&amp;border=1.')}

if(url.search("showinfo=0")==-1&&identify_yt=="http://www.youtube.com"){alert('There is at least one YouTube-URL that does not have `showinfo=0`. \nAs a click on the line containing the YouTube-info may freeze the player, it is better to have `showinfo=0` in the URL.\n\nSyntax:&amp;showinfo=0.')}

if(url.search("rel=0")==-1&&identify_yt=="http://www.youtube.com"){alert('There is at least one YouTube-URL that does not have `rel=0`. \nAs a result, the player will show so-called "related video`s" once the video has finished. If you don`t want that option, put `rel=0` in the YouTube-URL.\n\nSyntax:&amp;rel=0.')}



var inserted=document.getElementById(id);
inserted.style.position='absolute'; inserted.style.width='100%';inserted.style.height='100%';inserted.style.zIndex=0;inserted.style.display='block';




if(/*@cc_on!@*/false)
{
inserted.innerHTML='<div style="position:absolute;left:'+left+'; top:'+top+';height:'+height+';width:'+width+';background:black;color:white;margin-top:0px;"><\/div><div style="position:absolute;left:'+left+'; top:'+top+';height:20px;width:'+width+';z-index:2;margin-top:-2px;border:0px solid black;display:inline;background:transparent" ><div id="info" style="position:relative;left:0px;top:'+top+';width:200px;z-index:1;margin:0px;padding:0px;overflow:auto;margin-right:20px;float:right;background:white;margin-top:3px;font-family:arial;font-size:11px;text-align:center;display:none"><\/div><button  style="position:relative;left:0px;top:'+top+';width:100px;z-index:1;margin:0px;padding:0px;height:20px;overflow:hidden;cursor:pointer;margin-right:20px;float:right"   onclick="get_movie(\'receiver\',\''+url+'\',\''+width+'\',\''+height+'\',\''+left+'\',\''+top+'\');add_to_info_yt=\'\';add_to_info_dm=\'\';add_to_info_tc=\'\';add_to_info_gv=\'\';add_to_info_others=\'\';info_video(about_video)">Instant Replay<\/button><button id="help_info" style="position:relative;left:0px;top:'+top+';width:59px;z-index:1;margin:0px;padding:0px;height:20px;overflow:hidden;margin-top:0px;margin-right:1px;cursor:pointer;float:right;display:block"   onclick="style.display=\'none\';document.getElementById(\'info\').style.display=\'block\';">&nbsp;Help/info&nbsp;<\/button><button style="position:relative;left:0px;top:'+top+';width:99px;z-index:1;margin:0px;padding:0px;height:20px;overflow:hidden;margin-top:0px;margin-right:1px;cursor:pointer;float:right"   onclick="document.getElementById(\'infos\').style.opacity=1;document.getElementById(\'infos\').style.zIndex=4;document.getElementById(\'infos\').innerHTML=url_and_valid_include;">&nbsp;URL & Include&nbsp;<\/button><button style="position:relative;left:0px;top:'+top+';width:100px;z-index:1;margin:0px;padding:0px;height:20px;overflow:hidden;margin-top:0px;margin-right:1px;cursor:pointer;float:right;display:none"   onclick="document.getElementById(\'infos\').style.opacity=1;document.getElementById(\'infos\').style.zIndex=4;document.getElementById(\'infos\').innerHTML=url_and_valid_include">&nbsp;URL & Video-Include&nbsp;<\/button><div style="position:absolute;right:0px; top:'+top+';width:15px;z-index:2;margin-top:0px;border:0px solid black;display:inline;background:black;float:right;color:white;cursor:pointer;font-weight:bold;font-family:verdana;font-size:12px" onfocus="document.getElementById(\'receiver\').innerHTML=\'\';" >&nbsp;X&nbsp;<\/div><\/div><object  type="application/x-shockwave-flash" style="position:absolute;left:'+left+'; top:'+top+'; height:'+height+';width:'+width+';" data="' + url + '" ><param name="movie" value="'+url+'" ><param name="allowFullScreen" value="true" ><param name="wmode" value="transparent" ><param name="flashvars" value="autoplay=true" ><param name="allowNetworking" value="internal" ><param name="allowScriptAccess" value="never" ><\/object><div id="infos"style="position:absolute;left:'+left+'; top:'+top+';height:'+hheight+';width:'+width+';color:white;margin-top:65px;border:0px solid red;z-index:-1;" ><\/div><div id="logo" style="position:relative;top:'+hide_logo_top+';border:0px solid black;margin-left:-88px;left:'+hide_logo_left+';margin-top:-110px;width:80px;height:80px;background:#dedede;color:white;filter: alpha(opacity = 0);display:none" ><\/div><div id="logo_image_yt"  style="position:relative;top:'+hide_logo_top+';border:0px inset transparent;border-left:0px solid red;margin-left:-45px;left:'+hide_logo_left+';margin-top:-4px;width:46px;height:33px;background:transparent;color:white;font-family:arial;font-size:10px;color:white;line-height:14px;cursor:pointer;display:none" title="See on YouTube" onclick="window.open(goto_yt)"><img src="images1/yt.jpg" height="25px" width="42px" title="See video on YouTube"><\/div><div id="logo_image_tc"  style="position:relative;top:'+hide_logo_top+';border:1px inset transparent;border-left:3px solid transparent;margin-left:-89px;left:'+hide_logo_left+';margin-top:2px;width:84px;height:24px;background:black;color:white;filter: alpha(opacity = 100);font-family:arial;font-size:10px;color:white;line-height:14px;cursor:pointer;display:none" title="See on TubeChop" onclick="window.open(goto_tc)"><img src="images1/tc.jpg" height="26px" width="84px" title="See video on TubeChop"><\/div><div id="logo_image_google"  style="position:relative;top:'+hide_logo_top+';border:1px inset transparent;border-left:3px solid transparent;margin-left:-72px;left:'+hide_logo_left+';margin-top:-24px;width:64px;height:18px;background:transparent;color:white;font-family:arial;font-size:10px;color:white;line-height:20px;cursor:pointer;display:none" title="See on Google Video" onclick="window.open(goto_others)"><img src="images1/google.jpg" height="18px" width="64px" title="See video on Google Video"><\/div><div id="logo_dm"  style="position:relative;top:'+hide_logo_top+';border:1px inset transparent;border-left:3px solid transparent;margin-left:-130px;left:'+hide_logo_left+';margin-top:-60px;width:120px;height:30px;background:black;color:white;font-family:arial;font-size:10px;color:white;line-height:20px;cursor:pointer;display:none;filter: alpha(opacity = 0);" onclick="alert(\'Info and sharing video for DailyMotion disabled on this site. If you want to use these options, go to the DailyMotion site (click on `DailyMotion` to the left of the MENU).\')"><\/div><div id="text_dm" title="See video on DailyMotion" style="position:relative;top:'+hide_logo_top+';border:1px inset transparent;border-left:3px solid transparent;margin-left:-115px;left:'+hide_logo_left+';margin-top:8px;width:75px;height:15px;background:#dedede;color:white;font-family:verdana;font-size:10px;color:black;line-height:20px;cursor:pointer;display:none;" onclick="window.open(goto_others)">&nbsp;&nbsp;DailyMotion<\/div><div id= "hide_end_dm" style="position:relative;left:'+left+';top:'+top+';width:'+width+';background:black;height:50px;display:none"><\/div>'

}

else {inserted.innerHTML='<div style="position:absolute;left:'+left+'; top:'+top+';height:'+height+';width:'+width+';background:black;color:white;margin-top:0px;" ><\/div><div style="position:absolute;left:'+left+'; top:'+top+';height:20px;width:'+width+';z-index:2;margin-top:-2px;border:0px solid black;display:inline;background:transparent" ><div id="chrome" style="width:'+width+';left:'+left+'"><div id="info" style="position:relative;left:0px;top:'+top+';width:200px;z-index:1;margin:0px;padding:0px;overflow:auto;margin-right:20px;float:right;background:white;margin-top:3px;font-family:arial;font-size:11px;text-align:center;display:none"><\/div><button style="position:relative;left:0px;top:'+top+';width:100px;z-index:1;margin:0px;padding:0px;height:20px;overflow:hidden;cursor:pointer;margin-right:20px;float:right;"   onclick="get_movie(\'receiver\',\''+url+'\',\''+width+'\',\''+height+'\',\''+left+'\',\''+top+'\');add_to_info_yt=\'\';add_to_info_dm=\'\';add_to_info_tc=\'\';add_to_info_gv=\'\';add_to_info_others=\'\';info_video(about_video)">Instant Replay<\/button><button id="help_info" style="position:relative;left:0px;top:'+top+';width:59px;z-index:1;margin:0px;padding:0px;height:20px;overflow:hidden;margin-top:0px;margin-right:1px;cursor:pointer;float:right;display:block"   onclick="style.display=\'none\';document.getElementById(\'info\').style.display=\'block\';">&nbsp;Help/info&nbsp;<\/button><button style="position:relative;left:0px;top:'+top+';width:99px;z-index:1;margin:0px;padding:0px;height:20px;overflow:hidden;margin-top:0px;margin-right:1px;cursor:pointer;float:right"   onclick="document.getElementById(\'infos\').style.opacity=1;document.getElementById(\'infos\').style.zIndex=4;document.getElementById(\'infos\').innerHTML=url_and_valid_include">&nbsp;URL & Include&nbsp;<\/button><button style="position:relative;left:0px;top:'+top+';width:159px;z-index:1;margin:0px;padding:0px;height:20px;overflow:hidden;margin-top:1px;margin-right:1px;cursor:pointer;float:right;display:none"   onclick="document.getElementById(\'infos\').style.opacity=1;document.getElementById(\'infos\').style.zIndex=4;document.getElementById(\'infos\').innerHTML=url_and_valid_include">&nbsp;URL & Video-Include&nbsp;<\/button><\/div><div style="position:absolute;right:0px; top:'+top+';width:15px;z-index:2;margin-top:0px;border:0px solid black;display:inline;background:black;float:right;color:white;cursor:pointer;font-weight:bold;font-family:verdana;font-size:12px" onclick="document.getElementById(\'receiver\').innerHTML=\'\'" onmousedown="document.getElementById(\'receiver\').style.display=\'none\'">&nbsp;X&nbsp;<\/div><\/div><object type="application/x-shockwave-flash" style="position:absolute;left:'+left+'; top:'+top+'; height:'+height+';width:'+width+';" data="' + url + '" ><param name="movie" value="'+url+'" ><param name="allowFullScreen" value="true" ><param name="wmode" value="transparent" ><param name="flashvars" value="autoplay=true" ><param name="allowNetworking" value="internal" ><param name="allowScriptAccess" value="never" ><\/object><div id="infos"style="position:absolute;left:'+left+'; top:'+top+';height:'+hheight+';width:'+width+';color:white;margin-top:65px;border:0px solid red;z-index:-1;" ><\/div><div id="logo" style="position:relative;top:'+hide_logo_top+';border:0px solid black;margin-left:-88px;left:'+hide_logo_left+';margin-top:-110px;width:80px;height:80px;background:#dedede;color:white;opacity:0;display:none" ><\/div><div id="logo_image_yt"  style="position:relative;top:'+hide_logo_top+';border:1px inset transparent;border-left:13px solid transparent;margin-left:-60px;left:'+hide_logo_left+';margin-top:-6px;width:46px;height:33px;background:transparent;color:white;opacity:1;font-family:arial;font-size:10px;color:white;line-height:14px;cursor:pointer;display:none" title="See on YouTube" onclick="window.open(goto_yt)"><img src="images1/yt.jpg" height="25px" width="42px" title="See video on YouTube"><\/div><div id="logo_image_tc"  style="position:relative;top:'+hide_logo_top+';border:1px inset transparent;border-left:3px solid transparent;margin-left:-89px;left:'+hide_logo_left+';margin-top:2px;width:84px;height:15px;background:black;color:white;opacity:1;font-family:arial;font-size:10px;color:white;line-height:14px;cursor:pointer;display:none" title="See on TubeChop" onclick="window.open(goto_tc)"><img src="images1/tc.jpg" height="26px" width="84px" title="See video on TubeChop"><\/div><div id="logo_image_google"  style="position:relative;top:'+hide_logo_top+';border:1px inset transparent;border-left:3px solid transparent;margin-left:-72px;left:'+hide_logo_left+';margin-top:-24px;width:64px;height:18px;background:transparent;color:white;font-family:arial;font-size:10px;color:white;line-height:20px;cursor:pointer;display:none" title="See on Google Video" onclick="window.open(goto_others)"><img src="images1/google.jpg" height="18px" width="64px" title="See video on Google Video"><\/div><div id="logo_dm"  style="position:relative;top:'+hide_logo_top+';border:1px inset transparent;border-left:3px solid transparent;margin-left:-130px;left:'+hide_logo_left+';margin-top:-60px;width:120px;height:30px;background:black;color:white;font-family:arial;font-size:10px;color:white;line-height:20px;cursor:pointer;display:none;opacity:0;" onclick="alert(\'Info and sharing video for DailyMotion disabled on this site. If you want to use these options, go to the DailyMotion site (click on `DailyMotion` to the left of the MENU).\')"><\/div><div id="text_dm" title="See video on DailyMotion" style="position:relative;top:'+hide_logo_top+';border:1px inset transparent;border-left:3px solid transparent;margin-left:-115px;left:'+hide_logo_left+';margin-top:8px;width:75px;height:15px;background:#dedede;color:white;font-family:verdana;font-size:10px;color:black;line-height:20px;cursor:pointer;display:none;opacity:1;" onclick="window.open(goto_others)">&nbsp;&nbsp;DailyMotion<\/div><div id= "hide_end_dm" style="position:relative;left:'+left+';top:'+top+';width:'+width+';background:black;height:50px;display:none"><\/div>'



}

if(identify_yt=="http://www.youtube.com"){document.getElementById('logo').style.display='block';document.getElementById('logo_image_yt').style.display='block'}

if(identify_tc=="http://swf.tubechop.com"){document.getElementById('logo').style.display='block';document.getElementById('logo_image_tc').style.display='block'}

if(identify_gv=="http://video.google.nl"){document.getElementById('logo_image_google').style.display='block'}

if(identify_dm=="http://www.dailymotion.com"){document.getElementById('logo_dm').style.display='block';document.getElementById('text_dm').style.display='block';document.getElementById('hide_end_dm').style.display='block'}


}




function info_video(which)
{
about_video=document.getElementById('info').innerHTML=which;
if(document.getElementById('info').innerHTML.length==9){document.getElementById('info').innerHTML='No info available for this video'}
if(document.getElementById('info').innerHTML.length==0){document.getElementById('info').innerHTML='No info available for this video'}
if(identify_dm=="http://www.dailymotion.com"){about_video=document.getElementById('info').innerHTML=which+add_to_info_dm} else
if(identify_yt=="http://www.youtube.com"){about_video=document.getElementById('info').innerHTML=which+add_to_info_yt} else
if(identify_tc=="http://swf.tubechop.com"){about_video=document.getElementById('info').innerHTML=which+add_to_info_tc} else
if(identify_gv=="http://video.google.nl"){about_video=document.getElementById('info').innerHTML=which+add_to_info_gv} else
about_video=document.getElementById('info').innerHTML=which+add_to_info_others;
}




/*

images1/google.jpg" height="18px" width="64px"

*/

