/*   IGOR Standard Javascript f. Netscrape 3.x - 6.x und alle IE ab Version 3
Revision: 3.4.09&-S
Datum: 21.0%.2003
Copyright (c) 1996-2003 ecw - electronic commerce & web: http://top-com.com/  office@top-com.com
*/
var myziel='logamain'; var mydomain='log-adventure.com';
if (window.name==myziel) parent.document.title=document.title;
var timerID=0;var locStr2=">    ";var locStr1=" "; var move=0;
var t0='<TABLE WIDTH=130 STYLE=\"border: 3px solid #ff0000; background-color:#ffff00\"><TR><TD CLASS=\"tabl\">';
var t1='</TD></TR></TABLE>';
var ie5=(document.all && document.getElementById) ? true : false;
var ie55=(document.all && document.getElementById && navigator.appVersion.indexOf('MSIE 5.0')==-1) ? true : false;
var ie4=(document.all && !document.getElementById) ? true : false;
var ns4=(document.layers) ? true : false;
var ns6=(!document.all && document.getElementById) ? true : false;
var mac=(navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
if (ns4) {
t0='<TABLE WIDTH=130 BGCOLOR=\"#ff0000\" CELLSPACING=0 CELLPADDING=3 BORDER=0><TR><TD><TABLE BGCOLOR=\"#ffff00\" CELLSPACING=0 CELLPADDING=2 BORDER=0 WIDTH=\"100%\"><TR><TD CLASS=\"tabl\">';
t1+=t1;
}
function igorinit() {
if (!mac) {
if ( ns4 || ns6 ) { window.captureEvents(Event.MOUSEMOVE); window.onmousemove = bewegeLogo; }
if ( ie4 || ie5 || ns6 ) { document.onmousemove = bewegeLogo; }
if ( ie4 ) hilfe=document.all.igorhilfe;
if (ie5 || ns6) hilfe = document.getElementById('igorhilfe');
if (ns4) hilfe = document.igorhilfe;
move=1;
bewegeLogo;
}
initdone = true;
window.status = (window.name==myziel) ? document.title : 'Log Adventure by Log Consult online';
if (ie5 && !mac) {
if (!ie55) hilfe.style.filter='revealTrans(Duration=0.5,Transition=12)';
else hilfe.style.filter='progid:DXImageTransform.Microsoft.Fade()';
}
return true;
}
function hF(t) {
doFlash(t);
}
function hFS() {
hitFlashStop()
}
function hitFlash(Mess,Dhtm) {
doFlash(Mess);
if ( Dhtm!=null && Dhtm!='' ) {
move=1;
bewegeLogo;
if ( ie4 || ie5 ) {
hilfe.filters[0].Apply();
hilfe.innerHTML = t0 + Dhtm + t1;
hilfe.style.visibility = 'visible';
hilfe.filters[0].Play();
}
if ( ns6 ) {
hilfe.innerHTML = t0 + Dhtm + t1;
MozFade(0);
}
if ( ns4 ) {
hilfe.document.write(t0 + Dhtm + t1);
hilfe.document.close();
hilfe.visibility = 'show';
}
}
}
function MozFade(i) {
if (i<100) {
hilfe.style.MozOpacity = i+'%';
if (i==0) hilfe.style.visibility = 'visible';
i+=8;
setTimeout('MozFade('+i+')',80);
}
else hilfe.style.MozOpacity = '100%';
}
function bewegeLogo(e) {
if ( move==1) {
if ( ns4 || ns6 ) {
var x = ( e.pageX>(window.innerWidth-50) ) ? (e.pageX - 40) : (e.pageX + 10) ;
var y = ( e.pageY>(window.innerHeight-55) ) ? (e.pageY - 65) : (e.pageY + 5) ;
if (ns4) hilfe.moveTo(x,y);
else {
var x1=x+'px';
var y1=y+'px';
hilfe.style.left = x1;
hilfe.style.top = y1;
}
}
else if ( ie4 || ie5 ) {
var x = window.event.clientX+document.body.scrollLeft+5;
var y = window.event.clientY+document.body.scrollTop+5;
if ( x-document.body.scrollLeft>document.body.clientWidth-40 ) x -= 55;
if ( y-document.body.scrollTop>document.body.clientHeight-50 ) y -= 60;
hilfe.style.pixelLeft = x;
hilfe.style.pixelTop = y;
}
}
}
function doFlash(mess) {
if (mess!='') { locStr1 = locStr2.substring(4)+locStr2.substring(0,4); locStr2 = locStr1; locStr1 = mess;
window.status=locStr2+" "+mess+" "+locStr2; timerID=setTimeout('doFlash(locStr1)', 100);}
else window.status=(window.name==myziel) ? document.title : 'Log Adventure by Log Consult online';
}
function hitFlashStop() {
clearTimeout(timerID);
window.status = (window.name==myziel) ? document.title : 'Log Adventure by Log Consult online';
if (move==1) {
move=0;
if ( ns4 ) hilfe.visibility = 'hide';
else if ( ie4 || ie5 || ns6 ) hilfe.style.visibility = 'hidden';
}
}
function ein(bild,obje) {
if (ie5) {
mypic = document.getElementById(obje);
}
else mypic = document.all[obje];
if (!mac) mypic.filters[0].Apply();
mypic.src = bild;
if (!mac) mypic.filters[0].Play();
}
function zufav() {
if (window.external) {
window.external.AddFavorite(parent.frames[myziel].location.href, parent.frames[myziel].document.title);
} else alert('Ihr Browser unterstützt diese Funktion nicht.\n\nBitte benutzen Sie die Bookmark Funktion ihres Browsers direkt\n(zB. [Strg]-[D] für Netscape).');
}
function sendpage(l) {
if (l=='e') location='mailto:?subject=Interesting URL at www.'+mydomain+'&body='+parent.frames[myziel].document.title+' -> '+parent.frames[myziel].location.href;
else location='mailto:?subject=Interessante URL bei www.'+mydomain+'&body='+escape(parent.frames[myziel].document.title)+' -> '+parent.frames[myziel].location.href;
}
function webmaster() {
location='mailto:webmaster@top-com.com?subject='+parent.frames[myziel].location.href;
}
function ecShowHelp(hid) {
window.open('/intern/_helpshow.asp?id='+hid,'winEcHelp','scrollbars=1,toolbar=0,location=0,directories=0,status=0,resizable=0,width=400,height=460')
}
function druck() {
if (window.print) print(parent.frames[myziel].document);
else if ((navigator.appName == "Microsoft Internet Explorer")) druckie4(parent.frames[myziel].document); //IE4 ?
}
function druckie4() {
var WebBrowser = '<OBJECT ID=\"WebBrowser1\" WIDTH=0 HEIGHT=0 CLASSID=\"CLSID:8856F961-340A-11D0-A96B-00C04FD705A2\"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
WebBrowser1.ExecWB(6,1);	 				
WebBrowser1.outerHTML = '';
}
if (document.images) {
nav0 = new Image(10,8);
nav0.src = '/_pic/nav0.gif';
nav1 = new Image(10,8);
nav1.src = '/_pic/pr.gif';
nav2 = new Image(9,9);
nav2.src = '/_pic/plus.gif';
nav3 = new Image(9,9);
nav3.src = '/_pic/plus_rot.gif';
}
function mausaus(i) {
if (document.all) document.all['p'+i].src = nav0.src;
else document['p'+i].src = nav0.src;
hitFlashStop();
}
function mausein(m,i) {
if (document.all) document.all['p'+i].src = nav1.src;
else document['p'+i].src = nav1.src;
hitFlash(m,'');
}
function mausaus2(i) {
if (document.all) document.all['p'+i].src = nav2.src;
else document['p'+i].src = nav2.src;
hitFlashStop();
}
function mausein2(m,i) {
if (document.all) document.all['p'+i].src = nav3.src;
else document['p'+i].src = nav3.src;
hitFlash(m,'');
}
function intern() {
winPar='resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,width='+(screen.width-24);
winPar+=',height='+(screen.height-60);
  intWindow = window.open('http://www.log-consult.com/intern/login.asp','ecwIntern',winPar);

intWindow.moveTo(8,2);
}
function ecwFormat(z) {
var voko = parseInt(z);
if (isNaN(voko)) return '0,00';
var nako = String(Math.round(z*100));
nako = ',' + nako.substr(nako.length - 2,2);
var counter = parseInt((String(voko).length - 1) / 3);
if (counter) {
var e = '';
var a = String(voko).length - (3 * counter);
for (var i=counter; i > 0; i--) e = '.' + String(voko).substring(a+(i-1)*3, a+(i-1)*3+3) + e;
voko = String(voko).substring(0, a) + e;
}
return voko + nako;
}
function ecwET(z) {
winPar='resizable=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,toolbar=0,width=280,height=370';
ecwWindow = window.open('/ecw_eurotool.asp?e='+z,'ecwTool',winPar);
}
function ecwAZ(objMenu,objImage) {
if (objMenu.style.display == "none") {
objMenu.style.display = "";
objImage.src = '/_pic/_minus.gif';
}
else {
objMenu.style.display = "none";
objImage.src = '/_pic/_plus.gif';
}
}
function chkS0() {
var x = document.such0.s.value;
if (x=='') {
alert('Geben Sie einen Suchbegriff ein.');
document.such0.s.focus();
return false;
}
if (x.length<3) {
alert('Der Suchbegriff muss mind. 3 Zeichen lang sein.');
document.such0.s.focus();
return false;
}
else return true;
}
function chkS1() {
var x = document.such1.s.value;
if (x=='') {
alert('Geben Sie einen Suchbegriff ein.');
document.such1.s.focus();
return false;
}
if (x.length<3) {
alert('Der Suchbegriff muss mind. 3 Zeichen lang sein.');
document.such1.s.focus();
return false;
}
else return true;
}
function f1(e,w) {
if (document.getElementById) {
if (w==0) e.style.background = '#e0e0e0';
else e.style.background = '#ffff00';
}
}
var delta = false;
function getp(p,a) {
winPar =  'width=600,height=600,resizable=1,scrollbars=1,menu=0';
kalWindow = window.open('_get_p'+p+'a'+a+'.asp','kalWin',winPar);
kalWindow.moveTo(0,0);
}
function setp(p,a,i) {
document.fk.elements['p'+p+'a'+a+'men'].value=i;
delta = true;
}
function goto(s) {
var fn = (s=='a') ? 'anbot.asp' : 'log_'+s+'.asp?state='+s;
if (delta) {
if (window.confirm('Sollen die Änderungen gespeichert werden?')==true) {
document.fk.bk.value = (s=='a') ? '1' : 's'+s;
document.fk.submit();
}
else location=fn;
}
else location=fn;
}
