function Size(){var a=0;if(typeof(window.innerWidth)=="number"){a=window.innerHeight;myWidth=window.innerWidth}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){a=document.documentElement.clientHeight;myWidth=document.documentElement.clientWidth}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){a=document.body.clientHeight;myWidth=document.body.clientWidth}}}var b=new Array();b.width=myWidth;b.height=a;return b}function bannedword(c,a){m1=document.getElementById(c);var b=new RegExp("molested|shit|piss|rape|scat|abused|forced|young|family|incest|fist|rape|raped|raping|sister|son|mom|father|virgin|toilet|sleep|sleeping|pee|pergant|enema|dad|milk|kid|alien|monster");if(c=="rules"&&$("#rules").css("display")=="none"){$("#rules").slideDown(200)}else{$("#rules").slideUp(200)}if(c=="tips"&&$("#tips").css("display")=="none"){$("#tips").slideDown(100)}else{$("#tips").slideUp(200)}if(b.test(m1.value.toLowerCase())==true){m1.value=" ";$("#feautered").hide();$("#bannederror").show(200)}else{jQuery("#bannederror").hide();jQuery("#feautered").show()}}function ThumbSelector(a){var b=Size();if(a=="selecting"){var d=(b.height-parseInt($("#thumb_selector").css("height")))/2;var c=(b.width-parseInt($("#thumb_selector").css("width")))/2;$("#thumb_selector").css("top",d);$("#thumb_selector").css("left",c);$("body").append('<div id="lightbox_back"></div>');$("#thumb_selector").fadeIn();$("#lightbox_back").css("display")="block"}else{var d=(b.height-parseInt($("#thumb_selected").css("height")))/2;var c=(b.width-parseInt($("#thumb_selected").css("width")))/2;$("#thumb_selected").css("top",d);$("#thumb_selected").css("left",c);$("body").append('<div id="lightbox_back"></div>');$("#thumb_selected").fadeIn();$("#lightbox_back").css("display")="block"}}function showInfo(a,b){$("#infoarea P").html("");if(b==1){$("#infoarea P").html("<span class='msg_error'>"+a+"</span>")}else{$("#infoarea P").html(a)}$("#infoarea").children().slideDown("fast");$("#progressbar").hide()}$(document).ready(function(){if(upload_error){showInfo(upload_error)}jQuery("#uploadform").validationEngine("attach");function b(d){var c=/^[0-9A-Za-z]+$/;if(c.test(d)==true){return true}else{return false}}$(".feeds").click(function(){if(jQuery(".feeds:checked").size()==4){showInfo("Choose up to three channels to make your video featured in our feeds. If you do this properly your videos will have more views, but if you choose innaporate ones, your account will be suspended.");return false}});$(".feeds").click(function(){if(jQuery(".feeds:checked").size()==2){$("#infoarea").children().slideUp("fast");return true}});var a="";$("#upload_submit").click(function(){if($("#upload").val()==""&&$("#download").val()==""){showInfo("The file or URL field is required!");return false}if(a!=""){showInfo(a);return false}else{if(jQuery("#uploadform").validationEngine("validate")){$("#progressbar").show();$("#uploadform").submit()}}})});
