	$(function(){
		setTimeout('$("#caAccordionMenu").fadeIn(800)', 100);
		setTimeout('$("#caTextBox").fadeIn(800)', 500);
		setTimeout('$("#slideshowBoxHome, #slideshowHomeBorder").fadeIn(800)', 1000);
		
	
var caWrappers = $("#retouchWrapper,#retouchWrapperTall,#webDesignWrapper,#musicWrapper,#photographyWrapper,#homeWrapper");
var caContent = $("#contentRetouching,#contentWebDesign,#contentMusic,#contentPhotography");
var caSubBanners = $("#subBanner,#subBannerWebDesign,#subBannerRetouching,#retouching,#media,#design,#music,#asterisk,#photography");
var caHomeSlideshow = $("#slideshowBoxHome");
var caFootnote = $("#caFootnote");
var akLogo_Sub = $("#akLogo_Sub");
var copyrightPos = $("#caCopyright").css("top"); //read CSS property "top"
copyrightPos = parseInt(copyrightPos,10);			 //remove non-numeric characters
	
	function showMainTextBox() {setTimeout('$("#caTextBoxMain").show()', 100); setTimeout('$("#caTextBoxMusic").hide()', 100);}
		
			////////MENU LINK MOVES////////
			
	$('#contentHome').css({display: "block"});
	
		$('#caAccordionMenu_RetouchingLink a').click(function () {
			$("#contentHome, #caBanner, #caSubBanner, #topLogo, #homeWrapper").fadeOut();
			$('#retouchWrapper').fadeIn();
			//$('img#homeWrapper').attr('src','ca/img/wrapper1000px_retouch.jpg');	
		});
				
		$('#caAccordionMenu_webDesignLink a').click(function () {
			$("#contentHome, #caBanner, #caSubBanner, #topLogo, #homeWrapper").fadeOut();
			$("#webDesignWrapper").fadeIn();
		});
				
	/* MUSIC USING NEW HREF INSTEAD 3-9-09 */
	
	/* PHOTOGRAPHY USING NEW HREF INSTEAD 2-1-09 */		
		
			////////REMOVE MENU HREFS////////

	//$('#caAccordionMenu_webDesignLink a').removeAttr('href');
	
	//*****************
	//	ACCORDION MENU
	//*****************
	
	

//////"MORE INFO" FADE IN//////
		$('#moreInfo').css({display: "none"});
		setTimeout('$("#moreInfo").fadeIn(3000)', 2000);
	
	//////SLIDESHOW//////
	$('#caAccordionMenu_RetouchingLink').click(function() {  	
	  		$('#slideshowBoxRetouching').cycle({
				fx: 'fade',
				speed: 300,
				timeout: 2400,
				pause: 0,
				autostop: 17,
				end: function() {
					$('#replayRetouching,#ellipsis').fadeIn();
					}
			});
		});
		
		//////HOVER INTENT//////
		$('#replayRetouching').hoverIntent({
			sensitivity: 3, 
			interval: 80, 
			over: infoOver, 
			timeout: 1, 
			out: infoOut	
		});
		
	/*$('#moreInfo').hoverIntent({
			sensitivity: 3, 
			interval: 80, 
			over: pageOver, 
			timeout: 1, 
			out: pageOut	
		}); */
	
	
		function infoOver(){$('#replayRetouching').animate({marginLeft: "+=4px"}, 300);
		$('#ellipsis').css({visibility: "hidden"});
		$('#doubleArrowsRight').animate({opacity: "1"});}
		function infoOut(){$('#replayRetouching').animate({marginLeft: "-=4px"}, 300);
		$('#doubleArrowsRight').animate({opacity: "0"});
		$('#ellipsis').css({visibility: "visible"});}
		
		//function pageOver(){$('#moreInfo').animate({right: "-=8px"}, 300);}
		//function pageOut(){$('#moreInfo').animate({right: "+=8px"}, 300);}
	
	//////////////////////WEB DESIGN PAGE JS////////////////////////////
	
		function iframeBG() {
		$('#webDesignWrapper,#caAccordionMenu,#textBox').animate({opacity: ".3"});
		$('#topLogo,#currentMonthYear').fadeOut(1500);
	}
	
		$('#tnBox1 img').click(function() {
			$('<iframe id="iframe1" src="http://laptops.adamkobrin.com" frameborder="1" width="0" height="0" scrolling="auto"></iframe>').insertAfter('#tnBox1');
			$('#iframe1').animate({width: "1050px", height: "800px", left: "-300px", top: "-230px", opacity: "1"}, 400);
			setTimeout('$("#upperBars,.button,#upperBar1,#lowerBar").fadeIn()', 500);
				iframeBG();
		});
		$('#tnBox2 img').click(function() {
			$('<iframe id="iframe4" src="http://www.catgwynn.com/portraits" frameborder="0" width="0" height="0" scrolling="auto"></iframe>').insertAfter('#tnBox4');
			$('#iframe4').animate({width: "1050px", height: "800px", left: "-300px", top: "-230px", opacity: "1"}, 400);
			setTimeout('$("#upperBars,.button,#upperBar4,#lowerBar").fadeIn()', 500);
				iframeBG();
		});
		$('#tnBox3 img').click(function() {
			$('<iframe id="iframe3" src="http://adamkobrin.com/OneBrightWorld" frameborder="0" width="0" height="0" scrolling="auto"></iframe>').insertAfter('#tnBox3');
			$('#iframe3').animate({width: "1050px", height: "800px", left: "-300px", top: "-230px", opacity: "1"}, 400);
			setTimeout('$("#upperBars,.button,#upperBar3,#lowerBar").fadeIn()', 500);
				iframeBG();
		});
		$('#tnBox4 img').click(function() {
			$('<iframe id="iframe2" src="http://liberia.adamkobrin.com/OneBrightWorld/obwoverview2008/drawings.html" frameborder="0" width="0" height="0" scrolling="auto"></iframe>').insertAfter('#tnBox2');
			$('#iframe2').animate({width: "1050px", height: "800px", left: "-300px", top: "-230px", opacity: "1"}, 400);
			setTimeout('$("#upperBars,.button,#upperBar2,#lowerBar").fadeIn()', 500);	
				iframeBG();
					});
		
		$('.button').hover(
			function() {
				$(this).attr({src: "ca/img/webDesign/buttonClose_hover.png"});
			},
			function() {
				$(this).attr({src: "ca/img/webDesign/buttonClose.png"});
		});
		
		$('.button,#upperBars,#lowerBar').click(function() {
			$('#topLogo,#currentMonthYear').fadeIn();		
			$('.button,#upperBars,#lowerBar').fadeOut();
			$('iframe').animate({width: "0", height: "0", left: "50px", top: "0", opacity: "0"}, 500);
			$('#webDesignWrapper,#caAccordionMenu,#textBox').animate({opacity: "1"});
			$('body').animate({backgroundColor: "black"});
		});
	});
