$(document).ready(function() {
//	$(".header h1 span").dropShadow({left: 8, top: 10, opacity: 0.4});
	$('.leftcol').corners("20px");
	$('.homeImages').cycle({ 
    	fx:    'fade', 
    	speed:  2500 
 	});
	pageRoutines();
});

function pageRoutines () {

	var url = window.location.pathname;

	if (url.search(/index/) != -1 || url.length < 7 ) {
		$(".footer").css("background-image", "url('img/bottom-banners/u-namg-board-l.jpg')");
		$(".innercontent").css("height", "360px");
		$(".home").addClass("on");
	}
	
	if (url.search(/philosophy/) != -1) {
		$(".footer").css("background-image", "url('img/bottom-banners/u-namg-board-l.jpg')");
		$(".innercontent").css("height", "360px");
		$(".philosophy").addClass("on");
	}

	if (url.search(/services/) != -1) {
		$(".footer").css("background-image", "url('img/bottom-banners/u-fpoint.jpg')");
		$(".innercontent").css("height", "360px");
		$(".services").addClass("on");
	}

		if (url.search(/about/) != -1) {
		$(".footer").css("background-image", "url('img/bottom-banners/u-fpoint.jpg')");
		$(".innercontent").css("height", "360px");
		$(".about").addClass("on");
	}

		if (url.search(/portfolio/) != -1) {
		$(".footer").css("background-image", "url('img/bottom-banners/u-fpoint.jpg')");
		$(".portfolio").addClass("on");
		$(".innercontent").css("height", "560px");
		//$(".content").css("margin-bottom", "40px");
		$('a.gallery1').lightBox({fixedNavigation:true});
		$('a.gallery2').lightBox({fixedNavigation:true});
		$('a.gallery3').lightBox({fixedNavigation:true});
		$('a.gallery4').lightBox({fixedNavigation:true});
		$('a.gallery5').lightBox({fixedNavigation:true});	
		$('a.gallery6').lightBox({fixedNavigation:true});
		$('a.gallery7').lightBox({fixedNavigation:true});
		$('a.gallery8').lightBox({fixedNavigation:true});
		$('a.gallery9').lightBox({fixedNavigation:true});
		$('a.gallery60m').lightBox({fixedNavigation:true});
		$('a.gallery68m').lightBox({fixedNavigation:true});
		$('a.galleryo').lightBox({fixedNavigation:true});
		$('a.galleryrend').lightBox({fixedNavigation:true});
		}
	
}




