/*
set scripts
*/

// code that uses jquery $ here
$.noConflict();
jQuery(document).ready(function($) {
	
	//Hide the bioBox when page load
	$("div.hideBox").hide();
	
	//Examples of how to assign the ColorBox event to elements
	$('a#colorBox').colorbox();
	
	$('a#bioLink.bioLink1').colorbox({width:"55%", inline:true, href:"#bioBox1"});
	$('a#bioLink.bioLink2').colorbox({width:"55%", inline:true, href:"#bioBox2"});
	$('a#bioLink.bioLink3').colorbox({width:"55%", inline:true, href:"#bioBox3"});
	$('a#bioLink.bioLink4').colorbox({width:"55%", inline:true, href:"#bioBox4"});
	$('a#bioLink.bioLink5').colorbox({width:"55%", inline:true, href:"#bioBox5"});
	$('a#bioLink.bioLink6').colorbox({width:"55%", inline:true, href:"#bioBox6"});
	$('a#bioLink.bioLink7').colorbox({width:"55%", inline:true, href:"#bioBox7"});
	$('a#bioLink.bioLink8').colorbox({width:"55%", inline:true, href:"#bioBox8"});
	$('a#bioLink.bioLink9').colorbox({width:"55%", inline:true, href:"#bioBox9"});
	
	$('a#endorseLink.endorseLink1').colorbox({width:"55%", inline:true, href:"#endorseBox1"});
	$('a#endorseLink.endorseLink2').colorbox({width:"55%", inline:true, href:"#endorseBox2"});
	$('a#endorseLink.endorseLink3').colorbox({width:"55%", inline:true, href:"#endorseBox3"});
	$('a#endorseLink.endorseLink4').colorbox({width:"55%", inline:true, href:"#endorseBox4"});
	$('a#endorseLink.endorseLink5').colorbox({width:"55%", inline:true, href:"#endorseBox5"});
	$('a#endorseLink.endorseLink6').colorbox({width:"55%", inline:true, href:"#endorseBox6"});
	$('a#endorseLink.endorseLink7').colorbox({width:"55%", inline:true, href:"#endorseBox7"});
	$('a#endorseLink.endorseLink8').colorbox({width:"55%", inline:true, href:"#endorseBox8"});
	$('a#endorseLink.endorseLink9').colorbox({width:"55%", inline:true, href:"#endorseBox9"});
	
	//activate colorbox on mouseenter
	//$('#testimonialsBox a#endorseLink.endorseLink1').colorbox({width:"55%", inline:true, href:"#endorseBox1"}).mouseenter(function(){$(this).click();}); 
		
	//$('a.tooltipLink').tooltip({
		//events: {def: "click,mouseout"},
		//effect: 'slide',
		//position: 'top left',
		//offset: [13, 0],
		//slideOffset: 20,
		//bounce: true,
		//direction: 'left',
		//slideInSpeed: 420,
		//slideOutSpeed: 240,
		//delay: 333
	//});
	
	//sets localScroll for anchors
	$.localScroll({ duration: 888 });
	
	// initialize cycle slideshow 
	$('#featureBox-home .featureIcons').cycle({
		// sets transition effect
		fx: 'turnLeft',
		// sets asynchronous rotation from other cycles
		delay: 0,
		sync: 1,
		// time of transition
		speed: 550,
		// time on each slide
		timeout: 5500,
		});
		
	//hide ___ after the 1st
	$("#testimonialsBox #featureBox-testimonials:gt(0)").hide();
		
	//$('#testimonialsBox').before('<div id="cycleNav" class="cycleNav">').cycle({
	$('#testimonialsBox').cycle({
		// sets transition effect
		fx: 'fade',
		// sets asynchronous rotation from other cycles
		delay: 0,
		// sync
		sync: 1,
		random: 1,
		// time of transition
		speed: 999,
		// time on each slide
		timeout: 10000,
		pager:  '#cycleNav',
		slideExpr: '#featureBox-testimonials',
        //before: function() { if (window.console) console.log(this.src); }
		});

});

// code that uses other library $ here
//$(document).ready(function(){
//	
//});


