// version 9324
// links to HxLink.css, DTUE CSS, and DTUE topics scripts
var ieVer = getIEVersion();
var jsPath = scriptPath();
writeCSS(jsPath);
function getIEVersion() {
//determines the IE version. Returns 0 if not IE
var verNum = 0
if (navigator.appName == "Microsoft Internet Explorer") {
var sVer = window.navigator.userAgent
var msie = sVer.indexOf ( "MSIE " )
if ( msie > 0 ) { // browser is Microsoft Internet Explorer; return version number
verNum = parseFloat( sVer.substring ( msie+5, sVer.indexOf ( ";", msie ) ) );
}
}
return verNum;
}
function scriptPath() {
//Determine path to JS-the CSS is in the same directory as the script
if ( ieVer >= 4 ) {
var spath = document.scripts[document.scripts.length - 1].src;
// spath = spath.toLowerCase();
return spath.replace("dtuelink.js", "");
}
else {
var spath = "..\\scripts\\"; //defaults to a scripts folder
return spath;
}
}
function writeCSS(spath) {
var dtueCSS = "";
var HxLinkPath = "";
var HxLink = "";
// Get a CSS name based on the browser.
if ( ieVer >= 5) {
dtueCSS = "DTUE.css";
HxLink = "HxLink.css";
HxLinkPath = "..";
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
}
else {
if (ieVer >=4 && ieVer <5) {
document.writeln('');
dtueCSS = "msdn_ie4.css";
HxLink = "";
HxLinkPath = "";
}
else {
if (ieVer < 4)
document.writeln('');
dtueCSS = "msdn_ie3.css";
HxLink = "";
HxLinkPath = "";
//document.write ("")
//document.write ("")
}
}
// Insert CSS calls
document.writeln('');
document.writeln('');
}