$(document).ready(function(){
	if($(".change-arrow-left").length > 0){
		$(".change-arrow-left").mouseenter(function(){
			$(this).find("img").animate({opacity:0.7},{queue:false, duration:250, easing:"easeInSine"});
		}).mouseleave(function(){
			$(this).find("img").animate({opacity:0.5},{queue:false, duration:250, easing:"easeInSine"});
		}).mousedown(function(){
			$(this).find("img").animate({opacity:0.5},{queue:false, duration:50, easing:"easeOutSine"});
		}).mouseup(function(){
			$(this).find("img").animate({opacity:0.7},{queue:false, duration:100, easing:"easeOutSine"});
		}).css("cursor","pointer");
		
		$(".change-arrow-right").mouseenter(function(){
			$(this).find("img").animate({opacity:0.7},{queue:false, duration:250, easing:"easeInSine"});
		}).mouseleave(function(){
			$(this).find("img").animate({opacity:0.5},{queue:false, duration:250, easing:"easeInSine"});
		}).mousedown(function(){
			$(this).find("img").animate({opacity:0.5},{queue:false, duration:50, easing:"easeOutSine"});
		}).mouseup(function(){
			$(this).find("img").animate({opacity:0.7},{queue:false, duration:100, easing:"easeOutSine"});
		}).css("cursor","pointer");
		
		/*$(".announcebox-arrow-left").mouseenter(function(){
			$(this).find("img").animate({opacity:0.7},{queue:false, duration:250, easing:"easeInSine"});
		}).mouseleave(function(){
			$(this).find("img").animate({opacity:0.5},{queue:false, duration:250, easing:"easeInSine"});
		}).mousedown(function(){
			$(this).find("img").animate({opacity:0.5},{queue:false, duration:50, easing:"easeOutSine"});
		}).mouseup(function(){
			$(this).find("img").animate({opacity:0.7},{queue:false, duration:100, easing:"easeOutSine"});
		}).css("cursor","pointer");
		
		$(".announcebox-arrow-right").mouseenter(function(){
			$(this).find("img").animate({opacity:0.7},{queue:false, duration:250, easing:"easeInSine"});
		}).mouseleave(function(){
			$(this).find("img").animate({opacity:0.5},{queue:false, duration:250, easing:"easeInSine"});
		}).mousedown(function(){
			$(this).find("img").animate({opacity:0.5},{queue:false, duration:50, easing:"easeOutSine"});
		}).mouseup(function(){
			$(this).find("img").animate({opacity:0.7},{queue:false, duration:100, easing:"easeOutSine"});
		}).css("cursor","pointer");
		*/
	}
	
	$("#footer .middle a").tooltip({showURL:false,positionLeft:false});
	
	$("select, textarea:not(.nouniform), input:not(#mail-go):not(#header #form-field-email):not(.nouniform)").uniform();
	
	
	
});

function showMessage(msg_text){
		
		window.location.href="#top";
		
		$("#notify").fadeOut(0).height($("#main").height());
		$("#message").animate({opacity:0, top:"-600px"},{duration:0, queue:false});
		
		$("#message").html(msg_text);
		
		$("#notify").fadeIn("fast", function(){
			$("#message").animate({opacity:1, top:"300px"},{duration:1000, queue:false, complete:function(){
				setTimeout(function(){
					$("#message").animate({opacity:0, top:"-600px"},{duration:1000, queue:false, complete:function(){
						$("#notify").fadeOut("fast");
					}});
				},2500);
			}});
		});
	}
