
//window.defaultStatus = "Dieser Text steht dann in der Statusleiste";
//window.defaultStatus ="TEXT";
//self.statusbar.visible=false;


function getscreenwidthMSIE(){
	document.chatform.swidth.value=document.body.clientWidth;
}

function getscreenwidthNS(){
	document.chatform.swidth.value=window.innerWidth;
}

 
function showpicMSIE(src) {	//Bannerabfrage MSExplorer		
	if (document.body.clientWidth < 850 && document.body.clientWidth > 768) document.write('<img src="'+src+'" width="100" height="50" border="0">');	
	else if (document.body.clientWidth <= 768)document.write('<img src="'+src+'" width="75" border="0">');
	else document.write('<img src="'+src+'" width="100" height="50" border="0">');		
}


function showpicNS(src) {	//Bannerabfrage Netscape	
	if (window.innerWidth < 850 &&  window.innerWidth > 768) document.write('<img src="'+src+'" width="100" height="50" border="0">');	
	else if (window.innerWidth <= 768)document.write('<img src="'+src+'" width="75" border="0">');
	else document.write('<img src="'+src+'" width="100" height="50" border="0" align=left>');		
}


  
		
	
	var x = 0;
	var xx=10;
	var yy= 10;
	var y = 0;
	var showit = 0;

    // Welchen Browser haben wir denn...
    // ----------------------------------
    ns = (document.layers)? true:false
    ie4 = (document.all)? true:false
    ie5 = false;
    if (ie4) {
    	if (navigator.userAgent.indexOf('MSIE 5')>0) {
    		ie5 = true;
    	}
    }
	
 
 
	if ( navigator.platform.substring(0,3).toUpperCase() == "MAC" && (ie4 || ie5) )  
	{
	   mac = true;
	   } else {
	   mac = false;
	   }

	
	
	
    if ( (ns) || (ie4) ) {
    	if (ns) over = document.popDiv
    	if (ie4) over = popDiv.style
    	document.onmousemove = mouseMove
    	if (ns) document.captureEvents(Event.MOUSEMOVE)
    }


    function wtl(txt) {
    	if (ns) {
    		var lll = document.popDiv.document
    		lll.write(txt)
    		lll.close()
    	} else {
    		if (ie4) document.all["popDiv"].innerHTML = txt
    	}
    }


    function show(obj) {
    	if (ns) obj.visibility = "show"
    	else if (ie4) obj.visibility = "visible"
   }

    function hide(obj) {
    	if (ns) obj.visibility = "hide"
    	else if (ie4) obj.visibility = "hidden"
    }

    function moveTo(obj,lx,ly) {
    	obj.left = lx
    	obj.top = ly
    }


    function hideit() {
    	if (mac) {return;}
		
		if ( (ns) || (ie4) )  {
    		showit = 0;
    		hide(over);
    	}
    }


   
    function rpopi(text, title) {
    	txt = "<TABLE WIDTH=320 BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\"#000000\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0><TR><td bgcolor=#AC0000 width=5>&nbsp;</td><TD width=100% nobr><B><FONT face=\"Verdanam, Arial, Helvetica\" size=-2 class=\"lt\" color=\"#ffffff\"><span style=\"font-size:8pt;font-weight:normal;\">"+title+"</SPAN></FONT></span></B></TD></TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR=\"#EAEAEA\"><TR><TD><span style=\"font-size:7.5pt;color:#000000;font-weight:normal;\">"+text+"<SPAN></TD></TR></TABLE></TD></TR></TABLE>"
       	wtl(txt);
    	display_it();
    }


	function popi(i,xm) {
		if (mac) {return;}
		xx=xm;
		rpopi(text[i],title[i]);
    }


   
    function display_it() {
    	if ( (ns) || (ie4) ) {
    		if (showit == 0) 	{
    			moveTo(over,x+xx,y+yy);
    			show(over);
    			showit = 1;
    		}
    	}
    }


   
    function mouseMove(e) {
    	if (ns) {x=e.pageX; y=e.pageY;}
    	if (ie4) {x=event.x; y=event.y;}
    	if (ie5) {x=event.x+document.body.scrollLeft; y=event.y+document.body.scrollTop;}
    	if (showit) {
    		moveTo(over,x+xx,y+yy);
    	}
    }
