var slidespeed=3000; var slideimages=new Array('image_1281844856.jpg', 'image_1000208683.jpg', 'image_235104867.jpg', 'image_948335715.jpg', 'image_624830122.jpg', 'image_1139894482.jpg', 'image_2101141018.jpg', 'image_1845867101.jpg', 'image_1621544523.jpg', 'image_1294417935.jpg', 'image_1826829369.jpg', 'image_984797033.jpg') var slideimg=new Array('1281844856', '1000208683', '235104867', '948335715', '624830122', '1139894482', '2101141018', '1845867101', '1621544523', '1294417935', '1826829369', '984797033') var slideimgalt=new Array('Authentic English Tudor', 'Private driveway leads to carport and huge two car garage.', 'Panoramic Bay Window with garden view. No house to block your view!', 'Huge, fully irrigated back yard.', 'Property borders Dry Creek open view.', 'Detached in-law setup with a/c and satellite tv!', 'Comfortable teen setup or for mom & dad!', '', 'Pull up a chair and relax next to the Dry Creek canal.', 'Fenced in 1" Redwood Privacy and very green!', 'Your owen private green area completely open to relax.', 'Fully custom and over-built. No other home with this level of construction!') //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.englishtudorsforsale.com/components/com_pho/images/wb_images/thumb2_' + name; src = 'http://www.englishtudorsforsale.com/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.englishtudorsforsale.com/components/com_pho/images/wb_images/' + name; document.getElementById('bigImg').href = 'http://www.englishtudorsforsale.com/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.englishtudorsforsale.com/index2.php?option=com_pho_js&task=email&img=' + imageholder[whichimage].name; //document.getElementById('print').href = 'http://www.englishtudorsforsale.com/index2.php?option=com_pho_js&task=print&img=' + imageholder[whichimage].name; //border start document.getElementById('1281844856').style.borderColor = '#cfcfcf'; document.getElementById('1000208683').style.borderColor = '#cfcfcf'; document.getElementById('235104867').style.borderColor = '#cfcfcf'; document.getElementById('948335715').style.borderColor = '#cfcfcf'; document.getElementById('624830122').style.borderColor = '#cfcfcf'; document.getElementById('1139894482').style.borderColor = '#cfcfcf'; document.getElementById('2101141018').style.borderColor = '#cfcfcf'; document.getElementById('1845867101').style.borderColor = '#cfcfcf'; document.getElementById('1621544523').style.borderColor = '#cfcfcf'; document.getElementById('1294417935').style.borderColor = '#cfcfcf'; document.getElementById('1826829369').style.borderColor = '#cfcfcf'; document.getElementById('984797033').style.borderColor = '#cfcfcf'; 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; }