
/*
 *  jQuery.event.add(window, "load", function(){	
 */

$(document).ready(function(){
	var swf_box = $(".swf");
	var hoverd = swf_box.find("span.arrowSwf");
	var ua = navigator.userAgent;
	if( ua.match(/MSIE 7|MSIE 8|MSIE 9/ig)){
		swf_box.hover(
			function() {
				var cssObj = { backgroundPosition:"0 -32px", cursor: "pointer" };
				hoverd.fixPng().animate({ opacity: 0.5 }, 300 ).css(cssObj)
				.animate({opacity: 1}, 100);
			},	
			function() {
				var cssObj = { backgroundPosition:"0 0" };
				hoverd.fixPng().animate( { opacity: 0.5 }, 
					{ duration:300, easing:"swing", 
						complete:function(){ hoverd.css(cssObj).animate({opacity: 1}, 100); }
					}
				);
			}	
		);
	}else{
		if(ua.match(/MSIE 6/i)){$(".swf").css("right","4px");}
		swf_box.hover(
			function() {
				var cssObj = { backgroundPosition:"0 -32px", cursor: "pointer" }
				hoverd.animate({ opacity: 0.5 }, 300 ).css(cssObj)
				.animate({opacity: 1}, 100);
			},	
			function() {
				var cssObj = { backgroundPosition:"0 0" };
				hoverd.animate( { opacity: 0.5 }, 
					{ duration:300, easing:"swing", 
						complete:function(){ hoverd.css(cssObj).animate({opacity: 1}, 100); } 
					}
				);
			}	
		);
	}
});

