function MM_jumpMenu(targ,selObj,restore){ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

function MM_jumpOk(targ,selObj,restore){ //v3.0
	Obj = document.getElementById(selObj);
	eval(targ+".location='"+Obj.options[Obj.selectedIndex].value+"'");
	if (restore) Obj.selectedIndex=0;
}

/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Mr J | http://www.huntingground.net/ */

scrollStep=1

timerLeft=""
timerRight=""

function toLeft(id){
  document.getElementById(id).scrollLeft=0
}

function scrollDivLeft(id){
  clearTimeout(timerRight) 
  document.getElementById(id).scrollLeft+=scrollStep
  timerRight=setTimeout("scrollDivLeft('"+id+"')",10)
}

function scrollDivRight(id){
  clearTimeout(timerLeft)
  document.getElementById(id).scrollLeft-=scrollStep
  timerLeft=setTimeout("scrollDivRight('"+id+"')",10)
}

function toRight(id){
  document.getElementById(id).scrollLeft=document.getElementById(id).scrollWidth
}

function stopMe(){
  clearTimeout(timerRight) 
  clearTimeout(timerLeft)
}

function abre(url, type){
	var width = window.screen.width;
	var height = window.screen.height;
	
	if( type == 'zoom' ){
		//window.open("/files/paths/" + url, '', 'width='+width+", height="+height+", statusbar=0, menubar=0, scrollbars=1");
		window.open(url, '', 'width='+width+", height="+height+", statusbar=0, menubar=0, scrollbars=1");
	}
	else if( type == 'print' ){
		//window.open("/paths/imprime/" + url, '', 'width='+width+", height="+height+", statusbar=0, menubar=0, scrollbars=1");
		var windowObject = window.open(url, '', 'width='+width+", height="+height+", statusbar=0, menubar=0, scrollbars=1");
		windowObject.print();
		windowObject.close();

	}
}

