$(document).ready(function() {
		$('div#content img:first').css('marginTop', 0);
		$('div#content p > img').parent('p').css('margin','0px');
		$('div.right-content-1 img:gt(0)').addClass('doc');
		$('div.right-content-1 p:eq(1)').addClass('second-p');
		$('div.right-content-1 p:last').addClass('doc-p');
		$('div.right-content-1 p > img').parent('p').css('margin','0px 0px 5px 0px');
	//_________ end p and img tag margin manipulation _________\\
	if(navigator.platform.indexOf("Win32") != -1){
		$('#header').addClass('windows');
		jQuery.each(jQuery.browser, function(i) { //pc browsers
	  		if($.browser.mozilla){
				$('#home_left h4').css('font-weight','bold');
				$('#home_pre_content h3').css({'font-weight':'bold','font-size':'14px'});
				$('#home_right div.right-content-header').css({'font-weight':'bold','font-size':'14px'});
				$('#home_right div.right-content-1 h3 a ').css({'font-weight':'bold','font-size':'12px'});
				$('#home_right div.right-content-2 h3 a ').css({'font-weight':'bold','font-size':'12px'});
				$('#home_left p').css('margin-bottom','10px');
				$('#home_left h4').css('margin-bottom','6px');
	  		}
	  		else if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){
				$('#header h1.site-title').css('font-size','22px');
	     		$('#home_left h4').css('font-weight','bold');
				$('#home_pre_content h3').css({'font-weight':'bold','font-size':'13px'});
				$('#home_right div.right-content-header').css({'font-weight':'bold','font-size':'14px'});
				$('#home_right div.right-content-1 h3 a ').css({'font-weight':'bold','font-size':'12px'});
				$('#home_right div.right-content-2 h3 a ').css({'font-weight':'bold','font-size':'12px'});
				$('#home_left p').css('margin-bottom','10px');
				$('#home_left h4').css('margin-bottom','6px');
				$('#home_pre_content div.area-1-body').css('min-height','90px');
				$('#home_pre_content div.area-2-body').css('min-height','90px');
				$('#home_pre_content h3').css('margin-bottom','3');
	  		}
	  		else if(navigator.userAgent.toLowerCase().indexOf('safari') > -1){
				$('#header h1.site-title').css('font-size','22px');
	     		$('#home_left h4').css('font-weight','bold');
				$('#home_left p:last').prev('p').css({'line-height': '16px','margin-bottom':'15px'});
				$('#home_pre_content h3').css({'font-weight':'bold','font-size':'13px'});
				$('#home_right div.right-content-header').css({'font-weight':'bold','font-size':'14px'});
				$('#home_right div.right-content-1 h3 a ').css({'font-weight':'bold','font-size':'12px'});
				$('#home_right div.right-content-2 h3 a ').css({'font-weight':'bold','font-size':'12px'});
				$('#home_pre_content div.area-1-body').css('min-height','95px');
				$('#home_pre_content div.area-2-body').css('min-height','93px');
	  		}
		});
	}
	else{
		jQuery.each(jQuery.browser, function(i) { //mac browsers
	  		if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){
				$('#home_left').css({'line-height':'18px','font-size':'14px'});
	  		}
	  		else if(navigator.userAgent.toLowerCase().indexOf('safari') > -1){
	     		$('#home_left').css({'line-height':'16px','font-size':'13px'});
				$('#home_left p:last').prev('p').css('margin-bottom','15px');
				$('#home_pre_content h3').css({'font-weight':'bold','font-size':'13px'});
				$('#home_pre_content div.area-1-body').css('min-height','95px');
				$('#home_pre_content div.area-2-body').css('min-height','93px');
	  		}
		});
	}
//_________ end super browser detection _________\\
	$('#main_nav li').hover(function(){//add hoverIntent later
			$(this).find('ul.sub-nav').stop().css('display','block').fadeTo(500,0.9);
		},
	function(){
		$(this).find('ul.sub-nav').stop().fadeTo(500,0, function(){ $(this).css('display','none'); });
	});
//_________ end main nav drop downs _________\\
	$('p#login_required').hide();
//_________ end login form fixes _________\\
	$('#registration_form input[type=radio]').addClass('radio');
//_________ end registration form radio input mod _________\\
	$('table.form-table td:contains("Date Established")').next('td').children().addClass('date');
		$('table.form-table td:contains("Date Incorporated")').next('td').children().addClass('date');
//_________ end prequal date fields mod _________\\
	$('form#contact_form_form input.contact-submit').hover(function(){
		$(this).attr('src','accelsite/themes/temp999/images/contact_send_on.jpg');
	},
	function(){
		$(this).attr('src','accelsite/themes/temp999/images/contact_send.jpg');
	});
	//_________ end contact send button mod _________\\
});
