// Bloom Image Viewer : 1.0 DHTML NIRVANA * 4LevelWebs
// Original script by Eddie Traversa. All rights reserved.
 b=new Object();//1
 b.ir=false;//BTyphy
 b.zt="b";//LTy
function zoomIn(i,zs,mz){//Sp0#000000B0Ss6
	if(!document.layers&&document.getElementById){i=document.getElementById(i);}else 
	if(document.all){i=document.all(i);}if(!document.layers&&i){
	  if(!zs){if(b.zt=="v")zs=i.height/10;else zs=i.width/10;}
	  if(!mz){if(b.zt=="v")mz=i.height;else mz=i.width;}
	  if(i.state==null){i.state="off";i.index=0;i.ow=i.width;i.oh=i.height;i.zs=zs;i.mz=mz;}
	  if(i.state=="off"){i.state="zoomI"; s_Zoom();}else
	  if(i.state=="zoomIO"||i.state=="zoomO"){i.state="zoomI";}}
}
function zoomOut(i){
    if(!document.layers&&document.getElementById){i=document.getElementById(i);}else{
    if (document.all){i=document.all(i);}}
    if (!document.layers&&i){if(i.state=="on"){i.state="zoomO";s_Zoom();}else{
    if (i.state=="zoomI"){i.state="zoomIO";}}}
}
function s_Zoom(){
	if(!b.ir)Z_Anim();
}
 b.setZoom = function(i){
	if(b.zt=="h"){i.width=i.index;i.height=i.oh;}else
	if(b.zt=="v"){i.width=i.ow;i.height=i.index;}else{i.width=i.index;}
}
function Z_Anim(){
	b.ir=false;
	for(k=0;k<document.images.length;k++){var i=document.images[k];
		if(i.state){if(i.state=="zoomI"){if(i.index<i.mz)i.index+=i.zs;else i.index=i.mz;b.setZoom(i);
		if(i.index==i.mz)i.state="on";else b.ir=true;}else if(i.state=="zoomIO"){
		if(i.index<i.mz)i.index+=i.zs;else i.index=i.mz;b.setZoom(i);
		if(i.index==i.mz)i.state="zoomO";b.ir=true;}else
		if(i.state=="zoomO"){if(i.index>0)i.index-=i.zs;else i.index=0;b.setZoom(i);
		if(i.index==0)i.state="off";else b.ir=true;
		}}}
	if(b.ir)setTimeout("Z_Anim()",25);
}
function toggleVis(id,ty,tg) {
 var itg=(tg=='y')?'visible':'hidden';
 if(navigator.userAgent.toLowerCase().indexOf("mac")!= -1){eval("document.all." + id + ".style.visibility = \"" + ty + "\"")}else
 if(document.layers){eval("document."+id+".visibility = \"" + ty + "\"");}else
 if(document.getElementById){eval("document.getElementById(id).style.visibility = \"" + itg + "\"")}
}

var timer = null;
var speed = 5;
function scrollSetup(id,parent) {
	if (document.getElementById&&!document.all){page=eval("document.getElementById(id).style");}else
	if (document.all){page=eval("document.all(id).style");}else 
	if (document.layers){page=eval("document.layers[parent].document.layers[id]");}
	scrl_right=61;
}
function scrollLt() {
  var px=document.getElementById?"px":"";
	var x_pos=parseInt(page.left);
	if (x_pos>-eval(scrl_right)){
	page.left=x_pos-speed+px}else{stopScroll()}
	timer=setTimeout("scrollLt()",25);
}
function scrollRight() {
  var px=document.getElementById?"px":"";
	var x_pos=parseInt(page.left);
	if (x_pos<0)page.left=x_pos + speed+px;
	timer=setTimeout("scrollRight()",25);
}
function stopScroll() {
    clearTimeout(timer);
}
//Bloom Menu End

