// CED

if (window.styletype===undefined) styletype='std';
s="\
<Style Type=\"text/css\">\
\
 @media screen {\
 .Menu{display:inline;padding:.25em;border-left-width:1px;border-left-style:solid;border-left-color:#808080;cursor:pointer;width:auto;height:1em;left:auto;height:auto; text-align:center; font-family:Verdana; font-style:normal; font-size:13px;color:#000000; text-decoration:none; text-decoration:none;}\
 .Menu:hover{display:inline;padding:.25em;border-left-width:1px;border-left-style:solid;border-left-color:#808080;cursor:pointer;width:auto;height:1em;left:auto;height:auto; text-align:center; font-family:Verdana; font-style:normal; font-size:13px;color:#000000; text-decoration:none; text-decoration:none;background-color:#cccc66}\
.MenuNew{ text-align:center; font-family:Verdana; font-style:normal; font-size:13px; color:#000000; text-decoration:none; background-color:#d8d830; padding:3px; border-style:outset; border-color:#e8e8ff; border-width:3px}\
.MenuNew:hover{color:#ffffff; background-color:#3366CC; border-style:inset; border-color:#3366CC; border-width:3px }\
.Menu A {text-decoration:none;color:#000000}\
.Icon {width:1em;height:1em;border-style:none}\
.Icon150 {width:1.5em;height:1.5em;border-style:none}\
 .PrintOnly{display:none;}"
+((styletype=='std')?"\
 Body {background:#ffffff; font-size:13px; margin-left:30px; margin-right:30px; font-family:Arial; text-align:justify;}\
 A:link {color:#0000ff}\
 A:visited {color:#000080}\
 A:active {color:#800000}\
 A.AddMenu {color:white; font-weight:bold; border:1; border-color:blue; border-style:solid; text-decoration:none; background-color:blue;}\
":'')
+"\
}\
\
 @media print {\
 .ScreenOnly{display:none;}\
 .PrintOnly{display:inline;}\
 Body {margin-left:0px; margin-right:0px}\
 A.AddMenu {font-weight:bold;}\
 A:link {color:#000000}\
 A:visited {color:#000000}\
 A:active {color:#000000}\
}\
</Style>";

//alert(s);
document.write(s);

function domenu() {
// menuflags: 1 indexM.htm?  2 Target=Show
if (window.pathdepth===undefined) pathdepth=0; else pathdepth=window.pathdepth;
if (pathdepth==1) pfx='../'; else pfx='';
if (window.menuflags===undefined) menuflags=0;

s=document.URL;i=s.indexOf('?');if (i>=0) s=s.substring(0,i);
h='';
if ((menuflags&2)>0) {h=" Target='Show'";}
h+=' HRef="';
if ((menuflags&1)>0) {h+=pfx+'indexM.htm?';}
h+=pfx;

document.write("\
<table id='Menu' border='0' cellspacing='0' cellpadding='0' style='padding-top:.25em;padding-bottom:.25em;left:auto;height:auto;width:auto;height:auto'><tr>\
<td class='Menu'><a"+h+"contact.htm\" Title=\"Contact Information\">Contact</a></td>\
<td class='Menu'><a"+h+"exhibitions/index.htm\" Title=\"Exhibitions you can visit\">Exhibitions</a></td>\
<td class='Menu'><a"+h+"ImagesResults.php?imExhibition=19&ImageWidth=200\" Title=\"Items for Sale\">For Sale</a></td>\
<td class='Menu'><a"+h+"ImagesQuery.php\" Title=\"Search for an Image\">Gallery</a></td>\
<td class='Menu'><a"+h+"prices.htm\" Title=\"Typical Prices\">Prices</a></td>\
<td class='Menu'><a"+h+"about.htm\" Title=\"About the Artist\">About Artist</a></td>\
<td class='Menu'><a"+h+"ExplorerIndex.htm\" Title=\"Resources and Files\">Resources</a></td>\
<td class='Menu'><a"+h+"links.htm\" Title=\"Some useful Links\">Links</a></td>\
<td class='Menu'><a"+h+"code.php\" Title=\"Login\">Login</a></td>\
<td class='Menu'><a"+h+"site-map.htm\" Title=\"Help and Expanded Menu\">Help</a></td>\
</tr></table>");
// For Sale image.php?Style=1&WExhibition=19
// inline div within inline div fails in internet explorer when zoom is changed
}

function domenubckgrd() {
document.write("<img id='MenuBack' src='buttonm.png' alt='' style='position:absolute;z-index:1;display:none;'>");
domenubckgrdsize();
window.onresize=domenubckgrdsize;
}

function domenubckgrdsize() {
var oMenu=document.getElementById('Menu');
var oBack=document.getElementById('MenuBack');
var oMenuBase=oMenu.offsetParent;
oBack.style.top=(oMenuBase.offsetTop+oMenu.offsetTop)+'px';
oBack.style.left=(oMenuBase.offsetLeft+oMenu.offsetLeft)+'px';
oBack.style.width=oMenu.offsetWidth+'px';oBack.style.height=oMenu.offsetHeight+'px';
oBack.style.display='';
}


function dosubmenu() {
return;
if (window.pathdepth===undefined) pathdepth=0; else pathdepth=window.pathdepth;
if (pathdepth==1) pfx='../'; else pfx='';

if (self===self.top) {document.write("<span class=ScreenOnly><a href='"+pfx+"indexM.htm?"+document.location+"' style='color:white;  font-size:10px;  font-weight:bold;  font-family:arial;  border:0; padding:1px; text-decoration:none;  background-color:#993366;'>FIX MENU</a> ");menuflags=0;domenu();document.write("<br /><br /></span>");}

return (self===self.top)?1:0;

}

function doback() {
document.write("<div style='color:blue;text-decoration:underline;cursor:pointer' onclick='history.back()'>Back</div>");
}

function dofooter() {}

/*
<script language='javascript' type='text/javascript' src='lib.js'></script>
<script language='javascript' type='text/javascript'>dosubmenu();</script>
<script language='javascript' type='text/javascript'>dofooter();</script>

<script language='javascript' type='text/javascript' src='../lib.js'></script>
<script language='javascript' type='text/javascript'>pathdepth=1;dosubmenu();</script>
<script language='javascript' type='text/javascript'>dofooter();</script>

<script language='javascript' type='text/javascript'>styletype='res';</script>
*/

// EMAIL
function Emailf(s) {
s=s.substring(0,s.indexOf('#'))+'@'+s.substring(s.indexOf('#')+1,s.length);
document.write('<a href="mailto:'+s+'">'+s+'<\/a>');
}

// ========================== TIPS ==========================

// <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" SRC="tips.js"></SCRIPT>
// maketip('Index','Hauptseite','Zurück zu Knopper.Net');
// <a class="subnav" href="/knoppix-links/" onMouseOver="tip('knoppix-links'); return true;" onMouseOut="untip(); return true;">Links</a>
// Bubblehelp infoboxes, (C) 2002 Klaus Knopper <infobox@knopper.net>
// You can copy/modify and distribute this code under the conditions
// of the GNU GENERAL PUBLIC LICENSE Version 2.
//
var IWIDTH=250  // Tip box width
var ns4         // Are we using Netscape4?
var ie4         // Are we using Internet Explorer Version 4?
var ie5         // Are we using Internet Explorer Version 5 and up?
var kon         // Are we using KDE Konqueror?
var x,y,winW,winH  // Current help position and main window size
var idiv=null   // Pointer to infodiv container
var px="px"     // position suffix with "px" in some cases

function nsfix(){setTimeout("window.onresize = rebrowse", 2000);}

function rebrowse(){window.location.reload();}

function hascss(){ return gettip('infodiv')?true:false }

function infoinit(){
 ns4=(document.layers)?true:false, ie4=(document.all)?true:false;
 ie5=((ie4)&&((navigator.userAgent.indexOf('MSIE 5')>0)||(navigator.userAgent.indexOf('MSIE 6')>0)))?true:false;
 kon=(navigator.userAgent.indexOf('konqueror')>0)?true:false;
 x=0;y=0;winW=800;winH=600;
 idiv=null;
 document.onmousemove = mousemove;
 if(ns4&&document.captureEvents) document.captureEvents(Event.MOUSEMOVE);
 // Workaround for just another netscape bug: Fix browser confusion on resize
 // obviously conqueror has a similar problem :-(
 if(ns4||kon){ nsfix() }
 if(ns4) { px=""; }
}

function untip(){
 if(idiv) idiv.visibility=ns4?"hide":"hidden";
 idiv=null;
}

function gettip(name){return (document.layers&&document.layers[name])?document.layers[name]:(document.all&&document.all[name]&&document.all[name].style)?document.all[name].style:document[name]?document[name]:(document.getElementById(name)?document.getElementById(name).style:0);}

// Prepare tip boxes, but don't show them yet
function maketip(name,title,text){
 if(hascss()) document.write('<div id="'+name+'" name="'+name+'" style="position:absolute; visibility:hidden; z-index:20; top:0'+px+'; left:0'+px+';"><table width='+IWIDTH+' border=0 cellpadding=2 cellspacing=0 bgcolor="#333399"><tr><td class="tiptd"><table width="100%" border=0 cellpadding=0 cellspacing=0><tr><th><span class="ptt"><b><font color="#FFFFFF">'+title+'</font></b></span></th></tr></table><table width="100%" border=0 cellpadding=2 cellspacing=0 bgcolor="#CCCCFF"><tr><td><span class="pst"><font color="#000000">'+text+'</font></span></td></tr></table></td></tr></table></div>'+"\n");
}

function tip(name){
 if(hascss()){
  if(idiv) untip();
  idiv=gettip(name);
  if(idiv){
   winW=(window.innerWidth)? window.innerWidth+window.pageXOffset-16:document.body.offsetWidth-20;
   winH=(window.innerHeight)?window.innerHeight+window.pageYOffset  :document.body.offsetHeight;
   if(x<=0||y<=0){ // konqueror can't get mouse position
    x=(winW-IWIDTH)/2+(window.pageXOffset?window.pageXOffset:0); y=(winH-50)/2+(window.pageYOffset?window.pageYOffset:0); // middle of window
   }
   showtip();
  }
 }
}

function showtip(){
  idiv.left=(((x+260)<winW)?x+12:x-255)+px; idiv.top=(((y+90)<winH)?y+12:y-90)+px;
  idiv.visibility=ns4?"show":"visible";
//  window.status="idiv="+idiv+"X:"+(idiv.left?idiv.left:"NAN")+", Y:"+(idiv.top?idiv.top:"NAN")+", x:"+x+", y:"+y;
}

function mousemove(e){
 if(e)   {x=e.pageX?e.pageX:e.clientX?e.clientX:0; y=e.pageY?e.pageY:e.clientY?e.clientY:0;}
 else if(event) {x=event.clientX; y=event.clientY;}
 else {x=0; y=0;}
 if((ie4||ie5) && document.documentElement) // Workaround for scroll offset of IE
  {
    x+=document.documentElement.scrollLeft;
    y+=document.documentElement.scrollTop;
  }
 if(idiv) showtip();
}

// Initialize after loading the page
window.onload=infoinit;

// EOF infobox.js

