
function getObj(elementID){
	if (typeof elementID == "string") {
	return document.getElementById(elementID);
	}else{
	return elementID;
	}
	}
function setVisibility(obj,vis){
	var theObj = getObj(obj);
	if (vis == true || vis=='visible' || vis=='y'){
		theObj.style.visibility = "visible";
	}else{
		theObj.style.visibility = "hidden";
	}
	}
function showmenu(elmnt) {
		setVisibility (elmnt, "visible");
		}

function hidemenu(elmnt) {
		setVisibility (elmnt, "hidden");
		}





var win = null;
function newWindow(mypage,myname,w,h,features) {
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}


var rand1=Math.floor(Math.random()*5)+1
images = new Array(5)

images[1] = "stevethumb.jpg"
images[2] = "temptressthumb.jpg"
images[3] = "shadowsthumb.jpg"
images[4] = "untitledthumb.jpg"
images[5] = "mirrorthumb.jpg"
var image = images[rand1]

links = new Array
links[1] = "art/darkness.jpg"
links[2] = "art/temptress.jpg"
links[3] = "art/shadows.jpg"
links[4] = "art/untitled.jpg"
links[5] = "art/mirrormirror.jpg"
var link = links[rand1]

function hitmeup() {
newWindow = window.open(''+link+'')
}



var imagenumbera = 3 ;
var randomnumbera = Math.random() ;
var rand2 = Math.round( (imagenumbera-1) * randomnumbera) + 1 ;
imagesa = new Array
imagesa[1] = "sgbutton.jpg"
imagesa[2] = "lalbutton.jpg"
imagesa[3] = "ycbutton.jpg"

var imagea = imagesa[rand2]

linksa = new Array
linksa[1] = "skygraphics.oddlypeaceful.net"
linksa[2] = "lilacsandlace.oddlypeaceful.net"
linksa[3] = "yellowcrayon.oddlypeaceful.net"

var linka = linksa[rand2]

function hitmeupa() {
newWindow = window.open('http://'+linka+'')
}
