﻿$(function(){

//detect if flash is installed 

	if(!FlashDetect.installed){
		//alert("Flash is required to enjoy this site."); 
		$("#flash").css("display", "none");
		$("#nonFlash").css("display", "block");
	}else{
		//alert("Flash is insalled on your Web browser.");
		$("#nonFlash").css("display", "none");
	}

// slider controls 
	$("#slider").jslide({
		items:1,
		width: 639,
		height: 360,
		transition: 'fade',
		easing: 'swing',
		loop: true,
		slideshow:{
			direction: 'next',
			duration: 0,
			speed: 5000,
			autoplay: true
		}
	});
	

	$("#upcomingMap").live({
        mouseenter:
           function()
           {
				$("#upcoming").attr("src", "../images/AES_hex_orange_hover.png");
				$("#blank").attr("src", "../images/Upcoming_Meetings_rollover_image.png");
           },
        mouseleave:
           function()
           {
				$("#upcoming").attr("src", "../images/AES_hex_orange.png");
				$("#blank").attr("src", "../images/AES_hex_blank.png");
           }
       }
    );
	
	$("#portfolioMap").live({
        mouseenter:
           function()
           {
				$("#portfolio").attr("src", "../images/AES_hex_yellow_hover.png");
				$("#blank").attr("src", "../images/Portfolio_rollover_image.png");
           },
        mouseleave:
           function()
           {
				$("#portfolio").attr("src", "../images/AES_hex_yellow.png");
				$("#blank").attr("src", "../images/AES_hex_blank.png");
           }
       }
    );

	$("#clientsMap").live({
        mouseenter:
           function()
           {
				$("#clients").attr("src", "../images/AES_hex_brown_hover.png");
				$("#blank").attr("src", "../images/Clients_rollover_image.png");
           },
        mouseleave:
           function()
           {
				$("#clients").attr("src", "../images/AES_hex_brown.png");
				$("#blank").attr("src", "../images/AES_hex_blank.png");
           }
       }
    );
	
	

})
