var strContentURL = '';

// catch all errors
function handleError() { return(true); }
window.onerror = handleError;

    // test on ?SHOW_URL parameter in URL
  if ((self.location.search.length > 0) && (self.location.search.indexOf('?SHOW_URL=') == 0))
  {
    // ?SHOW_URL parameter in URL
    // top.name = '';
    strContentURL = self.location.search.substring(10);

    // try to set cookie SHOW_URL & test if cookie SHOW_URL is set
    SetCookie(DEFAULT_SHOW_URL_COOKIE, strContentURL);
    if (GetCookie(DEFAULT_SHOW_URL_COOKIE) == strContentURL)
    {
      // cookies enabled: remove URL from querystring
      strContentURL = '';
      top.location.replace(self.location.href.substring(0, self.location.href.indexOf('?SHOW_URL=')));
    }
    else
    {
      // cookies not enabled: use default page as parameter in querystring
    }
  }
  else
  {
    // ?SHOW_URL parameter not in URL
    // try to read cookie
    var strCookie = GetCookie(DEFAULT_SHOW_URL_COOKIE);
    if (strCookie && (strCookie.length > 0))
    {
      // cookie is set: remove URL from querystring
      strContentURL = '';
    }
    else
    {
            // cookie is not set: use default page as parameter in querystring
            if(strStartPage.length > 0)
            {
                strContentURL = strStartPage;
            }
            else if (typeof(Menu1) != "undefined" && typeof(Menu1[1]) != "undefined")
            {
                strContentURL = Menu1[1];
            }
            else if (typeof(JSGenericMenuItems) != "undefined" && typeof(JSGenericMenuItems[2]) != "undefined")
            {
                strContentURL = JSGenericMenuItems[2];
            }
            
        }
  }

document.writeln('<frameset cols="*,1010,*" frameborder="NO" border="0" framespacing="0">');
document.writeln('		<frame src="left_bg_frame.htm" name="left_bg_frame" id="left_bg_frame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('		<frameset rows="26,101,27,*" frameborder="NO" border="0" framespacing="0">');
document.writeln('    		<frame src="menu2_frame_'+ displayMenu +'.htm" name="menu2_frame" id="menu2_frame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('    		<frameset cols="244,516,250" frameborder="NO" border="0" framespacing="0">');
document.writeln('       		 <frame src="logo_frame.htm" name="logo_frame" id="logo_frame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('       		 <frame src="banner_frame.htm" name="banner_frame" id="banner_frame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('        	 <frame src="pagetext_frame.htm" name="pagetext_frame" id="pagetext_frame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('		    </frameset>');
document.writeln('		    <frame src="topmenu_frame.htm" name="topmenu_frame" id="topmenu_frame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('		    <frameset cols="242,*" frameborder="NO" border="0" framespacing="0">');
document.writeln('		        <frameset rows="357,*,30" frameborder="NO" border="0" framespacing="0">');
document.writeln('		            <frame src="submenu_frame_'+ displayMenu +'.htm" name="submenu_frame" id="submenu_frame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('		            <frame src="left_spacer_frame.htm" name="left_spacer_frame" id="left_spacer_frame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('		            <frame src="poweredby_frame.htm" name="poweredby_frame" id="poweredby_frame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('		        </frameset>');
if(bIFrameProblemBrowser){
document.writeln('		        <frame src="' + strContentURL + '" name="bodyFrame" id="bodyFrame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
}else{
if (strContentURL.length == 0) {
document.writeln('  		          <FRAME SRC="content_' + displayMenu + '.htm" NAME="contentFrame" ID="contentFrame" FRAMEBORDER="0" SCROLLING="No" NORESIZE MARGINWIDTH="0" MARGINHEIGHT="0" BORDER="0">');
} else {
document.writeln(' 			          <FRAME SRC="content.htm?SHOW_URL=' + strContentURL + '" NAME="contentFrame" ID="contentFrame" FRAMEBORDER="0" SCROLLING="No" NORESIZE MARGINWIDTH="0" MARGINHEIGHT="0" BORDER="0">');
}
}
document.writeln(' 		   </frameset>');
document.writeln('		</frameset>');
document.writeln('		<frame src="right_bg_frame.htm" name="right_bg_frame" id="right_bg_frame" scrolling="no" frameborder="0" noresize marginwidth="0" marginheight="0">');
document.writeln('</frameset>');

