var timenowrandimage53691 = 0;
var counttimerrandimage53691 = -1;
var counttimerlrandimage53691 = counttimerrandimage53691;
var timesetrandimage53691 = 5;
var nimagerandimage53691 = new Image;
var imagesrandimage53691 = new Array('http://www.cgiconnection.com/randimage4/images/home5.jpg','http://www.cgiconnection.com/randimage4/images/home3.jpg','http://www.cgiconnection.com/randimage4/images/home4.jpg','http://www.cgiconnection.com/randimage4/images/home1.jpg','http://www.cgiconnection.com/randimage4/images/home2.jpg');
var urlsrandimage53691 = new Array('http://','http://','http://','http://','http://');
var timesrandimage53691 = new Array('','','','','');
var newwinsrandimage53691 = new Array('','','','','');
var footersrandimage53691 = new Array('house 5','house 3','house 4','','house 2');
var timerrandimage53691;
var timerfrandimage53691;
var i = 0;
var preloadimgrandimage53691 = 1;
var footerrandimage53691 = '
Hold your mouse over the image to zoom';
var statusrandimage53691 = '';
var floatidrandimage53691 = 0;
var zoomidrandimage53691 = 1;
var carrandimage53691 = 0;
var fadeSpeedrandimage53691 = 10;
var outTime = 2100 - (fadeSpeedrandimage53691 * 35);
var objrandimage53691;
var opacityrandimage53691;
var nsrandimage53691 = document.layers;
var ierandimage53691 = document.all;
var fadeinvalrandimage53691 = "Y";
var fadeoutvalrandimage53691 = "Y";
var sliderandimage53691 = 0;
var zfrandimage53691 = 0.075;
var ztrandimage53691 = 700;
var wcrandimage53691;
var Elemrandimage53691;
var yPosrandimage53691 = 0;
var xPosrandimage53691 = 0;
var xPostrandimage53691 = 0;
var yPostrandimage53691 = 0;
var gsrandimage53691 = "";
if (preloadimgrandimage53691 == 1)
{
for(i=0; i < imagesrandimage53691.length; i++)
{
nimagerandimage53691.src = imagesrandimage53691[i];
}
}
function setOpacrandimage53691(objrandimage53691, opacityrandimage53691) {
opacityrandimage53691 = (opacityrandimage53691 == 100)?99.999:opacityrandimage53691;
if (nsrandimage53691)
{
objrandimage53691.style.MozOpacity = opacityrandimage53691/100;
}
else if (ierandimage53691)
{
objrandimage53691.style.filter = "alpha(opacity:"+opacityrandimage53691+")";
}
else
{
objrandimage53691.style.opacity = opacityrandimage53691/100;
}
}
function fadeInrandimage53691(objIdrandimage53691,opacityrandimage53691) {
if (document.getElementById) {
objrandimage53691 = document.getElementById(objIdrandimage53691);
if (opacityrandimage53691 <= 100) {
setOpacrandimage53691(objrandimage53691, opacityrandimage53691);
opacityrandimage53691 += fadeSpeedrandimage53691;
window.setTimeout("fadeInrandimage53691('" + objIdrandimage53691 +"',"+opacityrandimage53691+")", 100);
}
else
{
setOpacrandimage53691(objrandimage53691, 100);
}
}
}
function fadeOutrandimage53691(objIdrandimage53691,opacityrandimage53691) {
if (document.getElementById) {
objrandimage53691 = document.getElementById(objIdrandimage53691);
if (opacityrandimage53691 >= 0) {
setOpacrandimage53691(objrandimage53691, opacityrandimage53691);
opacityrandimage53691 = opacityrandimage53691 - fadeSpeedrandimage53691;
window.setTimeout("fadeOutrandimage53691('" + objIdrandimage53691 +"',"+opacityrandimage53691+")", 100);
}
else
{
setOpacrandimage53691(objrandimage53691, 0);
}
}
}
function changeTextrandimage53691(div_id,val){
elm=document.getElementById(div_id);
elm.innerHTML = '
' + val + footerrandimage53691 + '
';
}
document.write('');
if (floatidrandimage53691 == 1)
{
document.write('');
}
document.write('
');
document.write('
');
document.write('');
if (carrandimage53691 == 1)
{
document.write('');
}
if (sliderandimage53691 == 1)
{
document.write('');
document.write(' ');
document.write(' ');
document.write(' ');
}
if (sliderandimage53691 != 1 && carrandimage53691 != 1)
{
if (zoomidrandimage53691 == 0)
{
document.write('');
}
else
{
document.write('');
}
document.write(' ');
document.write(' |
');
}
if (sliderandimage53691 == 1 || carrandimage53691 == 1)
{
document.write('' + footerrandimage53691 + ' |
');
}
else
{
document.write(' |
');
}
document.write('| << >> |
');
document.write('');
document.write('
');
if (floatidrandimage53691 == 1)
{
document.write('
');
}
var imageIdrandimage53691 = 'randimage53691';
var imageElemrandimage53691 = document.getElementById(imageIdrandimage53691);
var tempURLnum;
function go_urlrandimage53691(tempURLnum,openinnew,templink,tempsrc) {
window.status = statusrandimage53691;
var myURL = "";
var isNew = "";
var mySRC = "";
var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi";
var recURL53691 = 0;
if (tempURLnum > 0)
{
counttimerrandimage53691 = tempURLnum - 1;
}
if (tempURLnum == -1)
{
myURL = templink;
mySRC = tempsrc;
isNew = openinnew;
}
else
{
myURL = urlsrandimage53691[counttimerrandimage53691];
mySRC = imagesrandimage53691[counttimerrandimage53691];
isNew = newwinsrandimage53691[counttimerrandimage53691];
}
if (myURL != "" && myURL != "http://")
{
if (recURL53691 == 1)
{
myURL = mainURL + '?filename=homes_zoom&gourl=' + escape(myURL) + '&img=' + escape(mySRC);
}
if (isNew == "Y")
{
window.open(myURL,'RandomImage','resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,width=790,height=550,top=10,left=10');
}
else
{
location.href = myURL;
}
}
}
function go_backrandimage53691() {
clearTimeout(timerfrandimage53691);
window.status = statusrandimage53691;
counttimerlrandimage53691 = counttimerrandimage53691;
counttimerrandimage53691 = counttimerrandimage53691 - 1;
begin_imagerandimage53691(1);
}
function go_nextrandimage53691() {
clearTimeout(timerfrandimage53691);
window.status = statusrandimage53691;
counttimerlrandimage53691 = counttimerrandimage53691;
counttimerrandimage53691++;
begin_imagerandimage53691(1);
}
function begin_imagerandimage53691(doit) {
if (counttimerrandimage53691 >= (imagesrandimage53691.length - 1))
{
if (doit < 1)
{
counttimerrandimage53691 = 0;
}
}
else
{
if (doit < 1)
{
counttimerrandimage53691++;
}
}
if (counttimerrandimage53691 < 0 && doit == 1)
{
counttimerrandimage53691 = imagesrandimage53691.length - 1;
}
if (counttimerrandimage53691 > (imagesrandimage53691.length - 1) && doit == 1)
{
counttimerrandimage53691 = 0;
}
var tempTime = timesrandimage53691[counttimerrandimage53691];
if (tempTime < 1)
{
tempTime = timesetrandimage53691;
}
tempTime = tempTime * 1000;
if (fadeinvalrandimage53691 == 'Y')
{
setOpacrandimage53691(imageElemrandimage53691, 0);
}
if (fadeinvalrandimage53691 == '' && fadeoutvalrandimage53691 == 'Y')
{
setOpacrandimage53691(imageElemrandimage53691, 100);
}
nimagerandimage53691.src = imagesrandimage53691[counttimerrandimage53691];
document.randimage53691.src = nimagerandimage53691.src;
changeTextrandimage53691("divtextrandimage53691",footersrandimage53691[counttimerrandimage53691]);
if (fadeinvalrandimage53691 == 'Y')
{
fadeInrandimage53691(imageIdrandimage53691,0);
}
if (fadeoutvalrandimage53691 == 'Y')
{
timerfrandimage53691 = setTimeout('fadeOutrandimage53691(imageIdrandimage53691,100);', (tempTime - outTime));
}
clearTimeout(timerrandimage53691);
timerrandimage53691 = setTimeout('begin_imagerandimage53691(0);', tempTime);
}
function dimsrandimage53691(Elemrandimage53691) {
var ns4 = document.layers;
var op5 = (navigator.userAgent.indexOf("Opera 5")!=-1) ||(navigator.userAgent.indexOf("Opera/5")!=-1);
var op6 = (navigator.userAgent.indexOf("Opera 6")!=-1) ||(navigator.userAgent.indexOf("Opera/6")!=-1);
var agt=navigator.userAgent.toLowerCase();
var mac = (agt.indexOf("mac")!=-1);
var ie = (agt.indexOf("msie") != -1);
var mac_ie = mac && ie;
if (xPosrandimage53691 > 0)
{
xPostrandimage53691 = xPosrandimage53691;
yPostrandimage53691 = yPosrandimage53691;
wcrandimage53691.style.width = xPosrandimage53691;
wcrandimage53691.style.height = yPosrandimage53691;
}
if (ns4) {
var Elemrandimage53691 = getObjNN4(document, Elemrandimage53691);
yPosrandimage53691 = Elemrandimage53691.clip.height;
xPosrandimage53691 = Elemrandimage53691.clip.width;
return;
}
else {
var Elemrandimage53691;
if(document.getElementById) {
var Elemrandimage53691 = document.getElementById(Elemrandimage53691);
}
else if (document.all) {
var Elemrandimage53691 = document.all[Elemrandimage53691];
}
}
if (op5) {
yPosrandimage53691 = Elemrandimage53691.style.pixelHeight;
xPosrandimage53691 = Elemrandimage53691.style.pixelWidth;
}
else {
yPosrandimage53691 = Elemrandimage53691.offsetHeight;
xPosrandimage53691 = Elemrandimage53691.offsetWidth;
}
}
function znrandimage53691() {
clearTimeout(timerrandimage53691);
clearTimeout(timerfrandimage53691);
czrandimage53691();
if (xPosrandimage53691 > 0)
{
wcrandimage53691.style.width = xPosrandimage53691;
wcrandimage53691.style.height = yPosrandimage53691;
}
dimsrandimage53691("randimage53691");
window.status=statusrandimage53691;
zoomrandimage53691(xPosrandimage53691,yPosrandimage53691,'randimage53691','in');
timerrandimage53691 = setTimeout("czrandimage53691();", ztrandimage53691);
}
function zbrandimage53691() {
xPostrandimage53691 = xPosrandimage53691;
yPostrandimage53691 = yPosrandimage53691;
clearTimeout(timerrandimage53691);
czrandimage53691();
setOpacrandimage53691(imageElemrandimage53691, 100);
zoomrandimage53691(xPosrandimage53691,yPosrandimage53691,'randimage53691','out');
timerrandimage53691 = setTimeout('begin_imagerandimage53691(0);', counttimerlrandimage53691);
}
function zhrandimage53691(){
if (gsrandimage53691 == "out" && (xPostrandimage53691 < xPosrandimage53691 || yPostrandimage53691 < yPosrandimage53691))
{
setOpacrandimage53691(imageElemrandimage53691, 100);
xPostrandimage53691 = xPosrandimage53691;
yPostrandimage53691 = yPosrandimage53691;
wcrandimage53691.style.width = xPosrandimage53691;
wcrandimage53691.style.height = yPosrandimage53691;
gsrandimage53691 = "";
czrandimage53691();
return;
}
if (parseInt(wcrandimage53691.style.width)>10&&parseInt(wcrandimage53691.style.height)>10)
{
xPostrandimage53691 = parseInt(wcrandimage53691.style.width) + parseInt(wcrandimage53691.style.width) * zfrandimage53691 * pfrandimage53691;
yPostrandimage53691 = parseInt(wcrandimage53691.style.height) + parseInt(wcrandimage53691.style.height) * zfrandimage53691 * pfrandimage53691;
wcrandimage53691.style.width = xPostrandimage53691;
wcrandimage53691.style.height = yPostrandimage53691;
}
}
function zoomrandimage53691(originalW, originalH, what, state){
gsrandimage53691 = state;
if (!document.all&&!document.getElementById) {
return;
}
wcrandimage53691 = eval("document.images."+what);
pfrandimage53691 = (state=="in")? 1 : -1;
if (wcrandimage53691.style.width=="")
{
wcrandimage53691.style.width=originalW;
wcrandimage53691.style.height=originalH;
}
if (state=="restore"){
xPostrandimage53691 = xPosrandimage53691;
yPostrandimage53691 = yPosrandimage53691;
wcrandimage53691.style.width=originalW;
wcrandimage53691.style.height=originalH;
czrandimage53691();
return;
}
else
{
zhrandimage53691();
}
bzrandimage53691 = setInterval("zhrandimage53691()",100);
}
function czrandimage53691(){
if (window.bzrandimage53691) {
if (gsrandimage53691 != "in" && (xPostrandimage53691 != xPosrandimage53691 || yPostrandimage53691 != yPosrandimage53691))
{
xPostrandimage53691 = xPosrandimage53691;
yPostrandimage53691 = yPosrandimage53691;
wcrandimage53691.style.width = xPosrandimage53691;
wcrandimage53691.style.height = yPosrandimage53691;
gsrandimage53691 = "";
}
clearInterval(bzrandimage53691);
}
}
begin_imagerandimage53691(0);