$(document).ready(function(){

	var $elie = $("#spin1, #spin2");
	rotate(0);
	function rotate(degree) {

		  // For webkit browsers: e.g. Chrome
		$elie.css({ WebkitTransform: 'rotate(' + degree + 'deg)'});
		  // For Mozilla browser: e.g. Firefox
		$elie.css({ '-moz-transform': 'rotate(' + degree + 'deg)'});
		  // For Internet Explorer
		$elie.css({ '-ms-transform': 'rotate(' + degree + 'deg)'});

		  // Animate rotation with a recursive call
		setTimeout(function() { rotate(++degree); },5);
	}
	
	$("#click-exp").click(function(e){
		e.preventDefault();
		$("#history,#staff,#message").fadeOut();
		$("#exp").fadeIn();
	});
	$("#click-hist").click(function(e){
		e.preventDefault();
		$("#exp,#staff,#message").fadeOut();
		$("#history").fadeIn();
	});
	$("#click-staff").click(function(e){
		e.preventDefault();
		$("#history,#exp,#message").fadeOut();
		$("#staff").fadeIn();
	});
	$("#click-msg").click(function(e){
		e.preventDefault();
		$("#history,#staff,#exp").fadeOut();
		$("#message").fadeIn();
	});
	
	$('body').target({	
		browser: 'ie',
		ver: '7',
		action: 'relocate',
		url: 'notie7.html'
	});
	
	$(".close").click(function(e){
		e.preventDefault();
		$("#cover").fadeOut();
	});
	$("#pg").click(function(e){
		e.preventDefault();
		$("#cover").fadeIn();
	});
	
});
