	if (top != self) top.location=self.location;

function op_real()	{win=window.open('../sfn_x/real.htm','detail_real','width=500,height=250,scrollbars=yes')}
function op_wt()	   {win=window.open('../sfn_x/wertung.htm','detail_wertung','width=500,height=300,scrollbars=yes')}

function op_ai()	   {win=window.open('../sfn_x/ai.htm','detail_ai','width=500,height=300,scrollbars=yes')}
function op_dkjs()	{win=window.open('../sfn_x/dkjs.htm','detail_dkjs','width=600,height=200,scrollbars=yes')}
function op_jun()	   {win=window.open('../sfn_x/junior.htm','detail_junior','width=600,height=250,scrollbars=yes')}

//+++++++++++++++++++++++ Marks to Form ++++++++++++++++++++++++++++++++++++++++++

function markitFindMarkString (w)		//markierten String suchen... 
{	var string;	var TextRange;
	var markitWhitespace = new RegExp('([ \\n\\t\\v\\r\\f]|%0D|%0A|%20)+', 'g');
	
	if (navigator.appName == "Netscape") {	string = escape(w.document.getSelection());
											string = string.replace (markitWhitespace,"%20");
	} else if ( navigator.appName == "Microsoft Internet Explorer" && w.document.selection.type == "Text" ) {
					TextRange = w.document.selection.createRange();
					string = TextRange.text;
	}
 	if (string) { return (string);}
	
	for (var i=0; i<w.frames.length; i++) {
		string = markitFindMarkString (w.frames[i]);
		if (string) { return (string);}
	}
	return "";
}

function markitFormClick(fname,feldname)		// onSubmit für markiertes
{	document.mailtofriend.marktext.value = markitFindMarkString(window.top);
}


//++++++++++++++++++++ Maus-fixierte Layer ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


	var x = 0;
	var y = 0;
	var showtime = 0;

    ns = (document.layers)? true:false		// browsertyp... 
    ie4 = (document.all)? true:false
    ie5 = false;
    if ( (ie4) && (navigator.userAgent.indexOf('MSIE 5') > 0) )	ie5 = true
       
 	if ( navigator.platform.substring(0,3).toUpperCase() == "MAC" && (ie4 || ie5) )	{	mac = true;
	} else {																			mac = false;
	}										// aber nicht mac... 

    if (ns) overlay = document.popDiv
    if (ie4) overlay = popDiv.style
    if (ns || ie4) document.onmousemove = mouseMove
    if (ns) document.captureEvents(Event.MOUSEMOVE)
    
function write_out(code) {
    	if (ns) {	var dymmy = document.popDiv.document
    				dymmy.write(code)
    				dymmy.close()
    	} else {	if (ie4) document.all["popDiv"].innerHTML = code
}		}
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 exsit() {							// und ex...
    	if (mac) {return;}
		if (ns || ie4)  {
    		showtime = 0;
    		hide(overlay);
}		}
function laycodes(message, head) {			// layer-code... 
    	code = 	"<table width=\"280\" border=\"0\" cellpadding=\"1\" cellspacing=\"0\" bgcolor=\"#009999\">" +
				"	<tr><td>						" +
				"		<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\">" +
				"			<tr><td><b><FONT face=\"Arial, Helvetica\" size=-1 color=\"#ffffdd\">"+head+"</FONT></b></td></tr>" +
				"		</table>					" +
				"		<table width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\" bgcolor=\"#ffffee\">" +
				"			<tr><td><FONT face=\"Arial, Helvetica\" size=-2 color=\"#000000\">"+message+"</FONT></td></tr>" +
				"		</table>					" +
				"	</td></tr>						" +
				"</table>							"
		write_out(code);
    	showit();						
}
function layover(xcoord, ycoord, head, message) {
		if (mac) {return;}
		x_korr=xcoord;
		y_korr=ycoord;
		laycodes(message, head);
}
function showit() {							// anzeigen ...
    	if ( (ns || ie4) && (showtime == 0) )	{
    			moveTo(overlay,x+x_korr,y+y_korr);
    			show(overlay);
    			showtime = 1;
}   	}	
function mouseMove(e) {						// mouseMoves ermöglichen... 
    	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 (showtime) 	{moveTo(overlay,x+x_korr,y+y_korr);}
}


//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

