var gFit = true; var gWidth = 800; var gHeight = 600; function getStyle(element, strCssRule) { if (document.defaultView && document.defaultView.getComputedStyle) return document.defaultView.getComputedStyle(element, "").getPropertyValue(strCssRule); if (!element.currentStyle) return ""; strCssRule = strCssRule.replace(/\-(\w)/g, function (strMatch, p1) { return p1.toUpperCase(); }); return element.currentStyle[strCssRule]; } function getIntStyle(element, strCssRule) { if (getStyle(element, strCssRule)=="auto") return 0; return parseInt(getStyle(element, strCssRule).replace("px", "")); } function HasClass(element, classname) { if (!element) return ""; var elemClasses = element.className.split(' '); // get list of classes for (var i=0; i0) elems[tab-1].style.display='block'; } function Switch(tabnum) { var cnt = 0; var elems = document.getElementsByTagName("li"); for (var i=0; i0) continue; elems[i].id = 'current'; break; } var cur = document.getElementById('current'); if (!cur) return; var elem = cur.getElementsByTagName('a')[0]; var type = HasClass(elem, "load_"); if (type=="png") LoadImg(elem.name); if (type=="html") LoadLog(elem.name); if (type=="rc") LoadRc(elem.name); if (type=="def") Mars(); } function Add(i) { var currentTab = GetCurrentTab(); if (currentTab<0) return; Switch(currentTab+i); } function GetWidth() { var dw = 0; var element1 = document.getElementById('tabcontent'); dw += getIntStyle(element1, "padding-right"); dw += getIntStyle(element1, "padding-left"); dw += 2*14; // width of box_mtl_topl.gif and box_mtl_topr.gif return gFit ? document.width-dw : gWidth; } function GetHeight() { var element = document.getElementById('tabcontent'); var dh = 0; dh += getIntStyle(element, "padding-top"); dh += getIntStyle(element, "padding-bottom"); return gFit ? (document.width-dh)*gHeight/gWidth : gHeight; } function ChangeCursor() { // document.body.style.cursor='url(magnify-glass.cur)'; } function LoadImg(fname) { var img = new Image(); img.src = fname; gWidth = img.width; gHeight = img.height; document.getElementById('tabcontent').innerHTML = ""+fname+"0 ?("width='"+GetWidth()+"'"):"")+ (GetHeight()>0?("height='"+GetHeight()+"'"):"")+ " src='"+fname+"'"+">"; } function LoadImgTT(fname) { var img = new Image(); img.src = fname; var w = 480; var h = 480*img.height/img.width; var elements = document.getElementsByTagName('span'); for (var i=0; i"; break; } } } } function Mars() { document.getElementById('tabcontent').innerHTML = "
" + document.getElementById('default').innerHTML + "
"; // width:"+GetWidth()+";height:"+GetHeight()+" } function Size(fit) { gFit = fit; Resize(); var element = document.getElementById('mainpic'); if (!element) return; element.width = GetWidth(); element.width = GetWidth(); /* INTENTIONAL */ element.height = GetHeight(); } function ToggleSize() { Size(!gFit); document.getElementById('magtxt').innerHTML = gFit ? "O" : "Z"; Resize(); } function Resize() { var e = document.getElementById('tabsul'); var h = getIntStyle(document.getElementById('magnify'), "height"); var p = getIntStyle(e, "padding-right"); // Order is important! e.style.height = h; // +1 to show the bottom border e.style.width = document.width-p*2; /* var w = 0; w += getIntStyle(element, "padding-right"); w += getIntStyle(element, "padding-left"); document.getElementById('myContent').innerHTML = w+" "; var elements = document.getElementsByTagName('li'); for (var i=0; i'+ '

Please click here.

'+ ''; /* xmlHttpObject.open('get', file); xmlHttpObject.onreadystatechange = handleContentLog; xmlHttpObject.send(null); return false;*/ } function handleContentLog() { /* 0: nicht initialisiert 1: objekt bereit aber noch keine daten gesendet 3: daten werden empfangen 4: alle daten wurden empfangen */ if (xmlHttpObject.readyState == 4) { document.getElementById('tabcontent').innerHTML = xmlHttpObject.responseText; } } function LoadRc($file) { document.getElementById('tabcontent').innerHTML = ''; /* xmlHttpObject.open('get', $file); xmlHttpObject.onreadystatechange = handleContentRc; xmlHttpObject.send(null); return false;*/ } function handleContentRc() { /* 0: nicht initialisiert 1: objekt bereit aber noch keine daten gesendet 3: daten werden empfangen 4: alle daten wurden empfangen */ if (xmlHttpObject.readyState == 4) { document.getElementById('tabcontent').innerHTML = "
"+xmlHttpObject.responseText+"
";
    }
}

function LoadLogTT(file)
{
    return false;

    xmlHttpObject.open('get', file);
    xmlHttpObject.onreadystatechange = handleContentTT;
    xmlHttpObject.send(null);
    return false;
}

function handleContentTT()
{
    /*
     0: nicht initialisiert
     1: objekt bereit aber noch keine daten gesendet
     3: daten werden empfangen
     4: alle daten wurden empfangen
     */
    if (xmlHttpObject.readyState == 4)
    {
        var elements = document.getElementsByTagName('span');
        for (var i=0; i