/************************************/
/* copyright (c) Label Technologies */
/* All rights reserved         v1.1 */
/********************************BS**/
var doc=document,agt=navigator.userAgent;lay=doc.layers,ie4=doc.all,dom=doc.getElementById,ope=agt.match(/Opera/g);mac=agt.match(/mac/gi)

function getE(id,parentLay){
 lay=doc.layers;
 if(lay){arrLay=(parentLay?parentLay:self).document.layers;if(arrLay[id]){return arrLay[id];}for(i=0;i<arrLay.length;) return (getE(id,arrLay[i++]));}
 if(ie4)return doc.all[id];
 if(dom)return doc.getElementById(id);
}
function createE(id){
 if(lay){doc.layers[id]=new Layer(0);eval("document."+id+"=doc.layers[id]");}
 else{if(typeof doc.createElement!='undefined'){html="<div id='"+id+"' style=\"position:absolute\">&nbsp;</div>";
 oDiv=doc.createElement("DIV");if(oDiv){/*oDiv.innerHTML=html;*/oDiv.id=id;oDiv.style.position="absolute";doc.body.appendChild(oDiv);}
 else if(typeof doc.body.insertAdjacentHTML!='undefined')doc.body.insertAdjacentHTML("BeforeEnd",html);}}}
function writeHTML(e,h){
  if(lay){docLay=e.document;docLay.write(h);docLay.close();}
  if(typeof e.innerHTML!='undefined'){e.innerHTML=h;}}
function showE(e){lay?e.visibility='show':e.style.visibility='visible';}
function hideE(e){lay?e.visibility='hide':e.style.visibility='hidden';}

function setZ(e,z){lay?e.zIndex=z:e.style.zIndex=z;}
function getZ(e){return lay?e.zIndex:e.style.zIndex;}

function setX(e,x){lay?e.left=x:(ope?e.style.pixelLeft=x:e.style.left=x);}
function getX(e){
 if(lay)return(e.left);
 if(ie4||ope)return(e.style.pixelLeft);
 if(dom)return(parseInt(e.style.left));
 return -1;}
function setY(e,y){lay?e.top=y:(ope?e.style.pixelTop=y:e.style.top=y);}
function getY(e){
 if(lay)return(e.top);
 if(ie4||ope)return(e.style.pixelTop);
 if(dom)return(parseInt(e.style.top));
 return -1;}
function setW(e,w){lay?e.offsetWidth=w:(ope?e.style.pixelWidth=w:e.style.width=w);}
function getW(e){
 if(lay){if(e.width)return(e.width);if(e.clip)return(e.clip.right-e.clip.left);}
 if (ie4||ope){if(e.style.pixelWidth)return(e.style.pixelWidth);return(e.clientWidth);}
 if(e.style.width)return(parseInt(e.style.width));return(e.offsetWidth);}
function setH(e,h){lay?e.clip.height=h:(ope?e.style.pixelHeight=h:e.style.height=h);}
function getH(e){
 if(lay){if(e.height)return(e.height);if(e.clip)return(e.clip.bottom-e.clip.top);}
 if(ope){return e.style.pixelHeight;}
 if(ie4){return e.clientHeight;}
 if (e.style.height)return(parseInt(e.style.height));return(e.offsetHeight);}
function setClip(e,t,r,b,l) {
 if(lay){e.clip.top=t;e.clip.right=r;e.clip.bottom=b;e.clip.left=l;}
 else e.style.clip='rect('+t+' '+r+' '+b+' '+l+')';}

function getPageX(e) {return lay?e.pageX:e.offsetLeft;}
function getPageY(e) {return lay?e.pageY:e.offsetTop;}
function getPageW(){
 if(lay)return(document.width);
 if(dom&&!ie4)return(document.body.offsetWidth);
 return(document.body.scrollWidth);}
function getPageH(){
 if(lay)return(document.height);
 if(dom&&!ie4)return(document.body.offsetHeight); 
 return(document.body.scrollHeight);}
function getPageScrollX(){return lay?window.pageXOffset:document.body.scrollLeft;}
function getPageScrollY(){return lay?window.pageYOffset:document.body.scrollTop;}
function Scroller(e, x, y, w, h){
 setX(e,x);setY(e,y);setW(e,w);this.element=e;this.fullHeight=getH(e);
 this.clipX=0;this.clipY=0;this.clipWidth=w;this.clipHeight=h;setClip(e,0,w,h,0);
 this.moveUp=scroller_up;this.moveDown=scroller_down;showE(e);
 //if(!this.fullHeight)alert("Scroller creation failed");
 }
function scroller_up(step) {
 var cy=this.clipY;if(cy-step<0)step=cy;if(step<=0)return;
 var e=this.element,cx=this.clipX,ch=this.clipHeight;
 cy-=step;this.clipY=cy;setY(e,getY(e)+step);
 setClip(e,cy,cx+this.clipWidth,cy+ch,cx);}
function scroller_down(step){
 var h=this.fullHeight,cy=this.clipY,ch=this.clipHeight;
 if(h-cy-step<ch)step=h-cy-ch;if(step<=0)return;
 var e=this.element,cx=this.clipX;cy+=step;this.clipY=cy;setY(e,getY(e)-step);
 setClip(e,cy,cx+this.clipWidth,cy+ch,cx);}
function getI(id){
 if (lay)return findI(id, doc);
 if (ie4)return document.all[id];
 if(dom)return doc.getElementById(id);}
function findI(id, d){
 var i,img;
 for(i=0;i<d.images.length;i++)if(d.images[i].name==id)return d.images[i];
 for (i=0;i<d.layers.length;i++)if((img=findI(id,d.layers[i].document))!= null){img.container = d.layers[i];return img;}}
function getIPageX(im){
 var x,obj;
 if(lay)return (im.container)?(im.container.pageX+im.x):im.x;
 if(ie4||dom){x=0;obj=im;
  while(obj.offsetParent){x+=obj.offsetLeft;obj=obj.offsetParent;}
  return x+obj.offsetLeft;}}
function getIPageY(im){
 lay=doc.layers;
 var y, obj;
 if(lay)return (im.container)?(im.container.pageY+im.y):im.y;
 if(ie4||dom){y=0;obj=im;
  while(obj.offsetParent){y+=obj.offsetTop;obj=obj.offsetParent;}
  return y+obj.offsetTop;}}
