$(document).ready(function(){	

	jQuery('#page-container').serialScroll({
			target:'#scrollpane',
			items:'li', // Selector to the items ( relative to the matched elements, '#sections' in this case )
			prev:'img.larr',// Selector to the 'prev' button (absolute!, meaning it's relative to the document)
			next:'img.rarr',// Selector to the 'next' button (absolute too)
			axis:'x',// The default is 'y' scroll on both ways
			navigation:'#employeelinks a',
			duration:1200,// Length of the animation (if you scroll 2 axes and use queue, then each axis take half this time)
			force:true, // Force a scroll to the element specified by 'start' (some browsers don't reset on refreshes)
			constant:false

		});

		setTimeout("var scrollto = gup('s');if(scrollto == 'a'){$('#scrollpane').trigger( 'goto', [ 3 ] );	}else if(scrollto == 'st'){					$('#scrollpane').trigger( 'goto', [ 11 ] );	}", 1500);
});

function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}