		jQuery(document).ready (function(){

															
								
								
								jQuery("#myHome li:last").addClass("last");
								jQuery("#footerlinks ul li:first").addClass("first");
								jQuery("#footerlinks ul li:last").addClass("last");
								jQuery(".menu ul li:last").addClass("last");
								jQuery("ul#aboutUs li:even").addClass("BoxLeft");
								jQuery("ul#aboutUs li:odd").addClass("BoxRight");
								jQuery("#postContent table tr:odd").addClass("odd");
								//jQuery("ul#myForm ul li:last").addClass("last");
								
								
								//jQuery("#myHome li:nth-child(1)").addClass("first");
								jQuery("#myHome li:nth-child(1) .Box:nth-child(1)").addClass("greenBox");
								jQuery("#myHome li:nth-child(1) .Box:nth-child(2)").addClass("whiteBox");
								jQuery("#myHome li:nth-child(1) .Box:nth-child(3)").addClass("grayBox");
								//jQuery("#myHome li:nth-child(2)").addClass("second");
								jQuery("#myHome li:nth-child(2) .Box:nth-child(1)").addClass("grayBox");
								jQuery("#myHome li:nth-child(2) .Box:nth-child(2)").addClass("whiteBox");
								jQuery("#myHome li:nth-child(2) .Box:nth-child(3)").addClass("whiteBox");
								//jQuery("#myHome li:nth-child(3)").addClass("third");
								jQuery("#myHome li:nth-child(3) .Box:nth-child(1)").addClass("whiteBox");
								jQuery("#myHome li:nth-child(3) .Box:nth-child(2)").addClass("grayBox");
								jQuery("#myHome li:nth-child(3) .Box:nth-child(3)").addClass("whiteBox");
								//jQuery("#myHome li:nth-child(4)").addClass("fourth");
								jQuery("#myHome li:nth-child(4) .Box:nth-child(1)").addClass("whiteBox");
								jQuery("#myHome li:nth-child(4) .Box:nth-child(2)").addClass("whiteBox");
								jQuery("#myHome li:nth-child(4) .Box:nth-child(3)").addClass("grayBox");

								
								jQuery('.whiteBox').hover(
	function () {
		jQuery(this).addClass("whiteBoxHover");
      }, 
      function () {
		jQuery(this).removeClass("whiteBoxHover");
      }
); 
							
				jQuery('.greenBox').hover(
	function () {
		jQuery(this).addClass("greenBoxHover");
      }, 
      function () {
		jQuery(this).removeClass("greenBoxHover");
      }
); 
				
				jQuery('.grayBox').hover(
	function () {
		jQuery(this).addClass("grayBoxHover");
      }, 
      function () {
		jQuery(this).removeClass("grayBoxHover");
      }
); 	
					
					/*jQuery(".close").click(function () {
      jQuery(".loginNow").slideUp("slow");

    });*/
	var cnt=0;				
	jQuery("#btn .show").click(function () {
	cnt=cnt+1;
									
	jQuery(".hide").show();
	jQuery(".show").hide();	
	if(cnt==1){
	jQuery("#maps").append('<iframe id="mapFrame" width="100%" height="278" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=2+norton+st+surry+hills&amp;sll=37.0625,-95.677068&amp;sspn=44.793449,79.013672&amp;ie=UTF8&amp;hq=&amp;hnear=2+Norton+St,+Surry+Hills+New+South+Wales+2010,+Australia&amp;ll=-33.882868,151.213803&amp;spn=0.004952,0.027015&amp;z=16&amp;iwloc=A&amp;output=embed"></iframe>');
	}
   jQuery("#mapHolder").slideToggle('slow');
	  return false;
	  //jQuery("#mapHolder").animate({ 
    //height: "278px"
  //}, 1500 );


    });
	jQuery("#btn .hide").click(function () {
	jQuery(".hide").hide();
	jQuery(".show").show();
	/*jQuery("iframe#mapFrame").remove();	*/				
	 jQuery("#mapHolder").slideToggle('slow');
	
	  return false;

									});
	jQuery(".topBarContent span#accounts, #loginBar .close").click(function () {
		 														   
		  jQuery("#topBar li" ).removeClass('down'); 			
		  jQuery("#accountBar").slideUp(); 
		  var _this = jQuery(this); 
		  var _display = jQuery("#loginBar").css('display');  
		  jQuery("#loginBar").slideToggle("slow" ) //,function()
		  if ( _display == 'block' ) 
		  { 	
				jQuery("#topBar li").removeClass('down'); 
				//jQuery("#topBar li").addClass('up'); 
		  } 
		  else 
		  { 
				jQuery( _this ).parent().addClass('down');  											
	      }
    });
	
	
	
		jQuery(".topBarContent span#client_login, #accountBar .close").click(function () {
		 jQuery("#topBar li" ).removeClass('down'); 													   
		  jQuery("#loginBar").slideUp();
		  var _this = jQuery(this); 
		  var _display = jQuery("#accountBar").css('display');  
		  jQuery("#accountBar").slideToggle("slow" ) //,function()
		  if ( _display == 'block' ) 
		  { 	
				jQuery("#topBar li").removeClass('down'); 
				//jQuery("#topBar li").addClass('up'); 
		  } 
		  else 
		  { 
				jQuery( _this ).parent().addClass('down');  											
	      }
    });



show_icon_title();

});

function show_icon_title()
{
jQuery("#icons li").append("<div style='display: none;'><span></span></div>");
jQuery('#icons li').hover(
	function () {
		var title = jQuery(this).find("img").attr("alt");
        jQuery(this).find("div").fadeIn("200");
		jQuery(this).find("span").text(title);
      }, 
      function () {
		jQuery(this).find("div").fadeOut("200");
      }
);	
}

