function leavingUSHIK(url)
{
    if (confirm('You are leaving USHIK'))
        location.href = url;
}


// PORTALS defined:
var PORTAL_MDR = 'mdr';
var PORTAL_HITSP = 'hitsp';
var PORTAL_COMMON_FORMATS = 'ps';
var PORTAL_MUMM = 'mum';
var PORTAL_STATE_ALL_PAYERS = 'apcd';

// define the window location and default portal:
var pageURI = new URI(window.location);
var pageSystem = PORTAL_MDR;

// look to the URI to find the system:
if(pageURI.getData('system') != undefined){
    pageSystem = pageURI.getData('system');
} else if(pageURI.getData('System') != undefined){
    pageSystem = pageURI.getData('System');
}

document.write('<table style="border:outset 1px;" valign="top" padding="2px">');
document.write('<tr>');
document.write('<td valign="top">');
document.write('<div id="right" >');

//HITSP highlights
if (pageSystem == PORTAL_HITSP){
    document.write('<div id="HLights" class="HLights">');
    document.write('<div class="HLightsTitle">HIGHLIGHTS</div>');
    document.write('<div class="HLightsTitle_ds">HIGHLIGHTS</div>');
    document.write('</div>');
    document.write('<p>A 100% HITSP Data Element inventory has been loaded into USHIK.</p>');
    document.write('<p><a href="models_hitsp_portal.html?system=hitsp&Referer=Models">2009 Information Model Updated</a></p>');
}

//PS highlights
else if (pageSystem == PORTAL_COMMON_FORMATS){
    document.write('<div id="HLights" class="HLights">');
    document.write('<div class="HLightsTitle">HIGHLIGHTS</div>');
    document.write('<div class="HLightsTitle_ds">HIGHLIGHTS</div>');
    document.write('</div>');
    document.write('<p><a style="text-align:left;" href= "http://pso.ahrq.gov/" target=_self title="Common Formats Version 1.1 technical specifications available at the PSO PPC.">Common Formats Version 1.1 technical specifications available at the PSO PPC.</a><p>');
    document.write('<p><a style="text-align:left;" href="http://www.qualityforum.org/projects/ongoing/CommonFormats/index.asp" onClick="return confirm(&#34;You are now leaving the PSO Common Formats&#34;)" target=_blank title="Provide feedback on the Common Formats through the NQF">Provide feedback on the Common Formats through the NQF</a><p>');
    document.write('<p><a style="text-align:left;" href="https://www.psoppc.org"  onClick="return confirm(&#34;You are now leaving the PSO Common Formats&#34;)" target=_blank title="Technical Assistance available on the Common Formats">Technical Assistance available on the Common Formats</a><p>');

}
else if(pageSystem == PORTAL_MUMM){
    document.write('<div id="HLights" class="HLights">');
    document.write('<div class="HLightsTitle">HIGHLIGHTS</div>');
    document.write('<div class="HLightsTitle_ds">HIGHLIGHTS</div>');
    document.write('</div>');
    document.write('<p><a style="text-align:left;" href="" target=_self title="">Meaningful Use Information</a></p>');
}
else if(pageSystem == PORTAL_STATE_ALL_PAYERS){
    document.write('<div id="HLights" class="HLights">');
    document.write('<div class="HLightsTitle">HIGHLIGHTS</div>');
    document.write('<div class="HLightsTitle_ds">HIGHLIGHTS</div>');
    document.write('</div>');
    document.write('<p><a style="text-align:left;" href="" target=_self title="">All-Payer Claims Information</a></p>');
}
// USHIK Generic Highlights
else {
    document.write('<div id="HLights" class="HLights">');
    document.write('<div class="HLightsTitle">HIGHLIGHTS</div>');
    document.write('<div class="HLightsTitle_ds">HIGHLIGHTS</div>');
    document.write('</div>');
    document.write('<p>In support of the latest harmonization initiatives of HITSP ;  C80 (Clinical Document and Message Terminology) and C83 (CDA and CCD Content Module) are available in USHIK!</p>');
}
document.write('</td></tr></table></div>');