//\  Reduced Code from overLIB 3.50 mod. by Wirth
//\  Copyright Erik Bosrup 1998-2001. All rights reserved.
//\  Latest version at http://www.bosrup.com/web/overlib/
var INARRAY = 1;
var CAPARRAY = 2;
var STICKY = 3;
var BACKGROUND = 4;
var NOCLOSE = 5;
var CAPTION = 6;
var LEFT = 7;
var RIGHT = 8;
var CENTER = 9;
var WIDTH = 17;
var BORDER = 18;
var STATUS = 19;
var AUTOSTATUS = 20;
var AUTOSTATUSCAP = 21;
var HEIGHT = 22;
var CLOSETEXT = 23;
var ABOVE = 35;
var BELOW = 36;
var CAPICON = 37;
var FRAME = 44;
var TIMEOUT = 45;
var FUNCTION = 46;
var DELAY = 47;
var HAUTO = 48;
var VAUTO = 49;
var CLOSECLICK = 50;
var CSSCLASS = 53;
var FGCLASS = 54;
var BGCLASS = 55;
var TEXTFONTCLASS = 56;
var CAPTIONFONTCLASS = 57;
var CLOSEFONTCLASS = 58;

var o3_textsize = "1";
var o3_captionsize = "1";
var o3_closesize = "1";
var o3_width = "200";
var o3_border = "1";
var o3_offsetx = 10;
var o3_offsety = 10;
var o3_text = "Interner Link";
var o3_cap = "";
var o3_sticky = 0;
var o3_background = "";
var o3_close = "Close";
var o3_hpos = RIGHT;
var o3_status = "";
var o3_autostatus = 0;
var o3_height = -1;
var o3_snapx = 0;
var o3_snapy = 0;
var o3_fixx = -1;
var o3_fixy = -1;
var o3_fgbackground = "";
var o3_bgbackground = "";
var o3_padxl = 1;
var o3_padxr = 1;
var o3_padyt = 1;
var o3_padyb = 1;
var o3_fullhtml = 0;
var o3_vpos = BELOW;
var o3_aboveheight = 0;
var o3_capicon = "";
var o3_frame = self;
var o3_timeout = 0;
var o3_function = Function();
var o3_delay = 400;
var o3_hauto = 0;
var o3_vauto = 0;
var o3_closeclick = 0;
var o3_css = CSSCLASS;
var o3_fgclass = "fgclass";
var o3_bgclass = "bgclass";
var o3_textfontclass = "txtfontclass";
var o3_captionfontclass = "capfontclass";
var o3_closefontclass = "closefontclass";
var o3_padunit = "px";
var o3_heightunit = "px";
var o3_widthunit = "px";
var o3_textsizeunit = "px";
var o3_textdecoration = "none";
var o3_textstyle = "normal";
var o3_textweight = "normal";
var o3_captionsizeunit = "px";
var o3_captiondecoration = "none";
var o3_captionstyle = "normal";
var o3_captionweight = "bold";
var o3_closesizeunit = "px";
var o3_closedecoration = "none";
var o3_closestyle = "normal";
var o3_closeweight = "normal";
var o3_allowmove = 0;
var o3_timerid = 0;
var o3_delayid = 0;

var ol_text = "AWV Link";
if (typeof ol_texts == 'undefined') { var ol_texts = new Array("Externer Link", "Interner Link"); }
var ol_caps = new Array("Caption 0", "Caption 1");

var o3_text = "";
var o3_cap = "";
var o3_sticky = 0;
var o3_background = "";
var o3_close = "Close";
var o3_hpos = RIGHT;
var o3_offsetx = 10;
var o3_offsety = 3;

var o3_x = 0;
var o3_y = 0;
var o3_allow = 0;
var o3_showingsticky = 0;
var o3_removecounter = 0;
var over = null;
var ns4 = (document.layers)? true:false;
var ns6 = (document.getElementById)? true:false;
var ie4 = (document.all)? true:false;
var ie5 = false;
if (ie4) {
if ((navigator.userAgent.indexOf('MSIE 5') > 0) || (navigator.userAgent.indexOf('MSIE 6') > 0)) {
 ie5 = true;
}
if (ns6) {
 ns6 = false;
}
}
if ( (ns4) || (ie4) || (ns6)) {
document.onmousemove = mouseMove
if (ns4) document.captureEvents(Event.MOUSEMOVE)
} else {
overlib = no_overlib;
nd = no_overlib;
ver3fix = true;
}
function no_overlib() {
return ver3fix;
}
function overlib() {
o3_text = ol_text;

if ( (ns4) || (ie4) || (ns6) ) {
 if (ns4) over = o3_frame.document.overDiv
 if (ie4) over = o3_frame.overDiv.style
 if (ns6) over = o3_frame.document.getElementById("overDiv");
}
var parsemode = -1;
var ar = arguments;
for (i = 0; i < ar.length; i++) {
 if (parsemode < 0) {
 if (ar[i] == INARRAY) {
  o3_text = ol_texts[ar[++i]];
 } else {
  o3_text = ar[i];
 }
 parsemode = 0;
 } else {
 if (ar[i] == INARRAY) { o3_text = ol_texts[ar[++i]]; continue; }
 }
}
if (o3_delay == 0) {
 return overlib350();
} else {
 o3_delayid = setTimeout("overlib350()", o3_delay);
 if (o3_sticky) {
 return false;
 } else {
 return true;
 }
}
}
function nd() {
if ( o3_removecounter >= 1 ) { o3_showingsticky = 0 };
if ( (ns4) || (ie4) || (ns6) ) {
 if ( o3_showingsticky == 0 ) {
 o3_allowmove = 0;
 if (over != null) hideObject(over);
 } else {
 o3_removecounter++;
 }
}
return true;
}
function overlib350() {
var layerhtml;
layerhtml = ol_content_simple(o3_text);
layerWrite(layerhtml);
o3_allowmove = 0;
disp(o3_status);
return true;
}
function ol_content_simple(text) {
if (o3_css == CSSCLASS) txt = "<TABLE WIDTH="+o3_width+" BORDER=0 CELLPADDING="+o3_border+" CELLSPACING=0 class=\""+o3_bgclass+"\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 class=\""+o3_fgclass+"\"><TR><TD VALIGN=TOP><FONT class=\""+o3_textfontclass+"\">"+text+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
 if (ie4) over.backgroundImage = "none";
 if (ns6) over.style.backgroundImage = "none";
return txt;
}

function disp(statustext) {
if ( (ns4) || (ie4) || (ns6) ) {
 if (o3_allowmove == 0) {
 placeLayer();
 showObject(over);
 o3_allowmove = 1;
 }
}
if (statustext != "") {
 self.status = statustext;
}
}
function placeLayer() {
var placeX, placeY;
if (o3_fixx > -1) {
 placeX = o3_fixx;
} else {
 winoffset = (ie4) ? o3_frame.document.body.scrollLeft : o3_frame.pageXOffset;
 if (ie4) iwidth = o3_frame.document.body.clientWidth;
 if (ns4) iwidth = o3_frame.innerWidth;
 if (ns6) iwidth = o3_frame.outerWidth;
 if (o3_hauto == 1) {
 if ( (o3_x - winoffset) > ((eval(iwidth)) / 2)) {
  o3_hpos = LEFT;
 } else {
  o3_hpos = RIGHT;
 }
 }
 if (o3_hpos == CENTER) {
 placeX = o3_x+o3_offsetx-(o3_width/2);
 }
 if (o3_hpos == RIGHT) {
 placeX = o3_x+o3_offsetx;
 if ( (eval(placeX) + eval(o3_width)) > (winoffset + iwidth) ) {
  placeX = iwidth + winoffset - o3_width;
  if (placeX < 0) placeX = 0;
 }
 }
 if (o3_hpos == LEFT) {
 placeX = o3_x-o3_offsetx-o3_width;
 if (placeX < winoffset) placeX = winoffset;
 }
 if (o3_snapx > 1) {
 var snapping = placeX % o3_snapx;
 if (o3_hpos == LEFT) {
  placeX = placeX - (o3_snapx + snapping);
 } else {
  placeX = placeX + (o3_snapx - snapping);
 }
 if (placeX < winoffset) placeX = winoffset;
 }
}
if (o3_fixy > -1) {
 placeY = o3_fixy;
} else {
 scrolloffset = (ie4) ? o3_frame.document.body.scrollTop : o3_frame.pageYOffset;
 if (o3_vauto == 1) {
 if (ie4) iheight = o3_frame.document.body.clientHeight;
 if (ns4) iheight = o3_frame.innerHeight;
 if (ns6) iheight = o3_frame.outerHeight;
 iheight = (eval(iheight)) / 2;
 if ( (o3_y - scrolloffset) > iheight) {
  o3_vpos = ABOVE;
 } else {
  o3_vpos = BELOW;
 }
 }
 if (o3_vpos == ABOVE) {
 if (o3_aboveheight == 0) {
  var divref = (ie4) ? o3_frame.document.all['overDiv'] : over;
  o3_aboveheight = (ns4) ? divref.clip.height : divref.offsetHeight;
 }
 placeY = o3_y - (o3_aboveheight + o3_offsety);
 if (placeY < scrolloffset) placeY = scrolloffset;
 } else {
 placeY = o3_y + o3_offsety;
 }
 if (o3_snapy > 1) {
 var snapping = placeY % o3_snapy;
 if (o3_aboveheight > 0 && o3_vpos == ABOVE) {
  placeY = placeY - (o3_snapy + snapping);
 } else {
  placeY = placeY + (o3_snapy - snapping);
 }
 if (placeY < scrolloffset) placeY = scrolloffset;
 }
}
repositionTo(over, placeX, placeY);
}
function mouseMove(e) {
if ( (ns4) || (ns6) ) {o3_x=e.pageX; o3_y=e.pageY;}
if (ie4) {o3_x=event.x; o3_y=event.y;}
if (ie5) {o3_x=event.x+o3_frame.document.body.scrollLeft; o3_y=event.y+o3_frame.document.body.scrollTop;}
if (o3_allowmove == 1) {
 placeLayer();
}
}
function cClick() {
hideObject(over);
o3_showingsticky = 0;
return false;
}
function compatibleframe(frameid) {
if (ns4) {
 if (typeof frameid.document.overDiv =='undefined') return false;
} else if (ie4) {
 if (typeof frameid.document.all["overDiv"] =='undefined') return false;
} else if (ns6) {
 if (frameid.document.getElementById('overDiv') == null) return false;
}
return true;
}
function layerWrite(txt) {
txt += "\n";
    if (ns4) {
        var lyr = o3_frame.document.overDiv.document
        lyr.write(txt)
        lyr.close()
    } else if (ie4) {
 o3_frame.document.all["overDiv"].innerHTML = txt
} else if (ns6) {
 range = o3_frame.document.createRange();
 range.setStartBefore(over);
 domfrag = range.createContextualFragment(txt);
 while (over.hasChildNodes()) {
 over.removeChild(over.lastChild);
 }
 over.appendChild(domfrag);
}
}
function showObject(obj) {
    if (ns4) obj.visibility = "show";
    else if (ie4) obj.visibility = "visible";
else if (ns6) obj.style.visibility = "visible";
}
function hideObject(obj) {
    if (ns4) obj.visibility = "hide";
    else if (ie4) obj.visibility = "hidden";
else if (ns6) obj.style.visibility = "hidden";
if (o3_timerid > 0) clearTimeout(o3_timerid);
if (o3_delayid > 0) clearTimeout(o3_delayid);
o3_timerid = 0;
o3_delayid = 0;
    self.status = "";
}
function repositionTo(obj,xL,yL) {
if ( (ns4) || (ie4) ) {
    obj.left = xL;
    obj.top = yL;
} else if (ns6) {
 obj.style.left = xL + "px";
 obj.style.top = yL+ "px";
}
}
function opt_FRAME(frm) {
    o3_frame = compatibleframe(frm) ? frm : ol_frame;
if ( (ns4) || (ie4 || (ns6)) ) {
 if (ns4) over = o3_frame.document.overDiv;
 if (ie4) over = o3_frame.overDiv.style;
 if (ns6) over = o3_frame.document.getElementById("overDiv");
}
return 0;
}
function opt_FUNCTION(callme) {
o3_text = callme()
return 0;
}
function vpos_convert(d) {
if (d == 0) {
 d = LEFT;
} else {
 if (d == 1) {
 d = RIGHT;
 } else {
 d = CENTER;
 }
}
return d;
}
function dts(d,text) {
o3_hpos = vpos_convert(d);
overlib(text, o3_hpos, CAPTION, "");
}
function dtc(d,text, title) {
o3_hpos = vpos_convert(d);
overlib(text, CAPTION, title, o3_hpos);
}
function stc(d,text, title) {
o3_hpos = vpos_convert(d);
overlib(text, CAPTION, title, o3_hpos, STICKY);
}
function drs(text) {
dts(1,text);
}
function drc(text, title) {
dtc(1,text,title);
}
function src(text,title) {
stc(1,text,title);
}
function dls(text) {
dts(0,text);
}
function dlc(text, title) {
dtc(0,text,title);
}
function slc(text,title) {
stc(0,text,title);
}
function dcs(text) {
dts(2,text);
}
function dcc(text, title) {
dtc(2,text,title);
}
function scc(text,title) {
stc(2,text,title);
}