if (document.all) {

        coll="all.";

        coll2="";

        styleObj=".style";

}

else if (document.layers) {

        coll="";

        coll2="";

        styleObj="";

}

else if (document.getElementById) {

        coll="getElementById('";

        coll2="')";

        styleObj="').style";

} 



function preloader(arr, dir)

{

var imageArr = new Array();

for(i=0; i<arr.length; i++)

{

imageArr[i] = new Image();

imageArr[i].src = dir + arr[i] + ".gif";

}

}



function Roll(thingy, path)

{

var imgobj = eval("document." + coll + thingy + coll2);

imgobj.src = path;		

}



function childWin(url,windowname,wdth,hgt) {

	var popup = window.open(url,windowname,"toolbar=no,status=yes,scrollbars=yes,menubar=no,locationbar=no,top=100,left=200,height=" + hgt + ",width=" + wdth + ",resizable=no");

	popup.focus();

}

