// DO NOT EDIT THIS FILE! see README.TXT - Javascript Compressor 1.1.0
var aDOM=0,ieDOM=0,nsDOM=0;
var stdDOM=document.getElementById;
if(stdDOM)aDOM=1;else{
ieDOM=document.all;
if(ieDOM)aDOM=1;else{
nsDOM=((navigator.appName.indexOf('Netscape')!=-1)
&&(parseInt(navigator.appVersion)==4));
if(nsDOM)aDOM=1;
}
}
function isIE(){
return navigator.appName=="Microsoft Internet Explorer";
}
function xDOM(objectId,wS){
if(stdDOM)return wS?document.getElementById(objectId).style:
document.getElementById(objectId);
if(ieDOM)return wS?document.all[objectId].style:document.all[objectId];
if(nsDOM)return document.layers[objectId];
}
function setObjVis(objectID,vis){
var objs=xDOM(objectID,1);
objs.visibility=vis;
}
function toggleObjVis(objectID){
var objs=xDOM(objectID,1);
var vis=objs.visibility;
objs.visibility=(vis=="visible"||vis=="show")?'hidden':'visible';
}
function getWindowHeight(){
if(typeof(window.innerWidth)=='number'){
return window.innerHeight;
}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){
return document.documentElement.clientHeight;
}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){
return document.body.clientHeight;
}
}
function getWindowWidth(){
if(typeof(window.innerWidth)=='number'){
return window.innerWidth;
}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){
return document.documentElement.clientWidth;
}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){
return document.body.clientWidth;
}
}
function setObjBounds(objectID,x,y,w,h){
var obj=xDOM(objectID,0);
var objs=xDOM(objectID,1);
try{
if(obj.offsetLeft!=null){
objs.left=x;
objs.top=y;
objs.width=w;
objs.height=h;
}
else if(objs.pixelLeft!=null){
objs.pixelLeft=x;
objs.pixelTop=y;
objs.width=w;
objs.height=h;
}
}catch(e){
alert("error on : "+objectID);
}
}
function getObjBounds(objectID){
var obj=xDOM(objectID,0);
var objs=xDOM(objectID,1);
var rect=new Rectangle();
try{
if(obj.offsetLeft!=null){
alert("left= "+objs.left);
rect.setX(objs.left);
rect.setY(objs.top);
rect.setWidth(objs.width);
rect.setHeight(objs.height);
}
else if(objs.pixelLeft!=null){
rect.setX(objs.pixelLeft);
rect.setY(objs.pixelTop);
rect.setWidth(objs.width);
rect.setHeight(objs.height);
}
}catch(e){
alert("error on : "+objectID);
}
return rect;
}
