$(document).ready(function() {
	$('.slideshow').cycle();

	$('#slideshowHolder').jqFancyTransitions({
				effect: 'zipper',
				width: 937,
				height: 428,
				strips: 40,
				stripDelay: 70,
				direction: 'random'
	});
	
	$("a.flvpreview").fancybox({
		'padding'			: 0,
		'autoScale'			: false,
		'transitionIn'		: 'elastic',
		'transitionOut'		: 'elastic',
		'width'		: 338,
		'height'		: 286,
		'type'			: 'iframe'
	});
	
	if ( ($('div#map').length == 1) && (address != '') )
	{
		var map = null;
		var geocoder = null;
		var address = '14320 Ventura Blvd, Suite 320 Sherman Oaks, CA  91423';

	
		if (GBrowserIsCompatible()) {
			map = new GMap2(document.getElementById("map"));
			geocoder = new GClientGeocoder();
			geocoder.getLatLng(
				address,
				function(point) {
					map.setCenter(point);
					map.setZoom(16);
					map.setMapType(G_NORMAL_MAP);
					map.addControl(new GSmallMapControl());
	
					var marker = new GMarker(point);
					map.addOverlay(marker);

				}
			);
		}	
	}	
});

