
/*	-------------------------------------------------------------
	function getBrowserWidth()
	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	Description:	As odd as it may seem, this function returns
					the browser's width in pixels.
	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	Credits:		Script found on Particle Tree
					http://www.particletree.com
	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -	*/
	
		<!--
		function getBrowserWidth(){

			if (window.innerWidth){
				return window.innerWidth;}	
			else if (document.documentElement && document.documentElement.clientWidth != 0){
				return document.documentElement.clientWidth;	}
			else if (document.body){return document.body.clientWidth;}		
				return 0;
		}
		function getBrowserHeight(){

			if (window.innerHeight){
				return window.innerHeight;}	
			else if (document.documentElement && document.documentElement.clientHeight != 0){
				return document.documentElement.clientHeight;	}
			else if (document.body){return document.body.clientHeight;}		
				return 0;
		}
		//-->

/*	-------------------------------------------------------------
	function determineStyle()
	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	Description:	With this here function we can swap styles.
	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	Credits:		Script found on A List Apart
					http://www.alistapart.com
	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -	*/
	
		<!--
		function determineStyle(){
			
			var browserWidth = getBrowserWidth();
			var browserHeight = getBrowserHeight();
		
			var i, a, main;
			
			if (browserWidth > 1024 && browserHeight < 768 ){
				for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
					if(a.getAttribute("rel").indexOf("style") != -1
					&& a.getAttribute("title")) {
						a.disabled = true;
						if(a.getAttribute("title") == "panoramic") a.disabled = false;
					}
				}
			
			}
			if (browserWidth <= 1024 && browserWidth > 800){
				for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
					if(a.getAttribute("rel").indexOf("style") != -1
					&& a.getAttribute("title")) {
						a.disabled = true;
						if(a.getAttribute("title") == "narrow") a.disabled = false;
					}
				}
			}
			if (browserWidth <= 800){
				for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
					if(a.getAttribute("rel").indexOf("style") != -1
					&& a.getAttribute("title")) {
						a.disabled = true;
						if(a.getAttribute("title") == "extra-narrow") a.disabled = false;
					}
				}
			
			}
			
			if (browserWidth > 1024 && browserHeight > 768 ){
				for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
					if(a.getAttribute("rel").indexOf("style") != -1
					&& a.getAttribute("title")) {
						a.disabled = true;
						if(a.getAttribute("title") == "wide") a.disabled = false;
					}
				}
	
			}
				var el = (window.opera ? document.body : document.documentElement);
 
	            var docHeight = el.clientHeight-30;
            	
	            document.getElementById("content").style.height = docHeight + "px";
	            if (document.getElementById("scrollContent")) {
	                document.getElementById("scrollContent").style.height = docHeight -10 + "px";

	            }
		}
		
		function doOnResize () {
			determineStyle();
		}
		
		function doOnLoad () {
			determineStyle();
		}
			
	//-->