/*START SHOW AND HIDE AD TOP ROTATOR*/
jQuery(document).ready(function()  {

    jQuery('a#CloseAd').click(function(){
        jQuery('#ShowHideAd').hide('slow');  
        return false;  
    }) 
    
   
   
   jQuery("#accipAd").animate({width:'90px'}, 1500 );
    jQuery("#accipAd").show();
    
    
});

/*******************************************************SCOREBOARD********************************************************/


/*SCOREBOARD*/
function Scorecarousel_initCallback(carousel) {    
    jQuery('#ScoreboardControlsNext').click(function() {
        carousel.next();
       return false;
    });
    jQuery('#ScoreboardControlsPrev').click(function() {
        carousel.prev();          
        return false;
    });
}

jQuery(document).ready(function() {
if(jQuery("#ScoreboardBg").length>0) {
       jQuery('#ScoreboardBg').show(); 
         jQuery("#Scoreboard").jcarousel({      
            start:12,
            scroll: 1,   
            initCallback: Scorecarousel_initCallback,         
            // This tells jCarousel NOT to autobuild prev/next buttons
            buttonNextHTML: null,
            buttonPrevHTML: null
        });  
     }
});

/*START ROTATOR*/
jQuery(document).ready(function()  {  
   if(jQuery("#scroller").length>0) { 
    jQuery('#scroller').cycle({
        fx:     'fade', 
        speed:  'slow', 
        timeout: 6000, 
        prev:    '#prev',
        next:    '#next',     
         pager:  '#scrollerThumbs', 
        pagerAnchorBuilder: function(idx, slide) { 
        // return selector string for existing anchor 
        return '#scrollerThumbs li:eq(' + idx + ') a'; 
        }                     
    });   
    document.getElementById('RotatorBox').style.display = 'block';     	
     jQuery('#prev').click(function() { 
    jQuery('#scroller').cycle('pause');
     return false;  
    });     
    
     jQuery('#next').click(function() { 
    jQuery('#scroller').cycle('pause');
     return false;  
    });  
    
    jQuery('#pause').click(function() { 
    jQuery('#scroller').cycle('pause');
     return false;  
    });     
    
    jQuery('#imgPlay').click(function() { 
    jQuery('#scroller').cycle('pause');
     return false;  
    });  
    
    jQuery('#close').click(function() {     
    jQuery('#scroller').cycle('resume');
     return false;  
    });  
    
    
    
    jQuery.videoOpen = false;   
    jQuery.shareOpen = false;   
    jQuery.linksOpen = false;   
    
    /* ARRAYS in JQUERY: http://docs.jquery.com/Utilities/jQuery.each... LINKS TAB*/
    
    var obj1 = { DLTabLinks_1:1, DLTabLinks_2:2, DLTabLinks_3:3, DLTabLinks_4:4, DLTabLinks_5:5};
      jQuery.each(obj1, function(key, val) {      
       //console.log("ARRAY1:",key );
            jQuery("#" + key).click(function(){     
            jQuery('#scroller').cycle('pause');                 
            jQuery(this).blur(); 
            if (jQuery.linksOpen == false){        
                jQuery("#DLLinksBox_"+ val).stop().animate({width:'450px'}, 1000 );   
                jQuery("#DLContentLinks_"+ val).show();                    
                jQuery.linksOpen = true;                 
            }else{jQuery("#DLLinksBox_"+ val).stop().animate({width:'29px'}, 1000 ); 
            jQuery("#DLContentLinks_"+ val).hide();
                jQuery.linksOpen = false;   
                if ((jQuery.videoOpen == false) && (jQuery.linksOpen == false) && (jQuery.shareOpen == false) ){   
                    jQuery('#scroller').cycle('resume');  
                }         
            }    
            return false;  
        });    
    });
    
    
    
    
      var obj2 = { DLTabVideo_1:1, DLTabVideo_2:2, DLTabVideo_3:3, DLTabVideo_4:4,DLTabVideo_5:5};
      jQuery.each(obj2, function(key, val) { 
      
      // console.log("ARRAY2:",key );
        
         jQuery("#" + key).click(function(){     
        jQuery('#scroller').cycle('pause');  
                         
            jQuery(this).blur(); 
            if (jQuery.videoOpen == false){        
                jQuery("#DLVideosBox_"+ val).stop().animate({width:'650px'}, 1000 );   
                jQuery("#DLContentVideo_"+ val).show(); 
                jQuery.videoOpen = true;                 
            }else{jQuery("#DLVideosBox_"+ val).stop().animate({width:'29px'}, 1000 ); 
            jQuery("#DLContentVideo_"+ val).hide();
                jQuery.videoOpen = false;   
                if ((jQuery.videoOpen == false) && (jQuery.linksOpen == false) && (jQuery.shareOpen == false) ){   
                    jQuery('#scroller').cycle('resume');  
                }         
            }    
            return false;  
        });    
    });
    
  
    
       
     var obj3 = { DLTabShare_1:1, DLTabShare_2:2, DLTabShare_3:3, DLTabShare_4:4,DLTabShare_5:5 };
      jQuery.each(obj3, function(key, val) {  
      // console.log("ARRAY3:",key );
         jQuery("#" + key).click(function(){     
        jQuery('#scroller').cycle('pause'); 
                            
            jQuery(this).blur(); 
            if (jQuery.shareOpen == false){        
                jQuery("#DLShareBox_"+ val).stop().animate({width:'250px'}, 1000 );   
                jQuery("#DLContentShare_"+ val).show(); 
                jQuery.shareOpen = true;                 
            }else{jQuery("#DLShareBox_"+ val).stop().animate({width:'29px'}, 1000 ); 
            jQuery("#DLContentShare_"+ val).hide();
                jQuery.shareOpen = false;   
                if ((jQuery.videoOpen == false) && (jQuery.linksOpen == false) && (jQuery.shareOpen == false) ){   
                    jQuery('#scroller').cycle('resume');  
                }         
            }    
            return false;  
        });    
    });
    
    }
    
});

/*END ROTATOR*/


/*START SCHEDULE*/
//http://www.deckerdev.com/blog/category/JQuery.aspx//
 function getTop() {
	// get the top of the content
	var top = jQuery('#scroll-content').css('top');
	return trimPx(top);
}

function getHeight(id) {
	// get the height, including padding
	var height = jQuery(id).height();
	var paddingTop = trimPx(jQuery(id).css("padding-top"));
	var paddingBottom = trimPx(jQuery(id).css("padding-bottom"));

	return height + paddingTop + paddingBottom;
}

function trimPx(value) {
	// remove "px" from values
	var pos = value.indexOf("px");
	if (pos != 0)
		return parseInt(value.substring(0, pos));
	else
		return 0;
}

var container;
var content;
var hidden;	// # of pixels hidden by the container

function setScrollerDimensions() {
	container = getHeight("#scroll-container");
	content = getHeight("#scroll-content");
	hidden = content - container;
}

function resetScroller() {
	setScrollerDimensions();
	jQuery('#scroll-content').css('top', 0);
}


jQuery(document).ready(function() {
if(jQuery("#scroll-controls").length>0) {
  jQuery('#scroll-controls').show(); 
    
    jQuery('.up-arrow').css("filter","alpha(opacity=50)");
    jQuery('.up-arrow').css("opacity","0.4");
                
	setScrollerDimensions();

	jQuery('#scroll-controls a.up-arrow').click(function() {
		return false;
	});

	jQuery('#scroll-controls a.down-arrow').click(function() {
		return false;
	});

	jQuery('#scroll-controls a.down-arrow').hover(
		function() {
			if (hidden > 0) {
				var current = getTop();
				jQuery('#scroll-content').animate({ top: -hidden }, Math.abs(current - hidden) * 5);
				jQuery('.down-arrow').css("filter","alpha(opacity=50)");
                jQuery('.down-arrow').css("opacity","0.4");	
                 jQuery('.up-arrow').css("filter","alpha(opacity=100)");
                jQuery('.up-arrow').css("opacity","1");
			}
		},
		function() {
			jQuery('#scroll-content').stop();
			  	  

		}
	);

	jQuery('#scroll-controls a.up-arrow').hover(
		function() {
			if (hidden > 0) {
				var current = getTop();
				jQuery('#scroll-content').animate({ top: "0" }, Math.abs(current) * 5);
				 jQuery('.up-arrow').css("filter","alpha(opacity=50)");
                jQuery('.up-arrow').css("opacity","0.4");
                jQuery('.down-arrow').css("filter","alpha(opacity=100)");
                jQuery('.down-arrow').css("opacity","1");	
			}
		},
		function() {
			jQuery('#scroll-content').stop();
				
		}
	);
}
    
});

/*END SCHEDULE*/



/*EXCLUSIVELY*/
function excarousel_initCallback(carousel) {
    
    var cssObjON = {      
        "background":"url('/fls/500/site_graphics/exclusively/circleOn.jpg') no-repeat"       
        }        
        var cssObjOFF = {      
        "background":"url('/fls/500/site_graphics/exclusively/circleOff.jpg') no-repeat"       
        }
        
    
     jQuery('#exclusivecarousel-Sections1').click(function() {
        var value1 = 0;	
        carousel.lock();

        jQuery(this).css(cssObjON);      
          jQuery('#exclusivecarousel-Sections3').css(cssObjOFF);  
          jQuery('#exclusivecarousel-Sections2').css(cssObjOFF);
          
        			
		jQuery('#exclusivecarousel ul').animate({'left' : (value1) * -1}, 1000);
        return false;
    });
    
      jQuery('#exclusivecarousel-Sections2').click(function() {
        var value2 = 730;
        carousel.lock();

         jQuery(this).css(cssObjON);      
          jQuery('#exclusivecarousel-Sections3').css(cssObjOFF);  
          jQuery('#exclusivecarousel-Sections1').css(cssObjOFF);
        
        				
		jQuery('#exclusivecarousel ul').animate({'left' : (value2) * -1}, 1000);
        return false;
    });
     jQuery('#exclusivecarousel-Sections3').click(function() {
        var value3 = 1465;     
      carousel.lock();

          jQuery(this).css(cssObjON);      
          jQuery('#exclusivecarousel-Sections2').css(cssObjOFF);  
          jQuery('#exclusivecarousel-Sections1').css(cssObjOFF);  
        
		jQuery('#exclusivecarousel ul').animate({'left' : (value3) * -1}, 1000);
        return false;
    });  
    
    jQuery('#exclusivecarousel-next').click(function() {
        carousel.next();
       return false;
    });

    jQuery('#exclusivecarousel-prev').click(function() {
        carousel.prev();  
        
        return false;
    });
    
    
   
}

jQuery(document).ready(function() {
if(jQuery("#exclusivecarousel").length>0) {
  jQuery('#exclusivecarousel').show(); 
     jQuery("#exclusivecarousel").jcarousel({      
        start:1,
        scroll: 1,     
        initCallback: excarousel_initCallback,         
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });   
       
     }
});


///////////BLOGS-HEADLINES TABS////////////////////////////////


	
	function highlight1() {	
        document.getElementById('img_'+2).setAttribute("src", "/fls/500/site_graphics/BlogHeadlines/bhHeadlinesTabOff.jpg");
        document.getElementById('img_'+1).setAttribute("src", "/fls/500/site_graphics/BlogHeadlines/bhBlogsTabOn.jpg");			
	}
	
	function highlight2() {	
        document.getElementById('img_'+2).setAttribute("src", "/fls/500/site_graphics/BlogHeadlines/bhHeadlinesTabOn.jpg");
        document.getElementById('img_'+1).setAttribute("src", "/fls/500/site_graphics/BlogHeadlines/bhBlogsTabOff.jpg");			
	}
	
	


/*BLOG*/

function blogcarousel_initCallback(carousel) {  
    jQuery('#myBlog-carouselNext').click(function() {   
        carousel.next();
        return false;
    });
    jQuery('#myBlog-carouselPrev').click(function() {   
        carousel.prev();
         return false;
    }); 
}

jQuery(document).ready(function() {

     jQuery('#Content_1').css({'display' : 'block'});    	
    jQuery('#Content_2').css({'display' : 'none'});

	jQuery.Hiden=false;	
		

	jQuery('#Tab_1').click(function() {
		highlight1(); 
        jQuery('#Content_1').css({'display' : 'block'});       
		jQuery('#Content_2').css({'display' : 'none'});
		jQuery('#BlogArea').show();         
        jQuery("#myBlog-carousel").jcarousel({       
        scroll: 1,
        visible: 1,   
        horizontal: true,
        initCallback: blogcarousel_initCallback,         
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
        });   
	  	
	});
	
	
	jQuery('#Tab_2').click(function() {
	    highlight2(); 
		jQuery('#Content_2').css({'display' : 'block'});
		jQuery('#BlogArea').hide(); 
		jQuery('#Content_1').css({'display' : 'none'});   
       jQuery.Hiden=true;
	});   



if (jQuery.Hiden==false)
{
    jQuery('#BlogArea').show();     
    
    jQuery("#myBlog-carousel").jcarousel({       
    scroll: 1,
    visible: 1,   
    horizontal: true,
    initCallback: blogcarousel_initCallback,         
    // This tells jCarousel NOT to autobuild prev/next buttons
    buttonNextHTML: null,
    buttonPrevHTML: null
    });       
}


window.alert = function() {
    jQuery.Hiden=true;

	return;
};

    
});


/*******************************************************DUCK TV********************************************************/
function DuckTVCaroucel_initCallback(carousel) {
  
    jQuery('#DuckTVControlsNext').click(function() {
        carousel.next();
        return false;
    });

    jQuery('#DuckTVControlsPrev').click(function() {
        carousel.prev();
         return false;
    });
    
    
};
jQuery(document).ready(function() {

if(jQuery("#DuckTVCaroucel").length>0) {
  jQuery('#DuckTVArea').show(); 
     jQuery("#DuckTVCaroucel").jcarousel({       
        scroll: 1,
        visible: 4,   
        horizontal: true,
        initCallback: DuckTVCaroucel_initCallback,         
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });    
}
    
});


/*********************************** TOP ECOM***********************************/
function EcomcarouselTOP_initCallback(carousel) {
    
    jQuery('#ecomControlsNextTOP').click(function() {
        carousel.next();
       return false;
    });

    jQuery('#ecomControlsPrevTOP').click(function() {
        carousel.prev();          
        return false;
    });
    
    
   
}
jQuery(document).ready(function() {
if(jQuery("#EcomScrollerThumbsTOP").length>0) {
 jQuery('#EcommerceTOPBg').show(); 
     jQuery("#EcomScrollerThumbsTOP").jcarousel({      
        start:1,
        scroll: 1,     
        initCallback: EcomcarouselTOP_initCallback,         
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });   
       
     }
});
////////////////////////////////////////BOTTOM ECOM///////////////////////////////////////////////////////

jQuery(document).ready(function()  {  
   if(jQuery("#EcomScroller").length>0) { 
     jQuery('#EcommerceArea').show(); 
    jQuery('#EcomScroller').cycle({
        fx:     'scrollHorz',         
        timeout: 5000,
         next:'#ecomControlsNext',     
        prev:'#ecomControlsPrev',              
         pager:  '#EcomScrollerThumbs', 
        pagerAnchorBuilder: function(idx, slide) { 
        // return selector string for existing anchor 
        
        return '#EcomScrollerThumbs li:eq(' + idx + ') span'; 
        }                     
    });   
    } 	
}); 


function Ecomcarousel_initCallback(carousel) {
    
    jQuery('#ecomControlsNext').click(function() {
        carousel.next();
       return false;
    });

    jQuery('#ecomControlsPrev').click(function() {
        carousel.prev();          
        return false;
    });
    
}
jQuery(document).ready(function() {
if(jQuery("#EcomScrollerThumbs").length>0) {
     jQuery("#EcomScrollerThumbs").jcarousel({      
        start:2,
        scroll: 1,   
        initCallback: Ecomcarousel_initCallback,         
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });   
       
     }
});


////////////////////////////////////////community///////////////////////////////////////////////////////


jQuery(document).ready(function()  {  
   if(jQuery("#CommunityScroller").length>0) { 
     jQuery('#CommunityArea').show(); 
    jQuery('#CommunityScroller').cycle({    
        speed:       200, 
        timeout:     0,         
        pager:  '#EcomScrollerThumbs', 
        pagerEvent: 'mouseover',
        pagerAnchorBuilder: function(idx, slide) { 
        // return selector string for existing anchor         
        return '#ComScrollerThumbs li:eq(' + idx + ') a'; 
        }                        
                           
    });   
    } 	
}); 




//////////////////PREMIUM///////////////////////////////////////////
jQuery(document).ready(function() {

    jQuery('#box_1').css({'display' : 'block'});    	
    jQuery('#box_2').css({'display' : 'none'});
    jQuery('#box_3').css({'display' : 'none'});
    jQuery('#box_4').css({'display' : 'none'});
    jQuery('#box_5').css({'display' : 'none'});
    jQuery('#box_6').css({'display' : 'none'});
		

	jQuery('#latest_tab').hover(function() {	
        jQuery('#box_1').css({'display' : 'block'});    	
        jQuery('#box_2').css({'display' : 'none'});
        jQuery('#box_3').css({'display' : 'none'});
        jQuery('#box_4').css({'display' : 'none'});
        jQuery('#box_5').css({'display' : 'none'});
        jQuery('#box_6').css({'display' : 'none'});	
	  	
	});
	
	

	
	jQuery('#live_events_tab').hover(function() {
		jQuery('#box_1').css({'display' : 'none'}); 
        jQuery('#box_2').css({'display' : 'block'});   	
        jQuery('#box_3').css({'display' : 'none'});      
        jQuery('#box_4').css({'display' : 'none'});
        jQuery('#box_5').css({'display' : 'none'});
        jQuery('#box_6').css({'display' : 'none'});	
      
	});  
	
	jQuery('#free_clips_tab').hover(function() {
		jQuery('#box_1').css({'display' : 'none'});    	
          jQuery('#box_2').css({'display' : 'none'});
        jQuery('#box_3').css({'display' : 'block'});
        jQuery('#box_4').css({'display' : 'none'});
        jQuery('#box_5').css({'display' : 'none'});
        jQuery('#box_6').css({'display' : 'none'});	
      
	});   
	
	
	jQuery('#replays_tab').hover(function() {
	    jQuery('#box_1').css({'display' : 'none'});    	
        jQuery('#box_2').css({'display' : 'none'});
        jQuery('#box_3').css({'display' : 'none'});
        jQuery('#box_4').css({'display' : 'block'});
        jQuery('#box_5').css({'display' : 'none'});
        jQuery('#box_6').css({'display' : 'none'});	
      
	}); 
	
	
	jQuery('#coaches_show_tab').hover(function() {
	   jQuery('#box_1').css({'display' : 'none'});    	
        jQuery('#box_2').css({'display' : 'none'});
        jQuery('#box_3').css({'display' : 'none'});
        jQuery('#box_4').css({'display' : 'none'});
        jQuery('#box_5').css({'display' : 'block'});
        jQuery('#box_6').css({'display' : 'none'});	
      
	}); 
	
	
	jQuery('#classics_tab').hover(function() {
		jQuery('#box_1').css({'display' : 'none'});    	
        jQuery('#box_2').css({'display' : 'none'});
        jQuery('#box_3').css({'display' : 'none'});
        jQuery('#box_4').css({'display' : 'none'});
        jQuery('#box_5').css({'display' : 'none'});
        jQuery('#box_6').css({'display' : 'block'});	
      
	}); 
	
	
	

});  



/////////////////////////////////////////////////PLAYER BIO SCROLL///////////////////////////////////////////////////////////////

/*START SCHEDULE*/
//http://www.deckerdev.com/blog/category/JQuery.aspx//
 function getTopPB() {
	// get the top of the content
	var topPB = jQuery('#scroll-contentPB-media').css('top');
	return trimPx(topPB);
}
function getHeightPB(idPB) {
	// get the height, including padding
	var heightPB = jQuery(idPB).height();
	var paddingTopPB = trimPxPB(jQuery(idPB).css("padding-top"));
	var paddingBottomPB = trimPxPB(jQuery(idPB).css("padding-bottom"));

	return heightPB + paddingTopPB + paddingBottomPB;
}

function trimPxPB(valuePB) {
	// remove "px" from values
	var posPB = valuePB.indexOf("px");
	if (posPB != 0)
		return parseInt(valuePB.substring(0, posPB));
	else
		return 0;
}

var containerPB;
var contentPB;
var hiddenPB;	// # of pixels hidden by the container

function setScrollerDimensionsPB() {
	containerPB = getHeightPB("#scroll-containerPB-media");
	contentPB = getHeightPB("#scroll-contentPB-media");
	hiddenPB = contentPB - containerPB;
}

function resetScrollerPB() {
	setScrollerDimensionsPB();
	jQuery('#scroll-contentPB-media').css('top', 0);
}


jQuery(document).ready(function() {
if(jQuery(".scroll-controlsPB-media").length>0) {
  jQuery('.scroll-controlsPB-media').show(); 
    
    jQuery('.up-arrowPB-media').css("filter","alpha(opacity=50)");
    jQuery('.up-arrowPB-media').css("opacity","0.4");
                
	setScrollerDimensionsPB();

	jQuery('.scroll-controlsPB-media a.up-arrowPB-media').click(function() {
		return false;
	});

	jQuery('.scroll-controlsPB-media a.down-arrowPB-media').click(function() {
		return false;
	});

	jQuery('.scroll-controlsPB-media a.down-arrowPB-media').hover(
		function() {
			if (hiddenPB > 0) {
				var currentPB = getTopPB();
				jQuery('#scroll-contentPB-media').animate({ top: -hiddenPB }, Math.abs(currentPB - hiddenPB) * 5);
				jQuery('.down-arrowPB-media').css("filter","alpha(opacity=50)");
                jQuery('.down-arrowPB-media').css("opacity","0.4");	
                 jQuery('.up-arrowPB-media').css("filter","alpha(opacity=100)");
                jQuery('.up-arrowPB-media').css("opacity","1");
			}
		},
		function() {
			jQuery('#scroll-contentPB-media').stop();
			  	  

		}
	);

	jQuery('.scroll-controlsPB-media a.up-arrowPB-media').hover(
		function() {
			if (hiddenPB > 0) {
				var currentPB = getTopPB();
				jQuery('#scroll-contentPB-media').animate({ top: "0" }, Math.abs(currentPB) * 5);
				 jQuery('.up-arrowPB-media').css("filter","alpha(opacity=50)");
                jQuery('.up-arrowPB-media').css("opacity","0.4");
                jQuery('.down-arrowPB-media').css("filter","alpha(opacity=100)");
                jQuery('.down-arrowPB-media').css("opacity","1");	
			}
		},
		function() {
			jQuery('#scroll-contentPB-media').stop();
				
		}
	);
}
    
});

/*END PLAYER BIO*/

/////////////////////////////////////////////////PLAYER BIO SCROLL///////////////////////////////////////////////////////////////

/*START SCHEDULE*/
//http://www.deckerdev.com/blog/category/JQuery.aspx//
 function getTopPB2() {
	// get the top of the content
	var topPB2 = jQuery('#scroll-contentPB-photo').css('top');
	return trimPx(topPB2);
}
function getHeightPB2(idPB2) {
	// get the height, including padding
	var heightPB2 = jQuery(idPB2).height();
	var paddingTopPB2 = trimPxPB2(jQuery(idPB2).css("padding-top"));
	var paddingBottomPB2 = trimPxPB2(jQuery(idPB2).css("padding-bottom"));

	return heightPB2 + paddingTopPB2 + paddingBottomPB2;
}

function trimPxPB2(valuePB2) {
	// remove "px" from values
	var posPB2 = valuePB2.indexOf("px");
	if (posPB2 != 0)
		return parseInt(valuePB2.substring(0, posPB2));
	else
		return 0;
}

var containerPB2;
var contentPB2;
var hiddenPB2;	// # of pixels hidden by the container

function setScrollerDimensionsPB2() {
	containerPB2 = getHeightPB2("#scroll-containerPB-photo");
	contentPB2 = getHeightPB2("#scroll-contentPB-photo");
	hiddenPB2 = contentPB2 - containerPB2;
}

function resetScrollerPB2() {
	setScrollerDimensionsPB2();
	jQuery('#scroll-contentPB-photo').css('top', 0);
}


jQuery(document).ready(function() {
if(jQuery(".scroll-controlsPB-photo").length>0) {
  jQuery('.scroll-controlsPB-photo').show(); 
    
    jQuery('.up-arrowPB-photo').css("filter","alpha(opacity=50)");
    jQuery('.up-arrowPB-photo').css("opacity","0.4");
                
	setScrollerDimensionsPB2();

	jQuery('.scroll-controlsPB-photo a.up-arrowPB-photo').click(function() {
		return false;
	});

	jQuery('.scroll-controlsPB-photo a.down-arrowPB-photo').click(function() {
		return false;
	});

	jQuery('.scroll-controlsPB-photo a.down-arrowPB-photo').hover(
		function() {
			if (hiddenPB2 > 0) {
				var currentPB2 = getTopPB2();
				jQuery('#scroll-contentPB-photo').animate({ top: -hiddenPB2 }, Math.abs(currentPB2 - hiddenPB2) * 5);
				jQuery('.down-arrowPB-photo').css("filter","alpha(opacity=50)");
                jQuery('.down-arrowPB-photo').css("opacity","0.4");	
                 jQuery('.up-arrowPB-photo').css("filter","alpha(opacity=100)");
                jQuery('.up-arrowPB-photo').css("opacity","1");
			}
		},
		function() {
			jQuery('#scroll-contentPB-photo').stop();
			  	  

		}
	);

	jQuery('.scroll-controlsPB-photo a.up-arrowPB-photo').hover(
		function() {
			if (hiddenPB2 > 0) {
				var currentPB2 = getTopPB2();
				jQuery('#scroll-contentPB-photo').animate({ top: "0" }, Math.abs(currentPB2) * 5);
				 jQuery('.up-arrowPB-photo').css("filter","alpha(opacity=50)");
                jQuery('.up-arrowPB-photo').css("opacity","0.4");
                jQuery('.down-arrowPB-photo').css("filter","alpha(opacity=100)");
                jQuery('.down-arrowPB-photo').css("opacity","1");	
			}
		},
		function() {
			jQuery('#scroll-contentPB-photo').stop();
				
		}
	);
}
    
});

/*END PLAYER BIO*/

