




jQuery.noConflict();
(function(jQuery) { 


jQuery(document).ready(function(){
								
// brower specific hacks
//A. Target Safari
if( jQuery.browser.safari ) jQuery(".youTuber").css({'display' : 'block', 'margin-left' : '200px'});

//B. Target anything above IE6
if (jQuery.browser.msie ) jQuery(".youTuber").css({'display' : 'block', 'margin-left' : '-70px', 'position' :  'absolute'});

//C. Target IE6 and below
//if (jQuery.browser.msie && jQuery.browser.version <= 6 ) jQuery(".youTuber").css({'display' : 'block', 'margin-left' : '-50px'});

//D. Target Firefox 2 and above
if (jQuery.browser.mozilla  ) jQuery(".youTuber").css({'display' : 'block', 'margin-left' : '-60px'});

//E. Target Chrome and webkit browsers
if (jQuery.browser.webkit  ) jQuery(".youTuber").css({'display' : 'inline', 'margin-left' : '170px'});

//F. Target Chrome and webkit browsers
if (jQuery.browser.opera  ) jQuery(".youTuber").css({'display' : 'block', 'margin-left' : '190px'});




			jQuery('#dock2').Fisheye(
				{
					maxWidth: 36,
					items: 'a',
					itemsText: 'span',
					container: '.dock-container2',
					itemWidth: 32,
					proximity: 80,
					alignment : 'left',
					valign: 'bottom',
					halign : 'center'
				});
			jQuery('#dock3').Fisheye(
				{
					maxWidth: 36,
					items: 'a',
					itemsText: 'span',
					container: '.dock-container2',
					itemWidth: 32,
					proximity: 80,
					alignment : 'left',
					valign: 'bottom',
					halign : 'right'
				});
		}	
	);
	

})(jQuery);



//
function CheckField(fldName){ if ( document.frmLB[fldName].length ) { for ( var i = 0, l = document.frmLB[fldName].length; i < l; i++ ) {  if (  document.frmLB[fldName].type =='select-one' ) {   if ( document.frmLB[fldName][i].selected ) { return true; }    }  else    {     if ( document.frmLB[fldName][i].checked ) { return true; }    }; } return false; } else { document.frmLB[fldName].focus(); return (document.frmLB[fldName].value.length > 0);}}
function rmspaces(x) {var leftx = 0;var rightx = x.length -1;while ( x.charAt(leftx) == ' ') { leftx++; }while ( x.charAt(rightx) == ' ') { --rightx; }var q = x.substr(leftx,rightx-leftx + 1);if ( (leftx == x.length) && (rightx == -1) ) { q =''; } return(q); }
function checkfield(data) {if (rmspaces(data) == ""){return false;}else {return true;}}
function isemail(data) {var flag = false;if (  data.indexOf("@",0)  == -1 || data.indexOf("\\",0)  != -1 ||data.indexOf("/",0)  != -1 ||!checkfield(data) ||  data.indexOf(".",0)  == -1  ||  data.indexOf("@")  == 0 ||data.lastIndexOf(".") < data.lastIndexOf("@") ||data.lastIndexOf(".") == (data.length - 1)   ||data.lastIndexOf("@") !=   data.indexOf("@") ||data.indexOf(",",0)  != -1 ||data.indexOf(":",0)  != -1 ||data.indexOf(";",0)  != -1  ) {return flag;} else {var temp = rmspaces(data);if (temp.indexOf(' ',0) != -1) { flag = true; }var d3 = temp.lastIndexOf('.') + 4;var d4 = temp.substring(0,d3);var e2 = temp.length  -  temp.lastIndexOf('.')  - 1;var i1 = temp.indexOf('@');if (  (temp.charAt(i1+1) == '.') || ( e2 > 4 )  ||  ( e2 < 2 ) ) { flag = true; }return !flag;}}
function _checkSubmit(){
if ( !isemail(document.frmLB["fldEmail"].value) ) { 
   alert("Please enter the Email");
   return false;
}
 return true; }
 
 
 
jQuery(document).ready(function(){
	//oprah
	jQuery("#oprahvid").click(function(){
		jQuery("#judsonBoxVidPlayer").load("/includes/php/videoswap.php?vidRequest=oprah");
		jQuery("#oprahplay").fadeIn("slow");
		jQuery("#ellenplay").css('display', 'none');
		jQuery("#todayshowplay").css('display', 'none');
		jQuery("#todayshowplay2").css('display', 'none');
		jQuery("#insideedition").css('display', 'none');
	});
	//ellen
	jQuery("#ellenvid").click(function(){
		jQuery("#judsonBoxVidPlayer").load("/includes/php/videoswap.php?vidRequest=ellen");
		jQuery("#oprahplay").css('display', 'none');
		jQuery("#ellenplay").fadeIn("slow");
		jQuery("#todayshowplay").css('display', 'none');
		jQuery("#todayshowplay2").css('display', 'none');
		jQuery("#insideedition").css('display', 'none');
	});
	//todayshow
	jQuery("#todayshowvid").click(function(){
		jQuery("#judsonBoxVidPlayer").load("/includes/php/videoswap.php?vidRequest=todayshow");
		jQuery("#oprahplay").css('display', 'none');
		jQuery("#ellenplay").css('display', 'none');
		jQuery("#todayshowplay").fadeIn("slow");
		jQuery("#todayshowplay2").css('display', 'none');
		jQuery("#insideedition").css('display', 'none');
	});
	//today show 2
	jQuery("#todayshowvid2").click(function(){
		jQuery("#judsonBoxVidPlayer").load("/includes/php/videoswap.php?vidRequest=todayshow2");
		jQuery("#oprahplay").css('display', 'none');
		jQuery("#ellenplay").css('display', 'none');
		jQuery("#todayshowplay").css('display', 'none')
		jQuery("#todayshowplay2").fadeIn("slow");
		jQuery("#insideedition").css('display', 'none');
	});
	//insideedition
	jQuery("#insideeditionvid").click(function(){
		jQuery("#judsonBoxVidPlayer").load("/includes/php/videoswap.php?vidRequest=insideedition");
		jQuery("#oprahplay").css('display', 'none');
		jQuery("#ellenplay").css('display', 'none');
		jQuery("#todayshowplay").css('display', 'none');
		jQuery("#todayshowplay2").css('display', 'none');
		jQuery("#insideedition").fadeIn("slow");
	});
});



/**
* jQuery.smoothDivScroll - Smooth div scrolling using jQuery.
* This plugin is for turning a set of HTML elements's into a smooth scrolling area.
*
* Copyright (c) 2009 Thomas Kahn - thomas.kahn(at)karnhuset(dot)net
*
* This plugin is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This plugin is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details. <http://www.gnu.org/licenses/>.
*
* Date: 2009-07-05
* @author Thomas Kahn
* @version 0.9
*
* Changelog
* ---------------------------------------------
* 0.9	- Bugfixes: Problem with multiple autoscrollers on the same page - the intervals
*		  where global which resulted in the wrong autoscroller stopping on mouseOver or
*		  mouseDown.
*		  Error in calculation in autoscrolling mode that made the autoscrolling grind
*		  to a halt after a number of loops.
*
* 0.8   - Major update. New parameter setup. Lots of new autoscrolling capabilities and 
*		  new parameters for controlling the scrolling speed. Made it possible to start 
*		  the scroller at a specific element.
* 
* 0.7   - Added support for autoscrolling after the page has loaded. 
*         Added support for making the hot spots visible at start for X number of seconds
*         or visible all the time.
*
* 0.6   - First version.
*/

(function(jQuery){jQuery.fn.smoothDivScroll=function(options){var defaults={scrollingHotSpotLeft:"div.scrollingHotSpotLeft",scrollingHotSpotRight:"div.scrollingHotSpotRight",scrollWrapper:"div.scrollWrapper",scrollableArea:"div.scrollableArea",hiddenOnStart:false,ajaxContentURL:"",countOnlyClass:"",scrollingSpeed:25,mouseDownSpeedBooster:3,autoScroll:"",autoScrollDirection:"right",autoScrollSpeed:1,pauseAutoScroll:"",visibleHotSpots:"",hotSpotsVisibleTime:5,startAtElementId:""};options=jQuery.extend(defaults,options);return this.each(function(){var jQuerymom=jQuery(this);if(options.ajaxContentURL.length!==0){jQuerymom.scrollableAreaWidth=0;jQuerymom.find(options.scrollableArea).load((options.ajaxContentURL),function(){jQuerymom.find(options.scrollableArea).children((options.countOnlyClass)).each(function(){jQuerymom.scrollableAreaWidth=jQuerymom.scrollableAreaWidth+jQuery(this).outerWidth(true);});jQuerymom.find(options.scrollableArea).css("width",(jQuerymom.scrollableAreaWidth+"px"));if(options.hiddenOnStart){jQuerymom.hide();}
windowIsResized();setHotSpotHeightForIE();});}
var scrollXpos;var booster;var motherElementOffset=jQuerymom.offset().left;var hotSpotWidth=0;booster=1;var hasExtended=false;jQuery(window).one("load",function(){if(options.ajaxContentURL.length===0){jQuerymom.scrollableAreaWidth=0;jQuerymom.tempStartingPosition=0;jQuerymom.find(options.scrollableArea).children((options.countOnlyClass)).each(function(){if((options.startAtElementId.length!==0)&&((jQuery(this).attr("id"))==options.startAtElementId)){jQuerymom.tempStartingPosition=jQuerymom.scrollableAreaWidth;}
jQuerymom.scrollableAreaWidth=jQuerymom.scrollableAreaWidth+jQuery(this).outerWidth(true);});jQuerymom.find(options.scrollableArea).css("width",jQuerymom.scrollableAreaWidth+"px");if(options.hiddenOnStart){jQuerymom.hide();}}
jQuerymom.find(options.scrollWrapper).scrollLeft(jQuerymom.tempStartingPosition);if(options.autoScroll!==""){jQuerymom.autoScrollInterval=setInterval(autoScroll,6);}
if(options.autoScroll=="always")
{hideLeftHotSpot();hideRightHotSpot();}
switch(options.visibleHotSpots)
{case"always":makeHotSpotBackgroundsVisible();break;case"onstart":makeHotSpotBackgroundsVisible();jQuerymom.hideHotSpotBackgroundsInterval=setInterval(hideHotSpotBackgrounds,(options.hotSpotsVisibleTime*1000));break;default:break;}});jQuerymom.find(options.scrollingHotSpotRight,options.scrollingHotSpotLeft).one('mouseover',function(){if(options.autoScroll=="onstart"){clearInterval(jQuerymom.autoScrollInterval);}});jQuery(window).bind("resize",function(){windowIsResized();});function windowIsResized(){if(!(options.hiddenOnStart))
{jQuerymom.scrollableAreaWidth=0;jQuerymom.find(options.scrollableArea).children((options.countOnlyClass)).each(function(){jQuerymom.scrollableAreaWidth=jQuerymom.scrollableAreaWidth+jQuery(this).outerWidth(true);});jQuerymom.find(options.scrollableArea).css("width",jQuerymom.scrollableAreaWidth+'px');}
jQuerymom.find(options.scrollWrapper).scrollLeft("0");var bodyWidth=jQuery("body").innerWidth();if(options.autoScroll!=="always")
{if(jQuerymom.scrollableAreaWidth<bodyWidth)
{hideLeftHotSpot();hideRightHotSpot();}
else
{showHideHotSpots();}}}
function hideLeftHotSpot(){jQuerymom.find(options.scrollingHotSpotLeft).hide();}
function hideRightHotSpot(){jQuerymom.find(options.scrollingHotSpotRight).hide();}
function showLeftHotSpot(){jQuerymom.find(options.scrollingHotSpotLeft).show();if(hotSpotWidth<=0){hotSpotWidth=jQuerymom.find(options.scrollingHotSpotLeft).width();}}
function showRightHotSpot(){jQuerymom.find(options.scrollingHotSpotRight).show();if(hotSpotWidth<=0){hotSpotWidth=jQuerymom.find(options.scrollingHotSpotRight).width();}}
function setHotSpotHeightForIE()
{jQuery.each(jQuery.browser,function(i,val){if(i=="msie"&&jQuery.browser.version.substr(0,1)=="6")
{jQuerymom.find(options.scrollingHotSpotLeft).css("height",(jQuerymom.find(options.scrollableArea).innerHeight()));jQuerymom.find(options.scrollingHotSpotRight).css("height",(jQuerymom.find(options.scrollableArea).innerHeight()));}});}
jQuerymom.find(options.scrollingHotSpotRight).bind('mousemove',function(e){var x=e.pageX-(this.offsetLeft+motherElementOffset);scrollXpos=Math.round((x/hotSpotWidth)*options.scrollingSpeed);if(scrollXpos===Infinity){scrollXpos=0;}});jQuerymom.find(options.scrollingHotSpotRight).bind('mouseover',function(){if(options.autoScroll=="onstart"){clearInterval(jQuerymom.autoScrollInterval);}
jQuerymom.rightScrollInterval=setInterval(doScrollRight,6);});jQuerymom.find(options.scrollingHotSpotRight).bind('mouseout',function(){clearInterval(jQuerymom.rightScrollInterval);scrollXpos=0;});jQuerymom.find(options.scrollingHotSpotRight).bind('mousedown',function(){booster=options.mouseDownSpeedBooster;});jQuery("*").bind('mouseup',function(){booster=1;});var doScrollRight=function()
{if(scrollXpos>0){jQuerymom.find(options.scrollWrapper).scrollLeft(jQuerymom.find(options.scrollWrapper).scrollLeft()+(scrollXpos*booster));}
showHideHotSpots();};if(options.pauseAutoScroll=="mousedown"&&options.autoScroll=="always")
{jQuerymom.find(options.scrollWrapper).bind('mousedown',function(){clearInterval(jQuerymom.autoScrollInterval);});jQuerymom.find(options.scrollWrapper).bind('mouseup',function(){jQuerymom.autoScrollInterval=setInterval(autoScroll,6);});}
else if(options.pauseAutoScroll=="mouseover"&&options.autoScroll=="always")
{jQuerymom.find(options.scrollWrapper).bind('mouseover',function(){clearInterval(jQuerymom.autoScrollInterval);});jQuerymom.find(options.scrollWrapper).bind('mouseout',function(){jQuerymom.autoScrollInterval=setInterval(autoScroll,6);});}
jQuerymom.previousScrollLeft=0;jQuerymom.pingPongDirection="right";jQuerymom.swapAt;jQuerymom.getNextElementWidth=true;var autoScroll=function()
{if(options.autoScroll=="onstart"){showHideHotSpots();}
switch(options.autoScrollDirection)
{case"right":jQuerymom.find(options.scrollWrapper).scrollLeft(jQuerymom.find(options.scrollWrapper).scrollLeft()+options.autoScrollSpeed);break;case"left":jQuerymom.find(options.scrollWrapper).scrollLeft(jQuerymom.find(options.scrollWrapper).scrollLeft()-options.autoScrollSpeed);break;case"backandforth":jQuerymom.previousScrollLeft=jQuerymom.find(options.scrollWrapper).scrollLeft();if(jQuerymom.pingPongDirection=="right"){jQuerymom.find(options.scrollWrapper).scrollLeft(jQuerymom.find(options.scrollWrapper).scrollLeft()+options.autoScrollSpeed);}
else{jQuerymom.find(options.scrollWrapper).scrollLeft(jQuerymom.find(options.scrollWrapper).scrollLeft()-options.autoScrollSpeed);}
if(jQuerymom.previousScrollLeft===jQuerymom.find(options.scrollWrapper).scrollLeft())
{if(jQuerymom.pingPongDirection=="right"){jQuerymom.pingPongDirection="left";}
else{jQuerymom.pingPongDirection="right";}}
break;case"endlessloop":if(jQuerymom.getNextElementWidth)
{if(options.startAtElementId!==""){jQuerymom.swapAt=jQuery("#"+options.startAtElementId).outerWidth();}
else{jQuerymom.swapAt=jQuerymom.find(options.scrollableArea).children(":first-child").outerWidth();}
jQuerymom.getNextElementWidth=false;}
jQuerymom.find(options.scrollWrapper).scrollLeft(jQuerymom.find(options.scrollWrapper).scrollLeft()+options.autoScrollSpeed);if((jQuerymom.swapAt<=jQuerymom.find(options.scrollWrapper).scrollLeft()))
{jQuerymom.find(options.scrollableArea).append(jQuerymom.find(options.scrollableArea).children(":first-child").clone());jQuerymom.find(options.scrollWrapper).scrollLeft((jQuerymom.find(options.scrollWrapper).scrollLeft()-jQuerymom.find(options.scrollableArea).children(":first-child").outerWidth()));jQuerymom.find(options.scrollableArea).children(":first-child").remove();jQuerymom.getNextElementWidth=true;}
break;default:break;}};jQuerymom.find(options.scrollingHotSpotLeft).bind('mousemove',function(e){var x=jQuerymom.find(options.scrollingHotSpotLeft).innerWidth()-(e.pageX-motherElementOffset);scrollXpos=Math.round((x/hotSpotWidth)*options.scrollingSpeed);if(scrollXpos===Infinity)
{scrollXpos=0;}});jQuerymom.find(options.scrollingHotSpotLeft).bind('mouseover',function(){if(options.autoScroll=="onstart"){clearInterval(jQuerymom.autoScrollInterval);}
jQuerymom.leftScrollInterval=setInterval(doScrollLeft,6);});jQuerymom.find(options.scrollingHotSpotLeft).bind('mouseout',function(){clearInterval(jQuerymom.leftScrollInterval);scrollXpos=0;});jQuerymom.find(options.scrollingHotSpotLeft).bind('mousedown',function(){booster=options.mouseDownSpeedBooster;});var doScrollLeft=function()
{if(scrollXpos>0){jQuerymom.find(options.scrollWrapper).scrollLeft(jQuerymom.find(options.scrollWrapper).scrollLeft()-(scrollXpos*booster));}
showHideHotSpots();};function showHideHotSpots()
{if(jQuerymom.find(options.scrollWrapper).scrollLeft()===0)
{hideLeftHotSpot();showRightHotSpot();}
else if((jQuerymom.scrollableAreaWidth)<=(jQuerymom.find(options.scrollWrapper).innerWidth()+jQuerymom.find(options.scrollWrapper).scrollLeft()))
{hideRightHotSpot();showLeftHotSpot();}
else
{showRightHotSpot();showLeftHotSpot();}}
function makeHotSpotBackgroundsVisible()
{jQuerymom.find(options.scrollingHotSpotLeft).addClass("scrollingHotSpotLeftVisible");jQuerymom.find(options.scrollingHotSpotRight).addClass("scrollingHotSpotRightVisible");}
function hideHotSpotBackgrounds()
{clearInterval(jQuerymom.hideHotSpotBackgroundsInterval);jQuerymom.find(options.scrollingHotSpotLeft).fadeTo("slow",0.0,function(){jQuerymom.find(options.scrollingHotSpotLeft).removeClass("scrollingHotSpotLeftVisible");});jQuerymom.find(options.scrollingHotSpotRight).fadeTo("slow",0.0,function(){jQuerymom.find(options.scrollingHotSpotRight).removeClass("scrollingHotSpotRightVisible");});}});};})(jQuery);


/**
 * jQuery.ScrollTo - Easy element scrolling using jQuery.
 * Copyright (c) 2007-2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
 * Dual licensed under MIT and GPL.
 * Date: 9/11/2008
 * @author Ariel Flesler
 * @version 1.4
 *
 * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
 */
;(function(h){var m=h.scrollTo=function(b,c,g){h(window).scrollTo(b,c,g)};m.defaults={axis:'y',duration:1};m.window=function(b){return h(window).scrollable()};h.fn.scrollable=function(){return this.map(function(){var b=this.parentWindow||this.defaultView,c=this.nodeName=='#document'?b.frameElement||b:this,g=c.contentDocument||(c.contentWindow||c).document,i=c.setInterval;return c.nodeName=='IFRAME'||i&&h.browser.safari?g.body:i?g.documentElement:this})};h.fn.scrollTo=function(r,j,a){if(typeof j=='object'){a=j;j=0}if(typeof a=='function')a={onAfter:a};a=h.extend({},m.defaults,a);j=j||a.speed||a.duration;a.queue=a.queue&&a.axis.length>1;if(a.queue)j/=2;a.offset=n(a.offset);a.over=n(a.over);return this.scrollable().each(function(){var k=this,o=h(k),d=r,l,e={},p=o.is('html,body');switch(typeof d){case'number':case'string':if(/^([+-]=)?\d+(px)?jQuery/.test(d)){d=n(d);break}d=h(d,this);case'object':if(d.is||d.style)l=(d=h(d)).offset()}h.each(a.axis.split(''),function(b,c){var g=c=='x'?'Left':'Top',i=g.toLowerCase(),f='scroll'+g,s=k[f],t=c=='x'?'Width':'Height',v=t.toLowerCase();if(l){e[f]=l[i]+(p?0:s-o.offset()[i]);if(a.margin){e[f]-=parseInt(d.css('margin'+g))||0;e[f]-=parseInt(d.css('border'+g+'Width'))||0}e[f]+=a.offset[i]||0;if(a.over[i])e[f]+=d[v]()*a.over[i]}else e[f]=d[i];if(/^\d+jQuery/.test(e[f]))e[f]=e[f]<=0?0:Math.min(e[f],u(t));if(!b&&a.queue){if(s!=e[f])q(a.onAfterFirst);delete e[f]}});q(a.onAfter);function q(b){o.animate(e,j,a.easing,b&&function(){b.call(this,r,a)})};function u(b){var c='scroll'+b,g=k.ownerDocument;return p?Math.max(g.documentElement[c],g.body[c]):k[c]}}).end()};function n(b){return typeof b=='object'?b:{top:b,left:b}}})(jQuery);


// custom scroller
jQuery(function() {
			jQuery("div#makeMeScrollable").smoothDivScroll({scrollingSpeed: 12, mouseDownSpeedBooster: 3, autoScroll: "onstart", autoScrollDirection: "endlessloop", autoScrollSpeed: 1, visibleHotSpots: "onstart", hotSpotsVisibleTime: 9, startAtElementId: "startAtMe"});
			
		});
	
// custom newsletter stuff

jQuery(document).ready(function(){




swapValue = [];
jQuery(".swap-value").each(function(i){
   swapValue[i] = jQuery(this).val();
   jQuery(this).focus(function(){
      if (jQuery(this).val() == swapValue[i]) {
         jQuery(this).val("");
      }
      jQuery(this).addClass("focus");
   }).blur(function(){
      if (jQuery.trim(jQuery(this).val()) == "") {
         jQuery(this).val(swapValue[i]);
	 jQuery(this).removeClass("focus");
      }
   });
});












});
