/**
 * Adobe Helium: symbol definitions
 */
 
 
window.symbols = {
	
"stage": {
   version: "0.1",
   baseState: "Base State",
   initialState: "Base State",
   parameters: {

   },
   content: {
      dom: [
      ],
      symbolInstances: [
      ],
   },
   states: {
      "Base State": {
         "#main_content > div:nth-child(1)": [
            ["transform", "translateX", '0'],
            ["transform", "translateY", '-237px']
         ],
         "#nav-abouttoggle": [
            ["transform", "translateX", '0px'],
            ["style", "height", '0px'],
            ["style", "opacity", '0'],
            ["transform", "translateY", '0px'],
            ["style", "width", '0px']
         ],
         "#main_content > img:nth-child(2)": [
            ["transform", "translateX", '0'],
            ["style", "height", '8px'],
            ["style", "opacity", '0'],
            ["transform", "translateY", '0'],
            ["style", "width", '29px']
         ],
         "#nav-projecttoggle": [
            ["transform", "translateX", '0px'],
            ["style", "height", '0px'],
            ["style", "opacity", '0'],
            ["transform", "translateY", '0px'],
            ["style", "width", '0px']
         ],
         "#main_content > div:nth-child(4) > div:nth-child(2)": [
            ["transform", "translateX", '0'],
            ["style", "height", '0px'],
            ["style", "opacity", '0'],
            ["transform", "translateY", '0'],
            ["style", "width", '0px']
         ],
         "#main_content > div:nth-child(4) > div:nth-child(4)": [
            ["transform", "translateX", '0'],
            ["style", "height", '0px'],
            ["style", "opacity", '0'],
            ["transform", "translateY", '0'],
            ["style", "width", '0px']
         ],
         "#main_content > div:nth-child(4)": [
            ["transform", "translateX", '0px'],
            ["style", "height", '0px'],
            ["style", "opacity", '1'],
            ["transform", "translateY", '0px'],
            ["style", "width", '0px']
         ],
         "#nav-contacttoggle": [
            ["transform", "translateX", '0px'],
            ["style", "height", '0px'],
            ["style", "opacity", '0'],
            ["transform", "translateY", '0px'],
            ["style", "width", '0px']
         ]
      }
   },
   actions: {

   },
   bindings: [

   ],
   timelines: {
      "Default Timeline": {
         fromState: "Base State",
         toState: "",
         duration: 6000,
         timeline: [
            { id: "eid90", tween: [ "style", "#main_content > img:nth-child(2)", "opacity", '1', { valueTemplate: undefined, fromValue: '0'}], position: 1500, duration: 170, easing: "linear" },
            { id: "eid28", tween: [ "style", "#main_content > div:nth-child(4)", "height", '0px', { valueTemplate: undefined, fromValue: '0px'}], position: 6000, duration: 0, easing: "linear" },
            { id: "eid29", tween: [ "style", "#main_content > div:nth-child(4) > div:nth-child(4)", "width", '0px', { valueTemplate: undefined, fromValue: '0px'}], position: 3480, duration: 0, easing: "linear" },
            { id: "eid83", tween: [ "style", "#main_content > div:nth-child(4) > div:nth-child(2)", "opacity", '1', { valueTemplate: undefined, fromValue: '0'}], position: 2000, duration: 980, easing: "linear" },
            { id: "eid30", tween: [ "style", "#main_content > div:nth-child(4) > div:nth-child(4)", "height", '0px', { valueTemplate: undefined, fromValue: '0px'}], position: 3480, duration: 0, easing: "linear" },
            { id: "eid26", tween: [ "style", "#nav-contacttoggle", "height", '0px', { valueTemplate: undefined, fromValue: '0px'}], position: 3750, duration: 0, easing: "linear" },
            { id: "eid19", tween: [ "transform", "#main_content > div:nth-child(4) > div:nth-child(2)", "translateX", '0', { valueTemplate: undefined, fromValue: '0'}], position: 2980, duration: 0, easing: "linear" },
            { id: "eid12", tween: [ "transform", "#nav-projecttoggle", "translateY", '0', { valueTemplate: undefined, fromValue: '0'}], position: 3250, duration: 0, easing: "linear" },
            { id: "eid13", tween: [ "transform", "#nav-contacttoggle", "translateX", '0', { valueTemplate: undefined, fromValue: '0'}], position: 3750, duration: 0, easing: "linear" },
            { id: "eid6", tween: [ "transform", "#main_content > img:nth-child(2)", "translateY", '0', { valueTemplate: undefined, fromValue: '0'}], position: 2000, duration: 0, easing: "easeOutSine" },
            { id: "eid22", tween: [ "style", "#nav-abouttoggle", "height", '0px', { valueTemplate: undefined, fromValue: '0px'}], position: 2750, duration: 0, easing: "linear" },
            { id: "eid27", tween: [ "style", "#main_content > div:nth-child(4)", "width", '0px', { valueTemplate: undefined, fromValue: '0px'}], position: 6000, duration: 0, easing: "linear" },
            { id: "eid74", tween: [ "style", "#nav-abouttoggle", "opacity", '1', { valueTemplate: undefined, fromValue: '0'}], position: 1750, duration: 1000, easing: "linear" },
            { id: "eid14", tween: [ "transform", "#nav-contacttoggle", "translateY", '0', { valueTemplate: undefined, fromValue: '0'}], position: 3750, duration: 0, easing: "linear" },
            { id: "eid36", tween: [ "style", "#main_content > div:nth-child(4)", "opacity", '1', { valueTemplate: undefined, fromValue: '1'}], position: 6000, duration: 0, easing: "linear" },
            { id: "eid17", tween: [ "transform", "#main_content > div:nth-child(4) > div:nth-child(4)", "translateX", '0', { valueTemplate: undefined, fromValue: '0'}], position: 3480, duration: 0, easing: "linear" },
            { id: "eid11", tween: [ "transform", "#nav-projecttoggle", "translateX", '0', { valueTemplate: undefined, fromValue: '0'}], position: 3250, duration: 0, easing: "linear" },
            { id: "eid18", tween: [ "transform", "#main_content > div:nth-child(4) > div:nth-child(4)", "translateY", '0', { valueTemplate: undefined, fromValue: '0'}], position: 3480, duration: 0, easing: "linear" },
            { id: "eid16", tween: [ "transform", "#main_content > div:nth-child(4)", "translateY", '0', { valueTemplate: undefined, fromValue: '0'}], position: 6000, duration: 0, easing: "linear" },
            { id: "eid15", tween: [ "transform", "#main_content > div:nth-child(4)", "translateX", '0', { valueTemplate: undefined, fromValue: '0'}], position: 6000, duration: 0, easing: "linear" },
            { id: "eid86", tween: [ "style", "#main_content > div:nth-child(4) > div:nth-child(4)", "opacity", '1', { valueTemplate: undefined, fromValue: '0'}], position: 2500, duration: 980, easing: "linear" },
            { id: "eid77", tween: [ "transform", "#nav-abouttoggle", "translateX", '0px', { valueTemplate: undefined, fromValue: '0px'}], position: 1750, duration: 0, easing: "linear" },
            { id: "eid9", tween: [ "transform", "#nav-abouttoggle", "translateX", '0', { valueTemplate: undefined, fromValue: '0'}], position: 2750, duration: 0, easing: "linear" },
            { id: "eid81", tween: [ "style", "#nav-contacttoggle", "opacity", '1', { valueTemplate: undefined, fromValue: '0'}], position: 2750, duration: 1000, easing: "linear" },
            { id: "eid79", tween: [ "style", "#nav-projecttoggle", "opacity", '1', { valueTemplate: undefined, fromValue: '0'}], position: 2250, duration: 1000, easing: "linear" },
            { id: "eid5", tween: [ "transform", "#main_content > img:nth-child(2)", "translateX", '0', { valueTemplate: undefined, fromValue: '0'}], position: 2000, duration: 0, easing: "easeOutSine" },
            { id: "eid76", tween: [ "transform", "#nav-abouttoggle", "translateY", '0px', { valueTemplate: undefined, fromValue: '0px'}], position: 1750, duration: 1000, easing: "linear" },
            { id: "eid31", tween: [ "style", "#main_content > div:nth-child(4) > div:nth-child(2)", "width", '0px', { valueTemplate: undefined, fromValue: '0px'}], position: 2980, duration: 0, easing: "linear" },
            { id: "eid32", tween: [ "style", "#main_content > div:nth-child(4) > div:nth-child(2)", "height", '0px', { valueTemplate: undefined, fromValue: '0px'}], position: 2980, duration: 0, easing: "linear" },
            { id: "eid46", tween: [ "style", "#main_content > img:nth-child(2)", "width", '457px', { valueTemplate: undefined, fromValue: '29px'}], position: 1500, duration: 500, easing: "easeOutSine" },
            { id: "eid40", tween: [ "transform", "#main_content > div:nth-child(1)", "translateY", '0px', { valueTemplate: undefined, fromValue: '-237px'}], position: 1000, duration: 940, easing: "easeOutBack" },
            { id: "eid23", tween: [ "style", "#nav-projecttoggle", "width", '0px', { valueTemplate: undefined, fromValue: '0px'}], position: 3250, duration: 0, easing: "linear" },
            { id: "eid3", tween: [ "transform", "#main_content > div:nth-child(1)", "translateX", '0', { valueTemplate: undefined, fromValue: '0'}], position: 1940, duration: 0, easing: "easeOutBack" },
            { id: "eid24", tween: [ "style", "#nav-projecttoggle", "height", '0px', { valueTemplate: undefined, fromValue: '0px'}], position: 3250, duration: 0, easing: "linear" },
            { id: "eid20", tween: [ "transform", "#main_content > div:nth-child(4) > div:nth-child(2)", "translateY", '0', { valueTemplate: undefined, fromValue: '0'}], position: 2980, duration: 0, easing: "linear" },
            { id: "eid25", tween: [ "style", "#nav-contacttoggle", "width", '0px', { valueTemplate: undefined, fromValue: '0px'}], position: 3750, duration: 0, easing: "linear" },
            { id: "eid21", tween: [ "style", "#nav-abouttoggle", "width", '0px', { valueTemplate: undefined, fromValue: '0px'}], position: 2750, duration: 0, easing: "linear" }]
      }
   },
}};

/**
 * Adobe Edge DOM Ready Event Handler
 */
$(window).ready(function() {
	
     $.Edge.initialize(symbols);
    
});
/**
 * Adobe Edge Timeline Launch
 */
$(window).load(function() {
    $.Edge.play();
	
	var blurbs = new Array(); 
	blurbs[0] = "what's your favorite color :"; 
	blurbs[1] = "fill in the blank :"; 
	blurbs[2] = "make something up :";
	blurbs[3] = "what's your favorite joke :"; 
	blurbs[4] = "dogs / cats / both / neither :"; 
	blurbs[5] = "what vegetable do you most resemble :"; 
	
	var ran = Math.floor(Math.random()*blurbs.length); 
	//$(".randomBlurb:eq(" + ran + ")").show();
	$('#randomBlurb').html(blurbs[ran]);
	
	  
	$("img.hire_white").hover(
	function() {
		$(this).stop().animate({"opacity": "0"}, ".3");
	},
	function() {
		$(this).stop().animate({"opacity": "1"}, '.3');
	});
	
	$('#about_box').hide();
	$('#projects_box').hide();
	$('#contact_box').hide();
	$('#poppy').hide();

  $('#nav-abouttoggle').click(function() {
	  $('#projects_box').hide('fast');
	  $('#contact_box').hide('fast');
  	  $('#about_box').slideToggle(400);
      return false;
  });
  
  $('#nav-projecttoggle').click(function() {
	  $('#about_box').hide('fast');
	  $('#contact_box').hide('fast');
   	  $('#projects_box').slideToggle(400);
    return false;
  });
  
  $('#nav-contacttoggle').click(function() {
	  $('#about_box').hide('fast');
	  $('#projects_box').hide('fast');
	  $('#contact_box').slideToggle(400);
    return false;
  });;
});

