$(document).ready(function() {
	$("#nav li").hover(
	  	function () {//over
			$(this).addClass('over');
	  	}, 
	  	function () {//out
	    	$(this).removeClass('over');
	  	}
	);
	
	$('#nav li:has(ul)').addClass('parent').children('a').click(function(e){
		e.preventDefault();
	});
	
	if($('body').attr('class') == ''){
		$('#nav li:first-child').addClass('here');
	}
	
	
	$(".block").hover(
	  	function () {//over
			$(this).addClass('over');
	  	}, 
	  	function () {//out
	    	$(this).removeClass('over');
	  	}
	);

	
	
	$(document).ready(function() {
		
		$('body').addClass('js');
		$("input, textarea, select").uniform();
		
		$(".specs li:even").addClass("even");
		
		
	
		
		$("a[href$=.pdf]").addClass("pdf");
		$("a[href$='.txt'], a[href$='.rft']").addClass("txt");
		$("a[href$='.doc'], a[href$='.docx']").addClass("word");
		$("a[href$='.xls'], a[href$='.xlsx']").addClass("excel");
		$("a[href$='.ppt'], a[href$='.pptx']").addClass("powerpoint");
		$("a[href$=.zip], a[href$='.rar']").addClass("archive"); 
	 	//$("a[href^=mailto:]").addClass("mailto");
	 	$('a').filter(function() {
			//Compare the anchor tag's host name with location's host name
			return this.hostname && this.hostname !== location.hostname;
		}).attr("target", "_blank");
	});
	
});




