//
//  Duke Energy CBT Template package 2006v1
//  
// JavaScript Document

// Do header graphic
document.write('<div class="headergraphic" id="headergraphic">');
document.write('<img src="' + globalImagePath + 'header.gif"></div>');


// Now do navigation DIV
document.write('<div class="pagenumber" id="pagenumber" align="center"></div>');
document.write('<div class="headernav" id="headernav"> ');
document.write('<table width="150" border="0" cellpadding="2" cellspacing="0">');
document.write('<tr> ');
// Use global variables declared in global_init.js to determine whether to show items.
// 0=hide, any other value=show
// Bookmark button
if (showbookmark!=0) {
document.write('<td width="46"><img id="top_bookmark" onclick="gotoPage(bookmarkpage)" onmouseover="swapImage(this)" onmouseout="swapImage(this)" src="' + globalNavImagePath + 'bookmark.gif" width="46" height="26"></td>');
}
else {
document.write('<td width="46"><img src="' + globalImagePath + 'transparency.gif" width="46" height="1" border="0"></td>');
}
// Menu button
if (showmenu!=0) {
document.write('<td width="73"><img id="top_menu" onclick="gotoPage(menupage)" onmouseover="swapImage(this)" onmouseout="swapImage(this)" src="' + globalNavImagePath + 'menu.gif" width="73" height="26"></td>');
}
else {
document.write('<td width="73"><img src="' + globalImagePath + 'transparency.gif" width="73" height="1" border="0"></td>');
}
// Spacer
document.write('<td width="12"><img src="' + globalImagePath + 'transparency.gif" width="12" height="1" border="0"></td>');
// Next and Previous button
if (shownextprev!=0) {
document.write('<td width="87"><img id="top_back" onclick="gotoPage(backpage)" onmouseover="swapImage(this)" onmouseout="swapImage(this)" src="' + globalNavImagePath + 'back.gif" width="87" height="26"></td>');
document.write('<td width="87"><img id="top_next" onclick="gotoPage(nextpage)" onmouseover="swapImage(this)" onmouseout="swapImage(this)" src="' + globalNavImagePath + 'next.gif" width="87" height="26"></td>');
}
else {
document.write('<td width="87"><img src="' + globalImagePath + 'transparency.gif" width="87" height="1" border="0"></td>');
document.write('<td width="87"><img src="' + globalImagePath + 'transparency.gif" width="87" height="1" border="0"></td>');
}

document.write('</tr>');
document.write('</table>');
document.write('</div>');


// Now do debugger
if (debugEnable==1) {

document.write('<link rel="stylesheet" href="_global_styles/debuggerstyle.css" type="text/css">');
document.write('<div id="debugger" class="debugger">');
// Title
document.write('--Debugger--');
// Links
document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('<a href="_global_asp/sessionvariables.htm">ASP vars</a>');
document.write('&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('<a href="_global_asp/abandon.htm">ASP abandon</a>');
document.write('&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('<a href="_global_asp/ClassComplete.htm">ClassComplete</a><br>');
//set up SPAN items here
document.write('<span id="debugitem01"></span>');
document.write('<span id="debugitem02"></span>');
document.write('<span id="debugitem03"></span>');
document.write('<span id="debugitem04"></span>');
document.write('<span id="debugitem05"></span>');
document.write('<span id="debugitem06"></span>');
document.write('<span id="debugitem07"></span>');
document.write('<span id="debugitem08"></span>');
document.write('</div>');
}


