	/* Replace browser type with Cufon type */
	Cufon.replace('h2, h3, #header_call, #nav a, #order', { hover: true, textShadow: '1px 1px 0 #5f3b1b'});
		
    $(document).ready(function() {		

		/* PrettyPhoto lightbox  */
		$("a[rel^='prettyPhoto']").prettyPhoto({
			animationSpeed: 'normal', /* fast/slow/normal */
			opacity: 0.80, /* Value between 0 and 1 */
			showTitle: false, /* true/false */
			counter_separator_label: ' of ', /* The separator for the gallery counter 1 "of" 2 */
			theme: 'light_square', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
			markup: '<div class="pp_pic_holder"> \
						<div class="pp_top"> \
							<div class="pp_left"></div> \
							<div class="pp_middle"></div> \
							<div class="pp_right"></div> \
						</div> \
						<div class="pp_content_container"> \
							<div class="pp_left"><span class="r_top_left"></span> \
							<div class="pp_right"><span class="r_top_right"></span> \
								<div class="pp_content"> \
								<div class="pp_loaderIcon"></div> \
									<div class="pp_fade"> \
									<a href="#" class="pp_expand" title="Expand the image">Expand</a> \
										<div class="pp_hoverContainer"> \
											<a class="pp_next" href="#">next</a> \
											<a class="pp_previous" href="#">previous</a> \
										</div> \
										<div id="pp_full_res"></div> \
										<span class="r_bot_left"></span> \
											<span class="r_bot_right"></span> \
										<div class="pp_details clearfix"> \
											<p class="currentTextHolder">0/0</p></p><a class="pp_close" href="#">Close</a> \
											<a href="#" class="pp_arrow_next">Next</a> \
											<a href="#" class="pp_arrow_previous">Previous</a> \
										</div> \
									</div> \
								</div> \
							</div> \
							</div> \
						</div> \
						<div class="pp_bottom"> \
							<div class="pp_left"></div> \
							<div class="pp_middle"></div> \
							<div class="pp_right"></div> \
						</div> \
					</div> \
					<div class="pp_overlay"></div> \
					<div class="ppt"></div>'
		});
	});

	/*** 
    Simple jQuery Slideshow Script
    Released by Jon Raasch (jonraasch.com) under FreeBSD license: free to use or modify, not responsible for anything, etc.  Please link out to me if you like it :)
	***/
	
		function slideSwitch() {
			var $active = $('#slideshow IMG.active');

			if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

			// use this to pull the images in the order they appear in the markup
			var $next =  $active.next().length ? $active.next()
				: $('');

			$active.addClass('last-active');

			$next.css({opacity: 0.0})
				.addClass('active')
				.animate({opacity: 1.0}, 500, function() {
					$active.removeClass('active last-active');
				});
		}

		$(function() {
			setInterval( "slideSwitch()", 2000 );
		});	
