jQuery.preloadImages=function()
{for(var i=0;i<arguments.length;i++)
{jQuery("<img>").attr("src",arguments[i]).attr("title"," ").load(function(){$('#AlbumFlow').append($(this));});}}
var SlideDuration=3000;var hold=false;function ccc(c)
{hold=true;}
var cf;function update()
{cf.Update();setTimeout("update()",20);}
function slideshow()
{if((cf.targetPos<cf.Covers.length-1)&&!hold){cf.Flip(1);setTimeout("slideshow()",SlideDuration);}else if((cf.targetPos<cf.Covers.length-1)&&hold){setTimeout("slideshow()",SlideDuration);hold=false;}else{setTimeout("slideshow()",SlideDuration*2);cf.GotoFirst();}}
$(window).load(function(){var CoverFlowWidth=document.body.clientWidth-10;var MyCoverFlowDiv=document.getElementById("AlbumFlow");cf=new CoverFlow(MyCoverFlowDiv,300,300,CoverFlowWidth,"#003366",ccc);update();$("#loader").remove();$("#AlbumFlow").show();addCoverFlowReflections();setTimeout("slideshow()",SlideDuration);});