// shadow box start //
Shadowbox.loadSkin('classic', 'js/src/skin/default.htm');
Shadowbox.loadLanguage('en', 'build/lang');
Shadowbox.loadPlayer(['swf','img','iframe'], 'build/player');
window.onload = function(){
    Shadowbox.init();
};


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.home').click(function(){//$.scrollTo works EXACTLY the same way, but scrolls the whole screen
				//$.scrollTo( 1000, 800 ); //will scroll diagnol
				$.scrollTo( {top:'0px', left:'0px'}, 900, { easing:'easeOutQuint' } );// first number: where (x and y), second number: duration
				return false;
			});
			$('#nav_home a.articles').click(function(){
				$.scrollTo( {top:'0px', left:'1001px'}, 2000, { easing:'easeOutQuint' } );
				return false;
			});
			$('#nav_home a.portfolio').click(function(){
				$.scrollTo( {top:'0px', left:'2003px'}, 4000, { easing:'easeOutQuint' } );
				return false;
			});
			$('.btn_portfolio').click(function(){
				$.scrollTo( {top:'0px', left:'2003px'}, 4000, { easing:'easeOutQuint' } );
				return false;
			});
    		$('#nav_home a.about').click(function(){
				$.scrollTo( {top:'0px', left:'3005px'}, 6000, { easing:'easeOutQuint' } );
				return false;
			});
			$('#nav_home a.hireme').click(function(){
				$.scrollTo( {top:'0px', left:'4007px'}, 8000, { easing:'easeOutQuint' } );
				return false;
			});
			$('.btn_resume').click(function(){
				$.scrollTo( {top:'0px', left:'3005px'}, 6000, { easing:'easeOutQuint' } );
				return false;
			});
			$('a.btn_hire').click(function(){
				$.scrollTo( {top:'0px', left:'4007px'}, 8000, { easing:'easeOutQuint' } );
				return false;
			});
			$('a.btn_hire2').click(function(){
				$.scrollTo( {top:'0px', left:'4007px'}, 2000, { easing:'easeOutQuint' } );
				return false;
			});
			
			$('p.home a.home_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'0px'}, 3000, { easing:'easeOutQuint' } );
				return false;
			});
			$('p.home a.articles_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'1001px'}, 2000, { easing:'easeOutQuint' } );
				return false;
			});
			$('p.home a.portfolio_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'2003px'}, 4000, { easing:'easeOutQuint' } );
				return false;
			});
    		$('p.home a.about_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'3005px'}, 6000, { easing:'easeOutQuint' } );
				return false;
			});
			$('p.home a.hire_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'4007px'}, 8000, { easing:'easeOutQuint' } );
				return false;
			});
			
			//ARTICLES SECTION NAV
			$('#nav_articles a.home').click(function(){
				$.scrollTo( {top:'0px', left:'0px'}, 2000, { easing:'easeOutQuint' } );
				return false;
			});
			$('#nav_articles a.articles').click(function(){
				$.scrollTo( {top:'0px', left:'1001px'}, 900, { easing:'easeOutQuint' } );
				return false;
			});
			$('#nav_articles a.portfolio').click(function(){
				$.scrollTo( {top:'0px', left:'2003px'}, 2000, { easing:'easeOutQuint' } );
				return false;
			});
    		$('#nav_articles a.about').click(function(){
				$.scrollTo( {top:'0px', left:'3005px'}, 4000, { easing:'easeOutQuint' } );
				return false;
			});
			$('#nav_articles a.hireme').click(function(){
				$.scrollTo( {top:'0px', left:'4007px'}, 6000, { easing:'easeOutQuint' } );
				return false;
			});
			
			$('p.articles a.home_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'0px'}, 2000, { easing:'easeOutQuint' } );
				return false;
			});
			$('p.articles a.articles_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'1001px'}, 3000, { easing:'easeOutQuint' } );
				return false;
			});
			$('p.articles a.portfolio_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'2003px'}, 2000, { easing:'easeOutQuint' } );
				return false;
			});
    		$('p.articles a.about_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'3005px'}, 4000, { easing:'easeOutQuint' } );
				return false;
			});
			$('p.articles a.hire_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'4007px'}, 6000, { easing:'easeOutQuint' } );
				return false;
			});
			
			//PORTFOLIO SECTION NAV
			$('#nav_portfolio a.home').click(function(){
				$.scrollTo( {top:'0px', left:'0px'}, 4000, { easing:'easeOutQuint' } );
				return false;
			});
			$('#nav_portfolio a.articles').click(function(){
				$.scrollTo( {top:'0px', left:'1001px'}, 2000, { easing:'easeOutQuint' } );
				return false;
			});
			$('#nav_portfolio a.portfolio').click(function(){
				$.scrollTo( {top:'0px', left:'2003px'}, 900, { easing:'easeOutQuint' } );
				return false;
			});
    		$('#nav_portfolio a.about').click(function(){
				$.scrollTo( {top:'0px', left:'3005px'}, 2000, { easing:'easeOutQuint' } );
				return false;
			});
			$('#nav_portfolio a.hireme').click(function(){
				$.scrollTo( {top:'0px', left:'4007px'}, 4000, { easing:'easeOutQuint' } );
				return false;
			});
			
			$('p.portfolio a.home_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'0px'}, 4000, { easing:'easeOutQuint' } );
				return false;
			});
			$('p.portfolio a.articles_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'1001px'}, 2000, { easing:'easeOutQuint' } );
				return false;
			});
			$('p.portfolio a.portfolio_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'2003px'}, 900, { easing:'easeOutQuint' } );
				return false;
			});
    		$('p.portfolio a.about_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'3005px'}, 2000, { easing:'easeOutQuint' } );
				return false;
			});
			$('p.portfolio a.hire_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'4007px'}, 4000, { easing:'easeOutQuint' } );
				return false;
			});
			
			//ABOUT SECTION NAV
			$('#nav_about a.home').click(function(){
				$.scrollTo( {top:'0px', left:'0px'}, 6000, { easing:'easeOutQuint' } );
				return false;
			});
			$('#nav_about a.articles').click(function(){
				$.scrollTo( {top:'0px', left:'1001px'}, 4000, { easing:'easeOutQuint' } );
				return false;
			});
			$('#nav_about a.portfolio').click(function(){
				$.scrollTo( {top:'0px', left:'2003px'}, 2000, { easing:'easeOutQuint' } );
				return false;
			});
    		$('#nav_about a.about').click(function(){
				$.scrollTo( {top:'0px', left:'3005px'}, 900, { easing:'easeOutQuint' } );
				return false;
			});
			$('#nav_about a.hireme').click(function(){
				$.scrollTo( {top:'0px', left:'4007px'}, 2000, { easing:'easeOutQuint' } );
				return false;
			});
			
			$('p.about a.home_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'0px'}, 6000, { easing:'easeOutQuint' } );
				return false;
			});
			$('p.about a.articles_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'1001px'}, 4000, { easing:'easeOutQuint' } );
				return false;
			});
			$('p.about a.portfolio_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'2003px'}, 2000, { easing:'easeOutQuint' } );
				return false;
			});
    		$('p.about a.about_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'3005px'}, 900, { easing:'easeOutQuint' } );
				return false;
			});
			$('p.about a.hire_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'4007px'}, 2000, { easing:'easeOutQuint' } );
				return false;
			});
			
			//HIRE SECTION NAV
			$('#nav_hire a.home').click(function(){
				$.scrollTo( {top:'0px', left:'0px'}, 8000, { easing:'easeOutQuint' } );
				return false;
			});
			$('#nav_hire a.articles').click(function(){
				$.scrollTo( {top:'0px', left:'1001px'}, 6000, { easing:'easeOutQuint' } );
				return false;
			});
			$('#nav_hire a.portfolio').click(function(){
				$.scrollTo( {top:'0px', left:'2003px'}, 4000, { easing:'easeOutQuint' } );
				return false;
			});
    		$('#nav_hire a.about').click(function(){
				$.scrollTo( {top:'0px', left:'3005px'}, 2000, { easing:'easeOutQuint' } );
				return false;
			});
			$('#nav_hire a.hireme').click(function(){
				$.scrollTo( {top:'0px', left:'4007px'}, 900, { easing:'easeOutQuint' } );
				return false;
			});
			
			$('p.hire a.home_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'0px'}, 8000, { easing:'easeOutQuint' } );
				return false;
			});
			$('p.hire a.articles_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'1001px'}, 6000, { easing:'easeOutQuint' } );
				return false;
			});
			$('p.hire a.portfolio_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'2003px'}, 4000, { easing:'easeOutQuint' } );
				return false;
			});
    		$('p.hire a.about_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'3005px'}, 2000, { easing:'easeOutQuint' } );
				return false;
			});
			$('p.hire a.hire_bottom').click(function(){
				$.scrollTo( {top:'0px', left:'4007px'}, 900, { easing:'easeOutQuint' } );
				return false;
			});
			
		});
		//]]>


