jQuery().ready(function(){	
// applying the settings
jQuery('.accordion').Accordion({
  active: 'h3.selected',
  header: 'h3.head',
  alwaysOpen: false,
  animated: true,
  showSpeed: 400,
  hideSpeed: 800
});
jQuery('#xtraMenu').Accordion({
  active: 'h4.selected',
  header: 'h4.head',
  alwaysOpen: false,
  animated: true,
  showSpeed: 400,
  hideSpeed: 800
});
});	




	
//for iframe plug in
    $(function(){
        $('a.iframe').iframe();
    });
//if javascript is turned off links will appear to the content that is in the iframe - Google friendly


//for Hover Animations
	$(document).ready(function(){
  // home buttons //
	$(".btn_port_holder a").hover(function() {
	  $(this).next("em").animate({opacity: "show"}, "slow");
	}, function() {
	  $(this).next("em").animate({opacity: "hide"}, "slow");
	});
	
	$(".btn_resume_holder a").hover(function() {
	  $(this).next("em").animate({opacity: "show"}, "slow");
	}, function() {
	  $(this).next("em").animate({opacity: "hide"}, "slow");
	});
	
	$(".btn_hire_holder a").hover(function() {
	  $(this).next("em").animate({opacity: "show"}, "slow");
	}, function() {
	  $(this).next("em").animate({opacity: "hide"}, "slow");
	});
	
	$(".btn_hire_holder2 a").hover(function() {
	  $(this).next("em").animate({opacity: "show"}, "slow");
	}, function() {
	  $(this).next("em").animate({opacity: "hide"}, "slow");
	});
	
	// new to the tank //
	$(".new_tank1 a").hover(function() {
	  $(this).next("div").animate({opacity: "show", top: "340"}, "slow");
	}, function() {
	  $(this).next("div").animate({opacity: "hide", top: "324"}, "fast");
	});
	
	$(".new_tank2 a").hover(function() {
	  $(this).next("div").animate({opacity: "show", top: "433"}, "slow");
	}, function() {
	  $(this).next("div").animate({opacity: "hide", top: "417"}, "fast");
	});
	
	$(".new_tank3 a").hover(function() {
	  $(this).next("div").animate({opacity: "show", top: "526"}, "slow");
	}, function() {
	  $(this).next("div").animate({opacity: "hide", top: "510"}, "fast");
	});
	
	// portfolio //
	$(".port1 a").hover(function() {
	  $(this).next("div").animate({opacity: "show", top: "36"}, "slow");
	}, function() { 
	  $(this).next("div").animate({opacity: "hide", top: "20"}, "fast");
	});
	$(".port2 a").hover(function() {
	  $(this).next("div").animate({opacity: "show", top: "36"}, "slow");
	}, function() { 
	  $(this).next("div").animate({opacity: "hide", top: "20"}, "fast");
	});
	$(".port3 a").hover(function() {
	  $(this).next("div").animate({opacity: "show", top: "36"}, "slow");
	}, function() { 
	  $(this).next("div").animate({opacity: "hide", top: "20"}, "fast");
	});
	$(".port4 a").hover(function() {
	  $(this).next("div").animate({opacity: "show", top: "136"}, "slow");
	}, function() { 
	  $(this).next("div").animate({opacity: "hide", top: "120"}, "fast");
	});
	$(".port5 a").hover(function() {
	  $(this).next("div").animate({opacity: "show", top: "136"}, "slow");
	}, function() { 
	  $(this).next("div").animate({opacity: "hide", top: "120"}, "fast");
	});
	$(".port6 a").hover(function() {
	  $(this).next("div").animate({opacity: "show", top: "136"}, "slow");
	}, function() { 
	  $(this).next("div").animate({opacity: "hide", top: "120"}, "fast");
	});
	$(".port7 a").hover(function() {
	  $(this).next("div").animate({opacity: "show", top: "236"}, "slow");
	}, function() { 
	  $(this).next("div").animate({opacity: "hide", top: "220"}, "fast");
	});
	$(".port8 a").hover(function() {
	  $(this).next("div").animate({opacity: "show", top: "236"}, "slow");
	}, function() { 
	  $(this).next("div").animate({opacity: "hide", top: "220"}, "fast");
	});
	$(".port9 a").hover(function() {
	  $(this).next("div").animate({opacity: "show", top: "236"}, "slow");
	}, function() { 
	  $(this).next("div").animate({opacity: "hide", top: "220"}, "fast");
	});
	$(".port10 a").hover(function() {
	  $(this).next("div").animate({opacity: "show", top: "336"}, "slow");
	}, function() { 
	  $(this).next("div").animate({opacity: "hide", top: "320"}, "fast");
	});
	$(".port11 a").hover(function() {
	  $(this).next("div").animate({opacity: "show", top: "336"}, "slow");
	}, function() { 
	  $(this).next("div").animate({opacity: "hide", top: "320"}, "fast");
	});
	$(".port12 a").hover(function() {
	  $(this).next("div").animate({opacity: "show", top: "336"}, "slow");
	}, function() { 
	  $(this).next("div").animate({opacity: "hide", top: "320"}, "fast");
	});
});


//for scrollTo
	//<![CDATA[
		jQuery(function( $ ){
				//borrowed from jQuery easing plugin
				//http://gsgd.co.uk/sandbox/jquery.easing.php
				//see jquery.easing.1.3.js for available tweens
				$.easing.easeOutQuint = function (x, t, b, c, d) {
      		return c*((t=t/d-1)*t*t*t*t + 1) + b;
				};
			
			//by default, the scroll is only done vertically ('y'), change it to both.
			$.scrollTo.defaults.axis = 'xy'; 			

			$.scrollTo( 0 );//reset the screen to (0,0)
			
			//nav, shows how to scroll the whole window
			//HOME SECTION NAV
			$('#nav_home a.about').click(function(){
				$("#wrapper").animate({"left": "0"}, 2000, "easeOutQuint");
				return false;
			});
			$('#nav_home a.work').click(function(){
				$("#wrapper").animate({"top": "0px"}, 2000, "easeOutQuint");
				return false;
			});
    		$('#nav_home a.contact').click(function(){
				$("#wrapper").animate({"left": "-3360px"}, 2000, "easeOutQuint");
				return false;
			});
			
			//ABOUT SECTION NAV
			$('#nav_about a.home').click(function(){
				$("#wrapper").animate({"left": "-1680px"}, 2000, "easeOutQuint");
				return false;
			});
			
			//WORK SECTION NAV
			$('#nav_work a.home').click(function(){
				$("#wrapper").animate({"top": "-700px"}, 2000, "easeOutQuint");
				return false;
			});
			
			//CONTACT SECTION NAV
			$('#nav_contact a.home').click(function(){
				$("#wrapper").animate({"left": "-1680px"}, 2000, "easeOutQuint");
				return false;
			});
			
			//HIRE SECTION NAV
			
			
		});
		//]]>


