function formatSiteToPrintfriendly()
{
		var EmentorFastTracktop = window.document.getElementById("EmentorFastTracktop");	
		if(EmentorFastTracktop != null)
			EmentorFastTracktop.style.display = 'none';
			
		var EmentorFastTrackmenu = window.document.getElementById("EmentorFastTrackmenu");	
		if(EmentorFastTrackmenu != null)
			EmentorFastTrackmenu.style.display = 'none';
			
		var EmentorFastTrackbreadcrumb = window.document.getElementById("EmentorFastTrackbreadcrumb");	
		if(EmentorFastTrackbreadcrumb != null)
			EmentorFastTrackbreadcrumb.style.display = 'none';
		
		var zz3_SiteActionsMenu_t = window.document.getElementById("zz3_SiteActionsMenu_t");	
		if(zz3_SiteActionsMenu_t != null)
			zz3_SiteActionsMenu_t.style.display = 'none';
			
		var EmentorFastTrackleftMenuCol = window.document.getElementById("EmentorFastTrackleftMenuCol");	
		if(EmentorFastTrackleftMenuCol != null)
			EmentorFastTrackleftMenuCol.style.display = 'none';
			
		var EmentorFastTrackonecol_ie6fix2 = window.document.getElementById("EmentorFastTrackonecol_ie6fix2");	
		if(EmentorFastTrackonecol_ie6fix2 != null)
			EmentorFastTrackonecol_ie6fix2.style.display = 'none';
			
		var EmentorFastTrackaddress = window.document.getElementById("EmentorFastTrackaddress");	
		if(EmentorFastTrackaddress != null)
			EmentorFastTrackaddress.style.display = 'none';
			
		var EmentorFastTracksplitcolumn = window.document.getElementById("EmentorFastTracksplitcolumn");	
		if(EmentorFastTracksplitcolumn != null)
			EmentorFastTracksplitcolumn.style.display = 'none';

		var EmentorFastTrackonecol_ie6fix = window.document.getElementById("EmentorFastTrackonecol_ie6fix");	
		if(EmentorFastTrackonecol_ie6fix != null)
			EmentorFastTrackonecol_ie6fix.style.display = 'none';
			
		var main = window.document.getElementById("EmentorFastTrackpage");                                                     
		var logo = document.createElement('div');
		logo.innerHTML = '<img style="padding-left: 20px;" src="/_layouts/1030/images/su/SVUU_RGB_POS_S.png" alt="printlogo" />';
		logo.style.textAlign = "left";
		logo.style.height = "77px";
		main.parentNode.insertBefore(logo, main);
		
		document.write('<link rel="stylesheet" type="text/css" href="/_layouts/1030/STYLES/su/su_internet_print.css" />');

		if(getPrintWidth() != "width=500")
		{
			if(navigator.appName == 'Microsoft Internet Explorer')
			{
				document.getElementById('EmentorFastTrackpage').style.width = '983px';
				document.getElementById('EmentorFastTrackpage').style.position = 'relative';
			}
			else
			{
				document.getElementById('EmentorFastTrackpage').style.width = '983px';
				document.getElementById('EmentorFastTrackpage').style.position = 'absolute';
			}
		}
		
		print();
}

function getPrintWidth()
{
		var width = "width=500";		
		if(window.document.getElementById("EmentorFastTrackfourcol_ie6fix") != null)
		{
			width = 'width=983';
		}
		
		var main = document.getElementById('EmentorFastTrackmain');
		if(main != null)
		{
			if(main.hasChildNodes())
			{
				var childNodeArray = main.childNodes;
				for (i=0;i<childNodeArray.length;i++)
				{
					if(childNodeArray[i].className == 'EmentorFastTrackfrontpagetop')
						width = 'width=963';
				}				
			}
		}

		
		if(window.location.href.indexOf('.aspx?k=') == '-1')
			width = width;
		else
			width = 'width=983';
		
		return width;
}

function printSite()
{
		width = getPrintWidth();
		var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,";
		sOption+="scrollbars=yes," + width + ",height=800,left=100,top=25"; 
		var url = window.location.href;

		var bkmrkPos = url.indexOf('#');
		if (bkmrkPos != '-1')	
			{url = url.substring(0, bkmrkPos);}

		if (url.indexOf('?') == '-1')
		 url += "?printvenligversion=ja";
		else
		 url += "&printvenligversion=ja";


   	    var winprint=window.open(url,"",sOption); 
}
