var background_offset = 0;
function background_animation(){
	background_offset++;
	if(element0)
	{
		element1.style.backgroundPosition = background_offset+'px';
		element2.style.backgroundPosition = background_offset*1.5+'px';
		element3.style.backgroundPosition = background_offset*3+'px';
		element4.style.backgroundPosition = '-'+background_offset+'px';
	} else {
		element4.style.backgroundPosition = '-'+background_offset+'px';
	}
}
function bg_animation_start() {
	setInterval("background_animation()",50);
}

$().ready(function(){
	//if(!$.browser.msie && $.browser.version.substr(0,1)<7) {
		element0 = document.getElementById('slideshow_container');
		element1 = document.getElementById('wave1');
		element2 = document.getElementById('wave2');
		element3 = document.getElementById('wave3');
		element4 = document.getElementById('career_opportunity_banner');
		
		bg_animation_start();
	//}
});
