﻿/* hover intent */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(3($){$.I.J=3(f,g){4 c={u:7,o:K,v:0};c=$.w(c,g?{x:f,y:g}:f);4 d,8,9,l;4 h=3(a){d=a.z;8=a.A};4 i=3(a,b){b.2=q(b.2);5((B.C(9-d)+B.C(l-8))<c.u){$(b).D("r",h);b.m=1;n c.x.E(b,[a])}F{9=d;l=8;b.2=s(3(){i(a,b)},c.o)}};4 j=3(a,b){b.2=q(b.2);b.m=0;n c.y.E(b,[a])};4 k=3(e){4 p=(e.G=="t"?e.L:e.M)||e.N;O(p&&p!=6){P{p=p.Q}R(e){p=6}}5(p==6){n S}4 a=H.w({},e);4 b=6;5(b.2){b.2=q(b.2)}5(e.G=="t"){9=a.z;l=a.A;$(b).T("r",h);5(b.m!=1){b.2=s(3(){i(a,b)},c.o)}}F{$(b).D("r",h);5(b.m==1){b.2=s(3(){j(a,b)},c.v)}}};n 6.t(k).U(k)}})(H);',57,57,'||hoverIntent_t|function|var|if|this||cY|pX||||||||||||pY|hoverIntent_s|return|interval||clearTimeout|mousemove|setTimeout|mouseover|sensitivity|timeout|extend|over|out|pageX|pageY|Math|abs|unbind|apply|else|type|jQuery|fn|hoverIntent|100|fromElement|toElement|relatedTarget|while|try|parentNode|catch|false|bind|mouseout'.split('|'),0,{}))


/* Queue the Site Load Events
===================================================================================== */
addLoadEvent(initMenu);
addLoadEvent(initKey);
addLoadEvent(initFlashBorders);
  
function initKey() {
	$("#hole img.key").toggle( 
		function() {
			$("#hole div.legend").slideDown();
		},
		function() {
			$("#hole div.legend").slideUp();
		}
	);

}

function initMenu() {
    $(".menu ul").hide();
    
	$(".menu h3:first").click( function() {
		if ($(".menu ul:first:visible").size() == 0) {
			$(".menu ul:first").slideDown(200);
		} else {
			$(".menu ul:first").slideUp(200);
			$(".menu ul").hide();
		}
	});
	
	$(".menu>ul>li").hoverIntent(
	 {
		sensitivity: 5, interval: 150, timeout: 550,
		over: function() {
			$(".menu ul ul:visible").hide();
			$(this).find("ul").slideDown(200);
		},
		out: function() {
			$(this).find("ul").hide();
		}
	});
	$(".menu li").hover(
		function() {
			$(this).addClass("hv");
		},
		function() {
			$(this).removeClass("hv");
		}
	);
	    
		/*,
	$(".menu h3:first").hoverIntent(
	 {
		sensitivity: 5, interval: 0, timeout: 550,
		over: function() { 
			$(".menu li").removeClass("hv").find("ul").hide();
			$(".menu ul:first").show();
		},
		out: function() { 
		
		}
		}
	);
   
   $(".menu ul").hoverIntent({
    sensitivity: 5, interval: 0, timeout: 550,
		over: function() { 
		
		},
		out: function() {
			$(".menu ul").hide();
			$(".menu li.hv").removeClass("hv");
		}
		});
	
	
	$(".menu li").each(function(){
            if ($(this).find("ul").size() > 0) {
                
                $(this).hoverIntent({
									sensitivity: 10, interval: 11, timeout: 150,
									over: function() { 
										$(this).addClass("hv").find("ul").show();
									},
									out: function() {
										$(this).removeClass("hv").find("ul").hide();
									}
									});
		        }
	    });
	    
	$("#hole .key").hoverIntent(function(){$("#course").show();},function(){$("#course").hide();});
        */
}
