$(document).ready(
	function(){

	//tag IE browser for CSS fixes and shout at IE6 users

		if ( jQuery.support.tbody  != true )
			{
			   //alert('bingo!');
				$('body').addClass('ie');
				$('body').prepend('<!--[if IE 6]><div style="background-color:yellow; text-align:center;">Please consider upgrading your browser. IE6 is nearly nine years old and cannot render modern web content. You might enjoy using <a href="http://www.mozilla.com/en-US/" >Firefox</a>, <a href="http://www.google.com/chrome">Chrome</a> or <a href="http://www.apple.com/safari">Safari</a>, all of which are free.</div><![endif]-->  ');
			};
	   
	   
	//DD Roundies (rounds corners in all browsers)
		DD_roundies.addRule('#content', '24px', true);
		DD_roundies.addRule('#content img, .pullquote','12px', true);

	//tab focus for accessibility
	$('a')
		.focus(function () {
						 $(this).css('border','yellow dotted 1px')
						 }
					)
		.blur(function () {
						$(this).css('border','none')
						}
					);


//PAGE SPECIFIC SCRIPTS
//	run after check on h1 class
//---------------------
	
	//Wellness Studio
	
		if ( $('h1').hasClass('wellness-studio') ) 
			{
			  	//alert('gottit');
				$('div.definition p').css('display','none');
				$('h1.wellness-studio').next('p').css('float','right').next('h3').css('clear','both');
				$('div.definition h4')
//					.hover( function () {
//						$(this).append('<span class="downArrow">&nbsp;&darr;</span>') ;
//						}, function () {
//						$(this).next('.downArrow').remove();
//					})
					.click( function() {
						$(this).next('p').slideToggle('slow');
					});
			};
		
	//--------------
	
	//Boutique
		if ( $('h1').hasClass('boutique') )
			{
				//alert('gottit');
				
				DD_roundies.addRule('#slider, .inside', '24px', true);
				DD_roundies.addRule('#slider #left-shadow', '12px 0px 0px 12px', true);
				DD_roundies.addRule('#slider #right-shadow', '0px 12px 12px 0px', true);
				$.ajax( {
						type: "GET",
						url: "-/scripts/slider.js",
						dataType: "script",
					   	//success: function () {
						//	alert('gottit');
						//	}
						});
			};

	//--------------
	
	

///////////////////////
// end main function
	}
// end document.ready
);
