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 toggleControl(whichLayer)
{
if (document.getElementById)
{
// this is the way the standards work
var arrow_toggle = document.getElementById(whichLayer).style;
var toggle_margin = document.getElementById(whichLayer).style;
arrow_toggle.backgroundImage = arrow_toggle.backgroundImage? "":"url(../assets/arrow_open.gif)";
toggle_margin.marginBottom = toggle_margin.marginBottom? "":"10px";
}
else if (document.all)
{
// this is the way old msie versions work
var arrow_toggle = document.all[whichLayer].style;
arrow_toggle.backgroundImage = arrow_toggle.backgroundImage? "":"url(../assets/arrow_open.gif)";
}
else if (document.layers)
{
// this is the way nn4 works
var arrow_toggle = document.layers[whichLayer].style;
arrow_toggle.backgroundImage = arrow_toggle.backgroundImage? "":"url(../assets/arrow_open.gif)";
}
}


// Image Preloader  v1.0.1
// documentation: http://www.dithered.com/javascript/image_preloader/index.html
// license: http://creativecommons.org/licenses/by/1.0/
// code by Chris Nott (chris[at]dithered[dot]com)

function preloadImages() 
{
if (document.images) 
{
for (var i = 0; i < preloadImages.arguments.length; i++) {
(new Image()).src = preloadImages.arguments[i];
}
}
}
