var slidespeed=3000; var slideimages=new Array('image_186827218.jpg', 'image_432665336.jpg', 'image_808758314.jpg', 'image_1063179130.jpg', 'image_1016011652.jpg', 'image_67785663.jpg', 'image_207176648.jpg', 'image_1778216199.jpg', 'image_1507419487.jpg', 'image_1803595680.jpg', 'image_16642098.jpg', 'image_401424751.jpg', 'image_1141561127.jpg', 'image_770704951.jpg', 'image_716129515.jpg', 'image_2088480739.jpg', 'image_871595081.jpg', 'image_331334625.jpg', 'image_1082633466.jpg', 'image_1430574629.jpg') var slideimg=new Array('186827218', '432665336', '808758314', '1063179130', '1016011652', '67785663', '207176648', '1778216199', '1507419487', '1803595680', '16642098', '401424751', '1141561127', '770704951', '716129515', '2088480739', '871595081', '331334625', '1082633466', '1430574629') var slideimgalt=new Array('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '') var slideimgPath=new Array('http://imgsvr186827218.preferredhomesonline.com/components/com_pho/images/wb_images/image_186827218.jpg', 'http://imgsvr432665336.preferredhomesonline.com/components/com_pho/images/wb_images/image_432665336.jpg', 'http://imgsvr808758314.preferredhomesonline.com/components/com_pho/images/wb_images/image_808758314.jpg', 'http://imgsvr1063179130.preferredhomesonline.com/components/com_pho/images/wb_images/image_1063179130.jpg', 'http://imgsvr1016011652.preferredhomesonline.com/components/com_pho/images/wb_images/image_1016011652.jpg', 'http://imgsvr67785663.preferredhomesonline.com/components/com_pho/images/wb_images/image_67785663.jpg', 'http://imgsvr207176648.preferredhomesonline.com/components/com_pho/images/wb_images/image_207176648.jpg', 'http://imgsvr1778216199.preferredhomesonline.com/components/com_pho/images/wb_images/image_1778216199.jpg', 'http://imgsvr1507419487.preferredhomesonline.com/components/com_pho/images/wb_images/image_1507419487.jpg', 'http://imgsvr1803595680.preferredhomesonline.com/components/com_pho/images/wb_images/image_1803595680.jpg', 'http://imgsvr16642098.preferredhomesonline.com/components/com_pho/images/wb_images/image_16642098.jpg', 'http://imgsvr401424751.preferredhomesonline.com/components/com_pho/images/wb_images/image_401424751.jpg', 'http://imgsvr1141561127.preferredhomesonline.com/components/com_pho/images/wb_images/image_1141561127.jpg', 'http://imgsvr770704951.preferredhomesonline.com/components/com_pho/images/wb_images/image_770704951.jpg', 'http://imgsvr716129515.preferredhomesonline.com/components/com_pho/images/wb_images/image_716129515.jpg', 'http://imgsvr2088480739.preferredhomesonline.com/components/com_pho/images/wb_images/image_2088480739.jpg', 'http://imgsvr871595081.preferredhomesonline.com/components/com_pho/images/wb_images/image_871595081.jpg', 'http://imgsvr331334625.preferredhomesonline.com/components/com_pho/images/wb_images/image_331334625.jpg', 'http://imgsvr1082633466.preferredhomesonline.com/components/com_pho/images/wb_images/image_1082633466.jpg', 'http://imgsvr1430574629.preferredhomesonline.com/components/com_pho/images/wb_images/image_1430574629.jpg') //specify corresponding links //var slidelinks=new Array("","","") var newwindow=1 //open links in new window? 1=yes, 0=no var imageholder=new Array() var ie=document.all for (i=0;i'; return overlib(html, '', '', BELOW, RIGHT, WIDTH, 100, CSSCLASS, FGCLASS, 'fgClass', BGCLASS, 'bgClass', CELLPAD, 3) } function showTh2Reg(name) { imgSrc = 'http://www.2165acacia.info/components/com_pho/images/wb_images/thumb2_' + name; src = 'http://www.2165acacia.info/images/login_to_view.gif'; html = 'No preview available'; return overlib(html, '', '', BELOW, RIGHT, WIDTH, 100, CSSCLASS, BGCLASS, 'bgClass', FGCOLOR, 'transparent', FGBACKGROUND, imgSrc, CELLPAD, 3) } var number; var current = 0; var prev = 0; function changeImg(name, number) { for (i = 0; i < slideimages.length; i++) { if (slideimages[i] == name) document.images.slide.src = slideimgPath[i]; } document.getElementById('bigImg').href = 'http://www.2165acacia.info/components/com_pho/images/wb_images/' + name; for(j=0;j 1) { whichimage = 1; } else if (whichimage == 0 && prev != 0) { whichimage = 0; } document.images.slide.src=imageholder[whichimage].src document.images.slide.alt = imageholder[whichimage].alt; document.getElementById('bigImg').href = imageholder[whichimage].src; document.getElementById('imgAlt').innerHTML = imageholder[whichimage].alt; //border start document.getElementById('186827218').style.borderColor = '#ffffff'; document.getElementById('432665336').style.borderColor = '#ffffff'; document.getElementById('808758314').style.borderColor = '#ffffff'; document.getElementById('1063179130').style.borderColor = '#ffffff'; document.getElementById('1016011652').style.borderColor = '#ffffff'; document.getElementById('67785663').style.borderColor = '#ffffff'; document.getElementById('207176648').style.borderColor = '#ffffff'; document.getElementById('1778216199').style.borderColor = '#ffffff'; document.getElementById('1507419487').style.borderColor = '#ffffff'; document.getElementById('1803595680').style.borderColor = '#ffffff'; document.getElementById('16642098').style.borderColor = '#ffffff'; document.getElementById('401424751').style.borderColor = '#ffffff'; document.getElementById('1141561127').style.borderColor = '#ffffff'; document.getElementById('770704951').style.borderColor = '#ffffff'; document.getElementById('716129515').style.borderColor = '#ffffff'; document.getElementById('2088480739').style.borderColor = '#ffffff'; document.getElementById('871595081').style.borderColor = '#ffffff'; document.getElementById('331334625').style.borderColor = '#ffffff'; document.getElementById('1082633466').style.borderColor = '#ffffff'; document.getElementById('1430574629').style.borderColor = '#ffffff'; number = imageholder[whichimage].name; document.getElementById(number).style.borderColor = 'red'; //border end prev = whichimage - 1; whichimage = whichimage + 1; if (whichimage == slideimages.length) { whichimage = 0; //prev = slideimages.length - 2; } } function doLightBox() { var bigImg = document.getElementById('bigImg'); var image = document.images.slide.src; var pos1 = image.lastIndexOf('image_'); var pos2 = image.lastIndexOf('.jpg'); var name = image.substring(pos1, pos2); var number = name.substring(6); var evt = 'click'; var fireOnThis = document.getElementById('photo' + number); if( document.createEvent ) { var evObj = document.createEvent('MouseEvents'); evObj.initEvent( evt, true, false ); fireOnThis.dispatchEvent(evObj); } else if( document.createEventObject ) { fireOnThis.fireEvent('on'+evt); } return false; }