
 /* 1  TODO -- profile 

 */ 
function gup(name){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(window.location.href);if(results==null)return"";else return results[1];}
var medialinK='';function badBrowser(){if($.browser.msie&&parseInt($.browser.version)!=7&&parseInt($.browser.version)<=6){return true;}
return false;}
function getBadBrowser(c_name)
{if(document.cookie.length>0)
{c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1)
{c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}
return"";}
function setBadBrowser(c_name,value,expiredays)
{var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+"="+escape(value)+((expiredays==null)?"":";expires="+exdate.toGMTString());}
if(badBrowser()&&getBadBrowser('browserWarning')!='seen'){$(function(){$("<div id='browserWarning'>You are using an unsupported browser."+$.browser.version+" Please switch to <a href='http://getfirefox.com'>FireFox</a>, <a href='http://www.opera.com/download/'>Opera</a>, <a href='http://www.apple.com/safari/'>Safari</a> or <a href='http://www.microsoft.com/windows/downloads/ie/getitnow.mspx'>Internet Explorer 7</a>. Thanks!&nbsp;&nbsp;&nbsp;[<a href='#' id='warningClose'>close</a>] </div> ").css({backgroundColor:'#fcfdde','width':'100%','border-top':'solid 1px #000','border-bottom':'solid 1px #000','text-align':'center',padding:'5px 0px 5px 0px'}).prependTo("body");$('#warningClose').click(function(){setBadBrowser('browserWarning','seen');$('#browserWarning').slideUp('slow');return false;});});}
$(function(){$(".printBB").attr("href","javascript:void( 0 )").click(function(){$('body').append('<div style="postion:absolute;top:-9999em;" id="printNme">'+$('.h2.current').html()+$(this).closest('.pane').html()+'</div>');$('#printNme').print();$('#printNme').remove();return(false);});});$(document).ready(function(){});$(document).ready(function(){});$(function(){TranslateIt.init();$.bookmark.setDefaults({icons:'http://media.digitalbarn.tv/images/bookmarks.png'});$('#basicBookmark').bookmark();});$(document).ready(function(){$(".login").attr({"href":"#small_box"});$(".mediaLinks").hover(function(){$(this).next().slideDown("fast");},function(){});$(".VidLINKCon").hover(function(){},function(){$(this).slideUp("fast");});$(".extendHANDLE").click(function(){if($(this).next().hasClass("Nextend")){$(this).find("span").text("[-]");$(this).next().slideDown("fast");$(this).next().removeClass("Nextend");$(this).next().addClass("extend");}else{$(this).next().slideUp("fast");$(this).find("span").text("[+]");$(this).next().addClass("Nextend");$(this).next().removeClass("extend");}});$('.NewsHolder').cycle({prev:'#prev',next:'#next',delay:2000,speed:500,pause:1});$("head").append('<link rel="stylesheet" href="http://scripts.digitalbarn.tv/lib/CSS/pop.5.30.09.css" type="text/css" media="screen" />');$('.headerIMG').cycle({timeout:8000,delay:4000,speed:2000});$("a.mediaLinks").hover(function(){medialinK='http://www.digitalbarn.tv/'+$(this).attr('href');},function(){});$("a.mediaLinks").colorbox({width:"780px",height:"556px",inline:true,href:"#MediaPlayer",resize:true,current:"",title:""});$("a.mediaLinks.w864px").colorbox({width:"904px",height:"556px",inline:true,href:"#MediaPlayer",resize:true,current:"",title:""});$("a.mediaLinks.w560px").colorbox({width:"602px",height:"385px",inline:true,href:"#MediaPlayer",resize:true,current:"",title:""});$("a.mediaLinks,a.mediaLinks.w864px,a.mediaLinks.w560px").bind('cbox_complete',function(){openMovie(this.href)});$("a.Share").colorbox({width:"860px",height:"595px",inline:true,href:"#hotlink",resize:true,current:"",title:'Sharing and Hotlinking<img src="/uploads/images/Barn-Graphic-CORNER-BUG-250.jpg" alt="" id="dbcorner" />'});$("a.imgPrev").colorbox({resize:true,current:"",title:""});$("a.webLinks").colorbox({width:"90%",height:"90%",iframe:true,resize:true,current:"",title:""});$("a.login").colorbox({width:"500px",height:"275px",inline:true,href:"#small_box",resize:true,current:"",title:"Login"});if($('.errorLOGIN').length>0){$.fn.colorbox({width:"500px",height:"275px",inline:true,href:"#small_box",resize:true,current:"",title:"Login"});}});function openMovie(url){var u=medialinK.toString();$("#cboxTitle").css("visibility","visible");flowplayer("MediaPlayer","/uploads/Videoplayer/flowplayer-3.1.5.swf",flowSettings);flowplayer().play(u).onFinish(function(){$.fn.colorbox.close();});}
var flowSettings={clip:{url:"placeholder.flv",autoPlay:false},canvas:{background:'#FFFFFF'},screen:{background:'#FFFFFF'},plugins:{controls:{autoHide:'always',hideDelay:4000,backgroundColor:'#570507',backgroundGradient:[0.0,0.0],fontColor:'#ffffff',progressColor:'#FFFFFF',progressGradient:'low',timeFontColor:'#CCCCCC',bufferColor:'#000000',sliderColor:'#000000',buttonOverColor:'#222222',buttonColor:'#000000',play:true,volume:true,mute:true,playlist:false}}};