/*==================================================*
 $Id: rndmarker.js,v 0.01 2007/7/4 12:19:00 pdt Exp $
 Copyright 2007 Tim Doggett
 *==================================================*/


function randOrd() { return (Math.round(Math.random())-0.5); } 

function setPiclinks() {
	pl=document.getElementById("piclinks");
	if (1) {
	indexLinks=pl.getElementsByTagName("li");
		for (x in indexLinks) {
//			indexLinks[x].style.top = (Math.random()*1.7)+"em";
//			indexLinks[x].style.left = (Math.random()*1.7)+"em";
		}
	}
}

function setBackground() {
	if(document.getElementById("container").offsetWidth <= 1024){
		document.body.style.background="#040404 url(hhg94b7d.jpg) no-repeat center fixed";
	}
	else
	{
		document.body.style.background="#040404 url(hhg94b7c.jpg) no-repeat center fixed";
	}
	
}

function setMarkers(nodeId) 
{
//setPiclinks();
setBackground();

var imgMarker= new Array("hhgm01b.gif", "hhgm02br.gif", "hhgm03b.gif", "hhgm06b.gif", "hhgm08b.gif", "hhgm09b.gif", "hhgm10a.gif", "hhgm11br.gif", "hhgm15b.gif", "hhgm21a.gif", "hhgm22b.gif", "hhgm42b.gif", "hhgslab05c.gif");

imgMarker.sort( randOrd );

var indexImage=document.getElementById( nodeId ).getElementsByTagName("img");
	for (x in indexImage)
	{
		indexImage[x].src=imgMarker[x%imgMarker.length];
	}
}

