//from http://www.globalrph.com/davescripts/preload.htm
var myimages=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}
preloadimages("/img/menu-bg/clinic-0.gif","/img/menu-bg/clinic-1.gif","/img/menu-bg/contact-0.gif","/img/menu-bg/contact-1.gif","/img/menu-bg/guarantee-0.gif","/img/menu-bg/guarantee-1.gif","/img/menu-bg/references-0.gif","/img/menu-bg/references-1.gif","/img/menu-bg/staff-0.gif","/img/menu-bg/staff-1.gif","/img/menu-bg/treatment-0.gif","/img/menu-bg/treatment-1.gif","/img/icons/flags/de-1.png","/img/icons/flags/de-2.png","/img/icons/flags/en-1.png","/img/icons/flags/en-2.png","/img/icons/flags/pl-1.png","/img/icons/flags/pl-2.png");
// mod of script found on http://www.netlobo.com/div_hiding.html
function toggleLayer(whichLayer){
if (document.getElementById) { // this is the way the standards work
var style2 = document.getElementById(whichLayer).style; style2.display = style2.display ? "":"block"; }
else if (document.all) { // this is the way old msie versions work
var style2 = document.all[whichLayer].style; style2.display = style2.display ? "":"block"; }
else if (document.layers) { // this is the way nn4 works
var style2 = document.layers[whichLayer].style; style2.display = style2.display ? "":"block"; }
}
function showLayer(whichLayer){
if (document.getElementById) { // this is the way the standards work
var style2 = document.getElementById(whichLayer).style; style2.display = "block"; }
else if (document.all) { // this is the way old msie versions work
var style2 = document.all[whichLayer].style; style2.display = "block"; }
else if (document.layers) { // this is the way nn4 works
var style2 = document.layers[whichLayer].style; style2.display = "block"; }
}
function hideLayer(whichLayer){
if (document.getElementById) { // this is the way the standards work
var style2 = document.getElementById(whichLayer).style; style2.display = "none"; }
else if (document.all) { // this is the way old msie versions work
var style2 = document.all[whichLayer].style; style2.display = "none"; }
else if (document.layers) { // this is the way nn4 works
var style2 = document.layers[whichLayer].style; style2.display = "none"; }
}

function flash(name,width,height,bgcolor)	{

document.write('<object type="application/x-shockwave-flash" data="' + name + '" width="' + width + '" height="' + height + '"  >' + 
 '   <param name="movie" value="' + name + '" />' + 
  '  <param name="WMODE" value="' + bgcolor + '" />' + 

 ' </object>');

}