// JavaScript Document


$(document).ready(function(){	

			/*$.ga.load('UA-2837349-26'); 
			
			function analytics(){
				try {
					$.ga._setDomainName("none");
					$.ga._setAllowLinker(true);
					$.ga._trackPageview();
				} catch(err) {}	
			} 
			*/
			
			// select #flowplanes and make it scrollable. use circular and navigator plugins 
			/*
			$("#flowpanes").scrollable({size: 1}).circular().autoscroll({interval:7000, autopause: false}).navigator({ 
		 
				// select #flowtabs to be used as navigator 
				navi: "#flowtabs", 
		 
				// select A tags inside the navigator to work as items (not direct children) 
				naviItem: 'li', 
		 
				// assign "current" class name for the active A tag inside navigator 
				activeClass: 'current' 
		 
			}); 
			*/
			
			$('.slideshow').cycle({
				timeout: 4000,
				next:   '#next2', 
    			prev:   '#prev2'
			});
			
			function init_gallery(){
			
				$(".car_image_box a, .fancy").fancybox(
					{
						'padding'			: 1,
						'zoomOpacity'			: true,
						'overlayShow'			: false,
						'zoomSpeedIn'			: 500,
						'zoomSpeedOut'			: 500
				}); 
						
			}
			
			init_gallery();
						
						
			//$(".datepicker").datepicker();
			
		   	$('.small_video object').attr('width', 250);
			$('.small_video object').attr('height', 190);
			$('.small_video object embed').attr('width', 250);
			$('.small_video object embed').attr('height', 190);
			$('.small_video object embed').attr('wmode','transparent');
						
			
});
