﻿<!--
var ROOT = ""; var allcookies = document.cookie; var font_types = ["small","medium","large"];
if(document.images) { icoFontSize01_on = new Image(14,14); icoFontSize01_off = new Image(14,14); icoFontSize02_on = new Image(16,16); icoFontSize02_off = new Image(16,16);  icoFontSize03_on = new Image(18,18); icoFontSize03_off = new Image(18, 18); }
if(document.images) { icoFontSize01_on.src = "/images/IT/icoFontSize01_on.gif"; icoFontSize01_off.src = "/images/IT/icoFontSize01_off.gif"; icoFontSize02_on.src = "/images/IT/icoFontSize02_on.gif"; icoFontSize02_off.src = "/images/IT/icoFontSize02_off.gif"; icoFontSize03_on.src = "/images/IT/icoFontSize03_on.gif"; icoFontSize03_off.src = "/images/IT/icoFontSize03_off.gif"; }
function set_css() {
 var pos = allcookies.indexOf("css=");
 if (pos != -1) {
  var start = pos + 4; var end = allcookies.indexOf(";", start);
  if (end == -1) end = allcookies.length;
  var value = allcookies.substring(start,end); value = unescape(value);
  for( var i=1;i<=3;i++) {
   if (value == font_types[i-1]) {
    var imgLocation = "icoFontSize0" + i; var imgName = imgLocation + "_on"; swapit(imgLocation,imgName); setStyleSheet(font_types[i-1]);
   }
  }
 } else {
  var imgLocation = "icoFontSize01"; var imgName = imgLocation + "_on"; swapit(imgLocation,imgName); setStyleSheet(font_types[0]); var nextyear = new Date(); nextyear.setFullYear(nextyear.getFullYear() + 1);
  document.cookie = "css=" + font_types[0] + "; expires=" + nextyear.toGMTString() + "; path=/";    
 }
}
function set_css_only() {
 var pos = allcookies.indexOf("css=");
 if (pos != -1) {
  var start = pos + 4; var end = allcookies.indexOf(";", start);
  if (end == -1) end = allcookies.length;
  var value = allcookies.substring(start,end); value = unescape(value);
  for( var i=1;i<=3;i++) {
   if (value == font_types[i-1]) {
    setStyleSheet(font_types[i-1]);
   }
  }
 }
}
function swapit(imgLocation, imgName) {
 if(document.images) {
  try {
   document.images[imgLocation].src = eval(imgName + ".src");
  } catch(er) {
   // No Left Nav Loaded.
  }
 }
}
function swapit2(imgLocation) {
 var newImgLocation = "";
 if(document.images) {
  var imgName = document.images[imgLocation].src; imgName = imgName.substr(imgName.lastIndexOf('/')+1);    
  for(var i=1; i<=3; i++) {
   var newImgName = imgName.substr(0,imgName.lastIndexOf('_')-1) + i; 
   if(imgLocation.substring(imgLocation.length-1) == i){
    newImgName += "_on"; document.images[imgLocation].src = eval(newImgName + ".src"); var nextyear = new Date(); nextyear.setFullYear(nextyear.getFullYear() + 1);
    document.cookie = "css=" + font_types[i-1] + "; expires=" + nextyear.toGMTString() + "; path=/";
    setStyleSheet(font_types[i-1]);
   } else {
    newImgLocation = imgLocation.substring(0,imgLocation.length-1) + i; newImgName += "_off"; document.images[newImgLocation].src = eval(newImgName + ".src");
   }
  }
 } 
}
function setStyleSheet(theme) {
 agt=navigator.userAgent.toLowerCase();
 if ( agt.indexOf("safari") != -1 ) {
  var myStyle = "css" + theme;
  for ( i = 0; i < font_types.length; i++) {
   document.getElementById("css" + font_types[i]).disabled = true;
  }
   document.getElementById(myStyle).disabled = false;
 } else {
  for ( i = 0; i < document.styleSheets.length; i++ ) {
   if ( document.styleSheets[i].title ) {
    document.styleSheets[i].disabled = true;
    if ( document.styleSheets[i].title == theme ) {           
     document.styleSheets[i].disabled = false;
    }
   }
  }
 }
}
function showMenu(ctrl) {
 var NavGroup = document.getElementById(ctrl); var LeftNav = document.getElementById("LHN").getElementsByTagName("UL");
  for (ii = 0; ii < LeftNav.length; ii++) {
   if (LeftNav[ii].id != "LanguageLinks") {
    LeftNav[ii].className = 'NavGroup';
    LeftNav[ii].style.marginTop = -19;
   }
  }
  NavGroup.className = 'NavGroup_Open';
  var docHeight = document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight;
  if ((NavGroup.parentNode.offsetTop + NavGroup.offsetHeight + NavGroup.offsetTop + 30) >= docHeight ) {
   NavGroup.style.marginTop = '-' + NavGroup.offsetHeight + 'px';
  }
  if (document.getElementById("mainContent")) { contentRoot = document.getElementById("mainContent"); } else { contentRoot = document.getElementById("Content"); }
  contentRoot.onmouseover = function() {
  NavGroup.className = 'NavGroup';
 }   
}
function loadjQuery() { 
    google.load("jquery", "1.4.2"); 
}
document.write("<link rel='stylesheet' type='text/css' id='csssmall' href='/StylesheetSmall.css' title='small'>");
document.write("<link rel='stylesheet' type='text/css' id='cssmedium' href='/StylesheetMedium.css' title='medium' DISABLED>");
document.write("<link rel='stylesheet' type='text/css' id='csslarge' href='/StylesheetLarge.css' title='large' DISABLED>");
document.write("<link rel='shortcut icon' href=''>");
document.write('<script src="http://www.google.com/jsapi?key=ABQIAAAAOxw40YWF6eyJjmMd7YrAqhQkJZOYiW6dFRy8X2oryKKVXb2ekRT2sCXpcOZNOoE_ppKNFnoGiy6PEw&callback=loadjQuery" type="text/javascript"></script>');
// -->