


function HideDIV(d) { document.getElementById(d).style.display = "none"; }
function DisplayDIV(d) { document.getElementById(d).style.display = "block"; }


$(function() {
$(".innerbox").hover(function() {
      $(".artxt,.artimg", this).toggle();
})


$('#visitingbox').hover(function() {
	$('.artxt a.visiting').css('color','#ec008c');
	}, function() {
	$('.artxt a.visiting').css('color','');
	});
	
	 $('#supportbox').hover(function() {
		$('.artxt a.support').css('color','#ec008c');
	 }, function() {
		$('.artxt a.support').css('color','');
	 });
	
	 $('#aboutbox').hover(function() {
		$('.innertxt a#abouttext').css('color','#ec008c');
	 }, function() {
		$('.innertxt a#abouttext').css('color','');
	 });
	 
	 $('#contactbox').hover(function() {
	$('#contacttext').addClass('pink');
	$('#contacttext a#contactlink').css('color','#ec008c');
	}, function() {
	$('#contacttext').removeClass('pink');
	$('#contacttext a#contactlink').css('color','');
	});
	 
});



 
 
  
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 SimpleSwap(el,which){
  el.src=el.getAttribute(which || "origsrc");
}

function SimpleSwapSetup(){
  var x = document.getElementsByTagName("img");
  for (var i=0;i<x.length;i++){
    var oversrc = x[i].getAttribute("oversrc");
    if (!oversrc) continue;

    // preload image
    // comment the next two lines to disable image pre-loading
    x[i].oversrc_img = new Image();
    x[i].oversrc_img.src=oversrc;
    // set event handlers
    x[i].onmouseover = new Function("SimpleSwap(this,'oversrc');");
    x[i].onmouseout = new Function("SimpleSwap(this);");
    // save original src
    x[i].setAttribute("origsrc",x[i].src);
  }
}

var PreSimpleSwapOnload =(window.onload)? window.onload : function(){};
window.onload = function(){PreSimpleSwapOnload(); SimpleSwapSetup();}




