/* AddThis Configuration */
var addthis_pub ="joshuajarman"; var addthis_offset_top	= -15; var addthis_offset_left = -14; var addthis_options = 'favorites, twitter, print, linkedin, email, facebook, digg, delicious, google, stumbleupon, live, more';
/* Functions for Page */
slideDownLogo = function() { new Effect.Move('LogoPaper', {x:0,y:205,duration:2}); }; addEvent(window,'load',slideDownLogo,false);
var currentLocation = 'Homepage';
goTo = function(newLocation) { if (currentLocation != newLocation) { if (currentLocation != '') { fadeThenShow(currentLocation, newLocation, 2.0, 'page'); } else { justShow(newLocation, 2.0, 'page'); }; }; currentLocation = newLocation; }; /*addEvent(window,'load',goTo('Homepage'),false);*/
bounceMe = function(elm) { if (elm.id == 'NavShelf_WebAddons') { elm.style.height = '113px'; } else { elm.style.height = '107px'; }; new Effect.Bounce(elm, {height:40}); setTimeout("$('"+elm.id+"').style.height = '140px';", "900"); setTimeout("$('"+elm.id+"').style.left = '';", "1500"); };
window.bounceAll = function() { bounceMe($('NavShelf_Websites')); bounceMe($('NavShelf_eCommerce')); bounceMe($('NavShelf_WebAddons')); bounceMe($('NavShelf_IdentityLogos')); bounceMe($('NavShelf_BusinessCards')); bounceMe($('NavShelf_PrintedMaterial')); }; bounceAll = window.bounceAll; /* addEvent(window,'load',bounceAll,false); */
window.NavigationTitle = function() {}; NavigationTitle = window.NavigationTitle;
NavigationTitle.defaultTitle = String();
NavigationTitle.setTitle = function(newTitle) { NavigationTitle.defaultTitle = $('WebNavTitle').innerHTML; $('WebNavTitle').innerHTML = newTitle; };
NavigationTitle.resetTitle = function() { NavigationTitle.setTitle(NavigationTitle.defaultTitle); };
window.CurrentSection = String(); CurrentSection = window.CurrentSection;  CurrentSection = 'Homepage';
window.ShowSection = function(id) {
	if (CurrentSection != '') { new Effect.Fade(CurrentSection, {duration: 0}); };
	new Effect.Appear('SectionTitle_'+id, {duration: 0.5});
	if (id == 'Homepage' || id == 'OurPortfolio' || id == 'OurServices' || id == 'ClientLogin' || id == 'SaveOrShare') {
		$('SectionTitle_'+id).style.top = '-3000px';
		new Effect.Move('SectionTitle_'+id, {x:0,y:3000,duration:1});
	} else {
		$('SectionTitle_'+id).style.top = '2000px';
		new Effect.Move('SectionTitle_'+id, {x:0,y:-2000,duration:1});
	};
	setTimeout ("new Effect.Fade('"+'SectionTitle_'+id+"', {duration: 1});", 1500);
	setTimeout ("new Effect.Appear('"+id+"', {duration: 1});", 2500);
	
	if (id != 'Homepage') { new Effect.Fade('SectionTitle_Homepage', {duration: 0}); new Effect.Fade('Homepage', {duration: 0}); setTimeout ("new Effect.Fade('Homepage', {duration: 0});", 2500); };
	if (id != 'OurPortfolio') { new Effect.Fade('SectionTitle_OurPortfolio', {duration: 0}); new Effect.Fade('OurPortfolio', {duration: 0}); setTimeout ("new Effect.Fade('OurPortfolio', {duration: 0});", 2500); };
	if (id != 'OurServices') { new Effect.Fade('SectionTitle_OurServices', {duration: 0}); new Effect.Fade('OurServices', {duration: 0}); setTimeout ("new Effect.Fade('OurServices', {duration: 0});", 2500); };
	if (id != 'Websites') { new Effect.Fade('SectionTitle_Websites', {duration: 0}); new Effect.Fade('Websites', {duration: 0}); setTimeout ("new Effect.Fade('Websites', {duration: 0});", 2500); };
	if (id != 'eCommerce') { new Effect.Fade('SectionTitle_eCommerce', {duration: 0}); new Effect.Fade('eCommerce', {duration: 0}); setTimeout ("new Effect.Fade('eCommerce', {duration: 0});", 2500); };
	if (id != 'WebAddons') { new Effect.Fade('SectionTitle_WebAddons', {duration: 0}); new Effect.Fade('WebAddons', {duration: 0}); setTimeout ("new Effect.Fade('WebAddons', {duration: 0});", 2500); };
	if (id != 'IdentityLogos') { new Effect.Fade('SectionTitle_IdentityLogos', {duration: 0}); new Effect.Fade('IdentityLogos', {duration: 0}); setTimeout ("new Effect.Fade('IdentityLogos', {duration: 0});", 2500); };
	if (id != 'BusinessCards') { new Effect.Fade('SectionTitle_BusinessCards', {duration: 0}); new Effect.Fade('BusinessCards', {duration: 0}); setTimeout ("new Effect.Fade('BusinessCards', {duration: 0});", 2500); };
	if (id != 'PrintedMaterial') { new Effect.Fade('SectionTitle_PrintedMaterial', {duration: 0}); new Effect.Fade('PrintedMaterial', {duration: 0}); setTimeout ("new Effect.Fade('PrintedMaterial', {duration: 0});", 2500); };
	
	CurrentSection = id;
	setTimeout ("autoScrollers();", 4000);
	window.location.hash = '#'+id;
}; ShowSection = window.ShowSection;
window.QuickShowSection = function(id) {
	if (CurrentSection != '') { new Effect.Fade(CurrentSection, {duration: 0}); };
	setTimeout ("new Effect.Appear('"+id+"', {duration: 1});", 1000);
	CurrentSection = id;
	setTimeout ("autoScrollers();", 2500);
	window.location.hash = '#'+id;
}; QuickShowSection = window.QuickShowSection;
window.HideSection = function(id) { new Effect.Fade(id, {duration: 0.5}); }; HideSection = window.HideSection;
window.ViewPortfolio = function(section){
	$('Portfolio').src = 'portfolio.php?v='+section;
	setTimeout ("new Effect.Appear('Portfolio', {duration: 2});", 2000);
}; ViewPortfolio = window.ViewPortfolio;
window.HidePortfolio = function() { new Effect.Fade('Portfolio', {duration: 2}); }; HidePortfolio = window.HidePortfolio;
window.returnToPage = function() {
	var goToSection = window.location.hash;
	goToSection = goToSection.replace('#','');
	if (goToSection != '') { setTimeout ("ShowSection('"+goToSection+"');", 4000); };
}; returnToPage = window.returnToPage; addEvent(window,'load',returnToPage(),false);