//
// CUFON
//

Cufon.replace('ul.nav', { fontFamily: 'AmarilloUSAF', hover: true });
Cufon.replace('ul.dropdown ', { fontFamily: 'AmarilloUSAF' });
Cufon.replace('h1', { fontFamily: 'Bombardier' });
Cufon.replace('div#sidebar h2', { fontFamily: 'Bombardier' });
Cufon.replace('div#footer h2', { fontFamily: 'Bombardier' });

$(document).ready(function() {

//
// COLORBOX
//
	
$(".popup").colorbox({inline:true, href:".form", transition:'none'});
$("a[rel='gallery']").colorbox({transition:'none', maxWidth:'800', scalePhotos:'true', current:'{current} / {total}'});

	//
	// JQUERY CYCLE
	//
	$('.slideshow')
	.after('<div class="slideshowNav"> <div class="wrapperNav">')
	.cycle({ 
		fx:     'fade', 
		speed:  '800', 
		timeout: '10000',
		containerResize: false,
		pager:  '.wrapperNav'
	});
	
	//
	// MORE / LESS
	//
   $("p.showMore").click(function () {
	$(this).toggleClass("less").html("Read more");
	$("p.less").html("Hide");
	$(this).prev("div.more").toggle();
   });

	//
	// MORE / LES - FAQ
	//
   $("ul.faq li").click(function () {
		$(this).toggleClass("open");
		$(this).next("ul").toggle();
	});

    //
	// FORM CLEAR INPUT
	//
	$('div#footer form input:not(.button)').click(function () {
		$(this).val('');
	});   
});


//
// PHOTO - AUTOMATIC RESIZE
//
	
//$(window).resize(function() {
//	$('.slideshow').attr('style','width: + $(window).width() + ;');
//});
