var slidespeed=3000;
var slideimages=new Array('image_2143922128.jpg', 'image_1316930198.jpg', 'image_1049570272.jpg', 'image_773019719.jpg', 'image_1879655903.jpg', 'image_2070266957.jpg', 'image_379624818.jpg', 'image_2030665375.jpg', 'image_1963915282.jpg', 'image_1689856380.jpg', 'image_475132449.jpg', 'image_958276370.jpg', 'image_1319137389.jpg', 'image_976124574.jpg', 'image_1214493864.jpg', 'image_756920045.jpg', 'image_395989443.jpg')
var slideimg=new Array('2143922128', '1316930198', '1049570272', '773019719', '1879655903', '2070266957', '379624818', '2030665375', '1963915282', '1689856380', '475132449', '958276370', '1319137389', '976124574', '1214493864', '756920045', '395989443')
var slideimgalt=new Array('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '')
var slideimgPath=new Array('http://imgsvr2143922128.preferredhomesonline.com/components/com_pho/images/wb_images/image_2143922128.jpg', 'http://imgsvr1316930198.preferredhomesonline.com/components/com_pho/images/wb_images/image_1316930198.jpg', 'http://imgsvr1049570272.preferredhomesonline.com/components/com_pho/images/wb_images/image_1049570272.jpg', 'http://imgsvr773019719.preferredhomesonline.com/components/com_pho/images/wb_images/image_773019719.jpg', 'http://imgsvr1879655903.preferredhomesonline.com/components/com_pho/images/wb_images/image_1879655903.jpg', 'http://imgsvr2070266957.preferredhomesonline.com/components/com_pho/images/wb_images/image_2070266957.jpg', 'http://imgsvr379624818.preferredhomesonline.com/components/com_pho/images/wb_images/image_379624818.jpg', 'http://imgsvr2030665375.preferredhomesonline.com/components/com_pho/images/wb_images/image_2030665375.jpg', 'http://imgsvr1963915282.preferredhomesonline.com/components/com_pho/images/wb_images/image_1963915282.jpg', 'http://imgsvr1689856380.preferredhomesonline.com/components/com_pho/images/wb_images/image_1689856380.jpg', 'http://imgsvr475132449.preferredhomesonline.com/components/com_pho/images/wb_images/image_475132449.jpg', 'http://imgsvr958276370.preferredhomesonline.com/components/com_pho/images/wb_images/image_958276370.jpg', 'http://imgsvr1319137389.preferredhomesonline.com/components/com_pho/images/wb_images/image_1319137389.jpg', 'http://imgsvr976124574.preferredhomesonline.com/components/com_pho/images/wb_images/image_976124574.jpg', 'http://imgsvr1214493864.preferredhomesonline.com/components/com_pho/images/wb_images/image_1214493864.jpg', 'http://imgsvr756920045.preferredhomesonline.com/components/com_pho/images/wb_images/image_756920045.jpg', 'http://imgsvr395989443.preferredhomesonline.com/components/com_pho/images/wb_images/image_395989443.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.422wvermont.info/components/com_pho/images/wb_images/thumb2_' + name;
src = 'http://www.422wvermont.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.422wvermont.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('2143922128').style.borderColor = '#ffffff';
document.getElementById('1316930198').style.borderColor = '#ffffff';
document.getElementById('1049570272').style.borderColor = '#ffffff';
document.getElementById('773019719').style.borderColor = '#ffffff';
document.getElementById('1879655903').style.borderColor = '#ffffff';
document.getElementById('2070266957').style.borderColor = '#ffffff';
document.getElementById('379624818').style.borderColor = '#ffffff';
document.getElementById('2030665375').style.borderColor = '#ffffff';
document.getElementById('1963915282').style.borderColor = '#ffffff';
document.getElementById('1689856380').style.borderColor = '#ffffff';
document.getElementById('475132449').style.borderColor = '#ffffff';
document.getElementById('958276370').style.borderColor = '#ffffff';
document.getElementById('1319137389').style.borderColor = '#ffffff';
document.getElementById('976124574').style.borderColor = '#ffffff';
document.getElementById('1214493864').style.borderColor = '#ffffff';
document.getElementById('756920045').style.borderColor = '#ffffff';
document.getElementById('395989443').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;
}