
	function Page()
	{
		this.arrURI 	= [];
		this.oldStep 	= "";
		
		this.getWindowInnerHeight = function()
		{
			if(document.body.clientHeight)
			{
				return document.body.clientHeight;
			}
			else
			{
				return window.innerHeight;
			}
		}


		this.getWindowInnerWidth = function()
		{
			if(document.body.clientWidth)
			{
				return document.body.clientWidth;
			}
			else
			{
				return window.innerWidth;
			}
		}


		this.flashposition = function()
		{
			var intFlashTopPos  													= (this.getWindowInnerHeight() / 2) - (560 / 2);
			var intFlashLeftPos 													= (this.getWindowInnerWidth() / 2)  - (960 / 2);

			document.getElementById('flash').style.left 			= intFlashLeftPos;
			document.getElementById('flash').style.top  			= intFlashTopPos;

			document.getElementById('checkout').style.left	= intFlashLeftPos;
			document.getElementById('checkout').style.top	= intFlashTopPos;
		}


		this.getHistoryStep = function()
		{
			return top.location.href.substr(top.location.href.indexOf('#this.arrURI.join(".").toString()') + 3);
		}


		this.setHistoryStep = function(intLastStep)
		{
			return (intLastHistoryStep = parseInt(intLastStep));
		}


		this.addHistory = function(strTitle, intLayer)
		{
			if(strTitle == undefined) strTitle = '';

			++intLastHistoryStep;
			
			if(this.oldStep != strTitle)
			{
				this.arrURI[intLayer]  	= strTitle;
				this.oldStep					= strTitle;
			}
			
			//alert('ADD | historyStep: ' + this.arrURI + ' |  layer: '  + intLayer);

			if(this.arrURI.length > 1)
			{
				dhtmlHistory.add( this.arrURI.join(".").toString() ); 
			}
			else
			{
				//alert('else');
				dhtmlHistory.add( this.arrURI[0].toString() ); 
			}

			return intLastHistoryStep;
		}

		this.resetHistoryStepIncrement = function()
		{
			this.arrURI				= [];
			this.oldStep 				= "";
			intLastHistoryStep 	= 0;
		}

		this.hasHistoryStep = function()
		{
			return (top.location.href.indexOf('#this.arrURI.join(".").toString()') >= 0);
		}


		this.switchModus = function(strMode)
		{
			strMode = strMode || '';
		}


		this.checkResolution = function()
		{
			if(screen.width < intResolutionWidth || screen.height < intResolutionHeight)
			{
				return false;	
			}
			return true;
		}
		
		this.cache = '';
	}
