$(document).ready(function() {

// NOT supporting ie6 one bit
var IE6 = (navigator.userAgent.indexOf("MSIE 6")>=0) ? true : false;
if(IE6){
	$(function(){
	window.location= 'http://ie6funeral.com/';		
	});
}


// External links
$('a[rel$="ext"]').click(function(){
  this.target = '_blank';
});


// Clients page
if ($('div[id^="job"]').length >0) {
	
	$('div[id^="job"]').hide();
	
	// If hash for bookmarking
	if(window.location.hash) {
		var hash = window.location.hash;
		$(hash).show('fast');
		$('a[href="'+hash+'"]').addClass('on');
	};
	
	
	$('a[href^= "#job"]').click(function() {
	
		$('div[id^="job"]').hide();
		$('a[href^= "#job"]').removeClass('on');
		
		var thisTargetFaq = $(this).attr('href');
		$(thisTargetFaq).show('fast');
		$(this).addClass('on');
		//return false;
	});
};


/* ---- 
email from validation 
if we're on the contact page? 
---- */

if ( $('#form1').length > 0 ) {
	$('#form1').validate({ 
	rules: { 
	name: 'required', email: 'required email' // jquery validation plug in 
	},
	messages: { 
	name: ' &nbsp;*Required',
	email: ' &nbsp;*Not A Valid Email Address'
	}
	});

	console.log('hit me');
}
// END contact form




});
// END dom ready
