var RotImages = new Array();
RotImages[0] = "images/img1.jpg";
RotImages[1] = "images/img2.jpg";
RotImages[2] = "images/img3.jpg";
var RotTitles = new Array();
RotTitles[0] = "Logical Blue One";
RotTitles[1] = "Coastal Carpentry";
RotTitles[2] = "Miss Vee";
var RotDemos = new Array();
RotDemos[0] = "http://logicalblueone.com.au";
RotDemos[1] = "http://coastalcarpentrywa.com.au";
RotDemos[2] = "http://missvee.com.au";
var RotDescs = new Array();
RotDescs[0] = "Custom Prestashop Design, Logo design, SEO implimentation, custom Prestashop programming.";
RotDescs[1] = "Small site, Photo Gallery & SMS integrated contact form";
RotDescs[2] = "Brand New Professional website, custom Logo design, sleek design & Business Card design (Warning: Adult content)";
RotCurrent = 0;
//<![CDATA[ 
$(document).ready(function(){
	$(".rot_image img").attr("src", RotImages[0]);
	$(".rot_image_2 img").attr("src", RotImages[0]);
	$(".demo").attr("href", RotDemos[0]);
	$(".rot_summary h1").text(RotTitles[0]);			
	$(".rot_summary p").text(RotDescs[0]);
	// Next Project
	var Slide = 0;
	var Switch = 0;
	var PrevImage = RotImages[0];
	$(".next").click(function(){
		if (RotCurrent == (RotImages.length-1)) {
			Switch = 1;
		} else {
			Switch = 0;
		}
		if (Slide == 0) {
			$(".rot_image_2 img").attr("src", PrevImage);
			$(".rot_image_2 img").show();
			if (Switch == 1) {
				$(".rot_image img").attr("src", RotImages[0]);
				PrevImage = RotImages[0];
			} else {
				$(".rot_image img").attr("src", RotImages[RotCurrent+1]);
				PrevImage = RotImages[RotCurrent+1];
			}					
			$(".rot_image_2 img").hide("slide", { direction: "left" }, 700);
			
			Slide = 1;
		} else {
			$(".rot_image_2 img").attr("src", PrevImage);
			$(".rot_image_2 img").show();
			if (Switch == 1) {
				$(".rot_image img").attr("src", RotImages[0]);
				PrevImage = RotImages[0];
			} else {
				$(".rot_image img").attr("src", RotImages[RotCurrent+1]);
				PrevImage = RotImages[RotCurrent+1];
			}	
			$(".rot_image_2 img").hide("slide", { direction: "left" }, 700);
			
			Slide = 0;
		}	
		if (RotCurrent == (RotImages.length-1)) {
			RotCurrent = 0;
		} else {
			RotCurrent += 1;
		}
		$(".demo").attr("href", RotDemos[RotCurrent]);
		$(".rot_summary h1").text(RotTitles[RotCurrent]);			
		$(".rot_summary p").text(RotDescs[RotCurrent]);
	});
	// Read More
	$(".read_more").hover(function(){
		$(".read_more").attr("src", "images/read_more_2.gif");
	}, function() {
		$(".read_more").attr("src", "images/read_more.gif");
	});
	// Read More 2
	$(".more_2").hover(function(){
		var Index = $(".more_2").index(this);
		$(".more_2:eq("+Index+")").attr("src", "images/more_2.gif");
	}, function() {
		var Index = $(".more_2").index(this);
		$(".more_2:eq("+Index+")").attr("src", "images/more_1.gif");
	});
	// Read More 3
	$(".more_3").hover(function(){
		var Index = $(".more_3").index(this);
		$(".more_3:eq("+Index+")").attr("src", "images/more_2_2.gif");
	}, function() {
		var Index = $(".more_3").index(this);
		$(".more_3:eq("+Index+")").attr("src", "images/more_2_1.gif");
	});
	// Send
	$(".submit").hover(function(){
		$(".submit").css("background", "url('images/send_2.gif')");
	}, function() {
		$(".submit").css("background", "url('images/send_1.gif')");
	});
	// Site Demo
	$(".demo2").hover(function(){
		$(".demo2").attr("src", "images/site_demo_2.gif");
	}, function() {
		$(".demo2").attr("src", "images/site_demo.gif");
	});
	// Site Next
	$(".next").hover(function(){
		$(".next").attr("src", "images/site_next_2.gif");
	}, function() {
		$(".next").attr("src", "images/site_next.gif");
	});
	// Order
	$(".order").hover(function(){
		var Index = $(".order").index(this);
		$(".order:eq("+Index+")").attr("src", "images/order_2.gif");
	}, function() {
		var Index = $(".order").index(this);
		$(".order:eq("+Index+")").attr("src", "images/order_1.gif");
	});
	// More Info
	$(".info").hover(function(){
		var Index = $(".info").index(this);
		$(".info:eq("+Index+")").attr("src", "images/info_2.gif");
	}, function() {
		var Index = $(".info").index(this);
		$(".info:eq("+Index+")").attr("src", "images/info_1.gif");
	});
	// Visit
	$(".visit").hover(function(){
		var Index = $(".visit").index(this);
		$(".visit:eq("+Index+")").attr("src", "images/visit_2.gif");
	}, function() {
		var Index = $(".visit").index(this);
		$(".visit:eq("+Index+")").attr("src", "images/visit_1.gif");
	});
});
$(document).ready(function(){
	$("a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});
});
//]]> 

