$(document).ready(function(){ 

if($("#bg-bottom").height() > 1000){
$("#bg-bottom").addClass("bg-bottom");
}

$('.hiddenTemp').removeClass('hiddenTemp');

$('#slider_news') 
.before('<div id="pager">') 
.cycle({ 
fx:     'scrollLeft', 
speed:  'slow', 
timeout: 6000, 
pause: true,
pager:  '#pager' //auto generates pagination
});

$('#slider_artist') 
.before('<div id="pager">') 
.cycle({ 
fx:     'turnUp', 
speed:  'slow', 
timeout: 4000, 
pause: true,
pager:  '#pager' //auto generates pagination
});



$(".slider").easySlider({
loop: false,
orientation: 'vertical',
autoplayDuration: 0,
autogeneratePagination: false,
restartDuration: 0,
nextId: 'next',
prevId: 'prev',
pauseable: true
});

/* Replacement calls. Please see documentation for more information. */

if(typeof sIFR == "function"){

// This is the preferred "named argument" syntax
	sIFR.replaceElement(named({sSelector:".sFlash", sFlashSrc:"../flash/tradegothic.swf", sWmode:"transparent", sColor:"#888888", sBgColor:"#000000", sHoverColor:"#CCCCCC"}));
};


/**PAGINATION
* Callback function that displays the content.
*
* Gets called every time the user clicks on a pagination link.
*
* @param {int}page_index New Page index
* @param {jQuery} jq the container with the pagination links as a jQuery object
*/

function pageselectCallback(page_index, jq){
var new_content = $('#hiddenresult div.result:eq('+page_index+')').clone();
$('#Searchresult').empty().append(new_content);
return false;
}

Cufon.replace('h1');
Cufon.replace('#mainLeft h3');
Cufon.replace('#layout01 #right .col1 h3, #layout01 #right .col2 h3');
Cufon.replace('#layout02 #right .col1 h3, #layout02 #right .col2 h3, #layout02 #right #col-wide h2, #layout02 #right #featureRelease h2');
Cufon.replace('#layout04 #right  h2, #layout04 #right .release-latest h3');
Cufon.replace('.canvas');

/** 
* Callback function for the AJAX content loader.
*/

	
});


