function formatSiteToPrintfriendly()
{
window.document.getElementById("RGtop").style.display = 'none';
window.document.getElementById("RGmenu").style.display = 'none';
window.document.getElementById("RGbreadcrumb").style.display = 'none';                                             
var bottomMain = window.document.getElementById("BottomMain")
if(bottomMain != null)
bottomMain.style.display = 'none';

var main = window.document.getElementById("RGmain");                                                     
logo = document.createElement('div');
if (BrowserDetect.browser == 'Explorer' & BrowserDetect.version == '6')
logo.innerHTML = '<div style="padding-left: 530px" ><img src="/images/logo.png" alt=""/></div>';
else
logo.innerHTML = '<div style="padding-left: 530px" ><img src="/images/logo.png" alt=""/></div>';
main.parentNode.insertBefore(logo, main);

var leftMenu = window.document.getElementById('RGleftMenuCol');
if(leftMenu != null)
leftMenu.style.display= 'none';

var RGsitemap = window.document.getElementById('RGsitemap');
if(RGsitemap != null)
RGsitemap.style.display = 'none';

if (BrowserDetect.browser == 'Explorer' & BrowserDetect.version == '6')
{
if(main != null)
main.style.width = "480px";

if(window.document.getElementById('RGindholdContentTd') != null)
{

var leftColumn = window.document.getElementById('RGonecol_ie6fix');
    if(leftColumn != null)
        main.parentNode.appendChild(leftColumn);
    }
else
{

    var leftColumn = window.document.getElementById('RGonecol_ie6fix2');
    if(leftColumn != null)
    {
     main.parentNode.appendChild(leftColumn);
    }
    else
    {
        leftColumn = window.document.getElementById('RGonecol_ie6fix');
        main.parentNode.appendChild(leftColumn);
    }

    }
}

   var editPageMenu = window.document.getElementById('ctl00_SPNavigation_ctl01_authContainer1');
if(editPageMenu != null)
    editPageMenu.style.display = 'none';                                                                     

var webstedhandlinger = window.document.getElementById('zz3_SiteActionsMenu_t');
if(webstedhandlinger != null)
    webstedhandlinger.style.display = 'none';

document.write('<link rel="stylesheet" type="text/css" href="/css/RG_internet_print.css" />');

if(window.document.getElementById('RGtopPrint') != null)
    window.document.getElementById('RGtopPrint').style.display = 'block';

window.document.close();
window.print();

}



function printSite()
{
    var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
    sOption+="scrollbars=yes,width=860,height=800,left=100,top=25"; 
    var winprint=window.open(window.location.href+"?printvenligversion=ja","",sOption); 
}



