var slidespeed=3000;
var slideimages=new Array('image_1690414831.jpg', 'image_1165725141.jpg', 'image_2033140290.jpg', 'image_1772068962.jpg', 'image_1982788438.jpg', 'image_1494007785.jpg', 'image_1181754150.jpg', 'image_1524583157.jpg', 'image_198665358.jpg', 'image_1012090790.jpg', 'image_230198962.jpg', 'image_1956098288.jpg', 'image_1094988743.jpg', 'image_1459912710.jpg', 'image_505924315.jpg', 'image_1173858436.jpg', 'image_1639834785.jpg', 'image_347428437.jpg', 'image_845690554.jpg', 'image_824402445.jpg', 'image_637239264.jpg', 'image_1522078279.jpg', 'image_628653878.jpg', 'image_1527968633.jpg', 'image_1145458935.jpg', 'image_531567450.jpg', 'image_1938273381.jpg', 'image_1450331346.jpg', 'image_1492626789.jpg')
var slideimg=new Array('1690414831', '1165725141', '2033140290', '1772068962', '1982788438', '1494007785', '1181754150', '1524583157', '198665358', '1012090790', '230198962', '1956098288', '1094988743', '1459912710', '505924315', '1173858436', '1639834785', '347428437', '845690554', '824402445', '637239264', '1522078279', '628653878', '1527968633', '1145458935', '531567450', '1938273381', '1450331346', '1492626789')
var slideimgalt=new Array('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '')
var slideimgPath=new Array('http://imgsvr1690414831.preferredhomesonline.com/components/com_pho/images/wb_images/image_1690414831.jpg', 'http://imgsvr1165725141.preferredhomesonline.com/components/com_pho/images/wb_images/image_1165725141.jpg', 'http://imgsvr2033140290.preferredhomesonline.com/components/com_pho/images/wb_images/image_2033140290.jpg', 'http://imgsvr1772068962.preferredhomesonline.com/components/com_pho/images/wb_images/image_1772068962.jpg', 'http://imgsvr1982788438.preferredhomesonline.com/components/com_pho/images/wb_images/image_1982788438.jpg', 'http://imgsvr1494007785.preferredhomesonline.com/components/com_pho/images/wb_images/image_1494007785.jpg', 'http://imgsvr1181754150.preferredhomesonline.com/components/com_pho/images/wb_images/image_1181754150.jpg', 'http://imgsvr1524583157.preferredhomesonline.com/components/com_pho/images/wb_images/image_1524583157.jpg', 'http://imgsvr198665358.preferredhomesonline.com/components/com_pho/images/wb_images/image_198665358.jpg', 'http://imgsvr1012090790.preferredhomesonline.com/components/com_pho/images/wb_images/image_1012090790.jpg', 'http://imgsvr230198962.preferredhomesonline.com/components/com_pho/images/wb_images/image_230198962.jpg', 'http://imgsvr1956098288.preferredhomesonline.com/components/com_pho/images/wb_images/image_1956098288.jpg', 'http://imgsvr1094988743.preferredhomesonline.com/components/com_pho/images/wb_images/image_1094988743.jpg', 'http://imgsvr1459912710.preferredhomesonline.com/components/com_pho/images/wb_images/image_1459912710.jpg', 'http://imgsvr505924315.preferredhomesonline.com/components/com_pho/images/wb_images/image_505924315.jpg', 'http://imgsvr1173858436.preferredhomesonline.com/components/com_pho/images/wb_images/image_1173858436.jpg', 'http://imgsvr1639834785.preferredhomesonline.com/components/com_pho/images/wb_images/image_1639834785.jpg', 'http://imgsvr347428437.preferredhomesonline.com/components/com_pho/images/wb_images/image_347428437.jpg', 'http://imgsvr845690554.preferredhomesonline.com/components/com_pho/images/wb_images/image_845690554.jpg', 'http://imgsvr824402445.preferredhomesonline.com/components/com_pho/images/wb_images/image_824402445.jpg', 'http://imgsvr637239264.preferredhomesonline.com/components/com_pho/images/wb_images/image_637239264.jpg', 'http://imgsvr1522078279.preferredhomesonline.com/components/com_pho/images/wb_images/image_1522078279.jpg', 'http://imgsvr628653878.preferredhomesonline.com/components/com_pho/images/wb_images/image_628653878.jpg', 'http://imgsvr1527968633.preferredhomesonline.com/components/com_pho/images/wb_images/image_1527968633.jpg', 'http://imgsvr1145458935.preferredhomesonline.com/components/com_pho/images/wb_images/image_1145458935.jpg', 'http://imgsvr531567450.preferredhomesonline.com/components/com_pho/images/wb_images/image_531567450.jpg', 'http://imgsvr1938273381.preferredhomesonline.com/components/com_pho/images/wb_images/image_1938273381.jpg', 'http://imgsvr1450331346.preferredhomesonline.com/components/com_pho/images/wb_images/image_1450331346.jpg', 'http://imgsvr1492626789.preferredhomesonline.com/components/com_pho/images/wb_images/image_1492626789.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.1920thompson.info/components/com_pho/images/wb_images/thumb2_' + name;
src = 'http://www.1920thompson.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.1920thompson.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('1690414831').style.borderColor = '#535969';
document.getElementById('1165725141').style.borderColor = '#535969';
document.getElementById('2033140290').style.borderColor = '#535969';
document.getElementById('1772068962').style.borderColor = '#535969';
document.getElementById('1982788438').style.borderColor = '#535969';
document.getElementById('1494007785').style.borderColor = '#535969';
document.getElementById('1181754150').style.borderColor = '#535969';
document.getElementById('1524583157').style.borderColor = '#535969';
document.getElementById('198665358').style.borderColor = '#535969';
document.getElementById('1012090790').style.borderColor = '#535969';
document.getElementById('230198962').style.borderColor = '#535969';
document.getElementById('1956098288').style.borderColor = '#535969';
document.getElementById('1094988743').style.borderColor = '#535969';
document.getElementById('1459912710').style.borderColor = '#535969';
document.getElementById('505924315').style.borderColor = '#535969';
document.getElementById('1173858436').style.borderColor = '#535969';
document.getElementById('1639834785').style.borderColor = '#535969';
document.getElementById('347428437').style.borderColor = '#535969';
document.getElementById('845690554').style.borderColor = '#535969';
document.getElementById('824402445').style.borderColor = '#535969';
document.getElementById('637239264').style.borderColor = '#535969';
document.getElementById('1522078279').style.borderColor = '#535969';
document.getElementById('628653878').style.borderColor = '#535969';
document.getElementById('1527968633').style.borderColor = '#535969';
document.getElementById('1145458935').style.borderColor = '#535969';
document.getElementById('531567450').style.borderColor = '#535969';
document.getElementById('1938273381').style.borderColor = '#535969';
document.getElementById('1450331346').style.borderColor = '#535969';
document.getElementById('1492626789').style.borderColor = '#535969';
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;
}