var winno = -1;
var OpenWindow = new Array;
var randomnumber = 0;

function init()
{
  if (self==parent)
  {
    document.write('<b>Warning: Navigator frame not loaded</B>')
    alert('This site uses frames to navigate the available content.  You have entered the site via a sub-page address/link.  Click OK to be taken to the main index.  Please bookmark the index page to avoid this message in future.');
    top.location='http://ccc-media.110mb.com/'
  }
}

function PrepPage()
{
  var eventstr = "alert('Remember to leave comments and share your thoughts!');";

  winno++;
  randomnumber=Math.floor(Math.random()*99999)
  OpenWindow[winno]=window.open("_blank", "PlayWin"+randomnumber, "addressbar=no,fullscreen=yes,toolbar=no,scrollbars=no,statusbar=no,menubar=no,status=no");
  OpenWindow[winno].document.write("<HTML>");
  OpenWindow[winno].document.write("<TITLE>Playing</TITLE>");
  OpenWindow[winno].document.write('<BODY onbeforeunload="'+eventstr+'" BGCOLOR=000000>');
  OpenWindow[winno].document.write('<SCRIPT TYPE="text/javascript">');
  OpenWindow[winno].document.write('var message="No Right Clicking On This Page!";');
  OpenWindow[winno].document.write('function clickIE() {if (document.all) {(message);return false;}}');
  OpenWindow[winno].document.write('function clickNS(e) {if');
  OpenWindow[winno].document.write('	(document.layers||(document.getElementById&&!document.all)) {');
  OpenWindow[winno].document.write('if (e.which==2||e.which==3) {(message);return false;}}}');
  OpenWindow[winno].document.write('if (document.layers)');
  OpenWindow[winno].document.write('{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}');
  OpenWindow[winno].document.write('else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}');
  OpenWindow[winno].document.write('document.oncontextmenu=new Function("return false")');
  OpenWindow[winno].document.write('</SCRIPT>');
}

function PrepChat()
{
OpenWindow[winno].document.write('<table width="100%" height="100%" border=1>');
OpenWindow[winno].document.write('  <tr>');
OpenWindow[winno].document.write('    <td width="100%" Height="75%">');
}

function EndChat()
{
OpenWindow[winno].document.write('    </td>');
OpenWindow[winno].document.write('  </tr>');
OpenWindow[winno].document.write('  <tr>');
OpenWindow[winno].document.write('    <td width="100%" Height="25%">');
OpenWindow[winno].document.write('      <object height="100%" width="100%" id="jtv_chat_flash"><param name="allowScriptAccess" value="never" /><param name="allowNetworking" value="internal" /><param name="movie" value="http://www.justin.tv/widgets/jtv_chat.swf" /><param name="wmode" value="transparent" /><param name="flashvars" value="channel=montydj" /><embed type="application/x-shockwave-flash" allowScriptAccess="never" allowNetworking="internal" src="http://www.justin.tv/widgets/jtv_chat.swf" height="100%" width="100%" id="jtv_chat_flash" wmode="transparent" flashvars="channel=montydj" /></object>');
OpenWindow[winno].document.write('    </td>');
OpenWindow[winno].document.write('  </tr>');
OpenWindow[winno].document.write('</table>');
}

function EndPage()
{
  OpenWindow[winno].document.write('<script type="text/javascript" language="javascript">');
  OpenWindow[winno].document.write('var sc_project=2069413;');
  OpenWindow[winno].document.write('var sc_invisible=1;');
  OpenWindow[winno].document.write('var sc_partition=19;');
  OpenWindow[winno].document.write('var sc_security="692da8bd";');
  OpenWindow[winno].document.write('</script>');
  OpenWindow[winno].document.write('<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/frames.js"></script>');

  OpenWindow[winno].document.write('<script  type="text/javascript" language="javascript">');
  OpenWindow[winno].document.write('var s_sid = 539712;var st_dominio = 4;');
  OpenWindow[winno].document.write('var cimg = 0;var cwi =150;var che =30;');
  OpenWindow[winno].document.write('</script>');
  OpenWindow[winno].document.write('<script  type="text/javascript" language="javascript" src="http://s10.histats.com/js9.js">');
  OpenWindow[winno].document.write('</script>');

  OpenWindow[winno].document.write("</BODY>");
  OpenWindow[winno].document.write("</HTML>");
}

function PlayGoogleVideo(docid,startpos)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write('<embed id="VideoPlayback" src="http://video.google.com/googleplayer.swf?docid='+docid+'&amp;hl=en&amp;autoPlay=true&amp;rel=0&amp;color=0x0&amp;color2=0x0&amp;fs=true" style="width:100%;height:100%" FlashVars="autoPlay=true&amp;initialTime='+startpos+'" autopPlay=true allowFullScreen="true" allowNetworking="internal" allowScriptAccess="never" type="application/x-shockwave-flash"></embed>');
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayYouTubeVideo(docid,startpos)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write("<object width='100%' height='100%'><param name='movie' value='http://www.youtube.com/v/"+docid+"&amp;fs=1&amp;rel=0&amp;color2=0x0&amp;autoplay=1&amp;showinfo=0&amp;start="+startpos+"'</param><param name='allowFullScreen' value='true'><param name='autoplay' value='true'></param><param name='allownetworking' value='external' /><embed src='http://www.youtube.com/v/"+docid+"&amp;fs=1&amp;rel=0&amp;color2=0x0&amp;autoplay=1&amp;color2=0x0&amp;showinfo=0&amp;start="+startpos+"' type='application/x-shockwave-flash' allowScriptAccess='never' allowfullscreen='true' autoplay='true' allowNetworking='external' wmode='transparent' width='100%' height='100%'></embed></object>");
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayYouTubeListVideo(docid)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write('<object width="100%" height="100%"><param name="autoplay" value="1" /><param name="color2" value="0" /><param name="allowScriptAccess" value="always" /><param name="movie" value="http://www.youtube.com/p/'+docid+'&amp;autoplay=1&amp;color2=0x0&amp;showinfo=0&amp;rel=0" /><embed src="http://www.youtube.com/p/'+docid+'&amp;autoplay=1&amp;color2=0x0&amp;showinfo=0&amp;rel=0" type="application/x-shockwave-flash" allowScriptAccess="always" color2="0" width="100%" height="100%"></embed></object>');
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayGubaVideo(docid,startpos)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write('<embed src="http://www.guba.com/f/root.swf?video_url=http://free.guba.com/uploaditem/'+docid+'/flash.flv&initialTime='+startpos+'&isEmbeddedPlayer=false" quality="best" bgcolor="#FFFFFF" menu="false" initialTime= "'+startpos+'" width="100%" height="100%" autoplay="true" name="root" id="root" align="middle" scaleMode="noScale" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayLiveLeakVideo(docid)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write('<object type="application/x-shockwave-flash" width="100%" height="100%" wmode="transparent" data="http://www.liveleak.com/player.swf?autostart=true&token='+docid+'"><param name="movie" value="http://www.liveleak.com/player.swf?autostart=true&token='+docid+'"><param name="wmode" value="transparent"><param name="quality" value="high"></object>');
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayDMVideo(docid)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write('<embed src="http://www.dailymotion.com/swf/'+docid+'&a=1&autoplay=1&autostart=1&ap=1" type="application/x-shockwave-flash" width="100%" height="100%" allowfullscreen="true" flashVars="autoStart=1&a=1&autoplay=1&ap=1">');
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayDM2Video(docid)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write('<object width="100%" height="100%"><param name="movie" value="http://www.dailymotion.com/swf/kacxeyKyD00rn44GGL&related=1&autoplay=1&autostart=1&a=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><param name="autostart" value="true"></param><param name="autoplay" value="true"></param><embed src="http://www.dailymotion.com/swf/'+docid+'&related=1&a=1&autostart=1&autoplay=1" type="application/x-shockwave-flash" autoplay="true" autostart="true" width="100%" height="100%" allowFullScreen="true" allowScriptAccess="always"></embed></object>');
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayBrightCoveVideo(docid)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write("<embed src='http://www.brightcove.tv/playerswf' bgcolor='#000000' flashVars='allowFullScreen=true&initVideoId="+docid+"&servicesURL=http://www.brightcove.tv&viewerSecureGatewayURL=https://www.brightcove.tv&cdnURL=http://admin.brightcove.com&autoStart=true' base='http://admin.brightcove.com' name='bcPlayer' width='100%' height='100%' allowFullScreen='true' allowScriptAccess='always' seamlesstabbing='false' type='application/x-shockwave-flash' swLiveConnect='true' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>");
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayCrackleVideo2(docid,startpos)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write('<embed src="http://crackle.com/p/'+docid+'" quality="high" bgcolor="#869ca7" width="100%" height="100%" name="mtgPlayer" align="middle" play="true" loop="false" allowFullScreen="true" flashvars="id='+filmID+'" quality="high" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"> </embed>');
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayJustinTV(docid,ChannelNo)
{ 
PrepPage();
OpenWindow[winno].document.write('<object type="application/x-shockwave-flash" height="100%" width="100%" id="jtv_player_flash" allowScriptAccess="never" allowMenu="false" data="http://www.justin.tv/widgets/jtv_player.swf?channel='+docid+'&auto_start=true" bgcolor="#000000"><param name="allowFullScreen" value="true" /><param name="auto_start" value="true" /><param name="allowScriptAccess" value="never" /><param name="allowMenu" value="false" /><param name="movie" value="http://www.justin.tv/widgets/jtv_player.swf" /><param name="flashvars" value="channel='+docid+'&auto_play=true" /></object>');
EndPage();
}

function PlayViddlerVideo(docid)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="viddler_'+docid+'"><param name="flashvars" value="autoplay=t" /><param name="movie" value="http://www.viddler.com/player/'+docid+'/" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><embed src="http://www.viddler.com/player/'+docid+'/" width="100%" height="100%" type="application/x-shockwave-flash" allowScriptAccess="always" flashvars="autoplay=t" allowFullScreen="true" name="viddler_'+docid+'" ></embed></object>');
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayVeohVideo(docid)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write('<embed src="http://www.veoh.com/veohplayer.swf?permalinkId='+docid+'&id=anonymous&player=videodetailsembedded&videoAutoPlay=1" allowFullScreen="true" width="100%" height="100%" bgcolor="#0" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayYouKuVideo(docid)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write('<embed src="http://player.youku.com/player.php/'+docid+'/v.swf&auto=1" auto="true" quality="high" width="100%" height="100%" align="middle" allowScriptAccess="allways" mode="transparent" type="application/x-shockwave-flash"></embed>');
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayuStreamVideo(docid)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write('<embed flashvars="autoplay=true" width="100%" height="100%" allowfullscreen="true" allowscriptaccess="never" src="http://www.ustream.tv/flash/video/'+docid+'" type="application/x-shockwave-flash" />');
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayJustinTV2(docid,ChannelNo)
{ 
winno++;
OpenWindow[winno] = window.open("http://ccc-media.110mb.com/Movies"+ChannelNo+".htm", "MovieChannel"+ChannelNo, "fullscreen=yes,toolbar=no,scrollbars=no,status=no,menubar=no");
}

function PlayJustinTVChat(docid)
{
PrepPage();
OpenWindow[winno].document.write('<table width="100%" height="100%" border=1>');
OpenWindow[winno].document.write('  <tr>');
OpenWindow[winno].document.write('    <td width="100%" Height="75%">');
OpenWindow[winno].document.write('      <object type="application/x-shockwave-flash" height="100%" width="100%" id="jtv_player_flash" allowScriptAccess="never" allowMenu="false" autoplay="true" data="http://www.justin.tv/widgets/jtv_player.swf?channel='+docid+'&autoplay=true" bgcolor="#000000"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="never" /><param name="autoplay" value="true" /><param name="allowMenu" value="false" /><param name="movie" value="http://www.justin.tv/widgets/jtv_player.swf" /><param name="flashvars" value="channel='+docid+'&auto_play=true" /></object>');
OpenWindow[winno].document.write('    </td>');
OpenWindow[winno].document.write('  </tr>');
OpenWindow[winno].document.write('  <tr>');
OpenWindow[winno].document.write('    <td width="100%" Height="25%">');
OpenWindow[winno].document.write('      <object type="application/x-shockwave-flash" height="100%" width="100%" id="jtv_chat_flash" data="http://www.justin.tv/widgets/jtv_chat.swf?channel='+docid+'" bgcolor="#0"><param name="allowFullScreen" value="true" /><param name="movie" value="http://www.justin.tv/widgets/jtv_chat.swf" /><param name="flashvars" value="channel='+docid+'" /><param name="wmode" value="transparent"></object>');
OpenWindow[winno].document.write('    </td>');
OpenWindow[winno].document.write('  </tr>');
OpenWindow[winno].document.write('</table>');
EndPage();
}

function PlayFeedBeatVideo(docid)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write('<embed src="http://hombrelobo.feedbeat.com/flash/fbprojektor.swf"   width="100%" height="100%" bgcolor="#0"  type="application/x-shockwave-flash"   allowfullscreen="true"   allowscriptaccess="always"  pluginspage="http://www.macromedia.com/go/getflashplayer"   flashvars="channelpath=http://hombrelobo.feedbeat.com/'+docid+'/&amp;autostart=true&amp;startColorT=0x0&amp;startColorB=0xffffff" scale="showall" name="feedbeatprojektor" />');
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayMySpaceVideo(docid)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write('<embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m='+docid+'&type=video&a=1&fs=1" allowFullScreen="true" AllowScriptAccess="internal" type="application/x-shockwave-flash" width="100%" height="100%"></embed>');
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayYahooVideo(docid)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write('<object width="100%" height="100%"><param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.40" /><param name="allowFullScreen" value="true" /><param name="AllowScriptAccess" VALUE="always" /><param name="bgcolor" value="#000000" /><param name="flashVars" value="id='+docid+'&lang=en-gb&intl=uk&thumbUrl=http%3A//l.yimg.com/a/p/i/bcst/videosearch/7882/82006029.jpeg&autoPlay=true" /><embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.40" type="application/x-shockwave-flash" width="100%" height="100%" allowFullScreen="true" AllowScriptAccess="always" bgcolor="#000000" flashVars="id='+docid+'&lang=en-gb&intl=uk&thumbUrl=http%3A//l.yimg.com/a/p/i/bcst/videosearch/7882/82006029.jpeg&autoPlay=true" ></embed></object>');
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayTVZoneVideo(docid)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' name='tvzoneplayer' width='100%' height='100%' autoplay='true' id='tvzoneplayer'><param name='allowScriptAccess' value='always' /><param name='autoplay' value='true' /><param name='allowFullScreen' value='true' /><param name='movie' value='http://tvzone.us/p/"+docid+"' /><embed src='http://tvzone.us/p/"+docid+"' width='100%' height='100%' name='tvzoneplayer' autoplay='true' allowScriptAccess='always' allowFullScreen='true' /></object>");
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayJogyVideo(docid)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write('<object type="application/x-shockwave-flash" data="http://www.jogyjogy.com/videoMainJogy.swf" width="100%" height="100%" align="center"><param name="play" value="true" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="scale" value="showall" /><param name="salign" value="tl" /><param name="wmode" value="window" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="allownetworking" value="all" /><param name="flashvars" value="videoId='+docid+'&videoAutostart=1&hasHD=1&HDMode=0&hnd=0" /></object>');
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayKU6Video(docid)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write("<embed src='http://player.ku6.com/refer/"+docid+"/v.swf&auto=1&color=000000' quality='high' width='100%' height='100%' align='middle' auto='true' allowNetworking='internal' allowScriptAccess='always' allowfullscreen='true' type='application/x-shockwave-flash'></embed>");
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayOpenVVideo(docid)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write("<embed src='http://img.openv.tv/hd/swf/hd_player.swf?pid=hdmovie_20090414_7026863&playpage=http://hd.openv.com/inc_play-&q=tv=0,vtype=1,hd=1,random=5119940743,category=,channel=3&autostart=true&playNowTitle=&bufferAdImage=&bufferAdLink=' quality='high' width='100%' height='100%' align='middle' auto='true' allowNetworking='internal' allowScriptAccess='always' allowfullscreen='true' type='application/x-shockwave-flash'></embed>");
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayBlipTVVideo(docid)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write("<embed src='http://blip.tv/play/gdk+7e4ViPk8' type='application/x-shockwave-flash' width='640' height='400' allowscriptaccess='always' allowfullscreen='true'></embed>");
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function PlayFrontLineVideo(docid)
{ 
PrepPage();
if (document.chatform.withchat.checked) PrepChat();
OpenWindow[winno].document.write('<script type="text/javascript" src="http://www.pbs.org/wgbh/pages/frontline/js/pap/embed.js?'+docid+'"></script>');
if (document.chatform.withchat.checked) EndChat();
EndPage();
}

function LaunchLink(docid)
{ 
winno++;
randomnumber=Math.floor(Math.random()*99999)
OpenWindow[winno]=window.open(docid, "Link"+randomnumber, "fullscreen=yes,toolbar=no,scrollbars=yes,status=no,menubar=no");
}
