dom = (document.getElementById)? true:false
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false

	
//  +++++++ show/hide function +++++++
function show(id) {
	if (ns4) document.layers[id].visibility = "show"
	else if (ie4) document.all[id].style.visibility = "visible"
	else if (dom) document.getElementById(id).style.visibility = "visible"
}

function hide(id) {
	if (ns4) document.layers[id].visibility = "hide"
	else if (ie4) document.all[id].style.visibility = "hidden"
	else if (dom) document.getElementById(id).style.visibility = "hidden"
}

//  +++++++ random function +++++++

randomNum = Math.round(Math.random()*3);

var body = new Array(3);
body[0] = "<div id=\"body_one\"><img src=\"art/body_01.gif\" alt=\"\" width=\"189\" height=\"201\" /></div>";
body[1] = "<div id=\"body_two\"><img src=\"art/body_02.gif\" alt=\"\" width=\"137\" height=\"212\" /></div>";
body[2] = "<div id=\"body_three\"><img src=\"art/body_03.gif\" alt=\"\" width=\"152\" height=\"244\" /></div>";
body[3] = "<div id=\"body_four\"><img src=\"art/body_04.gif\" alt=\"\" width=\"117\" height=\"211\" /></div>";

var body2 = new Array(3);
body2[0] = "<div id=\"body_one\"><img src=\"../art/body_01.gif\" alt=\"\" width=\"189\" height=\"201\" /></div>";
body2[1] = "<div id=\"body_two\"><img src=\"../art/body_02.gif\" alt=\"\" width=\"137\" height=\"212\" /></div>";
body2[2] = "<div id=\"body_three\"><img src=\"../art/body_03.gif\" alt=\"\" width=\"152\" height=\"244\" /></div>";
body2[3] = "<div id=\"body_four\"><img src=\"../art/body_04.gif\" alt=\"\" width=\"117\" height=\"211\" /></div>";


// +++++++ window function +++++++

function openWin(url, winName, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winProp = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll
win = window.open(url, winName, winProp)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

