//Start Jquery
$(document).ready( function() {

    //toggle the mouseover for 
    $("div.block > div >  ul").hide();
   $("div.block > div.hReadMore").hide();
	$('div.block').hover( 
		function(){
			$(this).children('div').children('img').hide();
			$(this).children('div.hReadMore').show();
			$(this).children('div').children('ul').show();
			$(this).children('div').css('border', '0');
			$(this).children('h2').css('background-color', '#554a43');
			
			if ($.browser.msie && $.browser.version.substr(0,1)<8) {
				$(this).children('h2').css('filter', "progid:DXImageTransform.Microsoft.Shadow(color=#999999,direction=180,strength=5)");
				$(this).children('div.hReadMore').css('filter', "progid:DXImageTransform.Microsoft.Shadow(color=#999999,direction=180,strength=5)");
			} else {
				$(this).children('h2').css('-moz-box-shadow', '0px 5px 5px #999');
				$(this).children('h2').css('-webkit-box-shadow', '0px 5px 5px #999');
				$(this).children('div.hReadMore').css('-moz-box-shadow', '0px 5px 5px #999');
				$(this).children('div.hReadMore').css('-webkit-box-shadow', '0px 5px 5px #999');
			}
			
		}, 
		function(){
			$(this).children('div').children('ul').hide();
			$(this).children('div.hReadMore').hide();
			$(this).children('div').children('img').show();
			$(this).children('h2').css('background-color', '#88807b');
			
			$(this).children('div').css('border-left', '1px solid #88807b');
			$(this).children('div').css('border-right', '1px solid #88807b');
			$(this).children('div').css('border-bottom', '2px solid #a40000');
			
			if ($.browser.msie && $.browser.version.substr(0,1)<8) {
				$(this).children('h2').css('filter', "0");
				$(this).css('margin-right', '20px');
			} else {
				$(this).children('h2').css('-moz-box-shadow', '0px 0px 0px #fff');
				$(this).children('h2').css('-webkit-box-shadow', '0px 0px 0px #fff');
				$(this).children('div.hReadMore').css('-moz-box-shadow', '0px 0px 0px #fff');
				$(this).children('div.hReadMore').css('-webkit-box-shadow', '0px 0px 0px #fff');
			}
		} 
	);
	
	$('div#rightNav > ul > li > a').hover( 
		function(){
			if ($.browser.msie && $.browser.version.substr(0,1)<8) {
				$(this).css('filter', "progid:DXImageTransform.Microsoft.Shadow(color=#999999,direction=180,strength=5)");
				$(this).parent().css('margin-bottom', '3px');
			} else {
				$(this).css('-moz-box-shadow', '0px 5px 5px #999');
				$(this).css('-webkit-box-shadow', '0px 5px 5px #999');
			}
		}, 
		function(){
			if ($.browser.msie && $.browser.version.substr(0,1)<8) {
				$(this).css('filter', "0");
				$(this).parent().css('margin-bottom', '8px');
			} else {
				$(this).css('-moz-box-shadow', '0px 0px 0px #fff');
				$(this).css('-webkit-box-shadow', '0px 0px 0px #fff');
			}
		} 
	);	
	
	
	$('div#testimonials').hover( 
		function(){
			if ($.browser.msie && $.browser.version.substr(0,1)<7) {
				$(this).css('border-bottom', '1px solid #a40000');
				$(this).css('height', '123px');
			} else {
				$(this).css('border-bottom', '2px solid #a40000');
				$(this).css('height', '123px');
			}
		}, 
		function(){
			$(this).css('border-bottom', '0');
			$(this).css('height', '125px');
		} 
	);
//end Jquery
});

/*
div {
    filter: 
        progid:DXImageTransform.Microsoft.Shadow(color=#eeeeee,direction=0,strength=7)
        progid:DXImageTransform.Microsoft.Shadow(color=#dddddd,direction=90,strength=10)
        progid:DXImageTransform.Microsoft.Shadow(color=#dddddd,direction=180,strength=10)
        progid:DXImageTransform.Microsoft.Shadow(color=#eeeeee,direction=270,strength=7);
}


*/
