//       GameTool version 1.4 - CrossBrowser JavaScripts
//       Shadow was here 2002,member of SoftWebWizard Crew
//       Visit www.theJava.net  for more javascript tools




function accessCSS(layerID)
{    
  if(document.getElementById){ return document.getElementById(layerID).style;}
   else if(document.all){ return document.all[layerID].style; }
    else if(document.layers){ return document.layers[layerID]; }
}

function resize(layer,x,y) { accessCSS(layer).width=x;accessCSS(layer).height=y; }
function setZ(layer,zNR) { accessCSS(layer).zIndex=zNR; }

function move3d(layer,x,y,z)  // 3d move
{  
    accessCSS(layer).left=x; accessCSS(layer).top = y;
    resize(layer+'img',z,z);
 
 }

function move(layer,x,y)  {  accessCSS(layer).left=x; accessCSS(layer).top = y; }  // no resize



function hide(layer) { accessCSS(layer).visibility= hidden  }

function show(layer) {var vsb="visible";if(document.layers) vsb="show";eval('accessCSS(layer).visibility='+vsb);}


 
function newLayer(name,x,y,Lcontent,filter,Lwidth,Lheight,Lzindex)
{
  var theString="document.write('"
  if (document.layers) theString+='<layer name="';
   else theString+='<div id="'; 
 
 theString+=name+'"';
 
 if (document.layers) 
 {
   theString+=' left="'+x+'" top="'+y+'"';
   if (Lwidth!=null) theString+=' width="'+Lwidth+'"';
   if (Lheight!=null) theString+=' height="'+Lheight+'"';
   if (Lzindex!=null) theString+=' zIndex="'+Lzindex+'"';
   theString+='>'+Lcontent+'</layer>';
 }
  else 
  {
    theString+=' style="position:absolute;left:'+x+';top:'+y+';';
    if (Lwidth!=null) theString+='width:'+Lwidth+';';
    if (Lheight!=null) theString+='height:'+Lheight+';';
    if (filter!=null) theString+='filter:alpha(opacity='+filter+');';
    if (Lzindex!=null) theString+='z-index:'+Lzindex+';';
     theString+='">'+Lcontent+'</div>'; 
  }
  theString+="');";
  
 eval(theString);

}

function setAlpha(layername,filterCount)
{
   eval(' accessCSS("'+layername+'").filter="alpha(opacity='+filterCount+')";   ');
  
}


function make3dobject(fileinfo,objWidth,objHeight,x,y,z)
{
	
  objectWidth[maxObjects]=objWidth;
  objectHeight[maxObjects]=objHeight;
  objectX[maxObjects]=x;
  objectY[maxObjects]=y;
  objectZ[maxObjects]=z;
  
  newLayer('object'+maxObjects,x,y,'<img src="'+fileinfo+'" width="'+((objWidth*z)/100)+'" height="'+((objHeight*z)/100)+'" name="obj'+maxObjects+'">',50+z,null,null,z);
  maxObjects++;
	
}

