if(top.frames.length>0){top.location.href=self.location;}$.fn.media.defaults.params.allowfullscreen=true;$txthead='This is ChannelChooser';$adultpagetxt='<h1>Adult Filter is ON</h1>To visit pages on ChannelChooser with adult-content you need to turn Adult Filter OFF and open the adult-page again.<br><br>Click <a href="/" onFocus="if(this.blur)this.blur()">here</a> to go home.';$adultfiltertxt='<h1>Adult Filter is ON</h1>Now you can\'t visit pages on ChannelChooser with adult-content.<br><br>Click <a href="/" onFocus="if(this.blur)this.blur()">here</a> to go home.';$adultfilteroff='Off';$adultfilteron='On';$descinfo='Description';$newsinfo='News';$txtfullscreen='fullscreen';$txtbroken='broken';$txtaddfavorite='add to favorites';$txthomepage='homepage';$txtbrokenstream1='report broken link';$txtbrokenstream2a='Please confirm that the link to';$txtbrokenstream2b='is broken.';$txtbrokenstream3='Yes, this link is broken';$txtbrokenstream4='No, this link is not broken';$txtbrokenstream5='broken link reported';$txtbrokenstream6='no broken link reported';$txtchoose='please choose a channel';$txtfavorites='No favorites added.';$txtadultaccess0='WARNING';$txtadultaccess1='ChannelChooser Adult contains explicit adult content.<br>In order to enter you must be at least 18 years of age<br>and reside in a community where such material is not illegal.';$txtadultaccess2='Yes, I am 18 years or older';$txtadultaccess3='No, I am not 18 years old';$messagesend='<h1>Message is send</h1>Thanks for sending your message. We&rsquo;ll get back to you as soon as possible.<br><br>Click <a href="/" onFocus="if(this.blur)this.blur()">here</a> to go home.';$txtpremiumchannel0='This is a premium TV-channel';$txtpremiumchannel1='Watch this Channel with no time limit?<br><br>Get instant access now with a Premium Account.<br><br>';$txtpremiumchannel2='BENEFITS:<br><br>Longer videos/movies<br>Full speed streaming with no buffering<br>No time limits<br>Get instant access 24/7 to all premium adult TV-channels<br>No recurring fees<br>The best adult TV-channels available<br>Start watching now!';$txtpremiumchannel3='Watch unlimited all premium adult TV-channels for only &#36; 9,95/7 days';$txtpremiumchannel4='Click here for a Premium Account';$txtpremiumchannel5='No, I don\'t want a Premium Account';$txtsubended0='Your 7-day subscription has ended';$txtsubended1='Please RENEW your subscription to watch Premium TV-channels.<br><br>';$txtsubended2='Click here to renew your subscription';$txtsubended3='BENEFITS:<br><br>Longer videos/movies<br>Full speed streaming with no buffering<br>No time limits<br>Get instant access 24/7 to all premium adult TV-channels<br>No recurring fees<br>The best adult TV-channels available<br>Start watching now!';$specssub='Please subscribe';$specsrenewsub='Please renew subscription';function goDate(){var currentTime=new Date();var month=currentTime.getMonth()+1;var day=currentTime.getDate();var year=currentTime.getFullYear();var hours=currentTime.getHours();var minutes=currentTime.getMinutes();if(minutes<10)minutes="0"+minutes;if(day<10)day="0"+day;if(month<10)month="0"+month;clock=month+"/"+day+"/"+year+" "+hours+":"+minutes+" ";if(hours>11){clock+="PM";}else{clock+="AM";};return clock;};$(document).ready(function(){$('#date').text('| '+goDate());$('#embedplay').media({src:'media/logoflash.swf'});$('#favlist').html(listFavorite());if($page=='3'){$.get("premium/login.php",function(data){$('#login').html(data);});}if($page=='3'||$page=='6'){setTimeout(function(){window.location="/adult.php";return false;},1800000);$('#adlink').attr({'href':'http://www.etology.com/'});if($.cookie('adultAccess')==null){$('#embedplay').show().html('<div class="broken"><div id="attention" style="padding-top:140px">'+$txtadultaccess0+'</div><br><br><br>'+$txtadultaccess1+'<br><br><a href="#" id="yesadultaccess">'+$txtadultaccess2+'</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" id="noadultaccess">'+$txtadultaccess3+'</a></div>');}}$('#yesadultaccess').livequery('click',function(){$('#embedplay').hide();setTimeout(function(){playMedia({src:'media/logoflash.swf',type:'swf'});},50);$.cookie('adultAccess','granted');$('#player-title').html('<span class="blue">Please choose a channel...</span>');return false;});$('#noadultaccess').livequery('click',function(){window.location="/";return false;});if($.cookie('adultfilter')){$('.togglefilter').hide();$('#filter a').text($adultfilteron);if($page=='3'){$('#world-head').empty();$("#container").replaceWith('<div id="message"><div>'+$adultpagetxt+'</div></div>');}}$('.channels-list .title,.stats-channels li,#stats-content em').click(function(){if($page=='3'&&$.cookie('adultAccess')==null){return false;}else{$streamid=$(this).attr("id").split("-")[1];insertPlayer($streamid);}});function insertPlayer($streamid){$.get("ajax/getSTREAM.php",{id:$streamid,db:$page},function(data){$stream=data.split("|");$('#subtitle').empty();if($stream[3]!='1'){$('#player-title').html($stream[1]);if($stream[4]=='wmv'){$dispfullscreen='<span id="fullscreen">'+$txtfullscreen+'</span> | ';}else{$dispfullscreen='';}if($stream[5]!='#'){$disphomepage=' | <span id="homepage">'+$txthomepage+'</span>';}else{$disphomepage='';}$('#player-specs').html($dispfullscreen+'<span id="brokenstream">'+$txtbroken+'</span> | <span id="addfavorite">'+$txtaddfavorite+'</span>'+$disphomepage);$.get("ajax/putSTATS.php",{id:$streamid,db:$page});switch($stream[6]){case '#':$('#embedplay').hide();setTimeout(function(){playMedia({src:$stream[2],type:$stream[4]});},50);break;case 'premium':$('#subtitle').html('<div>'+$txtpremiumchannel0+'</div>');$.get("premium/check.php",function(data){switch(data){case 'FAIL':$('object,embed','#embedplay').each(function(){try{this.Stop();}catch(e){}try{this.controls.stop();}catch(e){}$(this).remove();});$('#player-specs').text($specssub);$('#embedplay').show().html('<div class="premiumchannel"><div id="attention" style="padding-top:40px">'+$txtpremiumchannel0+'</div><br><br><br>'+$txtpremiumchannel1+''+$txtpremiumchannel3+'<br><br><br>'+$txtpremiumchannel2+'<br><br><a href="#" id="yespremium">'+$txtpremiumchannel4+'</a></div>');break;case 'TIMEOVER':$('object,embed','#embedplay').each(function(){try{this.Stop();}catch(e){}try{this.controls.stop();}catch(e){}$(this).remove();});$('#player-specs').text($specsrenewsub);$('#embedplay').show().html('<div class="premiumchannel"><div id="attention" style="padding-top:90px">'+$txtsubended0+'</div><br><br><br>'+$txtsubended1+'<br><br><a href="#" id="yesrenewsub">'+$txtsubended2+'</a><br><br><br><br>'+$txtsubended3+'</div>');break;case 'PREVIEW':$('#embedplay').hide();setTimeout(function(){playMedia({src:$stream[2],type:$stream[4]});},50);setTimeout(function(){$('object,embed','#embedplay').each(function(){try{this.Stop();}catch(e){}try{this.controls.stop();}catch(e){}$(this).remove();});$('#player-specs').text($specssub);$('#embedplay').show().html('<div class="premiumchannel"><div id="attention" style="padding-top:40px">'+$txtpremiumchannel0+'</div><br><br><br>'+$txtpremiumchannel1+''+$txtpremiumchannel3+'<br><br><br>'+$txtpremiumchannel2+'<br><br><a href="#" id="yespremium">'+$txtpremiumchannel4+'</a></div>');},30000);break;default:$('#embedplay').hide();setTimeout(function(){playMedia({src:$stream[2],type:$stream[4]});},50);}});break;case 'aebn':$('#embedplay').hide();setTimeout(function(){playMedia({src:$stream[2],type:$stream[4]});},50);$('#subtitle').html('<div>Watch full length movies? <a href="http://theater.aebn.net/dispatcher/frontDoor?theaterId=46024" target="_blank" onFocus="if(this.blur)this.blur()">Click Here!</a></div>');break;default:}}else{var winpopup=window.open($stream[2]);winpopup.focus();$('#player-title').text($txthead);$('#player-specs').text($txtchoose);$('#embedplay').hide();setTimeout(function(){playMedia({src:'media/logoflash.swf'});},50);$.get("ajax/putSTATS.php",{id:$streamid,db:$page});}});};$('#fullscreen').livequery('click',function(){$('#wmplayer')[0].displaySize=3;return false;});$('#homepage').livequery('click',function(){var winpopup=window.open($stream[5]);winpopup.focus();});$('#brokenstream').livequery('click',function(){$('#embedplay').hide();$('#subtitle').empty();$('object,embed','#embedplay').each(function(){try{this.Stop();}catch(e){}try{this.controls.stop();}catch(e){}$(this).remove();});$('#player-specs').text($txtbrokenstream1);$('#embedplay').show().html('<div class="broken"><div id="attention" style="padding-top:140px">'+$txtbrokenstream1+'</div><br><br><br>'+$txtbrokenstream2a+' '+$stream[1]+' '+$txtbrokenstream2b+'<br><br><a href="#" id="yesbroken">'+$txtbrokenstream3+'</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" id="nobroken">'+$txtbrokenstream4+'</a></div>');$('#yesbroken').livequery('click',function(){$.get("ajax/putBROKEN.php",{id:$streamid,db:$page});$('#player-title').text($txthead);$('#player-specs').html('<span class="green">'+$txtbrokenstream5+'</span>');$('#embedplay').empty().media({src:'media/logoflash.swf'});return false;});$('#nobroken').livequery('click',function(){$('#player-title').text($txthead);$('#player-specs').html('<span class="red">'+$txtbrokenstream6+'</span>');$('#embedplay').empty().media({src:'media/logoflash.swf'});return false;});});$('#addfavorite').livequery('click',function(){addFavorite();});function playMedia(opts){$('object,embed','#embedplay').each(function(){try{this.Stop();}catch(e){}try{this.controls.stop();}catch(e){}$(this).remove();});$('#embedplay').empty().media(opts);};var out;var ShowCount=0;function listFavorite(){var numFavorite=$.cookie('C_numFavorite'+$descid);var i;var a=1;var itemFavorite;if(numFavorite==null){numFavorite=0;}ShowCount=0;out='<table width="140">';for(i=1;i<=numFavorite;i++){itemFavorite=$.cookie('C_itemFavorite'+$descid+i);if(itemFavorite!=null){if(a<=5){printFavorite(itemFavorite,i);a++;}}}if(ShowCount==0){out+='<tr><td>'+$txtfavorites+'</td></tr>';}out+='</table>';return out;};function printFavorite(itemFavorite,Count){favoriteItem=itemFavorite.split("|");ShowCount++;out+='<tr><td width="100%"><li id="f-'+favoriteItem[1]+'">'+favoriteItem[0]+'</li></td><td><a href="#" id="cc-'+Count+'" onfocus="if(this.blur)this.blur()">x</a></td></tr>';};function addFavorite(){var numFavorite=$.cookie('C_numFavorite'+$descid);var i;var itemFavorite=$stream[1]+'|'+$stream[0];if(numFavorite==null){numFavorite=0;}if((itemFavorite!=null)&&(itemFavorite!="undefined")){numFavorite++;$.cookie('C_itemFavorite'+$descid+numFavorite,itemFavorite,{expires:180});$.cookie('C_numFavorite'+$descid,numFavorite,{expires:180});$('#favlist').html(listFavorite());}};$('#favlist a').livequery('click',function(){$.cookie('C_itemFavorite'+$descid+$(this).attr("id").split("-")[1],null);$('#favlist').html(listFavorite());return false;});$('#favlist li').livequery(function(){$(this).hover(function(){$(this).addClass('underline');},function(){$(this).removeClass('underline');});$(this).click(function(){$streamid=$(this).attr("id").split("-")[1];insertPlayer($streamid);});});$('#channels-menu> .channels-head').click(function(){var $nextDiv=$(this).next();var $visibleSiblings=$nextDiv.siblings('div:visible');$visibleSiblings.hide();$nextDiv.toggle();});$('.channels-head,.channels-headext tr,#world-list a,#world-select a,.videos-list tr').hover(function(){$(this).addClass('hoverblue');},function(){$(this).removeClass('hoverblue');});$('#stats li,#stats-content em').hover(function(){$(this).addClass('underline');},function(){$(this).removeClass('underline');});$('#world-head').click(function(){$('#world-list').toggle();$('#world-list').hover(function(){return false;},function(){$('#world-list').hide();});});$('#filter a').bind('click',function(){$('.togglefilter').toggle();if($(this).text()==$adultfilteroff){$(this).text($adultfilteron);$.cookie('adultfilter','1',{expires:365});if($page=='3'){$('#world-head').empty();$("#container").replaceWith('<div id="message"><div>'+$adultfiltertxt+'</div></div>');}}else{$(this).text($adultfilteroff);$.cookie('adultfilter',null);}this.blur();return false;});if($page=='1'||$page=='3'||$page=='4'||$page=='5'){$.get("cache/"+$descid+"DESC.txt",function(data){$desc=data.split("|");$('#player-info').html('<strong>'+$newsinfo+':</strong>'+$desc[0]);$('.channels-list tr').hover(function(){$(this).addClass('hoverblue');$('#player-info').html('<strong>'+$descinfo+':</strong>'+$desc[$(this).attr("id").split("-")[1]]);},function(){$(this).removeClass('hoverblue');$('#player-info').html('<strong>'+$newsinfo+':</strong>'+$desc[0]);});});}if($page!='6'){$('.videos-list .title').click(function(){$('#replace').html('<div id="videocontainer"><img style="position:relative;top:3px;" src="images/loadingvid.gif"><span id="player-title">  Loading...</span></div>');$video=$(this).attr("id").split("-");$.get("ajax/getVIDEO.php",{id:$video[1],template:$video[0]},function(data){document.getElementById('replace').innerHTML=data;});});}else{$('.videos-list .title').click(function(){if($page=='6'&&$.cookie('adultAccess')==null){return false;}else{$('#stats').html('<div id="list"><img style="position:relative;top:3px;" src="images/loadingthumb.gif"><span>  Loading...</span></div>');$video=$(this).attr("id").split("-");$.get("ajax/getVIDEOADULT.php",{id:$video[1],template:$video[0]},function(data){$thumbs=data.split("||");$('#stats').html($thumbs[1]);$('#player-title').html('<span class="blue">Please choose a video...</span>');$play=$thumbs[0].split("*");$('#stats #list a').livequery('click',function(){$video=$(this).attr("id");$playnow=$play[$video].split("##");$('#player-title').text($playnow[1]);switchAdultvideo($playnow[0],$playnow[2]);return false;});});}});}function switchAdultvideo(embed,url){switch(embed){case 'youporn':document.getElementById('embedplay').innerHTML='<embed id="mpl" width="460" height="395" flashvars="file='+url+'&height=397&width=460&location=http://static.youporn.com/player/player6.swf&showdigits=false&bufferlength=3&type=flv&usekeys=false&autostart=true" allowfullscreen="true" bgcolor="#000000" quality="high" name="mpl" style="" src="http://static.youporn.com/player/player6.swf" type="application/x-shockwave-flash"/>';break;case 'pornhub':document.getElementById('embedplay').innerHTML='<embed src="http://www.pornhub.com/videoplayer.swf" FlashVars="config=http://www.pornhub.com/flvplayer.php?viewkey='+url+'" quality="high" bgcolor="#000000"  width="460" height="395" loop="false" autostart="true" align="middle" allowFullScreen="true" allowScriptAccess="always"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" scale="exactfit"></embed>';break;case 'shufuni':document.getElementById('embedplay').innerHTML='<embed src="http://www.shufuni.com/shufuniplayersharenew.swf" type="application/x-shockwave-flash" bgcolor="#000000" allowfullscreen="true" menu="false" wmode="transparent" width="460" height="395" flashvars="'+url+'&type=flv&height=397&width=460&autostart=true&volume=100"></embed>';break;case 'pornotube':document.getElementById('embedplay').innerHTML='<embed src="'+url+'" loop="false" quality="high" width="460" height="395" name="pornoPlayer" bgcolor="#000000" autostart="true" allowfullscreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>';break;case 'dirtytube':document.getElementById('embedplay').innerHTML='<embed src="http://www.dirtytube.org/flvplayer.swf" FlashVars="config='+url+'" quality="high" bgcolor="#000000" width="460" height="395" name="flvplayer" align="middle" autostart="true" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowFullScreen="true"/>';break;case 'youvidz':document.getElementById('embedplay').innerHTML='<embed id="mpl" width="460" height="395" flashvars="file='+url+'.flv&image=http://208.53.160.85:81/thumb/'+url+'.jpg&&enablejs=true&javascriptid=mpl&width=460&height=395&displayheight=373&autostart="true"" bgcolor="#000000" quality="high" name="mpl" autostart="true" src="http://www.youvidz.com/player/external.swf" type="application/x-shockwave-flash"/>';break;case 'xtube':document.getElementById('embedplay').innerHTML='<embed src="'+url+'" quality="high" bgcolor="#000000" width="460" height="395" name="player" autostart="true" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';break;case 'nudetube':document.getElementById('embedplay').innerHTML='<embed src="http://www.nudetube.com/flvplayer.swf" bgcolor="#000000" width="460" height="395" align="middle" allowfullscreen="true" flashvars="&displayheight=380&config='+url+'&height=395&width=460&autostart=true"></embed>';break;default:break;}};$('#submitlink').livequery('click',function(){$('#form').submit();});$('#logoutlink').livequery('click',function(){$.get("premium/login.php",{logout:1},function(data){$('#login').html(data);$('#player-title').text($txthead);$('#subtitle').empty();if($.cookie('adultAccess')==null){$('#embedplay').show().html('<div class="broken"><div id="attention" style="padding-top:140px">'+$txtadultaccess0+'</div><br><br><br>'+$txtadultaccess1+'<br><br><a href="#" id="yesadultaccess">'+$txtadultaccess2+'</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" id="noadultaccess">'+$txtadultaccess3+'</a></div>');}else{$('#embedplay').empty().media({src:'media/logoflash.swf'});}});return false;});$('#yespremium').livequery('click',function(){window.location="/premium.php";return false;});$("#form input").livequery('keypress',(function(e){if(e.which==13){$('#form').submit();}}));$('#yesrenewsub').livequery('click',function(){window.location="/premium.php?action=renew";return false;});});