$("html").addClass("js");

//create HTML5 elements for IE
document.createElement('header');
document.createElement('footer');
document.createElement('section');
document.createElement('nav');
document.createElement('figure');
document.createElement('figcaption');
			
//var defaultSwatchColor = "#b6af3a";
//var defaultNavColor = "#b2b2b2";



$(document).ready(function(){

	//check for photoShoot cookie
	var photoShootURL = $.cookie("photoShoot");
	var photoShootsURL = $.cookie("photoShoots");
	if(photoShootsURL != null) {
		$("#photoShoot").css("display","block").find("a").attr("href",photoShootsURL).text("Photo Shoots");
	}
	else if(photoShootURL != null) {
		$("#photoShoot").css("display","block").find("a").attr("href",photoShootURL).text("Photo Shoot");
	}
	
	
	//delete current photoShoot cookie
	$("footer p").click(function(){
		$.cookie("photoShoot",null,{path:"/"});
	});


	//check for IE6-8 browser
	if($("#ie6-8").length == 0) {
		browserIEOld = false;
	}
	else {
		browserIEOld = true;
	}


	//initialize color Swatches
	$(".logo .bg-1, nav li.curr .bg-1, .nav li.curr .bg-1, .btn .bg-1, .callout .bg-1").css("backgroundColor",defaultSwatchColor);
	$(".cl-1").not("nav li li a, .nav li li a").css("color",defaultSwatchColor);
	
}); //document.ready



$(window).load(function(){

	//alert($("section.portfolio .slide img").width());
	//$("section.portfolio .slide img").css("left",-($("section.portfolio .slide img").width()/2));
	
	//initialize photo position
	$(".logo .frame").addClass("rotate",250,function(){
		//$(this).addClass("right",500);
		$(this).removeClass("rotate",250);
	});
	
	$("body").animate({opacity:1},250,function(){
		$(".main .next").trigger("click");	
	});
	
	$("nav li span, .nav li span").fadeIn("fast");
	
	$(".main .about figure, .main .about .figure").addClass("active");

}); //window.load


