﻿function cHtm(H){
if (H==""){H="Click an image";}
//if IE 4+
if (document.all){dCon.innerHTML=H;}
//else if NS4
else if (document.layers){
document.ns4dCon.document.ns4dCon2.document.write(H);
document.ns4dCon.document.ns4dCon2.
document.close();}
//else if NS6 (supports DOM)
else if (document.getElementById){
rng = document.createRange();
el = document.getElementById("dCon");
rng.setStartBefore(el);
htmlFrag = rng.createContextualFragment(H);
while (el.hasChildNodes())
el.removeChild(el.lastChild);
el.appendChild(htmlFrag);}
}
//Hide LeftMenu if no items
function findPosY(obj){
var curtop = 0;
if (obj.offsetParent){
while (obj.offsetParent){
curtop += obj.offsetTop
obj = obj.offsetParent;
}
}else if (obj.y)
curtop += obj.y;
return curtop;
}
function hideln(){
var elmLn;
var elmM1;
if (document.all){
elmLn=document.all.lna;
elmMl=document.all.mlo;
}else if (document.getElementById){
elmLn=document.getElementById("lna");
elmMl=document.getElementById("mlo");
}
if(elmMl&&elmLn){
intY=findPosY(elmMl);
if(intY<170){
elmLn.style.display="none";
elmMl.style.margin="0 0 0 0";
}
}
}

function gotolanguage() {
if (document.getElementById("languageselect")) {
var elmSelect = document.getElementById("languageselect");
if (elmSelect.selectedIndex > 0) {
document.location.href = elmSelect[elmSelect.selectedIndex].value;
}
}
}
function goToURL() {
if (document.strRedirectURL != "") {
document.location.href = document.strRedirectURL;
}
}
