if (document.images) { pic1on= new Image(106,35); pic1on.src="/i/nextavengers/btn_trailer_hover.png"; pic2on= new Image(110,35); pic2on.src="/i/nextavengers/btn_gallery_hover.png"; pic3on= new Image(229,35); pic3on.src="/i/nextavengers/btn_specialfeatures_hover.png"; pic1off= new Image(106,35); pic1off.src="/i/nextavengers/btn_trailer.png"; pic2off= new Image(110,35); pic2off.src="/i/nextavengers/btn_gallery.png"; pic3off= new Image(229,35); pic3off.src="/i/nextavengers/btn_specialfeatures.png"; } function lightup(imgName) { if (document.images) { imgOn=eval(imgName + "on.src"); document[imgName].src= imgOn; } } function turnoff(imgName) { if (document.images) { imgOff=eval(imgName + "off.src"); document[imgName].src= imgOff; } } var sections = new Array(); sections[0] = "trailer"; sections[1] = "gallery"; sections[2] = "special"; var current_section = "trailer"; function _div_swap(next_section) { document.getElementById(current_section).style.display = 'none'; document.getElementById(next_section).style.display = 'block'; current_section = next_section; } function swap_img(imagepath) { //alert(typeof(document.getElementById('viewer'))); document.getElementById('viewer').src = imagepath; } function swap(link,bp) { myelement = document.getElementById(link); myelement.style.backgroundPosition = bp; } /* *************************************************************** * * * from sliders.js * * * **************************************************************** */ // JavaScript Document var _spd = null, _zspd = null; function _moveIt(_eid,_way,_max) { _element = _eid; _direction = _way; var _elem = document.getElementById(_eid); /* alert(_elem.style.left); */ _maxrig = 0; if(_max == undefined) { _maxlef = -1200; } else { _maxlef = _max; } if(_way == 'right' && parseInt(_elem.style.left) > _maxlef) { _elem.style.left = parseInt(_elem.style.left) - 20 + 'px'; } else if(_way == 'left' && (parseInt(_elem.style.left) < _maxrig)) { _elem.style.left = parseInt(_elem.style.left) + 20 + 'px'; } if(_way == 'left' && (parseInt(_elem.style.left) < _maxrig)) { _zspd = setTimeout("_moveIt(_element,_direction,_maxlef)",1); } if(_way == 'right' && (parseInt(_elem.style.left) > _maxlef )) { _spd = setTimeout("_moveIt(_element,_direction,_maxlef)",1); } } function _stopIt() { if(_spd != null) { clearTimeout(_spd); } if(_zspd != null) { clearTimeout(_zspd); } } /* *************************************************************** * * * flash open window * * * **************************************************************** */ function openNewWindow(URLtoOpen, windowName, windowFeatures){ newWindow=window.open(URLtoOpen, windowName, windowFeatures); }