jQuery(document).ready(function($) {
	/* ------------------------------------------------- */
	/* Cycle slideshow init
	/* ------------------------------------------------- */
	$('div.slideshow').cycle();
	$('#status').cycle({pause:true,timeout:8000});
	/* ------------------------------------------------- */
	/* From suckerfish to superfisch sub menu
	/* ------------------------------------------------- */
	$('#sub-nav').superfish({dropShadows:false});
	/* ------------------------------------------------- */
	/* Columnize the content
	/* ------------------------------------------------- */
	$('.columnize li').addClass("dontsplit");  
	$('.columnize').columnize({columns:3});
	/* ------------------------------------------------- */
	/* Pfff designers and they're aches
	/* ------------------------------------------------- */
	$('#body-text h2').each(function() { $(this).html('<span>&bull;</span> ' + $(this).text()); });
	/* ------------------------------------------------- */
	/* Pfff programmers and they're aches
	/* ------------------------------------------------- */
	if($('#sub-nav').size() > 0) { $('#sub-nav li:first').addClass('title'); }
	/* ------------------------------------------------- */
	/* Init the colorbox
	/* ------------------------------------------------- */
	$('.colorbox').colorbox();
	/* ------------------------------------------------- */
	/* VALIDATION FORMS
	/* ------------------------------------------------- */
	if($('#form-quotation').size() > 0) {
		$("#form-quotation").validate({
			submitHandler: function(form) {
			$(form).ajaxSubmit({target:"#content"});
			return false;
		}
	});
}

/* ------------------------------------------------- */
/* BTN QUOTATION CLICKABLE
/* ------------------------------------------------- */
if($('.expand').length) {
	$('.expand').css('cursor','pointer');
	$('.expand').click(function(e) {
		e.preventDefault();
		window.location = $('a.read-more',$(this)).attr('href');
	});
}
	
	/* ------------------------------------------------- */
	/* BTN QUOTATION CLICKABLE
	/* ------------------------------------------------- */
	if($('#btn-quotation').length) {
		$('#btn-quotation').css('cursor','pointer');
		$('#btn-quotation').click(function(e) {
			e.preventDefault();
			window.location = $('a',$(this)).attr('href');
		});
	}
});

