	$(document).ready(function(){

		$('#noflashheader').hide();
		$('#noflashnav').hide();
		$('#introcontent').hide();
		$('#introtext').hide();
		
		
	   if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
		   $('#flashcontent').hide();
		   $('#header').hide();
		   $('#introcontent').show();
		   $('#noflashheader').show();
		   $('#noflashnav').show();
		   $('#introtext').show();
		   
		       $('.slideshow').cycle({
						fx: 'fade'
					});
			        $('.outerouter li').hover(function(){
			          $(this).children('.innerinner').stop().animate({
	              opacity: "show", 
	              top: "15"
	              }, "slow");
			          }, function() {
			            $(this).children(".innerinner").stop().animate({
	                opacity: "hide"
	                 }, "fast");
			          });
			          
			          
			             var hide = false;
        $("#who").hover(function(){
            if (hide) clearTimeout(hide);
            $('#howsub').hide();
            $('#clientssub').hide();
            $("#whosub").fadeIn();
        }, function() {
            hide = setTimeout(function() {$("#whosub").fadeOut("slow");}, 250);
        });
        $("#whosub").hover(function(){
            if (hide) clearTimeout(hide);
        }, function() {
            hide = setTimeout(function() {$("#whosub").fadeOut("slow");}, 250);
        });    
        
        
 			             var hide = false;
        $("#how").hover(function(){
            if (hide) clearTimeout(hide);
            $('#whosub').hide();
            $('#clientssub').hide();
            $("#howsub").fadeIn();
        }, function() {
            hide = setTimeout(function() {$("#howsub").fadeOut("slow");}, 250);
        });
        $("#howsub").hover(function(){
            if (hide) clearTimeout(hide);
        }, function() {
            hide = setTimeout(function() {$("#howsub").fadeOut("slow");}, 250);
        });   
        
        
        
 			             var hide = false;
        $("#clients").hover(function(){
            if (hide) clearTimeout(hide);
            $('#whosub').hide();
            $('#howsub').hide();
            $("#clientssub").fadeIn();
        }, function() {
            hide = setTimeout(function() {$("#clientssub").fadeOut("slow");}, 250);
        });
        $("#clientssub").hover(function(){
            if (hide) clearTimeout(hide);
        }, function() {
            hide = setTimeout(function() {$("#clientssub").fadeOut("slow");}, 250);
        });          
         

	};
		
	});
