$(document).ready(function () {
	var pg='';
	if ($(document).getUrlParam("pg")) pg=$(document).getUrlParam("pg").toLowerCase();
	if (!pg)	pg="home";
	$.swapImage(".nav-button");
	if($.browser.msie && $.browser.version=="7.0"){
		$(".page-title").dropShadow({
			left: 0,top: 0,blur: 2,opacity: .25,color: "#003a5c"});
	} else {
		if (pg=="installations" || pg=="terms") {
			$(".page-title").dropShadow({
				left: 0,top: 0,blur: 2,opacity: .25,color: "#003a5c"});	
		} else {
			$(".page-title").dropShadow({
				left: 0,top: 5,blur: 2,opacity: .25,color: "#003a5c"});
		}
	}
	$("#window-cycler-top").cycle({
		fx: "fade",timeout: 6500,speed: 1000,pause: 1,random: 1,sync: true,next: '#window-top-next',prev: '#window-top-prev'});
	$("#logo-clicker").click(function () {
		window.location='http://www.bioairsolutions.com/index.php';});
	$("#window-cycler-bottom").cycle({
		fx: "fade",timeout: 6500,speed: 1000,pause: 1,random: 1,sync: true,next: '#window-bottom-next',prev: '#window-bottom-prev'});
	$.localScroll();
});