// JavaScript Document
$(document).ready(function(){ 
						   
						   
		var theAnchor = $.url.attr("anchor");
		if (theAnchor!="" && theAnchor!=null){
			//alert(theAnchor);
			switch (theAnchor){
			case "/hotel-refurbishment":
				//alert ("do hotel");
				$('#feed_home').hide();
				$('#feed_hotel').show();
				$('#feed_retail').hide();
				$('#feed_public').hide();
				$('#feed_commercial').hide();
				$('#feed_special').hide();
				$('#topright').css({"background":"#000000","height":"300px"});
				$('#nav_hotel').css("background-image","url(/images/nav_hotel_on.gif)");
				$('#nav_retail').css("background-image","url(/images/nav_retail.gif)");
				$('#nav_commercial').css("background-image","url(/images/nav_commercial.gif)");
				$('#nav_public').css("background-image","url(/images/nav_public.gif)");
				$('#nav_specialist').css("background-image","url(/images/nav_contact.gif)");
				$('#breadcrumb p').html('<p><a href="/home">Home</a>&nbsp;&#47;&#47;&nbsp;<a href="/home#/hotel-refurbishment">hotel refurbishment</a></p>');
			break;
			case "/retail-sector":
				$('#feed_home').hide();
				$('#feed_hotel').hide();
				$('#feed_retail').show();
				$('#feed_public').hide();
				$('#feed_commercial').hide();
				$('#feed_special').hide();
				$('#topright').css({"background":"#022d17","height":"300px"});
				$('#nav_hotel').css("background-image","url(/images/nav_hotel.gif)");
				$('#nav_retail').css("background-image","url(/images/nav_retail_on.gif)");
				$('#nav_commercial').css("background-image","url(/images/nav_commercial.gif)");
				$('#nav_public').css("background-image","url(/images/nav_public.gif)");
				$('#nav_specialist').css("background-image","url(/images/nav_contact.gif)");
				$('#breadcrumb p').html('<p><a href="/home">Home</a>&nbsp;&#47;&#47;&nbsp;<a href="/home#/retail-sector">retail sector</a></p>');
				//alert ("do retail");
			break;
			case "/commercial-contracts":
				$('#feed_home').hide();
				$('#feed_hotel').hide();
				$('#feed_retail').hide();
				$('#feed_public').hide();
				$('#feed_commercial').show();
				$('#feed_special').hide();
				$('#topright').css({"background":"#2c070c","height":"300px"});
				$('#nav_hotel').css("background-image","url(/images/nav_hotel.gif)");
				$('#nav_retail').css("background-image","url(/images/nav_retail.gif)");
				$('#nav_commercial').css("background-image","url(/images/nav_commercial_on.gif)");
				$('#nav_public').css("background-image","url(/images/nav_public.gif)");
				$('#nav_specialist').css("background-image","url(/images/nav_contact.gif)");
				$('#breadcrumb p').html('<p><a href="/home">Home</a>&nbsp;&#47;&#47;&nbsp;<a href="/home#/commercial-contracts">commercial contracts</a></p>');
			//alert ("do commercial");
			break;
			case "/public-social":
				$('#feed_home').hide();
				$('#feed_hotel').hide();
				$('#feed_retail').hide();
				$('#feed_public').show();
				$('#feed_commercial').hide();
				$('#feed_special').hide();
				$('#topright').css({"background":"#14334f","height":"300px"});
				$('#nav_hotel').css("background-image","url(/images/nav_hotel.gif)");
				$('#nav_retail').css("background-image","url(/images/nav_retail.gif)");
				$('#nav_commercial').css("background-image","url(/images/nav_commercial.gif)");
				$('#nav_public').css("background-image","url(/images/nav_public_on.gif)");
				$('#nav_specialist').css("background-image","url(/images/nav_contact.gif)");
				$('#breadcrumb p').html('<p><a href="/home">Home</a>&nbsp;&#47;&#47;&nbsp;<a href="/home#/public-social">public / social</a></p>');
			//alert ("do public");
						break;
			case "/specialist-services":
				$('#feed_home').hide();
				$('#feed_hotel').hide();
				$('#feed_retail').hide();
				$('#feed_public').show();
				$('#feed_commercial').hide();
				$('#feed_special').hide();
				$('#topright').css({"background":"#3e210f","height":"300px"});
				$('#nav_hotel').css("background-image","url(/images/nav_hotel.gif)");
				$('#nav_retail').css("background-image","url(/images/nav_retail.gif)");
				$('#nav_commercial').css("background-image","url(/images/nav_commercial.gif)");
				$('#nav_public').css("background-image","url(/images/nav_public.gif)");
				$('#nav_specialist').css("background-image","url(/images/nav_contact_on.gif)");
				$('#breadcrumb p').html('<p><a href="/home">Home</a>&nbsp;&#47;&#47;&nbsp;<a href="/home#/public-social">public / social</a></p>');
			//alert ("do public");
			break;
				case "/introduction":
				$('#feed_home').show();
				$('#feed_hotel').hide();
				$('#feed_retail').hide();
				$('#feed_public').hide();
				$('#feed_commercial').hide();
			break;
			default:
				$('#feed_home').show();
				$('#feed_hotel').hide();
				$('#feed_retail').hide();
				$('#feed_public').hide();
				$('#feed_commercial').hide();
	
			break;
			}
		
		}else if (theAnchor=="" || theAnchor==null){
				$('#feed_home').show();
				$('#feed_hotel').hide();
				$('#feed_retail').hide();
				$('#feed_public').hide();
				$('#feed_commercial').hide();
				$('#feed_special').hide();
		}
		$('#nav_hotel a').click(function () {
		//location.href="/home#/hotel-refurbishment";
		//var theAnchor = $.url.attr("anchor");
		//setActiveStyleSheet('hotel',1);
		//$('#feed').load('/hotel_top_text.html');
		
		
		//return false;
		$('#feed_home').hide();
		$('#feed_hotel').show();
		$('#feed_retail').hide();
		$('#feed_public').hide();
		$('#feed_commercial').hide();
		$('#feed_special').hide();
		$('#topright').css({"background":"#000000","height":"300px"});
		$('#nav_hotel').css("background-image","url(/images/nav_hotel_on.gif)");
				$('#nav_retail').css("background-image","url(/images/nav_retail.gif)");
				$('#nav_commercial').css("background-image","url(/images/nav_commercial.gif)");
				$('#nav_public').css("background-image","url(/images/nav_public.gif)");
				$('#nav_specialist').css("background-image","url(/images/nav_contact.gif)");
		$('#breadcrumb p').html('<p><a href="/home">Home</a>&nbsp;&#47;&#47;&nbsp;<a href="/home#/hotel-refurbishment">hotel refurbishment</a></p>');
		SWFAddress.setValue("/hotel-refurbishment");
		this.blur();
		return false;
		}
		);	
		
		$('.hotel_link').click(function () {
		var theAnchor = $.url.attr("anchor");
		
		//setActiveStyleSheet('hotel',1);
		//$('#feed').load('/hotel_top_text.html');
		$('#feed_home').hide();
		$('#feed_hotel').show();
		$('#feed_retail').hide();
		$('#feed_public').hide();
		$('#feed_commercial').hide();
		$('#feed_special').hide();
		$('#breadcrumb p').html('<p><a href="/home">Home</a>&nbsp;&#47;&#47;&nbsp;<a href="/home#/hotel-refurbishment">hotel refurbishment</a></p>');
		//return false;
		}
		);
		
		$('#nav_retail a').click(function () {
		
		var theAnchor = $.url.attr("anchor");
		
		//setActiveStyleSheet('retail',1);
		//$('#feed').load('/retail_top_text.html');
		//
		//return false;
		$('#feed_home').hide();
		$('#feed_hotel').hide();
		$('#feed_retail').show();
		$('#feed_public').hide();
		$('#feed_commercial').hide();
		$('#feed_special').hide();
		$('#topright').css({"background":"#022d17","height":"300px"});
		$('#nav_hotel').css("background-image","url(/images/nav_hotel.gif)");
				$('#nav_retail').css("background-image","url(/images/nav_retail_on.gif)");
				$('#nav_commercial').css("background-image","url(/images/nav_commercial.gif)");
				$('#nav_public').css("background-image","url(/images/nav_public.gif)");
				$('#nav_specialist').css("background-image","url(/images/nav_contact.gif)");
		$('#breadcrumb p').html('<p><a href="/home">Home</a>&nbsp;&#47;&#47;&nbsp;<a href="/home#/retail-sector">retail sector</a></p>');
		SWFAddress.setValue("/retail-sector");
		this.blur();
		//location.href="/home#/retail-environment";
		return false;
		}
		);
		
		$('.retail_link a').click(function () {
		var theAnchor = $.url.attr("anchor");
		//setActiveStyleSheet('retail',1);
		//$('#feed').load('/retail_top_text.html');
		$('#feed_home').hide();
		$('#feed_hotel').hide();
		$('#feed_retail').show();
		$('#feed_public').hide();
		$('#feed_commercial').hide();
		$('#feed_special').hide();
		$('#breadcrumb p').html('<p><a href="/home">Home</a>&nbsp;&#47;&#47;&nbsp;<a href="/home#/retail-sector">retail sector</a></p>');	
		//return false;
		}
		);
		
		$('#nav_public a').click(function () {
		//location.href="/home#/public-social";
		var theAnchor = $.url.attr("anchor");
		//setActiveStyleSheet('public',1);
		//$('#feed').load('/public_top_text.html');
		//
		//return false;
		$('#feed_home').hide();
		$('#feed_hotel').hide();
		$('#feed_retail').hide();
		$('#feed_public').show();
		$('#feed_commercial').hide();
		$('#feed_special').hide();
		$('#topright').css({"background":"#14334f","height":"300px"});
		$('#nav_hotel').css("background-image","url(/images/nav_hotel.gif)");
				$('#nav_retail').css("background-image","url(/images/nav_retail.gif)");
				$('#nav_commercial').css("background-image","url(/images/nav_commercial.gif)");
				$('#nav_public').css("background-image","url(/images/nav_public_on.gif)");
				$('#nav_specialist').css("background-image","url(/images/nav_contact.gif)");
		$('#breadcrumb p').html('<p><a href="/home">Home</a>&nbsp;&#47;&#47;&nbsp;<a href="/home#/public-social">public sector</a></p>');
		
		SWFAddress.setValue("/public-social");
		this.blur();
		return false;
		}
		);
		
		$('.public_link a').click(function () {
		//alert('hello world');
		var theAnchor = $.url.attr("anchor");
		//alert(theAnchor);
		
		//setActiveStyleSheet('public',1);
		//$('#feed').load('/public_top_text.html');
		$('#feed_home').hide();
		$('#feed_hotel').hide();
		$('#feed_retail').hide();
		$('#feed_public').show();
		$('#feed_commercial').hide();
		$('#feed_special').hide();
		$('#breadcrumb p').html('<p><a href="/home">Home</a>&nbsp;&#47;&#47;&nbsp;<a href="/home#/public-social">public sector</a></p>');
		//return false;
		}
		);
		
		$('#nav_commercial a').click(function () {
		//alert('hello world');
		//location.href="/home#/commercial-contracts";
		var theAnchor = $.url.attr("anchor");
		//alert(theAnchor);
		
		//setActiveStyleSheet('commercial',1);
		//$('#feed').load('/commercial_top_text.html');
		//
		//return false;
		$('#feed_home').hide();
		$('#feed_hotel').hide();
		$('#feed_retail').hide();
		$('#feed_public').hide();
		$('#feed_commercial').show();
		$('#feed_special').hide();
		$('#topright').css({"background":"#2c070c","height":"300px"});
		$('#nav_hotel').css("background-image","url(/images/nav_hotel.gif)");
				$('#nav_retail').css("background-image","url(/images/nav_retail.gif)");
				$('#nav_commercial').css("background-image","url(/images/nav_commercial_on.gif)");
				$('#nav_public').css("background-image","url(/images/nav_public.gif)");
				$('#nav_specialist').css("background-image","url(/images/nav_contact.gif)");
		$('#breadcrumb p').html('<p><a href="/home">Home</a>&nbsp;&#47;&#47;&nbsp;<a href="/home#/commercial-contracts">commercial contracts</a></p>');
		SWFAddress.setValue("/commercial-contracts");
		this.blur();
		return false;
		}
		);
		
		$('.commercial_link').click(function () {
		//alert('hello world');
		var theAnchor = $.url.attr("anchor");
		//var theURL; = $.url;
		//alert(theAnchor);
		
		//setActiveStyleSheet('commercial',1);
		//$('#feed').load('/commercial_top_text.html');
		$('#feed_home').hide();
		$('#feed_hotel').hide();
		$('#feed_retail').hide();
		$('#feed_public').hide();
		$('#feed_commercial').show();
		$('#feed_special').hide();
		$('#breadcrumb p').html('<p><a href="/home">Home</a>&nbsp;&#47;&#47;&nbsp;<a href="/home#/commercial-contracts">commercial contracts</a></p>');
		//return false;
		alert(theURL);
		}
		);
		
		
		
		$('#nav_specialist a').click(function () {
		//alert('hello world');
		//location.href="/home#/commercial-contracts";
		var theAnchor = $.url.attr("anchor");
		//alert(theAnchor);
		
		//setActiveStyleSheet('commercial',1);
		//$('#feed').load('/commercial_top_text.html');
		//
		//return false;
		$('#feed_home').hide();
		$('#feed_hotel').hide();
		$('#feed_retail').hide();
		$('#feed_public').hide();
		$('#feed_commercial').hide();
		$('#feed_special').show();
		$('#topright').css({"background":"#3e210f","height":"300px"});
		$('#nav_hotel').css("background-image","url(/images/nav_hotel.gif)");
				$('#nav_retail').css("background-image","url(/images/nav_retail.gif)");
				$('#nav_commercial').css("background-image","url(/images/nav_commercial.gif)");
				$('#nav_public').css("background-image","url(/images/nav_public.gif)");
				$('#nav_specialist').css("background-image","url(/images/nav_contact_on.gif)");
		$('#breadcrumb p').html('<p><a href="/home">Home</a>&nbsp;&#47;&#47;&nbsp;<a href="/home#/specialist-services">specialist services</a></p>');
		SWFAddress.setValue("/specialist-services");
		this.blur();
		return false;
		}
		);
		
		$('.specialist_link').click(function () {
		//alert('hello world');
		var theAnchor = $.url.attr("anchor");
		//var theURL; = $.url;
		//alert(theAnchor);
		
		//setActiveStyleSheet('commercial',1);
		//$('#feed').load('/commercial_top_text.html');
		$('#feed_home').hide();
		$('#feed_hotel').hide();
		$('#feed_retail').hide();
		$('#feed_public').hide();
		$('#feed_commercial').hide();
		$('#feed_special').show();
		$('#breadcrumb p').html('<p><a href="/home">Home</a>&nbsp;&#47;&#47;&nbsp;<a href="/home#/specialist-services">specialist services</a></p>');
		//return false;
		alert(theURL);
		}
		);
		
		
		
		$('#nav_contact a').click(function () {
		//alert('hello world');
		//setActiveStyleSheet('',1);
		}
		);
		
		$('#topnav_home a').click(function () {
		$('#feed_home').show();
		$('#feed_hotel').hide();
		$('#feed_retail').hide();
		$('#feed_public').hide();
		$('#feed_commercial').hide();
		$('#feed_special').hide();
		}
		);
		
		$('#topnav_contact a').click(function () {
		//alert('hello world');
		//setActiveStyleSheet('',1);
		}
		);
		
		$('#topnav_about a').click(function () {
		//alert('hello world');
		//setActiveStyleSheet('',1);
		}
		);
		
		$('#topnav_other a').click(function () {
		//alert('hello world');
		//setActiveStyleSheet('',1);
		}
		);
		
		$('#topnav_news a').click(function () {
		//alert('hello world');
		//setActiveStyleSheet('',1);
		}
		);
			var flashvars = {};
			var params = {};
			params.scale = "noscale";
			var attributes = {};
			attributes.id = "flashcontentid";
			swfobject.embedSWF("main.swf", "flashcontent", "980", "420", "9.0.0", "expressInstall.swf", flashvars, params, attributes);

		
		
		
});