function addLoadEvent(func) {var oldonload = window.onload;if (typeof window.onload != 'function') {window.onload = func;} else {window.onload = function() {oldonload();func();}}}/* pg-bio */$(document).ready(function() {	$('div#wiki_frame').hide();	$('h4#jm_bio').click(function() {		 $(this).addClass('current');			 $('h4#jm_wiki').removeClass('current');		$('#wiki_frame').hide('fast');		$('body#pg-bio div#s_artistbio').show('slow');			});	$('h4#jm_wiki').click(function() {		$(this).addClass('current');			$('h4#jm_bio').removeClass('current');		$('body#pg-bio div#s_artistbio').hide('fast');		$('#wiki_frame').show('slow');	});});/***************************************************************************************//* pg-home img_slider01 */$(function() {  		   	   $('<div id="sliderControls"><a href="" id="btn_prev"><span>Prev</span></a><span id="btn_pause">Stop</span><a href="" id="btn_next"><span>Next</span></a></div><div id="sliderPagination"></div><div id="img_slider01" class="pics"></div>').insertAfter('body.pg-home div#s_gallery');$('div#s_gallery a:not(:first)').clone().appendTo('#img_slider01');$('div#img_slider01 img').removeClass('image');$('body.pg-home div#s_gallery.s_channel h5').insertBefore('#sliderControls');});$(function() {$('#btn_pause').toggle( 	function() {	$('#img_slider01').cycle('pause');	$(this).text('Play');	$(this).css({'background-image':"url(/_shared/images/btn-paus.png)"});		},	function() {	$('#img_slider01').cycle('resume');	$(this).text('Stop');	$(this).css({'background-image':"url(/_shared/images/btn-play.png)"});							 });    $('#img_slider01').cycle({        fx:     'fade',        speed:   400,        timeout: 3000,        next:   '#btn_next',        prev:   '#btn_prev'		//pager:  '#sliderPagination'     });	});/***************************************************************************************//* keep footer at the bottom when there's no content; NOT JQUERY; in CSS for footer put position: relative (it's for Safari) */function getWindowHeight() {			var windowHeight = 0;			if (typeof(window.innerHeight) == 'number') {				windowHeight = window.innerHeight;			}			else {				if (document.documentElement && document.documentElement.clientHeight) {					windowHeight = document.documentElement.clientHeight;				}				else {					if (document.body && document.body.clientHeight) {						windowHeight = document.body.clientHeight;					}				}			}			return windowHeight;		}		function setFooter() {	if (document.getElementById) {		var windowHeight = getWindowHeight();		if (windowHeight > 0) {			var hdHeight = document.getElementById('hd').offsetHeight;			var bdHeight = document.getElementById('bd').offsetHeight;			var contentHeight = hdHeight + bdHeight;			var footerElement = document.getElementById('ft'); // IT SHOULD BE #ft			var footerHeight  = footerElement.offsetHeight;			if (windowHeight - (contentHeight + footerHeight) >= 0) {				footerElement.style.position = 'relative';				footerElement.style.top = (windowHeight - (contentHeight + footerHeight)) + 'px';			}			else {				footerElement.style.position = 'static';			}		}	}}addLoadEvent(setFooter);/***************************************************************************************//* popUp window */function popupplayer() { var links = document.getElementsByTagName("a");	for (var i=0; i < links.length; i++) {				if (links[i].className == "popup") {					links[i].onclick = function() {					openPopUp(this.getAttribute("href"));					return false; 					} 			}	}}addLoadEvent(popupplayer);function openPopUp(linkURL) {window.open(linkURL,'popup','width=650,height=360')}
