//<![CDATA[
$(document).ready(function(){


// Cycle gallery
	$('#slides').cycle({ 
		fx:    'fade', 
		speed:  500,
		timeout: 7000,
		//speedIn:     null,  // speed of the "in" transition 
		//speedOut:    null,  // speed of the "out" transition
		next:   '#next', 
		prev:   '#previous'
		//pause: '#pause'
	});
	
// Unit Map
	
	/**/
	$("#unit9, #unit10, #unit11, #phase2").hover(
		function () {
		$("#unitmapbgb").animate({"opacity": "0.7"}, {duration: 200}); // 0.5 / 500
		}, 
		function () {
		$("#unitmapbgb").animate({"opacity": "0"}, {duration: 0});
	});
		$("#unit9").hover(
			function () {
			$("#unit10, #unit11, #phase2").animate({"opacity": "0"}, {duration: 0});
			}, 
			function () {
			$("#unit10, #unit11, #phase2").animate({"opacity": "1"}, {duration: 0});
		});
		$("#unit10").hover(
			function () {
			$("#unit9, #unit11, #phase2").animate({"opacity": "0"}, {duration: 0});
			}, 
			function () {
			$("#unit9, #unit11, #phase2").animate({"opacity": "1"}, {duration: 0});
		});
		$("#unit11").hover(
			function () {
			$("#unit9, #unit10, #phase2").animate({"opacity": "0"}, {duration: 0});
			}, 
			function () {
			$("#unit9, #unit10, #phase2").animate({"opacity": "1"}, {duration: 0});
		});
		$("#phase2").hover(
			function () {
			$("#unit9, #unit10, #unit11").animate({"opacity": "0"}, {duration: 0});
			}, 
			function () {
			$("#unit9, #unit10, #unit11").animate({"opacity": "1"}, {duration: 0});
		});
		
// Image Borders

	/**/
	$("#left a img , #center a img , #right a img, #headerimg a img").hover(
		function(){
			$(this).animate(
				{"opacity": "0.7"},
				{duration: 500}
			);
		},
		function(){
			$(this).animate(
				{"opacity": "1"},
				{duration: 500}
			);
	});		
	
				
	// transparent hover Panel
	/*$(".slide").hover(
		function () {
		$(this).animate({"opacity": "0.7"}, {duration: "fast"});
		}, 
		function () {
		$(this).animate({"opacity": "1.0"}, {duration: "fast"});
		}
	);
	$("#navigation").hover(
		function () {
		$(this).animate({"opacity": "0.8"}, {duration: "fast"});
		}, 
		function () {
		$(this).animate({"opacity": "1.0"}, {duration: "fast"});
		}
	);*/

}); //close doc ready
//]]>

