var slidespeed=3000;
var slideimages=new Array('image_2052194124.jpg', 'image_1823385138.jpg', 'image_1614983090.jpg', 'image_1752387377.jpg', 'image_830475107.jpg', 'image_617272173.jpg', 'image_608329430.jpg', 'image_1592105987.jpg', 'image_174280179.jpg', 'image_1294614467.jpg', 'image_666249156.jpg', 'image_1442337689.jpg', 'image_439812216.jpg', 'image_596578206.jpg', 'image_1696836741.jpg', 'image_381806471.jpg', 'image_1057777335.jpg', 'image_241118646.jpg', 'image_556780010.jpg', 'image_834946061.jpg', 'image_600062857.jpg', 'image_80351041.jpg', 'image_792880457.jpg', 'image_1196594702.jpg', 'image_984789778.jpg', 'image_1246079383.jpg', 'image_1057881853.jpg', 'image_540733762.jpg')
var slideimg=new Array('2052194124', '1823385138', '1614983090', '1752387377', '830475107', '617272173', '608329430', '1592105987', '174280179', '1294614467', '666249156', '1442337689', '439812216', '596578206', '1696836741', '381806471', '1057777335', '241118646', '556780010', '834946061', '600062857', '80351041', '792880457', '1196594702', '984789778', '1246079383', '1057881853', '540733762')
var slideimgalt=new Array('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '')
var slideimgPath=new Array('http://imgsvr2052194124.preferredhomesonline.com/components/com_pho/images/wb_images/image_2052194124.jpg', 'http://imgsvr1823385138.preferredhomesonline.com/components/com_pho/images/wb_images/image_1823385138.jpg', 'http://imgsvr1614983090.preferredhomesonline.com/components/com_pho/images/wb_images/image_1614983090.jpg', 'http://imgsvr1752387377.preferredhomesonline.com/components/com_pho/images/wb_images/image_1752387377.jpg', 'http://imgsvr830475107.preferredhomesonline.com/components/com_pho/images/wb_images/image_830475107.jpg', 'http://imgsvr617272173.preferredhomesonline.com/components/com_pho/images/wb_images/image_617272173.jpg', 'http://imgsvr608329430.preferredhomesonline.com/components/com_pho/images/wb_images/image_608329430.jpg', 'http://imgsvr1592105987.preferredhomesonline.com/components/com_pho/images/wb_images/image_1592105987.jpg', 'http://imgsvr174280179.preferredhomesonline.com/components/com_pho/images/wb_images/image_174280179.jpg', 'http://imgsvr1294614467.preferredhomesonline.com/components/com_pho/images/wb_images/image_1294614467.jpg', 'http://imgsvr666249156.preferredhomesonline.com/components/com_pho/images/wb_images/image_666249156.jpg', 'http://imgsvr1442337689.preferredhomesonline.com/components/com_pho/images/wb_images/image_1442337689.jpg', 'http://imgsvr439812216.preferredhomesonline.com/components/com_pho/images/wb_images/image_439812216.jpg', 'http://imgsvr596578206.preferredhomesonline.com/components/com_pho/images/wb_images/image_596578206.jpg', 'http://imgsvr1696836741.preferredhomesonline.com/components/com_pho/images/wb_images/image_1696836741.jpg', 'http://imgsvr381806471.preferredhomesonline.com/components/com_pho/images/wb_images/image_381806471.jpg', 'http://imgsvr1057777335.preferredhomesonline.com/components/com_pho/images/wb_images/image_1057777335.jpg', 'http://imgsvr241118646.preferredhomesonline.com/components/com_pho/images/wb_images/image_241118646.jpg', 'http://imgsvr556780010.preferredhomesonline.com/components/com_pho/images/wb_images/image_556780010.jpg', 'http://imgsvr834946061.preferredhomesonline.com/components/com_pho/images/wb_images/image_834946061.jpg', 'http://imgsvr600062857.preferredhomesonline.com/components/com_pho/images/wb_images/image_600062857.jpg', 'http://imgsvr80351041.preferredhomesonline.com/components/com_pho/images/wb_images/image_80351041.jpg', 'http://imgsvr792880457.preferredhomesonline.com/components/com_pho/images/wb_images/image_792880457.jpg', 'http://imgsvr1196594702.preferredhomesonline.com/components/com_pho/images/wb_images/image_1196594702.jpg', 'http://imgsvr984789778.preferredhomesonline.com/components/com_pho/images/wb_images/image_984789778.jpg', 'http://imgsvr1246079383.preferredhomesonline.com/components/com_pho/images/wb_images/image_1246079383.jpg', 'http://imgsvr1057881853.preferredhomesonline.com/components/com_pho/images/wb_images/image_1057881853.jpg', 'http://imgsvr540733762.preferredhomesonline.com/components/com_pho/images/wb_images/image_540733762.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.2845helm.info/components/com_pho/images/wb_images/thumb2_' + name;
src = 'http://www.2845helm.info/images/login_to_view.gif';
html = '
';
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.2845helm.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('2052194124').style.borderColor = '#ffffff';
document.getElementById('1823385138').style.borderColor = '#ffffff';
document.getElementById('1614983090').style.borderColor = '#ffffff';
document.getElementById('1752387377').style.borderColor = '#ffffff';
document.getElementById('830475107').style.borderColor = '#ffffff';
document.getElementById('617272173').style.borderColor = '#ffffff';
document.getElementById('608329430').style.borderColor = '#ffffff';
document.getElementById('1592105987').style.borderColor = '#ffffff';
document.getElementById('174280179').style.borderColor = '#ffffff';
document.getElementById('1294614467').style.borderColor = '#ffffff';
document.getElementById('666249156').style.borderColor = '#ffffff';
document.getElementById('1442337689').style.borderColor = '#ffffff';
document.getElementById('439812216').style.borderColor = '#ffffff';
document.getElementById('596578206').style.borderColor = '#ffffff';
document.getElementById('1696836741').style.borderColor = '#ffffff';
document.getElementById('381806471').style.borderColor = '#ffffff';
document.getElementById('1057777335').style.borderColor = '#ffffff';
document.getElementById('241118646').style.borderColor = '#ffffff';
document.getElementById('556780010').style.borderColor = '#ffffff';
document.getElementById('834946061').style.borderColor = '#ffffff';
document.getElementById('600062857').style.borderColor = '#ffffff';
document.getElementById('80351041').style.borderColor = '#ffffff';
document.getElementById('792880457').style.borderColor = '#ffffff';
document.getElementById('1196594702').style.borderColor = '#ffffff';
document.getElementById('984789778').style.borderColor = '#ffffff';
document.getElementById('1246079383').style.borderColor = '#ffffff';
document.getElementById('1057881853').style.borderColor = '#ffffff';
document.getElementById('540733762').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;
}