/*======Loader=========*/

$(document).ready(function () {
	$('a.scroll').click(function () {
		var $Target = this.hash;
		$.scrollTo($Target, 1500, { offset: -100 });
		return false;
	});
});

/*
needs function first so that it can create instances that will remain...

var i = 1;
while (i < 3){
ids = '"#pi' + i + '"';
$(ids).cycle({
	fx: "fade",
	speed: 500,
	pause: 1,
	timeout: 0,
	next: ids
});
i++;
}


$(document).ready(function () {
	$('div.ps').click(function () {
		var $Target = this.hash;
		$.cycle({
		fx: "fade",
		speed: 500,
		pause: 1,
		timeout: 0,
		next: "#pi1"
	});
		return false;
	});
});
*/
$("#pi1").cycle({
	fx: "fade",
	speed: 500,
	pause: 1,
	timeout: 0,
	next: "#pi1"
});

$("#pi2").cycle({
	fx: "fade",
	speed: 500,
	pause: 1,
	timeout: 0,
	next: "#pi2"
}); 

$("#pi3").cycle({
	fx: "fade",
	speed: 500,
	pause: 1,
	timeout: 0,
	next: "#pi3"
}); 

$("#pi4").cycle({
	fx: "fade",
	speed: 500,
	pause: 1,
	timeout: 0,
	next: "#pi4"
});

$("#pi5").cycle({
	fx: "fade",
	speed: 500,
	pause: 1,
	timeout: 0,
	next: "#pi5"
});

$("#pi6").cycle({
	fx: "fade",
	speed: 500,
	pause: 1,
	timeout: 0,
	next: "#pi6"
}); 