/* the functions that place elements on a page.
Always use together with holder.js! 
*/


var win_width,win_height;
var centerhor, centerver;

var win_width,win_height;
var centerhor, centerver;

//center an element on the page.

function centerIt(elem,width,height) {
docObj = eval(doc + elem + sty);
if (document.all) {
docObj.pixelLeft = (centerhor - (width/2));
docObj.pixelTop = (centerver - (height/2));
  }
else {
docObj.left = (centerhor - (width/2));
docObj.top = (centerver - (height/2));
  }

}

//show or hide an element

function showhide(elem,state) {
docObj = eval(doc + elem + sty);
docObj.visibility = state;
}

//move an item to a specific location

function placeIt(elem,leftPos,topPos) {
docObj = eval(doc + elem + sty);
if (document.all) {
docObj.pixelLeft = leftPos;
docObj.pixelTop = topPos;
 }
else {
docObj.left = leftPos;
docObj.top= topPos;
 }
}

// get the dimensions of the browser window.

function dimensions() {
if (document.all) {
  win_width=document.body.clientWidth; 
  win_height=document.body.clientHeight;
     }
else {
 win_width=innerWidth;
 win_height=innerHeight;
}
centerhor = win_width/2;
centerver = win_height/2;
bottomtop = win_height-30;
bottomleft= win_width-342;
tableleft = win_width-200;
tabletop = 150;

}
