var startingMenu = 1;

$(document).ready(function(){
		
	//start the nav
	$("#navigation ul").lavaLamp(
			{ 
				fx: "backout", 
				speed: 700
				
			}
	);
	
	
	//fix transparent pngs for ie6
	jQuery.ifixpng('/assets/images/pixel.gif');
	//$('#cu3er-container, #navigation, #header img').ifixpng();
	$('#header img, #navigation, #cu3er-container').ifixpng();
	
	//start cu3er
	var flashvars = {};
	flashvars.xml = "/assets/xml/cu3er_config.xml";
	flashvars.font = "/assets/flash/font.swf";
	var attributes = {};
	attributes.wmode = "transparent";
	attributes.id = "slider";
	swfobject.embedSWF("/assets/flash/cu3er.swf", "cu3er-inside", "830", "300", "9", "/assets/flash/expressInstall.swf", flashvars, attributes);

	//scroll the background
	setInterval ( "scrollbackground()", 100 );
	

});

var offset = 0;
var offset2 = 0;
function scrollbackground() {
	//increase the offset by 1...
	offset = offset + .5;
	offset2 = offset2 + 1;
	
	if ( offset >= 2000 )
	{
		offset = 0;
	}
	if ( offset2 >= 2000 )
	{
		offset2 = 0;
	}
	//change the background position...
	$('html').css("background-position", ""+ offset + "px 0px");
	$('body').css("background-position", ""+ offset2 + "px 0px");
	
	//scrollTimer();
}
