// JavaScript Document


function info_in(name)
{
	document.all[name].style.setAttribute("backgroundcolor","#FFFF99","false");
    document.all[name].style.setAttribute("border-bottom","1px ridge #666600","false");	
	document.all[name].style.setAttribute("cursor","hand","false");
}

function info_out(name)
{
	document.all[name].style.setAttribute("backgroundcolor","#f1f1f1","false");
	document.all[name].style.setAttribute("cursor","auto","false");
}

function menu_in(name)
{
    document.getElementById(name).style.color = "#000000";
	document.getElementById(name).style.backgroundColor = '#cccccc';
    document.getElementById(name).style.setAttribute("border-bottom","1px ridge #666600","false");	
	document.getElementById(name).style.setAttribute("cursor","hand","false");
}


function menu_out(name)
{
	document.getElementById(name).style.color = '#FFFFFF';
	document.getElementById(name).style.backgroundColor = '#999800';

//    document.getElementById(name).style.setAttribute(border-bottom,"1px ridge #666600',"false");	
//	document.getElementById(name).style.setAttribute("cursor","auto","false");
}


function menu_down(name)
{
	document.all[name].style.setAttribute("backgroundcolor","#666666","false");
}

function menu_up(link, target)
{
	document.location.href = link;
        document.location.target = target;
}

function hand_on(name)
{
	document.all[name].style.setAttribute('cursor','hand','false');
}

function hand_off(name)
{
	document.all[name].style.setAttribute('cursor','auto','false');
}

// link in ein neues fenster mit einer bestimmten groese anzeigen
function menu_up_popup(link, pWidth, pHeight)
{
	window.open(link,"PopUp",width=pWidth,height=pHeight);  // width="400",height="300"}
}
    
// top-menue´s
function top_in(name)
{
	document.all[name].style.setAttribute("backgroundcolor","#f1f1f1","false");
	document.all[name].style.setAttribute("border","1px solid #666600","false");
	document.all[name].style.setAttribute("cursor","hand","false");
}

function top_out(name)
{
	document.all[name].style.setAttribute("border","1px solid #FFFFFF","false");
	document.all[name].style.setAttribute("backgroundcolor","#FFFFFF","false");
	document.all[name].style.setAttribute("cursor","auto","false");
}

function preview(picname_small, picname_large, alttext)
{
  document.write ("<a href=javascript:view('" + picname_large + "')>");
  //document.write ("<div style='position:relative; left:0px; top:0px; z-index:1'><img border='0' src='images/lupe.gif' width='29' height='18'></div>")
  document.write ("<img src='" + picname_small + "' border='0' alt='" + alttext + "'\n\n(Klicken Sie auf das Bild f&uuml;r eine Vergr&ouml;sserung!)'>");
  document.write ("</a>");	
}

//	bildvorschau in eigenem browser-fenster - browser passt sich dem bild an :-)
function view(picname)
{
  var wwidth = 640
  var wheight = 480;
  var bigpicname = picname;
  ShowWindow = window.open('','','width='+wwidth+',height='+wheight+',resizable=yes');
  ShowWindow.moveTo((screen.width-wwidth)/2,(screen.height-wheight)/2);
  ShowWindow.document.open();
  ShowWindow.document.write("<html><head><title> - Klicken Sie auf das Bild um das Fenster zu schließen</title></head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><a href='javascript:close()'><img src='"+ bigpicname +"' onload='window.resizeTo(this.width+12,this.height+31);window.moveTo((screen.width-this.width)/2,(screen.height-this.height)/2)' border='0'></a></body></html>");
  ShowWindow.document.close();
}

