var slidespeed=3000;
var slideimages=new Array('image_1281140710.jpg', 'image_1285653529.jpg', 'image_381431863.jpg', 'image_337851924.jpg', 'image_1907289919.jpg', 'image_545326796.jpg', 'image_696633029.jpg', 'image_742763018.jpg', 'image_900445789.jpg', 'image_2070548677.jpg', 'image_1009462975.jpg', 'image_955755429.jpg', 'image_510025140.jpg', 'image_1811006740.jpg', 'image_341834350.jpg', 'image_816971048.jpg', 'image_667900463.jpg', 'image_544282919.jpg', 'image_1681386368.jpg', 'image_1002459229.jpg', 'image_1722518124.jpg', 'image_1903401932.jpg', 'image_799210909.jpg', 'image_1316302858.jpg', 'image_494267364.jpg')
var slideimg=new Array('1281140710', '1285653529', '381431863', '337851924', '1907289919', '545326796', '696633029', '742763018', '900445789', '2070548677', '1009462975', '955755429', '510025140', '1811006740', '341834350', '816971048', '667900463', '544282919', '1681386368', '1002459229', '1722518124', '1903401932', '799210909', '1316302858', '494267364')
var slideimgalt=new Array('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '')
var slideimgPath=new Array('http://imgsvr1281140710.preferredhomesonline.com/components/com_pho/images/wb_images/image_1281140710.jpg', 'http://imgsvr1285653529.preferredhomesonline.com/components/com_pho/images/wb_images/image_1285653529.jpg', 'http://imgsvr381431863.preferredhomesonline.com/components/com_pho/images/wb_images/image_381431863.jpg', 'http://imgsvr337851924.preferredhomesonline.com/components/com_pho/images/wb_images/image_337851924.jpg', 'http://imgsvr1907289919.preferredhomesonline.com/components/com_pho/images/wb_images/image_1907289919.jpg', 'http://imgsvr545326796.preferredhomesonline.com/components/com_pho/images/wb_images/image_545326796.jpg', 'http://imgsvr696633029.preferredhomesonline.com/components/com_pho/images/wb_images/image_696633029.jpg', 'http://imgsvr742763018.preferredhomesonline.com/components/com_pho/images/wb_images/image_742763018.jpg', 'http://imgsvr900445789.preferredhomesonline.com/components/com_pho/images/wb_images/image_900445789.jpg', 'http://imgsvr2070548677.preferredhomesonline.com/components/com_pho/images/wb_images/image_2070548677.jpg', 'http://imgsvr1009462975.preferredhomesonline.com/components/com_pho/images/wb_images/image_1009462975.jpg', 'http://imgsvr955755429.preferredhomesonline.com/components/com_pho/images/wb_images/image_955755429.jpg', 'http://imgsvr510025140.preferredhomesonline.com/components/com_pho/images/wb_images/image_510025140.jpg', 'http://imgsvr1811006740.preferredhomesonline.com/components/com_pho/images/wb_images/image_1811006740.jpg', 'http://imgsvr341834350.preferredhomesonline.com/components/com_pho/images/wb_images/image_341834350.jpg', 'http://imgsvr816971048.preferredhomesonline.com/components/com_pho/images/wb_images/image_816971048.jpg', 'http://imgsvr667900463.preferredhomesonline.com/components/com_pho/images/wb_images/image_667900463.jpg', 'http://imgsvr544282919.preferredhomesonline.com/components/com_pho/images/wb_images/image_544282919.jpg', 'http://imgsvr1681386368.preferredhomesonline.com/components/com_pho/images/wb_images/image_1681386368.jpg', 'http://imgsvr1002459229.preferredhomesonline.com/components/com_pho/images/wb_images/image_1002459229.jpg', 'http://imgsvr1722518124.preferredhomesonline.com/components/com_pho/images/wb_images/image_1722518124.jpg', 'http://imgsvr1903401932.preferredhomesonline.com/components/com_pho/images/wb_images/image_1903401932.jpg', 'http://imgsvr799210909.preferredhomesonline.com/components/com_pho/images/wb_images/image_799210909.jpg', 'http://imgsvr1316302858.preferredhomesonline.com/components/com_pho/images/wb_images/image_1316302858.jpg', 'http://imgsvr494267364.preferredhomesonline.com/components/com_pho/images/wb_images/image_494267364.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.2185sonoraln.info/components/com_pho/images/wb_images/thumb2_' + name;
src = 'http://www.2185sonoraln.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.2185sonoraln.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('1281140710').style.borderColor = '#000000';
document.getElementById('1285653529').style.borderColor = '#000000';
document.getElementById('381431863').style.borderColor = '#000000';
document.getElementById('337851924').style.borderColor = '#000000';
document.getElementById('1907289919').style.borderColor = '#000000';
document.getElementById('545326796').style.borderColor = '#000000';
document.getElementById('696633029').style.borderColor = '#000000';
document.getElementById('742763018').style.borderColor = '#000000';
document.getElementById('900445789').style.borderColor = '#000000';
document.getElementById('2070548677').style.borderColor = '#000000';
document.getElementById('1009462975').style.borderColor = '#000000';
document.getElementById('955755429').style.borderColor = '#000000';
document.getElementById('510025140').style.borderColor = '#000000';
document.getElementById('1811006740').style.borderColor = '#000000';
document.getElementById('341834350').style.borderColor = '#000000';
document.getElementById('816971048').style.borderColor = '#000000';
document.getElementById('667900463').style.borderColor = '#000000';
document.getElementById('544282919').style.borderColor = '#000000';
document.getElementById('1681386368').style.borderColor = '#000000';
document.getElementById('1002459229').style.borderColor = '#000000';
document.getElementById('1722518124').style.borderColor = '#000000';
document.getElementById('1903401932').style.borderColor = '#000000';
document.getElementById('799210909').style.borderColor = '#000000';
document.getElementById('1316302858').style.borderColor = '#000000';
document.getElementById('494267364').style.borderColor = '#000000';
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;
}