// JavaScript Document
//<![CDATA[
var page = "";
var sel = "";
var pagesArr = Array();
var paneArr = Array();

jQuery.preloadImages = function()
{
	for(var i = 0; i<arguments.length; i++)
	{
		jQuery("<img>").attr("src", arguments[i]);
	}
}


animatebg = function(){
		//alert("anim");
	//animate blocks
		$("#block_a").animate({ 
			height: "100%"
		  }, 1000 );
		$("#block_b").animate({ 
			height: "80%"
		  }, 800 );
		$("#block_c").animate({ 
			height: "62%"
		  }, 500 );
		$("#block_d").animate({ 
			height: "69%"
		  }, 500 );
		$("#block_e").animate({ 
			height: "90%"
		  }, 700 );
		  
     // Stop the link click from doing its normal thing
       return false;	  
	   
}

$(document).ready(function(){
	
	
	//preload images
	$.preloadImages("_img/bg01.jpg");
	
	$("#mycontroller").jFlow({
		slides: "#scrollwrap",
		controller: ".jFlowControl", // must be class, use . sign
		slideWrapper : "#pane", // must be id, use # sign
		selectedWrapper: "jFlowSelected",  // just pure text, no sign
		width: "320px",
		height: "175px",
		duration: 600,
		prev: ".jFlowPrev", // must be class, use . sign
		next: ".jFlowNext" // must be class, use . sign
	});
	
	animatebg();


	 
   });
 //]]>

 
 
 
 