/**
 * @author jonathanf
 */

$(document).ready(function(){

	
	$(".drop-down").hover(function(){
		$(".menu",this).show(1);
	},
	function(){ 
		$(".menu",this).hide(1);
	}
	
	);

});

function getKeyCode(e) {
	if (window.event) return window.event.keyCode;
		else if (e) return e.which;
			else return null;
}

function keyRestrict(e, validchars) {
	var key='', keychar='';
	key = getKeyCode(e);
	if (key == null) return true;
	keychar = String.fromCharCode(key);
	keychar = keychar.toLowerCase();
	validchars = validchars.toLowerCase();
	if (validchars.indexOf(keychar) != -1) return true;
	if ( key==null || key==0 || key==8 || key==9 || key==13 || key==27 ) return true;
	return false;
}











/*

sfHover = function() {
	var sfEls = document.getElementsByClassName("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
*/