
// Activate JS-enabled flag immediately
$('html').removeClass('nojs').addClass('js');

jQuery(function($) {
	
	/* font replace */
	Cufon.replace('h1, h2, h3, .section p, .section-aboutus p, .service p, .section li, .section-aboutus li, #img_links a span, #contact_form .note, #contact_form label, #downloads a span, #downloadsabout a span, #downloads button, #downloadsabout button, #main p, #main li, #aside li, #aside p, #footer a,#address', { fontFamily: 'DIN' });
	Cufon.replace('#navigation a span, h4, h5, .section .more .section-aboutus .more', { fontFamily: 'PapaMano' });
	
	/* services overlays */
	$(".service").hover(
		function () {
			$(this).find(".overlay2").hide();
			$(this).find(".overlay3").show();
	  	}, 
	  	function () {
	  		$(this).find(".overlay3").hide();
			$(this).find(".overlay2").show();
	  	}
	);
	
	// initialize scrollable
	$(".scrollable").scrollable({circular: true, mousewheel: false});

	// colorbox
	$("a[rel='oc-photo']").colorbox();
});
