/*
window.onload = checkWidth;
window.onresize = checkWidth;
function checkWidth(){
	var ClientW = document.body.clientWidth;
	var ClientH = document.body.clientHeight;

	document.getElementById("menu-back").style.left  = (ClientW/2) - 490;
	document.getElementById("menu-logo").style.left  = (ClientW/2) - 490;
	document.getElementById("menu-items").style.left  = (ClientW/2) - 475;
	document.getElementById("contactDiv").style.left  = (ClientW/2) - 20;
	
    //obj's not always on the page
	if (document.getElementById("about-info"))
	    document.getElementById("about-info").style.left  = (ClientW/2) - 275;
	if (document.getElementById("about-info"))
	    document.getElementById("about-info").style.top  = 10;

	
	if (document.getElementById("gallery-name"))  
	    document.getElementById("gallery-name").style.left  = (ClientW/2) - 120;
}
*/
function goContact()
{
    showObj('contactDiv','visible');
    makeBig(document.the_button,25,0,700);
}

	
function setBlackWhite(img) {
		var img2 = Pixastic.process(img, "desaturate");
		img2.onmouseout = function() {
			Pixastic.revert(this);
		}
}
	
	
	
function showObj(elem,mode)
{
    document.getElementById(elem).style.visibility = mode;
}

function makeBig(myobj,mywidth,myheight,topwidth)
{
  var the_image;
  // if this is NN6 or IE4+

  if (document.documentElement || document.all) 
  {
    the_image = myobj;
  if (the_image.width < topwidth)
  {
    the_image.height = the_image.height + myheight;
    the_image.width = the_image.width + mywidth;
}
  } 
  else if (document.layers)  // NN4
  {

    the_image = myobj;
  if (the_image.width < topwidth)
  {
    var new_width = the_image.width + mywidth;
    var new_height = the_image.height + myheight;
   
    var write__string = "<img src='/javascript/2002/05/24/examples/button.gif' border='0' " +
       "width = '" + width + "' height = '" + height + "'>";

    document.justforNS4.document.writeln(write_string);
    document.justforNS4.document.close();
}
  }


  if (the_image.width < topwidth)
  {
	myobj1 = the_image;
	mywidth1 = mywidth;
	myheight1 = myheight;
	topwidth1 = topwidth;
    setTimeout("makeBig(myobj1,mywidth1,myheight1,topwidth1);", 10);
  }
}

function makeSmall()
{
  if (document.documentElement || document.all) 
  {
    the_image = document.the_button;
    the_image.height = the_image.height - 2;
    the_image.width = the_image.width - 2;
  } 
  else if (document.layers)
  {
    the_image = document.justforNS4.document.the_button;
    var new_width = the_image.width - 2;
    var new_height = the_image.height - 2;
  
    var write__string = "<img src='/javascript/2002/05/24/examples/button.gif' border='0' " +
       "width = '" + width + "' height = '" + height + "'>";

    document.justforNS4.document.writeln(write_string);
    document.justforNS4.document.close();
  }

  if (parseInt(the_image.height) > 100)
  {
    setTimeout("makeSmall();",10);
  }
}