var j=1;



function getObj(name)
{
  if (document.getElementById)
  {
    return document.getElementById(name);
  }
  else if (document.all)
  {
    return document.all[name];
  }
  else if (document.layers)
  {
    return document.layers[name];
  }
  else return false;
}

function alpStart() {
ob =getObj('move');
obm =getObj('mmove');
obm.style.visibility = 'visible';
 id_in = setInterval("make(j++)",750);
 if(document.all) ob.play();

}
function hmove() {
ob =getObj('mmove')
ob.style.visibility = 'hidden';
}

function make(j) {
if(j>5) {
clearInterval(id_in);
act('slide0');

} else {
// slide_name ='slide' + j;
 project_in ='project' + j;
 func =  'out("' + project_in + '")';
// act(slide_name);
 over(project_in);
 setTimeout(func, 750);

 }
}


closeb = new Image();
closeb.src = "images/close-on.gif";

function open_alp(url, w, h) {
    lf = (screen.width/2) - (w/2);

	width = w;
	height = h;
	res = 'no';
	scrll = 'no';
	
	if(w > (screen.width - 50) || h > (screen.height - 50)) {
	   if(w > (screen.width - 50)) {
         width = (screen.width - 50);
	    }  
	   if(h > (screen.height - 50)) {
        height = (screen.height - 50);
		}
		res = 'yes';
		scrll = 'yes';
	}

	var options = "left="+lf+",width=" + width + ",height=" + height + ",";
    options += "resizable="+res+",scrollbars="+scrll+",status=no,top=40";
    options += "menubar=no,toolbar=no,location=no,directories=no";   
	
    msg = window.open(url, '_blank', options);
    if(msg.focus) {
	msg.focus();
	}     
  }
   
   function popSmall_alp(url) {
    lf = (screen.width/2) - 50;
	options = 'left=' + lf + ',width=120,height=10,top=40';
    msg = window.open(url,'_blank',options);
	
   }
   
   function op_close() {
   opener.close();
   }
   
   function test_alp(name) {
    w = document.images[name].width + 5;
	h = document.images[name].height + 40;
	if(w < 150) {
	 w = 150;
	}
	if(h < 130) {
	 h = 130;
	}
	
	open_alp('alp_popup.htm?image='+name, w, h);
   } 
   
   
function bgov(el) {
  el.style.backgroundColor = '#F9F6F9';
}
function bgot(el) {
  el.style.backgroundColor = '#B7A4B6';
}
function cl(el) {
 el.children.tags('A')[0].click();
}
  




