var slidespeed=3000; var slideimages=new Array('image_1064145120.jpg', 'image_1318588431.jpg', 'image_1868715423.jpg', 'image_2015231509.jpg', 'image_288709089.jpg', 'image_81659709.jpg', 'image_685427670.jpg', 'image_104848606.jpg', 'image_1946423614.jpg', 'image_245875941.jpg', 'image_556520051.jpg', 'image_1023770955.jpg', 'image_1042180688.jpg', 'image_1208382974.jpg', 'image_1410356506.jpg', 'image_658713572.jpg', 'image_1537975650.jpg', 'image_2020306391.jpg', 'image_1062093497.jpg', 'image_2136583337.jpg', 'image_852212942.jpg', 'image_1659598819.jpg', 'image_229806031.jpg', 'image_724625682.jpg', 'image_1824535935.jpg', 'image_1777681496.jpg', 'image_44454795.jpg') var slideimg=new Array('1064145120', '1318588431', '1868715423', '2015231509', '288709089', '81659709', '685427670', '104848606', '1946423614', '245875941', '556520051', '1023770955', '1042180688', '1208382974', '1410356506', '658713572', '1537975650', '2020306391', '1062093497', '2136583337', '852212942', '1659598819', '229806031', '724625682', '1824535935', '1777681496', '44454795') var slideimgalt=new Array('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '') var slideimgPath=new Array('http://imgsvr1064145120.preferredhomesonline.com/components/com_pho/images/wb_images/image_1064145120.jpg', 'http://imgsvr1318588431.preferredhomesonline.com/components/com_pho/images/wb_images/image_1318588431.jpg', 'http://imgsvr1868715423.preferredhomesonline.com/components/com_pho/images/wb_images/image_1868715423.jpg', 'http://imgsvr2015231509.preferredhomesonline.com/components/com_pho/images/wb_images/image_2015231509.jpg', 'http://imgsvr288709089.preferredhomesonline.com/components/com_pho/images/wb_images/image_288709089.jpg', 'http://imgsvr81659709.preferredhomesonline.com/components/com_pho/images/wb_images/image_81659709.jpg', 'http://imgsvr685427670.preferredhomesonline.com/components/com_pho/images/wb_images/image_685427670.jpg', 'http://imgsvr104848606.preferredhomesonline.com/components/com_pho/images/wb_images/image_104848606.jpg', 'http://imgsvr1946423614.preferredhomesonline.com/components/com_pho/images/wb_images/image_1946423614.jpg', 'http://imgsvr245875941.preferredhomesonline.com/components/com_pho/images/wb_images/image_245875941.jpg', 'http://imgsvr556520051.preferredhomesonline.com/components/com_pho/images/wb_images/image_556520051.jpg', 'http://imgsvr1023770955.preferredhomesonline.com/components/com_pho/images/wb_images/image_1023770955.jpg', 'http://imgsvr1042180688.preferredhomesonline.com/components/com_pho/images/wb_images/image_1042180688.jpg', 'http://imgsvr1208382974.preferredhomesonline.com/components/com_pho/images/wb_images/image_1208382974.jpg', 'http://imgsvr1410356506.preferredhomesonline.com/components/com_pho/images/wb_images/image_1410356506.jpg', 'http://imgsvr658713572.preferredhomesonline.com/components/com_pho/images/wb_images/image_658713572.jpg', 'http://imgsvr1537975650.preferredhomesonline.com/components/com_pho/images/wb_images/image_1537975650.jpg', 'http://imgsvr2020306391.preferredhomesonline.com/components/com_pho/images/wb_images/image_2020306391.jpg', 'http://imgsvr1062093497.preferredhomesonline.com/components/com_pho/images/wb_images/image_1062093497.jpg', 'http://imgsvr2136583337.preferredhomesonline.com/components/com_pho/images/wb_images/image_2136583337.jpg', 'http://imgsvr852212942.preferredhomesonline.com/components/com_pho/images/wb_images/image_852212942.jpg', 'http://imgsvr1659598819.preferredhomesonline.com/components/com_pho/images/wb_images/image_1659598819.jpg', 'http://imgsvr229806031.preferredhomesonline.com/components/com_pho/images/wb_images/image_229806031.jpg', 'http://imgsvr724625682.preferredhomesonline.com/components/com_pho/images/wb_images/image_724625682.jpg', 'http://imgsvr1824535935.preferredhomesonline.com/components/com_pho/images/wb_images/image_1824535935.jpg', 'http://imgsvr1777681496.preferredhomesonline.com/components/com_pho/images/wb_images/image_1777681496.jpg', 'http://imgsvr44454795.preferredhomesonline.com/components/com_pho/images/wb_images/image_44454795.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.1224oak.info/components/com_pho/images/wb_images/thumb2_' + name; src = 'http://www.1224oak.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.1224oak.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('1064145120').style.borderColor = '#000000'; document.getElementById('1318588431').style.borderColor = '#000000'; document.getElementById('1868715423').style.borderColor = '#000000'; document.getElementById('2015231509').style.borderColor = '#000000'; document.getElementById('288709089').style.borderColor = '#000000'; document.getElementById('81659709').style.borderColor = '#000000'; document.getElementById('685427670').style.borderColor = '#000000'; document.getElementById('104848606').style.borderColor = '#000000'; document.getElementById('1946423614').style.borderColor = '#000000'; document.getElementById('245875941').style.borderColor = '#000000'; document.getElementById('556520051').style.borderColor = '#000000'; document.getElementById('1023770955').style.borderColor = '#000000'; document.getElementById('1042180688').style.borderColor = '#000000'; document.getElementById('1208382974').style.borderColor = '#000000'; document.getElementById('1410356506').style.borderColor = '#000000'; document.getElementById('658713572').style.borderColor = '#000000'; document.getElementById('1537975650').style.borderColor = '#000000'; document.getElementById('2020306391').style.borderColor = '#000000'; document.getElementById('1062093497').style.borderColor = '#000000'; document.getElementById('2136583337').style.borderColor = '#000000'; document.getElementById('852212942').style.borderColor = '#000000'; document.getElementById('1659598819').style.borderColor = '#000000'; document.getElementById('229806031').style.borderColor = '#000000'; document.getElementById('724625682').style.borderColor = '#000000'; document.getElementById('1824535935').style.borderColor = '#000000'; document.getElementById('1777681496').style.borderColor = '#000000'; document.getElementById('44454795').style.borderColor = '#000000'; 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; }