var timenowrandimage93593 = 0;
var counttimerrandimage93593 = -1;
var counttimerlrandimage93593 = counttimerrandimage93593;
var timesetrandimage93593 = 5;
var nimagerandimage93593 = new Image;
var imagesrandimage93593 = new Array('http://www.cgiconnection.com/randimage4/images/home2.jpg','http://www.cgiconnection.com/randimage4/images/home1.jpg','http://www.cgiconnection.com/randimage4/images/home5.jpg','http://www.cgiconnection.com/randimage4/images/home3.jpg','http://www.cgiconnection.com/randimage4/images/home4.jpg');
var urlsrandimage93593 = new Array('http://','http://','http://','http://','http://');
var timesrandimage93593 = new Array('','','','','');
var newwinsrandimage93593 = new Array('','','','','');
var footersrandimage93593 = new Array('house 2','','house 5','house 3','house 4');
var timerrandimage93593;
var timerfrandimage93593;
var i = 0;
var preloadimgrandimage93593 = 1;
var footerrandimage93593 = '
Hold your mouse over the image to zoom';
var statusrandimage93593 = '';
var floatidrandimage93593 = 0;
var zoomidrandimage93593 = 1;
var carrandimage93593 = 0;
var fadeSpeedrandimage93593 = 10;
var outTime = 2100 - (fadeSpeedrandimage93593 * 35);
var objrandimage93593;
var opacityrandimage93593;
var nsrandimage93593 = document.layers;
var ierandimage93593 = document.all;
var fadeinvalrandimage93593 = "Y";
var fadeoutvalrandimage93593 = "Y";
var sliderandimage93593 = 0;
var zfrandimage93593 = 0.075;
var ztrandimage93593 = 700;
var wcrandimage93593;
var Elemrandimage93593;
var yPosrandimage93593 = 0;
var xPosrandimage93593 = 0;
var xPostrandimage93593 = 0;
var yPostrandimage93593 = 0;
var gsrandimage93593 = "";
if (preloadimgrandimage93593 == 1)
{
for(i=0; i < imagesrandimage93593.length; i++)
{
nimagerandimage93593.src = imagesrandimage93593[i];
}
}
function setOpacrandimage93593(objrandimage93593, opacityrandimage93593) {
opacityrandimage93593 = (opacityrandimage93593 == 100)?99.999:opacityrandimage93593;
if (nsrandimage93593)
{
objrandimage93593.style.MozOpacity = opacityrandimage93593/100;
}
else if (ierandimage93593)
{
objrandimage93593.style.filter = "alpha(opacity:"+opacityrandimage93593+")";
}
else
{
objrandimage93593.style.opacity = opacityrandimage93593/100;
}
}
function fadeInrandimage93593(objIdrandimage93593,opacityrandimage93593) {
if (document.getElementById) {
objrandimage93593 = document.getElementById(objIdrandimage93593);
if (opacityrandimage93593 <= 100) {
setOpacrandimage93593(objrandimage93593, opacityrandimage93593);
opacityrandimage93593 += fadeSpeedrandimage93593;
window.setTimeout("fadeInrandimage93593('" + objIdrandimage93593 +"',"+opacityrandimage93593+")", 100);
}
else
{
setOpacrandimage93593(objrandimage93593, 100);
}
}
}
function fadeOutrandimage93593(objIdrandimage93593,opacityrandimage93593) {
if (document.getElementById) {
objrandimage93593 = document.getElementById(objIdrandimage93593);
if (opacityrandimage93593 >= 0) {
setOpacrandimage93593(objrandimage93593, opacityrandimage93593);
opacityrandimage93593 = opacityrandimage93593 - fadeSpeedrandimage93593;
window.setTimeout("fadeOutrandimage93593('" + objIdrandimage93593 +"',"+opacityrandimage93593+")", 100);
}
else
{
setOpacrandimage93593(objrandimage93593, 0);
}
}
}
function changeTextrandimage93593(div_id,val){
elm=document.getElementById(div_id);
elm.innerHTML = '
' + val + footerrandimage93593 + '
';
}
document.write('');
if (floatidrandimage93593 == 1)
{
document.write('');
}
document.write('
');
document.write('
');
document.write('');
if (carrandimage93593 == 1)
{
document.write('');
}
if (sliderandimage93593 == 1)
{
document.write('');
document.write(' ');
document.write(' ');
document.write(' ');
}
if (sliderandimage93593 != 1 && carrandimage93593 != 1)
{
if (zoomidrandimage93593 == 0)
{
document.write('');
}
else
{
document.write('');
}
document.write('');
document.write(' |
');
}
if (sliderandimage93593 == 1 || carrandimage93593 == 1)
{
document.write('' + footerrandimage93593 + ' |
');
}
else
{
document.write(' |
');
}
document.write('<< >> |
');
document.write('');
document.write('
');
if (floatidrandimage93593 == 1)
{
document.write('
');
}
var imageIdrandimage93593 = 'randimage93593';
var imageElemrandimage93593 = document.getElementById(imageIdrandimage93593);
var tempURLnum;
function go_urlrandimage93593(tempURLnum,openinnew,templink,tempsrc) {
window.status = statusrandimage93593;
var myURL = "";
var isNew = "";
var mySRC = "";
var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi";
var recURL93593 = 0;
if (tempURLnum > 0)
{
counttimerrandimage93593 = tempURLnum - 1;
}
if (tempURLnum == -1)
{
myURL = templink;
mySRC = tempsrc;
isNew = openinnew;
}
else
{
myURL = urlsrandimage93593[counttimerrandimage93593];
mySRC = imagesrandimage93593[counttimerrandimage93593];
isNew = newwinsrandimage93593[counttimerrandimage93593];
}
if (myURL != "" && myURL != "http://")
{
if (recURL93593 == 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_backrandimage93593() {
clearTimeout(timerfrandimage93593);
window.status = statusrandimage93593;
counttimerlrandimage93593 = counttimerrandimage93593;
counttimerrandimage93593 = counttimerrandimage93593 - 1;
begin_imagerandimage93593(1);
}
function go_nextrandimage93593() {
clearTimeout(timerfrandimage93593);
window.status = statusrandimage93593;
counttimerlrandimage93593 = counttimerrandimage93593;
counttimerrandimage93593++;
begin_imagerandimage93593(1);
}
function begin_imagerandimage93593(doit) {
if (counttimerrandimage93593 >= (imagesrandimage93593.length - 1))
{
if (doit < 1)
{
counttimerrandimage93593 = 0;
}
}
else
{
if (doit < 1)
{
counttimerrandimage93593++;
}
}
if (counttimerrandimage93593 < 0 && doit == 1)
{
counttimerrandimage93593 = imagesrandimage93593.length - 1;
}
if (counttimerrandimage93593 > (imagesrandimage93593.length - 1) && doit == 1)
{
counttimerrandimage93593 = 0;
}
var tempTime = timesrandimage93593[counttimerrandimage93593];
if (tempTime < 1)
{
tempTime = timesetrandimage93593;
}
tempTime = tempTime * 1000;
if (fadeinvalrandimage93593 == 'Y')
{
setOpacrandimage93593(imageElemrandimage93593, 0);
}
if (fadeinvalrandimage93593 == '' && fadeoutvalrandimage93593 == 'Y')
{
setOpacrandimage93593(imageElemrandimage93593, 100);
}
nimagerandimage93593.src = imagesrandimage93593[counttimerrandimage93593];
document.randimage93593.src = nimagerandimage93593.src;
changeTextrandimage93593("divtextrandimage93593",footersrandimage93593[counttimerrandimage93593]);
if (fadeinvalrandimage93593 == 'Y')
{
fadeInrandimage93593(imageIdrandimage93593,0);
}
if (fadeoutvalrandimage93593 == 'Y')
{
timerfrandimage93593 = setTimeout('fadeOutrandimage93593(imageIdrandimage93593,100);', (tempTime - outTime));
}
clearTimeout(timerrandimage93593);
timerrandimage93593 = setTimeout('begin_imagerandimage93593(0);', tempTime);
}
function dimsrandimage93593(Elemrandimage93593) {
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 (xPosrandimage93593 > 0)
{
xPostrandimage93593 = xPosrandimage93593;
yPostrandimage93593 = yPosrandimage93593;
wcrandimage93593.style.width = xPosrandimage93593;
wcrandimage93593.style.height = yPosrandimage93593;
}
if (ns4) {
var Elemrandimage93593 = getObjNN4(document, Elemrandimage93593);
yPosrandimage93593 = Elemrandimage93593.clip.height;
xPosrandimage93593 = Elemrandimage93593.clip.width;
return;
}
else {
var Elemrandimage93593;
if(document.getElementById) {
var Elemrandimage93593 = document.getElementById(Elemrandimage93593);
}
else if (document.all) {
var Elemrandimage93593 = document.all[Elemrandimage93593];
}
}
if (op5) {
yPosrandimage93593 = Elemrandimage93593.style.pixelHeight;
xPosrandimage93593 = Elemrandimage93593.style.pixelWidth;
}
else {
yPosrandimage93593 = Elemrandimage93593.offsetHeight;
xPosrandimage93593 = Elemrandimage93593.offsetWidth;
}
}
function znrandimage93593() {
clearTimeout(timerrandimage93593);
clearTimeout(timerfrandimage93593);
czrandimage93593();
if (xPosrandimage93593 > 0)
{
wcrandimage93593.style.width = xPosrandimage93593;
wcrandimage93593.style.height = yPosrandimage93593;
}
dimsrandimage93593("randimage93593");
window.status=statusrandimage93593;
zoomrandimage93593(xPosrandimage93593,yPosrandimage93593,'randimage93593','in');
timerrandimage93593 = setTimeout("czrandimage93593();", ztrandimage93593);
}
function zbrandimage93593() {
xPostrandimage93593 = xPosrandimage93593;
yPostrandimage93593 = yPosrandimage93593;
clearTimeout(timerrandimage93593);
czrandimage93593();
setOpacrandimage93593(imageElemrandimage93593, 100);
zoomrandimage93593(xPosrandimage93593,yPosrandimage93593,'randimage93593','out');
timerrandimage93593 = setTimeout('begin_imagerandimage93593(0);', counttimerlrandimage93593);
}
function zhrandimage93593(){
if (gsrandimage93593 == "out" && (xPostrandimage93593 < xPosrandimage93593 || yPostrandimage93593 < yPosrandimage93593))
{
setOpacrandimage93593(imageElemrandimage93593, 100);
xPostrandimage93593 = xPosrandimage93593;
yPostrandimage93593 = yPosrandimage93593;
wcrandimage93593.style.width = xPosrandimage93593;
wcrandimage93593.style.height = yPosrandimage93593;
gsrandimage93593 = "";
czrandimage93593();
return;
}
if (parseInt(wcrandimage93593.style.width)>10&&parseInt(wcrandimage93593.style.height)>10)
{
xPostrandimage93593 = parseInt(wcrandimage93593.style.width) + parseInt(wcrandimage93593.style.width) * zfrandimage93593 * pfrandimage93593;
yPostrandimage93593 = parseInt(wcrandimage93593.style.height) + parseInt(wcrandimage93593.style.height) * zfrandimage93593 * pfrandimage93593;
wcrandimage93593.style.width = xPostrandimage93593;
wcrandimage93593.style.height = yPostrandimage93593;
}
}
function zoomrandimage93593(originalW, originalH, what, state){
gsrandimage93593 = state;
if (!document.all&&!document.getElementById) {
return;
}
wcrandimage93593 = eval("document.images."+what);
pfrandimage93593 = (state=="in")? 1 : -1;
if (wcrandimage93593.style.width=="")
{
wcrandimage93593.style.width=originalW;
wcrandimage93593.style.height=originalH;
}
if (state=="restore"){
xPostrandimage93593 = xPosrandimage93593;
yPostrandimage93593 = yPosrandimage93593;
wcrandimage93593.style.width=originalW;
wcrandimage93593.style.height=originalH;
czrandimage93593();
return;
}
else
{
zhrandimage93593();
}
bzrandimage93593 = setInterval("zhrandimage93593()",100);
}
function czrandimage93593(){
if (window.bzrandimage93593) {
if (gsrandimage93593 != "in" && (xPostrandimage93593 != xPosrandimage93593 || yPostrandimage93593 != yPosrandimage93593))
{
xPostrandimage93593 = xPosrandimage93593;
yPostrandimage93593 = yPosrandimage93593;
wcrandimage93593.style.width = xPosrandimage93593;
wcrandimage93593.style.height = yPosrandimage93593;
gsrandimage93593 = "";
}
clearInterval(bzrandimage93593);
}
}
begin_imagerandimage93593(0);