jQuery(document).ready(function(){ 
	setHeight();
	//doTimer();
});

function setHeight(){
	var tH = jQuery(document).height();
	var oH = jQuery("#musicLoversBg").height();
	
	jQuery('#musicLoversBg').css({height:tH+'px'});
	
	var cH = jQuery("#musicLoversBg .fixedWidth").height();
	
	if(cH!=0){
		var f = Math.round(tH/oH);
		if(f*oH<tH){f++;}
		//f--;
		for(jj=1;jj<=f+2;jj++){
			jQuery("#musicLoversBg #originalPieces .fixedWidth").clone().prependTo("#musicLoversBg");
		}
	}
}

jQuery(function($) {
	$('#slider .scrollContainer').cycle({
		fx: 'fade',
		timeout: 5000,
		delay: -1500,
		sync: true,
		pager: '#slideNavigation', 
	});
});


var c=0;
var t;
var timer_is_on=0;
function timedCount(){
	if(jQuery(document).height()!=jQuery("#musicLoversBg").height()){
		//setHeight();
		alert('nonono......');
	}
	
	c=c+1;
	t=setTimeout("timedCount()",10000);
}

function doTimer(){
	if (!timer_is_on){
	  timer_is_on=1;
	  timedCount();
	}
}