var slidespeed=3000; var slideimages=new Array('image_117887198.jpg', 'image_1002700268.jpg', 'image_1632317161.jpg', 'image_1461572375.jpg', 'image_1832221794.jpg', 'image_1960994410.jpg', 'image_1455171570.jpg', 'image_2102394796.jpg', 'image_1773405432.jpg', 'image_1688532100.jpg', 'image_640530759.jpg', 'image_415494910.jpg', 'image_1671167827.jpg', 'image_1393001148.jpg', 'image_157910578.jpg', 'image_725605031.jpg', 'image_2123314098.jpg', 'image_695266013.jpg', 'image_608539850.jpg', 'image_579746908.jpg', 'image_581891286.jpg', 'image_1794295935.jpg', 'image_2027695884.jpg', 'image_1491091035.jpg', 'image_939919073.jpg', 'image_117524497.jpg', 'image_1127432920.jpg', 'image_120961801.jpg', 'image_338932949.jpg', 'image_407837356.jpg', 'image_965707558.jpg', 'image_1457431071.jpg', 'image_887267152.jpg', 'image_1367311361.jpg', 'image_365387559.jpg', 'image_1172784088.jpg', 'image_423327982.jpg', 'image_1516682579.jpg', 'image_758826462.jpg') var slideimg=new Array('117887198', '1002700268', '1632317161', '1461572375', '1832221794', '1960994410', '1455171570', '2102394796', '1773405432', '1688532100', '640530759', '415494910', '1671167827', '1393001148', '157910578', '725605031', '2123314098', '695266013', '608539850', '579746908', '581891286', '1794295935', '2027695884', '1491091035', '939919073', '117524497', '1127432920', '120961801', '338932949', '407837356', '965707558', '1457431071', '887267152', '1367311361', '365387559', '1172784088', '423327982', '1516682579', '758826462') var slideimgalt=new Array('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '') var slideimgPath=new Array('http://imgsvr117887198.preferredhomesonline.com/components/com_pho/images/wb_images/image_117887198.jpg', 'http://imgsvr1002700268.preferredhomesonline.com/components/com_pho/images/wb_images/image_1002700268.jpg', 'http://imgsvr1632317161.preferredhomesonline.com/components/com_pho/images/wb_images/image_1632317161.jpg', 'http://imgsvr1461572375.preferredhomesonline.com/components/com_pho/images/wb_images/image_1461572375.jpg', 'http://imgsvr1832221794.preferredhomesonline.com/components/com_pho/images/wb_images/image_1832221794.jpg', 'http://imgsvr1960994410.preferredhomesonline.com/components/com_pho/images/wb_images/image_1960994410.jpg', 'http://imgsvr1455171570.preferredhomesonline.com/components/com_pho/images/wb_images/image_1455171570.jpg', 'http://imgsvr2102394796.preferredhomesonline.com/components/com_pho/images/wb_images/image_2102394796.jpg', 'http://imgsvr1773405432.preferredhomesonline.com/components/com_pho/images/wb_images/image_1773405432.jpg', 'http://imgsvr1688532100.preferredhomesonline.com/components/com_pho/images/wb_images/image_1688532100.jpg', 'http://imgsvr640530759.preferredhomesonline.com/components/com_pho/images/wb_images/image_640530759.jpg', 'http://imgsvr415494910.preferredhomesonline.com/components/com_pho/images/wb_images/image_415494910.jpg', 'http://imgsvr1671167827.preferredhomesonline.com/components/com_pho/images/wb_images/image_1671167827.jpg', 'http://imgsvr1393001148.preferredhomesonline.com/components/com_pho/images/wb_images/image_1393001148.jpg', 'http://imgsvr157910578.preferredhomesonline.com/components/com_pho/images/wb_images/image_157910578.jpg', 'http://imgsvr725605031.preferredhomesonline.com/components/com_pho/images/wb_images/image_725605031.jpg', 'http://imgsvr2123314098.preferredhomesonline.com/components/com_pho/images/wb_images/image_2123314098.jpg', 'http://imgsvr695266013.preferredhomesonline.com/components/com_pho/images/wb_images/image_695266013.jpg', 'http://imgsvr608539850.preferredhomesonline.com/components/com_pho/images/wb_images/image_608539850.jpg', 'http://imgsvr579746908.preferredhomesonline.com/components/com_pho/images/wb_images/image_579746908.jpg', 'http://imgsvr581891286.preferredhomesonline.com/components/com_pho/images/wb_images/image_581891286.jpg', 'http://imgsvr1794295935.preferredhomesonline.com/components/com_pho/images/wb_images/image_1794295935.jpg', 'http://imgsvr2027695884.preferredhomesonline.com/components/com_pho/images/wb_images/image_2027695884.jpg', 'http://imgsvr1491091035.preferredhomesonline.com/components/com_pho/images/wb_images/image_1491091035.jpg', 'http://imgsvr939919073.preferredhomesonline.com/components/com_pho/images/wb_images/image_939919073.jpg', 'http://imgsvr117524497.preferredhomesonline.com/components/com_pho/images/wb_images/image_117524497.jpg', 'http://imgsvr1127432920.preferredhomesonline.com/components/com_pho/images/wb_images/image_1127432920.jpg', 'http://imgsvr120961801.preferredhomesonline.com/components/com_pho/images/wb_images/image_120961801.jpg', 'http://imgsvr338932949.preferredhomesonline.com/components/com_pho/images/wb_images/image_338932949.jpg', 'http://imgsvr407837356.preferredhomesonline.com/components/com_pho/images/wb_images/image_407837356.jpg', 'http://imgsvr965707558.preferredhomesonline.com/components/com_pho/images/wb_images/image_965707558.jpg', 'http://imgsvr1457431071.preferredhomesonline.com/components/com_pho/images/wb_images/image_1457431071.jpg', 'http://imgsvr887267152.preferredhomesonline.com/components/com_pho/images/wb_images/image_887267152.jpg', 'http://imgsvr1367311361.preferredhomesonline.com/components/com_pho/images/wb_images/image_1367311361.jpg', 'http://imgsvr365387559.preferredhomesonline.com/components/com_pho/images/wb_images/image_365387559.jpg', 'http://imgsvr1172784088.preferredhomesonline.com/components/com_pho/images/wb_images/image_1172784088.jpg', 'http://imgsvr423327982.preferredhomesonline.com/components/com_pho/images/wb_images/image_423327982.jpg', 'http://imgsvr1516682579.preferredhomesonline.com/components/com_pho/images/wb_images/image_1516682579.jpg', 'http://imgsvr758826462.preferredhomesonline.com/components/com_pho/images/wb_images/image_758826462.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.21853roseofsharon.info/components/com_pho/images/wb_images/thumb2_' + name; src = 'http://www.21853roseofsharon.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.21853roseofsharon.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('117887198').style.borderColor = '#ffffff'; document.getElementById('1002700268').style.borderColor = '#ffffff'; document.getElementById('1632317161').style.borderColor = '#ffffff'; document.getElementById('1461572375').style.borderColor = '#ffffff'; document.getElementById('1832221794').style.borderColor = '#ffffff'; document.getElementById('1960994410').style.borderColor = '#ffffff'; document.getElementById('1455171570').style.borderColor = '#ffffff'; document.getElementById('2102394796').style.borderColor = '#ffffff'; document.getElementById('1773405432').style.borderColor = '#ffffff'; document.getElementById('1688532100').style.borderColor = '#ffffff'; document.getElementById('640530759').style.borderColor = '#ffffff'; document.getElementById('415494910').style.borderColor = '#ffffff'; document.getElementById('1671167827').style.borderColor = '#ffffff'; document.getElementById('1393001148').style.borderColor = '#ffffff'; document.getElementById('157910578').style.borderColor = '#ffffff'; document.getElementById('725605031').style.borderColor = '#ffffff'; document.getElementById('2123314098').style.borderColor = '#ffffff'; document.getElementById('695266013').style.borderColor = '#ffffff'; document.getElementById('608539850').style.borderColor = '#ffffff'; document.getElementById('579746908').style.borderColor = '#ffffff'; document.getElementById('581891286').style.borderColor = '#ffffff'; document.getElementById('1794295935').style.borderColor = '#ffffff'; document.getElementById('2027695884').style.borderColor = '#ffffff'; document.getElementById('1491091035').style.borderColor = '#ffffff'; document.getElementById('939919073').style.borderColor = '#ffffff'; document.getElementById('117524497').style.borderColor = '#ffffff'; document.getElementById('1127432920').style.borderColor = '#ffffff'; document.getElementById('120961801').style.borderColor = '#ffffff'; document.getElementById('338932949').style.borderColor = '#ffffff'; document.getElementById('407837356').style.borderColor = '#ffffff'; document.getElementById('965707558').style.borderColor = '#ffffff'; document.getElementById('1457431071').style.borderColor = '#ffffff'; document.getElementById('887267152').style.borderColor = '#ffffff'; document.getElementById('1367311361').style.borderColor = '#ffffff'; document.getElementById('365387559').style.borderColor = '#ffffff'; document.getElementById('1172784088').style.borderColor = '#ffffff'; document.getElementById('423327982').style.borderColor = '#ffffff'; document.getElementById('1516682579').style.borderColor = '#ffffff'; document.getElementById('758826462').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; }