//Facebox
	 jQuery(document).ready(function($) {
	 // $('a[rel*=facebox]').facebox();
	  $("a[title='trigg']").facebox();
	
	  if ($('#subContent').html()!="Home"){
		var inner = $('#subContent').html();
		$("#contentContent #subContent").show();
		$("#contentContent #slideshow").hide();
		$("#contentContent #best").hide();		
	  }else{
		$("#contentContent #subContent").hide();
		$("#contentContent #slideshow").show();
		$("#contentContent #best").show();
	}
/*	if ($.trim($('.showproducts').html())!="Service List"){

		$("#products").css({display:"none"});
      }else{
		
		$("#products").css({display:"block"});
	}
*/
//alert($('.showproducts').html() + ': ' + ($.trim($('.showproducts').html())!="Service List"));
	$("#leftside .tooltip").click(function () {
      	var gallery = $(this).html();
		var yurl = "http://www.uniqueelevator.biz/index.php?page=gallery-"+gallery;
    		$("#photogallery #bg").load(yurl);
	      return false;
 
       });


	//tooltips
	$('.tooltip').Tooltip({ 
    	track: true, 
	    delay: 100, 
    	showURL: false, 
	    opacity: 1, 
	    fixPNG: true, 
    	showBody: " - ", 
    	top: -15, 
    	left: 0 
	});


	}




	);
	
	
jQuery(function() { 
  
		// simple accordion
		
		jQuery('#a1a,#b1b').accordion({	
			autoheight: false,
			fillSpace: false
			
		});
		
		$("#a1a,#b1b").accordion("activate",0);
               
		//instantiate("#a1a");
	
	});
	
	function instantiate(ele){
		/*** ADDED BY VALERIE TO ACCOMMODATE 50 PIXEL BOTTOM**/
		/** this forces the fix on the first element when loading the page*/
		var redheight = $(ele).children('.red').height();
		var greenheight = redheight-50;
		var blueheight = 50;
		$(ele).children('.red').children('.green').css( { height: greenheight}).show();	
		$(ele).children('.red').children('.blue').css( { height: blueheight}).show();
				
	}