$(document).ready(function(){

// cycle the sidebar images (uses jQuery.cycle plugin)
	$('#imgSlider').cycle({ speed: 2500 });

// handle the bio toggle
	$('a.read_more').click(function(){
		var list = $(this).attr('rel');
		switch(list) {
			// case "#cesar": $(list).slideToggle(2000); break;    
			case "": break; // no forward relation set
			default:
				$(list).slideToggle(1000, function() {
					$(list+"_show").slideToggle(200);
				});
				break;
		}
		return false; // break the href (no hash-jumping)
	});
	
// setup the form tool-tips
	$.fn.qtip.styles.ccp = { // Last part is the name of the style
		width: 333,
		background: '#c7dff4',
		color: 'black',
		textAlign: 'left',
		border: {width: 1, radius: 0, color: '#c7dff4'},
		tip: 'bottomLeft',
		name: 'light' // Inherit the rest of the attributes from the preset dark style
	}
	$('.tooltip').qtip({
		//show: 'mouseover',
		show: {effect:{type: 'fade', length: 200 }},
		hide: {effect:{type: 'fade', length: 300 }},
		position: {corner:{target: 'topRight', tooltip: 'bottomLeft'}},
   		style: 'ccp'
	});
/*	
// setup the masked form input fields
	// a - Represents an alpha character (A-Z,a-z)
	// 9 - Represents a numeric character (0-9)
	// * - Represents an alphanumeric character (A-Z,a-z,0-9)
	$("#contact_phone").mask("(999) 999-9999",{placeholder:"  "});
	$("#contact_mobile").mask("(999) 999-9999",{placeholder:"  "});
	$("#contact_fax").mask("(999) 999-9999",{placeholder:"  "});
	//hide samples provided in the label
	$(".input_sample").hide();
*/
});
