$(function() {

	// Colored ordered lists
	$('ol').addClass('orderedList').children('li').wrapInner('<span></span>'); 
	
	// Automatically call out linked PDF documents so we don't surprise users
	$('li a').each(function(){
		
		var href = $(this).attr('href');
		var useNewWindow = false;
		var parentLi = $(this).parent('li');
		
		if(href.indexOf('.pdf') != -1){
			parentLi.addClass('file_pdf');
			useNewWindow = true;
		} else if(href.indexOf('.dxf') != -1){
			parentLi.addClass('file_dxf');
			useNewWindow = true;
		} else if(href.indexOf('.doc') != -1){
			parentLi.addClass('file_doc');
			useNewWindow = true;
		}
		
		if( useNewWindow ) {
			$(this).click(function(){
				window.open(this.href);
				return false;
			});
		}
		
	});

	$("#footerInner div.webDesignCredit").hide();
	
});