	// Image rescaling factor (450/694)
	var divVal = 0.648415;

	function fRescaleImage(img)
	{
		if (!img.DONTSCALE)
		{
			if (img.width > 1)
			{
				img.style.width = (img.width * divVal);
			}
			if (img.height > 1)
			{
				img.style.height = (img.height * divVal);
			}
		}
	}

	function fRescaleImages()
	{
		if (window.screen.width < 1024)
		{
			// Rescale title image and Content-div
			var curDisplayStyle = document.body.style.display;
			document.body.style.display = 'none';
			var titleImg = document.getElementById('plhImgTitel_PresentationModeControlsContainer_PresentationImage');
			if (titleImg != null)
		    {
				titleImg.style.width = 650;
				titleImg.style.height = 27;
		    }
		    
		    var payOffImg = document.getElementById('imgPayOff');
			if (payOffImg != null)
		    {
				var payOffHref = payOffImg.href;
							
				var newHref = payOffHref.substring(0,payOffHref.indexOf('width')) + 'width=450';										
				payOffImg.src = newHref;
		    }
		    		    		    
			oImages = document.getElementById('Content').getElementsByTagName("img");
			if (oImages.length > 0)
			{
				for (var iImg = 0; iImg < oImages.length; iImg++)
				{
					fRescaleImage (oImages[iImg]);
				}
			}
			document.body.style.display = curDisplayStyle;
		}
		
		leftcol = document.getElementById('FillLeftColumn');
		center = document.getElementById('FillContent');
		rightcol = document.getElementById('FillRightColumn');
		
		leftcol.style.height = rightcol.style.height = center.clientHeight;
		
	}	

	function fSetPositioningForNonIEBrowsers()
	{		
		Browser = navigator.appName;
		if (navigator.appName.substring(0,9) == "Microsoft") Browser = 'MSIE';
		if (Browser != 'MSIE')
		{	
			//document.getElementById('Content').style.top = '100px';									
			
			oImages = document.getElementById('Content').getElementsByTagName("span");
			
			if (oImages.length > 0) {			
				for (var iImg = 0; iImg < oImages.length; iImg++) {
					var oImg = oImages[iImg];		
					oImg.style.position = 'relative';			
					oImg.style.top = '-10px';							
					}				
				}
		}
	}
