﻿
//<!--
//tooltip
wmtt = null;
document.onmousemove = updateWMTT;
function updateWMTT(e) {
  if (wmtt != null) {
    x = (document.all) ? window.event.x + wmtt.offsetParent.scrollLeft : e.pageX;
    y = (document.all) ? window.event.y + wmtt.offsetParent.scrollTop  : e.pageY;
    wmtt.style.left = (x + 10) + "px";
    wmtt.style.top   = (y + 10) + "px";
  }
}
function showWMTT(id) {
  wmtt = document.getElementById(id);
  wmtt.style.display = "block"
}
function hideWMTT() {
  wmtt.style.display = "none";
}

// Change drowdown
function gotoOtherWebsite(element){
    var sUrl = element.options[element.selectedIndex].value.split("$=")[0];
    var sWindow = element.options[element.selectedIndex].value.split("$=")[1];

    if ( sUrl != "0" && sUrl != "") {
        openNewWindow(sUrl, sWindow);
    }
}

function openNewWindow(sUrl, sWindow) {
    var oNewWindow = window.open(sUrl, sWindow);
    oNewWindow.focus();
}


// onload Methods 
document.observe("dom:loaded", function() {
    //init accordion
    $('basic-accordian') ? new Accordian('basic-accordian',5,'header_active') : null;
});

//-->
