var slidespeed=3000; var slideimages=new Array('image_1005430286.jpg', 'image_1912835476.jpg', 'image_1454391937.jpg', 'image_1674027008.jpg', 'image_457575943.jpg', 'image_1388746032.jpg', 'image_289489470.jpg', 'image_2072502072.jpg', 'image_1199926435.jpg', 'image_1552078805.jpg') var slideimg=new Array('1005430286', '1912835476', '1454391937', '1674027008', '457575943', '1388746032', '289489470', '2072502072', '1199926435', '1552078805') var slideimgalt=new Array('Located on .41 acre lot in San Joaquin Country Club Estates', 'Formal Living Room is perfect for entertaining', 'Large Family Room with wood ceiling', 'Built in bar w/ice maker & refrigerator', 'Generous kitchen with island/breakfast bar, wine cruvient, desk, and pantry.', 'Formal Dining Room', 'Informal dining area', 'Wine cellar accommodates 3,000 bottles', 'Pebbletec pool with fountain and spa', 'Private, maturely landscaped back yard') //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.3881locust.info/components/com_pho/images/wb_images/thumb2_' + name; src = 'http://www.3881locust.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) { document.images.slide.src = 'http://www.3881locust.info/components/com_pho/images/wb_images/' + name; document.getElementById('bigImg').href = 'http://www.3881locust.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; //document.getElementById('email').href = 'http://www.3881locust.info/index2.php?option=com_pho_js&task=email&img=' + imageholder[whichimage].name; //document.getElementById('print').href = 'http://www.3881locust.info/index2.php?option=com_pho_js&task=print&img=' + imageholder[whichimage].name; //border start document.getElementById('1005430286').style.borderColor = '#3c4854'; document.getElementById('1912835476').style.borderColor = '#3c4854'; document.getElementById('1454391937').style.borderColor = '#3c4854'; document.getElementById('1674027008').style.borderColor = '#3c4854'; document.getElementById('457575943').style.borderColor = '#3c4854'; document.getElementById('1388746032').style.borderColor = '#3c4854'; document.getElementById('289489470').style.borderColor = '#3c4854'; document.getElementById('2072502072').style.borderColor = '#3c4854'; document.getElementById('1199926435').style.borderColor = '#3c4854'; document.getElementById('1552078805').style.borderColor = '#3c4854'; 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; }