/*
index:Home;ircal1:Calibration Lab;whatisndt:What Is NDT?;cinde:Who is CINDE?;nrcan:Who Is NRCan?;mobius00:---NEWS---;certs:Certification;calendar:Courses;evening:Evening Courses;workshop:Workshops;discount:Special Discounts;contact:Contact Us;credits:Sponsors Thanks!;
*/
/*
TEXTHIGHLIGHT:#FF0033;GRAPHICHIGHLIGHT:yes;BACKGROUNDHIGHLIGHT:none;TEXTMOUSEOVER:#FF0033;FONTFORMATBOLD:Bold;FILENAME:Basic_Buttons_Mustard;GRAPHIC:Basic_Buttons;GRAPHICMOUSEOVER:yes;BACKGROUNDMOUSEOVER:none;FONTSTYLE:Arial Narrow;ORIENTATION:VERTICAL;NUMPAGES:13;GRAPHICSTYLE:BUTTONS;STYLENAME:Basic_Buttons;FONTSIZE:2;FONTCOLOR:#000000;GRAPHICCOLOR:Mustard;VERTICALSPACE:12;HORIZONTALSPACE:12;COLORSCHEME:Mustard;
*/
var tabWidth = 114;
var tabHeight = 31;
var buttonsPerRow = 6; 
var nVerticalLinkGapInCell = 12;
var nHorizontalLinkGapInCell = 12;

Nav1buttonOnImage = new Image(tabWidth, tabHeight);
Nav1buttonOnImage.src = "/~site/Layout/Buttons/Basic_Button_Yellow.gif";
Nav1buttonOffImage = new Image(tabWidth, tabHeight);
Nav1buttonOffImage.src = "/~site/Layout/Buttons/Basic_Button_Mustard.gif";
function Nav1mouseOn(graphicName) { document.images[graphicName].src = Nav1buttonOnImage.src; }
function Nav1mouseOff(graphicName) { document.images[graphicName].src = Nav1buttonOffImage.src; }


function Nav1textMouseOn(textObj) { textObj.style.color="#FF0033"; }
function Nav1textMouseOff(textObj) { textObj.style.color="#000000"; }

function Nav1getMouseOverHandler(strImgName, textObjName, bIsCurrPage) {
 
if (bIsCurrPage) return '';

var strHTMLMouseOver = '';
var strHTMLMouseOut = '';

if (navigator.userAgent.indexOf("IE") != -1) {
strHTMLMouseOver += 'Nav1mouseOn(\'' + strImgName + '\');';
strHTMLMouseOut += 'Nav1mouseOff(\'' + strImgName + '\');';
}


strHTMLMouseOver += 'Nav1textMouseOn(' + textObjName + ');';
strHTMLMouseOut += 'Nav1textMouseOff(' + textObjName + ');';

return 'onMouseOver="' + strHTMLMouseOver + '" onMouseOut="' + strHTMLMouseOut + '"';
}
function Nav1isCurrentPage(currentPage) {
var page = new String(window.location);
var size = currentPage.length;
var tildePage = currentPage.substring(0, size - 5 ); 
tildePage += "~"; 
if(page.indexOf(currentPage) != -1 || page.indexOf(tildePage) != -1 ) { 
return true;
} else {
return false;
}
}
function Nav1getHTML(navID, strLinkName, strImg, strLink, nOptionNum, strImgName, bLastOption) {
var nRowIndex = 0;
var nColIndex = 0;
strImgName = strImgName + '_' + navID;
 
nColIndex = 0;
nRowIndex = nOptionNum - 1;


var bIsCurrPage = Nav1isCurrentPage(strLink);
if (bIsCurrPage) {

strImg = '/~site/Layout/Buttons/Basic_Button_Yellow.gif';


strFontColor = '#FF0033';

} else {
strFontColor = '#000000';
}

if (navigator.userAgent.indexOf("IE") != -1) {
return Nav1getIEHTML(strLinkName, strImg, strLink, nOptionNum, nRowIndex, nColIndex, strImgName, strFontColor, bIsCurrPage);
} else {
return Nav1getNSHTML(strLinkName, strImg, strLink, nOptionNum, nRowIndex, nColIndex, strImgName, bLastOption, strFontColor, bIsCurrPage);
}
}
function goToLink(link) { parent.location = link; }
function Nav1getIEHTML(strLinkName, strImg, strLink, nOptionNum, nRowIndex, nColIndex, strImgName, strFontColor, bIsCurrPage) {
var strHTML;
var nLeftPos = 0;
var nTopPos = 0;
var divID = "link_text_" + strImgName;
nTopPos = (-2 * tabHeight * (nOptionNum - 1)) + ((tabHeight + nVerticalLinkGapInCell) * nRowIndex);
nLeftPos = nColIndex * (tabWidth + nHorizontalLinkGapInCell);
strHTML = '<DIV style="position:relative;top:' + nTopPos + 'px;left:'
+ nLeftPos + 'px;width:' + tabWidth + 'px;height:'+ tabHeight + 'px">';
strHTML += '<A TARGET="_parent" HREF="' + strLink + '" ';
strHTML += Nav1getMouseOverHandler(strImgName, divID, bIsCurrPage);
strHTML += '><IMG SRC="' + strImg + '" NAME="' + strImgName + '" WIDTH=' + tabWidth + ' HEIGHT=' + tabHeight + ' BORDER="0">';
strHTML += '</A>'
strHTML += '<DIV ALIGN="center" style="position:relative;top:-' + tabHeight + 'px;left:0px;width:' + tabWidth + 'px;height:' + tabHeight + 'px;cursor:hand" ' + Nav1getMouseOverHandler(strImgName, divID, bIsCurrPage) + ' onClick=goToLink("' + strLink + '")>';
strHTML += '<IMG SRC="/tp.gif" HEIGHT="' + tabHeight + '" WIDTH="1" ALIGN="absmiddle">';
strHTML += '<FONT FACE="Arial Narrow" SIZE="2">'; 
var strFormattingStart = ''; 
var strFormattingEnd = '';


strFormattingStart += '<B>';
strFormattingEnd += '</B>';

strHTML += '<SPAN ID="' + divID + '" STYLE="color:' + strFontColor + '"';
strHTML += '>' + strFormattingStart + strLinkName + strFormattingEnd + '</SPAN>';
strHTML += "</FONT></DIV></DIV>";
return strHTML;
}
function Nav1getNSHTML(strLinkName, strImg, strLink, nOptionNum, nRowIndex, nColIndex, strImgName, bLastOption, strFontColor, bIsCurrPage) {
var strHTML = '';
if (nOptionNum == 1) {
strHTML += '<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0"';

strHTML += '>';
}
if (nColIndex == 0) strHTML += '<TR>';
strHTML += '<TD WIDTH="'+ tabWidth + '" HEIGHT="' + tabHeight + '" ALIGN="CENTER" VALIGN="MIDDLE" BACKGROUND="' + strImg + '">';
var strFormattingStart = ''; 
var strFormattingEnd = '';


strFormattingStart += '<B>';
strFormattingEnd += '</B>';

strHTML += '<A TARGET="_parent" HREF="' + strLink + '">';
strHTML += '<FONT COLOR="' + strFontColor + '" FACE="Arial Narrow" SIZE="2">'; 
strHTML += strFormattingStart + strLinkName + strFormattingEnd + '</A></FONT>';
strHTML += '</TD>';
 
strHTML += '</TR>';
strHTML += '<TR><TD>';
strHTML += '<IMG SRC="/tp.gif" WIDTH="1" HEIGHT="'+nVerticalLinkGapInCell+'" BORDER="0" ALT=""/>';
strHTML += '</TD></TR>';


if (bLastOption) strHTML += '</TABLE>';
return strHTML;
}
function Nav1navElement() {
if(typeof Nav1counter == "undefined") {
Nav1counter = 1;
} else {
Nav1counter += 1;
}
var navID = Nav1counter;
if (navigator.userAgent.indexOf("Mozilla/3") != -1) {
var msg = 'Sorry, since you are using an old version of Netscape, you may not be able to access all the pages in this Web site.';	
document.write(msg);
} else {
document.write(Nav1getHTML(navID, "Home", "/~site/Layout/Buttons/Basic_Button_Mustard.gif", "index.html", 1, "Nav1GRAPHIC1", 0));
document.write(Nav1getHTML(navID, "Calibration Lab", "/~site/Layout/Buttons/Basic_Button_Mustard.gif", "ircal1.html", 2, "Nav1GRAPHIC2", 0));
document.write(Nav1getHTML(navID, "What Is NDT?", "/~site/Layout/Buttons/Basic_Button_Mustard.gif", "whatisndt.html", 3, "Nav1GRAPHIC3", 0));
document.write(Nav1getHTML(navID, "Who is CINDE?", "/~site/Layout/Buttons/Basic_Button_Mustard.gif", "cinde.html", 4, "Nav1GRAPHIC4", 0));
document.write(Nav1getHTML(navID, "Who Is NRCan?", "/~site/Layout/Buttons/Basic_Button_Mustard.gif", "nrcan.html", 5, "Nav1GRAPHIC5", 0));
document.write(Nav1getHTML(navID, "---NEWS---", "/~site/Layout/Buttons/Basic_Button_Mustard.gif", "mobius00.html", 6, "Nav1GRAPHIC6", 0));
document.write(Nav1getHTML(navID, "Certification", "/~site/Layout/Buttons/Basic_Button_Mustard.gif", "certs.html", 7, "Nav1GRAPHIC7", 0));
document.write(Nav1getHTML(navID, "Courses", "/~site/Layout/Buttons/Basic_Button_Mustard.gif", "calendar.html", 8, "Nav1GRAPHIC8", 0));
document.write(Nav1getHTML(navID, "Evening Courses", "/~site/Layout/Buttons/Basic_Button_Mustard.gif", "evening.html", 9, "Nav1GRAPHIC9", 0));
document.write(Nav1getHTML(navID, "Workshops", "/~site/Layout/Buttons/Basic_Button_Mustard.gif", "workshop.html", 10, "Nav1GRAPHIC10", 0));
document.write(Nav1getHTML(navID, "Special Discounts", "/~site/Layout/Buttons/Basic_Button_Mustard.gif", "discount.html", 11, "Nav1GRAPHIC11", 0));
document.write(Nav1getHTML(navID, "Contact Us", "/~site/Layout/Buttons/Basic_Button_Mustard.gif", "contact.html", 12, "Nav1GRAPHIC12", 0));
document.write(Nav1getHTML(navID, "Sponsors Thanks!", "/~site/Layout/Buttons/Basic_Button_Mustard.gif", "credits.html", 13, "Nav1GRAPHIC13", 1));

}
}
function Nav1netscapeDivCheck() {
var strAppName = navigator.appName;
var appVer = parseFloat(navigator.appVersion);
if ( (strAppName == "Netscape")&&
(appVer >= 4.0 && appVer < 5) ) { 
document.write("</DIV>");
}
}
var Nav1counter;
Nav1navElement();
Nav1netscapeDivCheck();
