
	Cufon.replace('h3, h4', { hover: true, fontFamily: 'HighTower' });
	Cufon.replace('h5', { hover: true, fontFamily: 'Franklin' });
	
	
	

	/* ----- SLIDESHOW ----- */

	$(document).ready(function() {
   	 $('.slideshow').cycle({
			fx: 'fade',
			speed: 2500,
			interval: 10000
		});
	});

	
	



	/* ----- NAVIGATION ----- */

	var timeout         = 500;
	var closetimer		  = 0;
	var ddmenuitem      = 0;


	function jsddm_open()
	{	jsddm_canceltimer();
		jsddm_close();
		ddmenuitem = $(this).find('ul').eq(0).css('visibility', 'visible');}
	

	function jsddm_close()
	{	if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');}


	function jsddm_timer()
	{	closetimer = window.setTimeout(jsddm_close, timeout);}


	function jsddm_canceltimer()
	{	if(closetimer)
		{	window.clearTimeout(closetimer);
			closetimer = null;}}
		

	$(document).ready(function()
		{	$('#navi > li').bind('mouseover', jsddm_open);
			$('#navi > li').bind('mouseout',  jsddm_timer);});

	document.onclick = jsddm_close;
	
	

	
	/* ----- FANCYBOX ----- */
	
	
	
	$(document).ready(function() {
										
			$(".fancybox a").fancybox({
				'overlayShow'		: false,
				'transitionIn'		: 'elastic',
				'transitionOut'	: 'none'
			});
			
			$("a[rel=example_group]").fancybox({
				'transitionIn'			: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 		: 'over',
				'titleFormat'			: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			
			});
	

