(function($) {
	$(document).ready(function() {
			if(document.getElementById('wave')!=null && document.getElementById('wave')!=undefined && document.getElementById('wave')!='')
			{
		$("#wave").css('backgroundImage', 'url(wp-content/themes/hurricane/images/wave.png)');

		$('#wave').sprite({fps: 5, no_of_frames: 3})

		
		var overus = function () {
 			$('#wave').css('backgroundImage', 'url(wp-content/themes/hurricane/images/wave.png)'); 			
 		
			}
		
		var outus = function () {	
				   $('#wave').css('backgroundImage', 'url(wp-content/themes/hurricane/images/wave_static.png)'); 
			}
		
			$("#wave").mouseover(function(){
				if(deskInAnimation) return;
		        overus()				});
			$("#wave").mouseout(function(){
				if(deskInAnimation) return; 
		        outus() });
	
			}
	
	});
})(jQuery);
// JavaScript Document
var deskInAnimation = true;
function animation() {

var manager = new jsAnimManager(40); 

myimage = document.getElementById("wave");

manager.registerPosition("wave");

//PIVOT 4307

var ImageOpacity = manager.createAnimObject("wave");
var ImagePosition = manager.createAnimObject("wave");

ImagePosition.add({property: Prop.position, to: new Pos(+345,75), duration: 0});
ImagePosition.add({property: Prop.positionSemicircle(false), to: new Pos(+995,75), duration: 2000});  
ImagePosition.add({property: Prop.positionSemicircle(true), to: new Pos(+1645,75), duration: 2000, onComplete: function() { document.getElementById("wave").style.backgroundImage='url("wp-content/themes/hurricane/images/wave_static.png")'; deskInAnimation = false;}});  


}

