
/*                               KEN GIBSON JQUERY ACTIONS
__________________________________________________________
*/	
	
$(document).ready(function(){
	
	$("div#copy").toggle(function(){
		$("div#copyslide").animate({width:'435px'},350);
	},function(){
		$("div#copyslide").animate({width:'40px'},350);
	});
	
	
	if ($.browser.msie && $.browser.version.substr(0,1)<=7) {
		$("a#switch").toggle(function(){
			$("div#navbar #switch span").text("Text OFF");
			$("div#navbar #switch span").css("color", "#424d5b");
			$("div#content").css("display", "none");
			$("div.quote-test").css("display", "block");
			$("div.quote-contact").css("display", "block");
		},function(){
			$("div#navbar #switch span").text("Text ON");
			$("div#navbar #switch span").css("color", "#d5d826");
			$("div#content").css("display", "block");
			$("div.quote-test").css("display", "none");
			$("div.quote-contact").css("display", "none");
		});
		
		$('div#full-project-list').hide();
		$('div.quote-test').hide();
		$('div.quote-contact').hide();
		
		$("a#togglelist").click(function() {
			$("div#quotebox").css("display", "none");
			$("div#quotebox-bg").css("display", "none");
			$("div#full-project-list").css("display", "block");
		});
		
		$("img#closelist").click(function() {
			$("div#full-project-list").css("display", "none");
			$("div#quotebox").css("display", "block");
			$("div#quotebox-bg").css("display", "block");
		});
		
		$("div#bodycopy-bg").dropShadow({left: 2, top: 2, opacity: 0.8, blur: 8, color: "#142633"});
	}
	
	else {
		$("a#switch").toggle(function(){
		 	$("div#content").fadeTo(500, 0);
			$("div#navbar #switch span").text("Text OFF");
			$("div#navbar #switch span").css("color", "#424d5b");
			$("div.quote-test").fadeTo(500, 1);
			$("div.quote-contact").fadeTo(500, 1);
		},function(){
			$("div#content").fadeTo(250, 1.0);
			$("div#navbar #switch span").text("Text ON");
			$("div#navbar #switch span").css("color", "#d5d826");
			$("div.quote-test").fadeTo(250, 0);
			$("div.quote-contact").fadeTo(250, 0);
		});
		
		$("div#full-project-list").fadeTo(0, 0);
		$("div.quote-test").fadeTo(0, 0);
		$("div.quote-contact").fadeTo(0, 0);
		
		$("a#togglelist").click(function() {
			$("div#quotebox").fadeTo(250, 0);
			$("div#quotebox-bg").fadeTo(250, 0);
			$("div#full-project-list").fadeTo(250, 1);
		});
		
		$("img#closelist").click(function() {
			$("div#full-project-list").fadeTo(500, 0);
			$("div#quotebox").fadeTo(500, 1);
			$("div#quotebox-bg").fadeTo(500, 1);
		});
	}
	
	
	$('div.accordBtn').click(function() {
		$('div.accordCnt').slideUp('normal');	
		$(this).next().slideDown('normal');
		$('h3').css("display", "none");
	});
	
	$('div.accordCnt:first').show();
	
	
	$('div.accordBtn').hover(
      function () {
        $(this).css("border-bottom-color", "#9da42a");
        }, function () {
        $(this).css("border-bottom-color", "#283832");
     });
	
	
	$('div#salt-cay').click(function() {
		$('html').css("background-color", "#3d4959");
		$('html').css("background-image", "url(../img/bg-portfolio-saltcay.jpg)");
		$('html').css("background-position", "center 37px");
		$("img.flexbg-image").attr({src : "../img/bg-portfolio-saltcay.jpg"});
		$("div#photo-quote").html("The proposed uphill, par-5 fifth at Salt Cay, shows off the natural terrain of the island.");
		$("div#photo-quote").css("color", "#1a2c39");
		$("div#photo-quote").css("text-shadow", "1px 1px 2px #e8edf6");
		$("div#photo-quote").css("width", "250px");
	});
	
	$('a#salt-cay2').click(function() {
		$('html').css("background-color", "#3d4959");
		$('html').css("background-image", "url(../img/bg-portfolio-saltcay2.jpg)");
		$('html').css("background-position", "center 37px");
		$("img.flexbg-image").attr({src : "../img/bg-portfolio-saltcay2.jpg"});
		$("div#photo-quote").html(" ");
	});
	
	$('a#salt-cay3').click(function() {
		$('html').css("background-color", "#3d4959");
		$('html').css("background-image", "url(../img/bg-portfolio-saltcay3.jpg)");
		$('html').css("background-position", "center 37px");
		$("img.flexbg-image").attr({src : "../img/bg-portfolio-saltcay3.jpg"});
		$("div#photo-quote").html(" ");
	});
	
	$('div#desert-oasis').click(function() {
		$('html').css("background-color", "#3d4959");
		$('html').css("background-image", "url(../img/bg-philosophy.jpg)");
		$('html').css("background-position", "center 37px");
		$("img.flexbg-image").attr({src : "../img/bg-philosophy.jpg"});
		$("div#photo-quote").html("Desert Oasis at Chrifia&mdash;This photo alteration for the par-3, 12<sup>th</sup> hole in Marrakech, Morocco, shows how the green is nestled into a large dune.");
		$("div#photo-quote").css("color", "#e8edf6");
		$("div#photo-quote").css("text-shadow", "1px 1px 2px #1a2c39");
		$("div#photo-quote").css("width", "280px");
	});
	
	$('a#desert-oasis2').click(function() {
		$('html').css("background-color", "#3d4959");
		$('html').css("background-image", "url(../img/bg-portfolio-chrifia.jpg)");
		$('html').css("background-position", "center 37px");
		$("img.flexbg-image").attr({src : "../img/bg-portfolio-chrifia.jpg"});
		$("div#photo-quote").html(" ");
	});
	
	$('div#dunes').click(function() {
		$('html').css("background-color", "#3d4959");
		$('html').css("background-image", "url(../img/bg-portfolio-dunes2.jpg)");
		$('html').css("background-position", "center 37px");
		$("img.flexbg-image").attr({src : "../img/bg-portfolio-dunes2.jpg"});
		$("div#photo-quote").html("The natural bunkers and blow-outs found throughout the site at the Dunes Club are highlighted at the par-3, 13<sup>th</sup>.");
		$("div#photo-quote").css("color", "#1a2c39");
		$("div#photo-quote").css("text-shadow", "1px 1px 2px #e8edf6");
		$("div#photo-quote").css("width", "315px");
	});
	
	$('a#dunes2').click(function() {
		$('html').css("background-color", "#3d4959");
		$('html').css("background-image", "url(../img/bg-portfolio-dunes.jpg)");
		$('html').css("background-position", "center 37px");
		$("img.flexbg-image").attr({src : "../img/bg-portfolio-dunes.jpg"});
		$("div#photo-quote").html("The remodeled 6<sup>th</sup> green at the Dunes Club is set above<br>a beautiful dune that wraps around most of the green.");
		$("div#photo-quote").css("color", "#fff");
		$("div#photo-quote").css("text-shadow", "1px 1px 5px #000");
		$("div#photo-quote").css("width", "305px");
	});
	
	$('div#port-stgeorge').click(function() {
		$('html').css("background-color", "#3d4959");
		$('html').css("background-image", "url(../img/bg-planning-portstgeorge.jpg)");
		$('html').css("background-position", "center 37px");
		$("img.flexbg-image").attr({src : "../img/bg-planning-portstgeorge.jpg"});
	});
	
	$('div#khayaal').click(function() {
		$('html').css("background-color", "#3d4959");
		$('html').css("background-image", "url(../img/bg-planning-khayaal.jpg)");
		$('html').css("background-position", "center 37px");
		$("img.flexbg-image").attr({src : "../img/bg-planning-khayaal.jpg"});
	});
	
	$('div#segunda').click(function() {
		$('html').css("background-color", "#3d4959");
		$('html').css("background-image", "url(../img/bg-planning-segunda.jpg)");
		$('html').css("background-position", "center 37px");
		$("img.flexbg-image").attr({src : "../img/bg-planning-segunda.jpg"});
	});
	
	$('a#segunda-plan').click(function() {
		$('html').css("background-color", "#3d4959");
		$('html').css("background-image", "url(../img/bg-planning-segunda2.jpg)");
		$('html').css("background-position", "center 37px");
		$("img.flexbg-image").attr({src : "../img/bg-planning-segunda2.jpg"});
	});
	
	
	
});
