            
	
			
			
           /*         
		   
		   ** find jquery 1.6.1 compatible tooltip
		 $(document).ready(function() {
		$("#tags a[title]").tooltip();
	//	$('a[title]').qtip();
   // $('a[title]').qtip();
    });
	
	*/
	
	var timezone;
	var region;
	
	
	
	
function setRegion(region){
	timezone=region;
	if (timezone==1){
		$("#portlandtime").fadeTo('slow',1);
		$("#montecarlotime").fadeTo('slow', 0.5);
	}else if(timezone==2){
		$("#portlandtime").fadeTo('slow',0.5);
		$("#montecarlotime").fadeTo('slow', 1);	
	}
	updateClock();
}





function updateClock ()
    {	

	if (timezone==1){
		var currentTime = getDate(-7); // time for portland 
	}else if(timezone==2){
		var currentTime = getDate(2); // time for monte carlo
	}

    var currentHours = currentTime.getHours()-1;
    var currentMinutes = currentTime.getMinutes ( );
    var currentSeconds = currentTime.getSeconds ( );
 
    // Pad the minutes and seconds with leading zeros, if required
    currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
    currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;
 
    // Choose either "AM" or "PM" as appropriate
    var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";
 
    // Convert the hours component to 12-hour format if needed
    currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
 
    // Convert an hours component of "0" to "12"
    currentHours = ( currentHours == 0 ) ? 12 : currentHours;
 
    // Compose the string for display
    var currentTimeString = currentHours + ":" + currentMinutes + ":" + currentSeconds + " " + timeOfDay;
	
	
	if (currentHours < 10) {
		$('#clockhour').animate({width: '17px'}, 200);
	} else if (currentHours > 9) {
		$('#clockhour').animate({width: '35px'}, 200);
	}
			
			
			
  $("#clock #clockhour").html(currentHours);
  $("#clock #clockmin").html(currentMinutes);
  $("#clock .ampm").html(timeOfDay);
  
  
 }
 
$(document).ready(function()
{
		image_count=$("#about-jcarousel li").length ;
	
	$("#about-jcarousel").css("width", (image_count * 775) +"px");
	$("#about-jcarousel li img").fadeIn('slow');
	
		

	   setInterval('updateClock()', 1000);
   setRegion(1);
});




function contactmenu(){
	
	
	if ($('#contact_change').hasClass('make_contact')){
	
	$('#contact_change').removeClass('make_contact').addClass('make_contact_up');
	}else{
	
	$('#contact_change').removeClass('make_contact_up').addClass('make_contact');
	}
	
	
	
	/*$('#contact_home').animate({"height": "toggle", "opacity": "toggle"}, "slow", "easeInOutQuint" );*/
		$('#contact_home').animate({"height": "toggle", "opacity": "toggle"}, "slow" );

	
	
	
	
	}
   
		   
		   
    $(document).ready(function(){

							$('.home_over').val('').append($("img", "#home-jcarousel li:nth-child(2) a").attr("alt")+'<div class="arrow"></div>');
   
		       $('.jcarousel-control a').bind('click', function() {
				   
				   $('.jcarousel-control a').each(function(index) {
 						$(this).removeClass("active");  
 					});
  
				   
				   
		                $(this).addClass("active");

		   
		   });
		   $(".home_over").stop().animate({top:'0px',opacity: '0'},{queue:true,duration:1});

		   	//Caption Sliding (Partially Hidden to Visible)
				$('#home-jcarousel li a').hover(function(){
				$(".home_over").stop().animate({opacity: '1'},{queue:true,duration:300});




				}, function() {
				
//$('.home_over').html('');
				//	$(".home_over").fadeIn('slow',function(){ $(this).animate({'top': '+120px'},'slow');});
					$(".home_over").stop().animate({opacity: '0.85'},{queue:true,duration:300});





				});
		   
		   
        });
		   
		   

