var slidespeed=3000; var slideimages=new Array('image_733788737.jpg', 'image_1912451925.jpg', 'image_1809603122.jpg', 'image_423974498.jpg', 'image_326362113.jpg', 'image_108448682.jpg', 'image_971843323.jpg', 'image_1447163721.jpg', 'image_167890436.jpg', 'image_50121667.jpg', 'image_1133971576.jpg', 'image_455882391.jpg', 'image_909527309.jpg', 'image_1559713226.jpg', 'image_891495264.jpg', 'image_1030659543.jpg', 'image_2110976673.jpg', 'image_1873215929.jpg', 'image_1677981589.jpg', 'image_746495082.jpg', 'image_1686190684.jpg', 'image_1098839796.jpg', 'image_1593594191.jpg', 'image_1419198383.jpg', 'image_842748980.jpg', 'image_638896178.jpg', 'image_1692381887.jpg', 'image_958193836.jpg', 'image_1967841326.jpg', 'image_842912761.jpg', 'image_164726205.jpg', 'image_2112433600.jpg', 'image_1171148408.jpg', 'image_1109025448.jpg', 'image_275787338.jpg', 'image_658965470.jpg', 'image_1811027830.jpg', 'image_773033585.jpg', 'image_863421201.jpg', 'image_229052365.jpg', 'image_2057899228.jpg', 'image_1004027984.jpg', 'image_1273018338.jpg', 'image_587228850.jpg', 'image_380890178.jpg', 'image_1532736416.jpg', 'image_1196840523.jpg') var slideimg=new Array('733788737', '1912451925', '1809603122', '423974498', '326362113', '108448682', '971843323', '1447163721', '167890436', '50121667', '1133971576', '455882391', '909527309', '1559713226', '891495264', '1030659543', '2110976673', '1873215929', '1677981589', '746495082', '1686190684', '1098839796', '1593594191', '1419198383', '842748980', '638896178', '1692381887', '958193836', '1967841326', '842912761', '164726205', '2112433600', '1171148408', '1109025448', '275787338', '658965470', '1811027830', '773033585', '863421201', '229052365', '2057899228', '1004027984', '1273018338', '587228850', '380890178', '1532736416', '1196840523') var slideimgalt=new Array('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '') var slideimgPath=new Array('http://imgsvr733788737.preferredhomesonline.com/components/com_pho/images/wb_images/image_733788737.jpg', 'http://imgsvr1912451925.preferredhomesonline.com/components/com_pho/images/wb_images/image_1912451925.jpg', 'http://imgsvr1809603122.preferredhomesonline.com/components/com_pho/images/wb_images/image_1809603122.jpg', 'http://imgsvr423974498.preferredhomesonline.com/components/com_pho/images/wb_images/image_423974498.jpg', 'http://imgsvr326362113.preferredhomesonline.com/components/com_pho/images/wb_images/image_326362113.jpg', 'http://imgsvr108448682.preferredhomesonline.com/components/com_pho/images/wb_images/image_108448682.jpg', 'http://imgsvr971843323.preferredhomesonline.com/components/com_pho/images/wb_images/image_971843323.jpg', 'http://imgsvr1447163721.preferredhomesonline.com/components/com_pho/images/wb_images/image_1447163721.jpg', 'http://imgsvr167890436.preferredhomesonline.com/components/com_pho/images/wb_images/image_167890436.jpg', 'http://imgsvr50121667.preferredhomesonline.com/components/com_pho/images/wb_images/image_50121667.jpg', 'http://imgsvr1133971576.preferredhomesonline.com/components/com_pho/images/wb_images/image_1133971576.jpg', 'http://imgsvr455882391.preferredhomesonline.com/components/com_pho/images/wb_images/image_455882391.jpg', 'http://imgsvr909527309.preferredhomesonline.com/components/com_pho/images/wb_images/image_909527309.jpg', 'http://imgsvr1559713226.preferredhomesonline.com/components/com_pho/images/wb_images/image_1559713226.jpg', 'http://imgsvr891495264.preferredhomesonline.com/components/com_pho/images/wb_images/image_891495264.jpg', 'http://imgsvr1030659543.preferredhomesonline.com/components/com_pho/images/wb_images/image_1030659543.jpg', 'http://imgsvr2110976673.preferredhomesonline.com/components/com_pho/images/wb_images/image_2110976673.jpg', 'http://imgsvr1873215929.preferredhomesonline.com/components/com_pho/images/wb_images/image_1873215929.jpg', 'http://imgsvr1677981589.preferredhomesonline.com/components/com_pho/images/wb_images/image_1677981589.jpg', 'http://imgsvr746495082.preferredhomesonline.com/components/com_pho/images/wb_images/image_746495082.jpg', 'http://imgsvr1686190684.preferredhomesonline.com/components/com_pho/images/wb_images/image_1686190684.jpg', 'http://imgsvr1098839796.preferredhomesonline.com/components/com_pho/images/wb_images/image_1098839796.jpg', 'http://imgsvr1593594191.preferredhomesonline.com/components/com_pho/images/wb_images/image_1593594191.jpg', 'http://imgsvr1419198383.preferredhomesonline.com/components/com_pho/images/wb_images/image_1419198383.jpg', 'http://imgsvr842748980.preferredhomesonline.com/components/com_pho/images/wb_images/image_842748980.jpg', 'http://imgsvr638896178.preferredhomesonline.com/components/com_pho/images/wb_images/image_638896178.jpg', 'http://imgsvr1692381887.preferredhomesonline.com/components/com_pho/images/wb_images/image_1692381887.jpg', 'http://imgsvr958193836.preferredhomesonline.com/components/com_pho/images/wb_images/image_958193836.jpg', 'http://imgsvr1967841326.preferredhomesonline.com/components/com_pho/images/wb_images/image_1967841326.jpg', 'http://imgsvr842912761.preferredhomesonline.com/components/com_pho/images/wb_images/image_842912761.jpg', 'http://imgsvr164726205.preferredhomesonline.com/components/com_pho/images/wb_images/image_164726205.jpg', 'http://imgsvr2112433600.preferredhomesonline.com/components/com_pho/images/wb_images/image_2112433600.jpg', 'http://imgsvr1171148408.preferredhomesonline.com/components/com_pho/images/wb_images/image_1171148408.jpg', 'http://imgsvr1109025448.preferredhomesonline.com/components/com_pho/images/wb_images/image_1109025448.jpg', 'http://imgsvr275787338.preferredhomesonline.com/components/com_pho/images/wb_images/image_275787338.jpg', 'http://imgsvr658965470.preferredhomesonline.com/components/com_pho/images/wb_images/image_658965470.jpg', 'http://imgsvr1811027830.preferredhomesonline.com/components/com_pho/images/wb_images/image_1811027830.jpg', 'http://imgsvr773033585.preferredhomesonline.com/components/com_pho/images/wb_images/image_773033585.jpg', 'http://imgsvr863421201.preferredhomesonline.com/components/com_pho/images/wb_images/image_863421201.jpg', 'http://imgsvr229052365.preferredhomesonline.com/components/com_pho/images/wb_images/image_229052365.jpg', 'http://imgsvr2057899228.preferredhomesonline.com/components/com_pho/images/wb_images/image_2057899228.jpg', 'http://imgsvr1004027984.preferredhomesonline.com/components/com_pho/images/wb_images/image_1004027984.jpg', 'http://imgsvr1273018338.preferredhomesonline.com/components/com_pho/images/wb_images/image_1273018338.jpg', 'http://imgsvr587228850.preferredhomesonline.com/components/com_pho/images/wb_images/image_587228850.jpg', 'http://imgsvr380890178.preferredhomesonline.com/components/com_pho/images/wb_images/image_380890178.jpg', 'http://imgsvr1532736416.preferredhomesonline.com/components/com_pho/images/wb_images/image_1532736416.jpg', 'http://imgsvr1196840523.preferredhomesonline.com/components/com_pho/images/wb_images/image_1196840523.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.2122alamos.info/components/com_pho/images/wb_images/thumb2_' + name; src = 'http://www.2122alamos.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.2122alamos.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('733788737').style.borderColor = '#ffffff'; document.getElementById('1912451925').style.borderColor = '#ffffff'; document.getElementById('1809603122').style.borderColor = '#ffffff'; document.getElementById('423974498').style.borderColor = '#ffffff'; document.getElementById('326362113').style.borderColor = '#ffffff'; document.getElementById('108448682').style.borderColor = '#ffffff'; document.getElementById('971843323').style.borderColor = '#ffffff'; document.getElementById('1447163721').style.borderColor = '#ffffff'; document.getElementById('167890436').style.borderColor = '#ffffff'; document.getElementById('50121667').style.borderColor = '#ffffff'; document.getElementById('1133971576').style.borderColor = '#ffffff'; document.getElementById('455882391').style.borderColor = '#ffffff'; document.getElementById('909527309').style.borderColor = '#ffffff'; document.getElementById('1559713226').style.borderColor = '#ffffff'; document.getElementById('891495264').style.borderColor = '#ffffff'; document.getElementById('1030659543').style.borderColor = '#ffffff'; document.getElementById('2110976673').style.borderColor = '#ffffff'; document.getElementById('1873215929').style.borderColor = '#ffffff'; document.getElementById('1677981589').style.borderColor = '#ffffff'; document.getElementById('746495082').style.borderColor = '#ffffff'; document.getElementById('1686190684').style.borderColor = '#ffffff'; document.getElementById('1098839796').style.borderColor = '#ffffff'; document.getElementById('1593594191').style.borderColor = '#ffffff'; document.getElementById('1419198383').style.borderColor = '#ffffff'; document.getElementById('842748980').style.borderColor = '#ffffff'; document.getElementById('638896178').style.borderColor = '#ffffff'; document.getElementById('1692381887').style.borderColor = '#ffffff'; document.getElementById('958193836').style.borderColor = '#ffffff'; document.getElementById('1967841326').style.borderColor = '#ffffff'; document.getElementById('842912761').style.borderColor = '#ffffff'; document.getElementById('164726205').style.borderColor = '#ffffff'; document.getElementById('2112433600').style.borderColor = '#ffffff'; document.getElementById('1171148408').style.borderColor = '#ffffff'; document.getElementById('1109025448').style.borderColor = '#ffffff'; document.getElementById('275787338').style.borderColor = '#ffffff'; document.getElementById('658965470').style.borderColor = '#ffffff'; document.getElementById('1811027830').style.borderColor = '#ffffff'; document.getElementById('773033585').style.borderColor = '#ffffff'; document.getElementById('863421201').style.borderColor = '#ffffff'; document.getElementById('229052365').style.borderColor = '#ffffff'; document.getElementById('2057899228').style.borderColor = '#ffffff'; document.getElementById('1004027984').style.borderColor = '#ffffff'; document.getElementById('1273018338').style.borderColor = '#ffffff'; document.getElementById('587228850').style.borderColor = '#ffffff'; document.getElementById('380890178').style.borderColor = '#ffffff'; document.getElementById('1532736416').style.borderColor = '#ffffff'; document.getElementById('1196840523').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; }