var timenowrandimage68851 = 0;
var counttimerrandimage68851 = -1;
var counttimerlrandimage68851 = counttimerrandimage68851;
var timesetrandimage68851 = 5;
var nimagerandimage68851 = new Image;
var imagesrandimage68851 = new Array('http://www.cgiconnection.com/randimage4/images/home1.jpg','http://www.cgiconnection.com/randimage4/images/home4.jpg','http://www.cgiconnection.com/randimage4/images/home2.jpg','http://www.cgiconnection.com/randimage4/images/home3.jpg','http://www.cgiconnection.com/randimage4/images/home5.jpg');
var urlsrandimage68851 = new Array('http://','http://','http://','http://','http://');
var timesrandimage68851 = new Array('','','','','');
var newwinsrandimage68851 = new Array('','','','','');
var footersrandimage68851 = new Array('house 1','house 4','house 2','house 3','house 5');
var timerrandimage68851;
var timerfrandimage68851;
var i = 0;
var preloadimgrandimage68851 = 1;
var footerrandimage68851 = '';
var statusrandimage68851 = '';
var floatidrandimage68851 = 0;
var zoomidrandimage68851 = 0;
var carrandimage68851 = 0;
var fadeSpeedrandimage68851 = 18;
var outTime = 2100 - (fadeSpeedrandimage68851 * 35);
var objrandimage68851;
var opacityrandimage68851;
var nsrandimage68851 = document.layers;
var ierandimage68851 = document.all;
var fadeinvalrandimage68851 = "";
var fadeoutvalrandimage68851 = "";
var sliderandimage68851 = 1;
var zfrandimage68851 = 0.05;
var ztrandimage68851 = 500;
var wcrandimage68851;
var Elemrandimage68851;
var yPosrandimage68851 = 0;
var xPosrandimage68851 = 0;
var xPostrandimage68851 = 0;
var yPostrandimage68851 = 0;
var gsrandimage68851 = "";
if (preloadimgrandimage68851 == 1)
{
for(i=0; i < imagesrandimage68851.length; i++)
{
nimagerandimage68851.src = imagesrandimage68851[i];
}
}
function setOpacrandimage68851(objrandimage68851, opacityrandimage68851) {
opacityrandimage68851 = (opacityrandimage68851 == 100)?99.999:opacityrandimage68851;
if (nsrandimage68851)
{
objrandimage68851.style.MozOpacity = opacityrandimage68851/100;
}
else if (ierandimage68851)
{
objrandimage68851.style.filter = "alpha(opacity:"+opacityrandimage68851+")";
}
else
{
objrandimage68851.style.opacity = opacityrandimage68851/100;
}
}
function fadeInrandimage68851(objIdrandimage68851,opacityrandimage68851) {
if (document.getElementById) {
objrandimage68851 = document.getElementById(objIdrandimage68851);
if (opacityrandimage68851 <= 100) {
setOpacrandimage68851(objrandimage68851, opacityrandimage68851);
opacityrandimage68851 += fadeSpeedrandimage68851;
window.setTimeout("fadeInrandimage68851('" + objIdrandimage68851 +"',"+opacityrandimage68851+")", 100);
}
else
{
setOpacrandimage68851(objrandimage68851, 100);
}
}
}
function fadeOutrandimage68851(objIdrandimage68851,opacityrandimage68851) {
if (document.getElementById) {
objrandimage68851 = document.getElementById(objIdrandimage68851);
if (opacityrandimage68851 >= 0) {
setOpacrandimage68851(objrandimage68851, opacityrandimage68851);
opacityrandimage68851 = opacityrandimage68851 - fadeSpeedrandimage68851;
window.setTimeout("fadeOutrandimage68851('" + objIdrandimage68851 +"',"+opacityrandimage68851+")", 100);
}
else
{
setOpacrandimage68851(objrandimage68851, 0);
}
}
}
function changeTextrandimage68851(div_id,val){
elm=document.getElementById(div_id);
elm.innerHTML = '
' + val + footerrandimage68851 + '
';
}
document.write('');
if (floatidrandimage68851 == 1)
{
document.write('');
}
document.write('
');
document.write('
');
document.write('');
if (carrandimage68851 == 1)
{
document.write('');
}
if (sliderandimage68851 == 1)
{
document.write('');
document.write(' ');
document.write(' ');
document.write(' ');
}
if (sliderandimage68851 != 1 && carrandimage68851 != 1)
{
if (zoomidrandimage68851 == 0)
{
document.write('');
}
else
{
document.write('');
}
document.write(' ');
document.write(' |
');
}
if (sliderandimage68851 == 1 || carrandimage68851 == 1)
{
document.write('' + footerrandimage68851 + ' |
');
}
else
{
document.write(' |
');
}
document.write('<< >> |
');
document.write('');
document.write('
');
if (floatidrandimage68851 == 1)
{
document.write('
');
}
var imageIdrandimage68851 = 'randimage68851';
var imageElemrandimage68851 = document.getElementById(imageIdrandimage68851);
var tempURLnum;
function go_urlrandimage68851(tempURLnum,openinnew,templink,tempsrc) {
window.status = statusrandimage68851;
var myURL = "";
var isNew = "";
var mySRC = "";
var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi";
var recURL68851 = 0;
if (tempURLnum > 0)
{
counttimerrandimage68851 = tempURLnum - 1;
}
if (tempURLnum == -1)
{
myURL = templink;
mySRC = tempsrc;
isNew = openinnew;
}
else
{
myURL = urlsrandimage68851[counttimerrandimage68851];
mySRC = imagesrandimage68851[counttimerrandimage68851];
isNew = newwinsrandimage68851[counttimerrandimage68851];
}
if (myURL != "" && myURL != "http://")
{
if (recURL68851 == 1)
{
myURL = mainURL + '?filename=homes_slide&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_backrandimage68851() {
clearTimeout(timerfrandimage68851);
window.status = statusrandimage68851;
counttimerlrandimage68851 = counttimerrandimage68851;
counttimerrandimage68851 = counttimerrandimage68851 - 1;
begin_imagerandimage68851(1);
}
function go_nextrandimage68851() {
clearTimeout(timerfrandimage68851);
window.status = statusrandimage68851;
counttimerlrandimage68851 = counttimerrandimage68851;
counttimerrandimage68851++;
begin_imagerandimage68851(1);
}
function begin_imagerandimage68851(doit) {
if (counttimerrandimage68851 >= (imagesrandimage68851.length - 1))
{
if (doit < 1)
{
counttimerrandimage68851 = 0;
}
}
else
{
if (doit < 1)
{
counttimerrandimage68851++;
}
}
if (counttimerrandimage68851 < 0 && doit == 1)
{
counttimerrandimage68851 = imagesrandimage68851.length - 1;
}
if (counttimerrandimage68851 > (imagesrandimage68851.length - 1) && doit == 1)
{
counttimerrandimage68851 = 0;
}
var tempTime = timesrandimage68851[counttimerrandimage68851];
if (tempTime < 1)
{
tempTime = timesetrandimage68851;
}
tempTime = tempTime * 1000;
if (fadeinvalrandimage68851 == 'Y')
{
setOpacrandimage68851(imageElemrandimage68851, 0);
}
if (fadeinvalrandimage68851 == '' && fadeoutvalrandimage68851 == 'Y')
{
setOpacrandimage68851(imageElemrandimage68851, 100);
}
nimagerandimage68851.src = imagesrandimage68851[counttimerrandimage68851];
document.randimage68851.src = nimagerandimage68851.src;
changeTextrandimage68851("divtextrandimage68851",footersrandimage68851[counttimerrandimage68851]);
if (fadeinvalrandimage68851 == 'Y')
{
fadeInrandimage68851(imageIdrandimage68851,0);
}
if (fadeoutvalrandimage68851 == 'Y')
{
timerfrandimage68851 = setTimeout('fadeOutrandimage68851(imageIdrandimage68851,100);', (tempTime - outTime));
}
clearTimeout(timerrandimage68851);
timerrandimage68851 = setTimeout('begin_imagerandimage68851(0);', tempTime);
}
function dimsrandimage68851(Elemrandimage68851) {
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 (xPosrandimage68851 > 0)
{
xPostrandimage68851 = xPosrandimage68851;
yPostrandimage68851 = yPosrandimage68851;
wcrandimage68851.style.width = xPosrandimage68851;
wcrandimage68851.style.height = yPosrandimage68851;
}
if (ns4) {
var Elemrandimage68851 = getObjNN4(document, Elemrandimage68851);
yPosrandimage68851 = Elemrandimage68851.clip.height;
xPosrandimage68851 = Elemrandimage68851.clip.width;
return;
}
else {
var Elemrandimage68851;
if(document.getElementById) {
var Elemrandimage68851 = document.getElementById(Elemrandimage68851);
}
else if (document.all) {
var Elemrandimage68851 = document.all[Elemrandimage68851];
}
}
if (op5) {
yPosrandimage68851 = Elemrandimage68851.style.pixelHeight;
xPosrandimage68851 = Elemrandimage68851.style.pixelWidth;
}
else {
yPosrandimage68851 = Elemrandimage68851.offsetHeight;
xPosrandimage68851 = Elemrandimage68851.offsetWidth;
}
}
function znrandimage68851() {
clearTimeout(timerrandimage68851);
clearTimeout(timerfrandimage68851);
czrandimage68851();
if (xPosrandimage68851 > 0)
{
wcrandimage68851.style.width = xPosrandimage68851;
wcrandimage68851.style.height = yPosrandimage68851;
}
dimsrandimage68851("randimage68851");
window.status=statusrandimage68851;
zoomrandimage68851(xPosrandimage68851,yPosrandimage68851,'randimage68851','in');
timerrandimage68851 = setTimeout("czrandimage68851();", ztrandimage68851);
}
function zbrandimage68851() {
xPostrandimage68851 = xPosrandimage68851;
yPostrandimage68851 = yPosrandimage68851;
clearTimeout(timerrandimage68851);
czrandimage68851();
setOpacrandimage68851(imageElemrandimage68851, 100);
zoomrandimage68851(xPosrandimage68851,yPosrandimage68851,'randimage68851','out');
timerrandimage68851 = setTimeout('begin_imagerandimage68851(0);', counttimerlrandimage68851);
}
function zhrandimage68851(){
if (gsrandimage68851 == "out" && (xPostrandimage68851 < xPosrandimage68851 || yPostrandimage68851 < yPosrandimage68851))
{
setOpacrandimage68851(imageElemrandimage68851, 100);
xPostrandimage68851 = xPosrandimage68851;
yPostrandimage68851 = yPosrandimage68851;
wcrandimage68851.style.width = xPosrandimage68851;
wcrandimage68851.style.height = yPosrandimage68851;
gsrandimage68851 = "";
czrandimage68851();
return;
}
if (parseInt(wcrandimage68851.style.width)>10&&parseInt(wcrandimage68851.style.height)>10)
{
xPostrandimage68851 = parseInt(wcrandimage68851.style.width) + parseInt(wcrandimage68851.style.width) * zfrandimage68851 * pfrandimage68851;
yPostrandimage68851 = parseInt(wcrandimage68851.style.height) + parseInt(wcrandimage68851.style.height) * zfrandimage68851 * pfrandimage68851;
wcrandimage68851.style.width = xPostrandimage68851;
wcrandimage68851.style.height = yPostrandimage68851;
}
}
function zoomrandimage68851(originalW, originalH, what, state){
gsrandimage68851 = state;
if (!document.all&&!document.getElementById) {
return;
}
wcrandimage68851 = eval("document.images."+what);
pfrandimage68851 = (state=="in")? 1 : -1;
if (wcrandimage68851.style.width=="")
{
wcrandimage68851.style.width=originalW;
wcrandimage68851.style.height=originalH;
}
if (state=="restore"){
xPostrandimage68851 = xPosrandimage68851;
yPostrandimage68851 = yPosrandimage68851;
wcrandimage68851.style.width=originalW;
wcrandimage68851.style.height=originalH;
czrandimage68851();
return;
}
else
{
zhrandimage68851();
}
bzrandimage68851 = setInterval("zhrandimage68851()",100);
}
function czrandimage68851(){
if (window.bzrandimage68851) {
if (gsrandimage68851 != "in" && (xPostrandimage68851 != xPosrandimage68851 || yPostrandimage68851 != yPosrandimage68851))
{
xPostrandimage68851 = xPosrandimage68851;
yPostrandimage68851 = yPosrandimage68851;
wcrandimage68851.style.width = xPosrandimage68851;
wcrandimage68851.style.height = yPosrandimage68851;
gsrandimage68851 = "";
}
clearInterval(bzrandimage68851);
}
}
var slidespeed68851 = 1;
var lefttime68851;
var startOne68851 = 0;
var whichOne;
var tempcount2 = 0;
var tempFooter;
var tempLine = "";
var finalslide='';
var spacecount = 0;
var imagegap68851 = "";
for (spacecount = 0; spacecount < 5; spacecount++)
{
imagegap68851 += " ";
}
var slideshowgap = 0;
var leftrightslide68851 = "";
leftrightslide68851 = '';
for (tempcount2 = 0; tempcount2 < imagesrandimage68851.length; tempcount2++)
{
var tempcount3 = tempcount2 + 1;
tempFooter = footersrandimage68851[tempcount2];
tempLine = ' ' + imagegap68851 + ' ' + tempFooter + ' | ';
leftrightslide68851 += tempLine;
}
leftrightslide68851 += '
';
var copyspeed68851 = slidespeed68851;
var iedom68851 = document.all||document.getElementById;
var actualwidth68851='';
var cross_slide68851, ns_slide68851;
if (iedom68851) {
document.write(''+ leftrightslide68851 +'');
}
function fillup68851(whichOne){
if (iedom68851){
cross_slide68851 = document.getElementById? document.getElementById("test268851") : document.all.test268851;
cross_slide268851 = document.getElementById? document.getElementById("test368851") : document.all.test368851;
cross_slide68851.innerHTML=cross_slide268851.innerHTML=leftrightslide68851;
actualwidth68851 = document.all? cross_slide68851.offsetWidth : document.getElementById("temp").offsetWidth;
cross_slide268851.style.left = actualwidth68851 + slideshowgap+"px";
}
else if (document.layers){
ns_slide68851=document.ns_slidemenu.document.ns_slidemenu2;
ns_slide268851=document.ns_slidemenu.document.ns_slidemenu3;
ns_slide68851.document.write(leftrightslide68851);
ns_slide68851.document.close();
actualwidth68851 = ns_slide68851.document.width;
ns_slide268851.left = actualwidth68851 + slideshowgap;
ns_slide268851.document.write(leftrightslide68851);
ns_slide268851.document.close();
}
if (startOne68851 == 0)
{
startIt68851(0);
}
else
{
startIt68851(1);
}
}
function startIt68851(whichOne) {
if (whichOne == 0)
{
clearInterval(lefttime68851);
lefttime68851 = setInterval("slideleft68851()",30);
}
else
{
clearInterval(lefttime68851);
lefttime68851 = setInterval("slideright68851()",30);
}
}
function slideright68851(){
if (iedom68851){
if (parseInt(cross_slide68851.style.left)<(actualwidth68851 * (1)+8)) {
cross_slide68851.style.left=parseInt(cross_slide68851.style.left) + copyspeed68851 + "px";
}
else {
cross_slide68851.style.left=parseInt(cross_slide268851.style.left)- actualwidth68851 - slideshowgap+"px";
}
if (parseInt(cross_slide268851.style.left)<(actualwidth68851 * (1)+8)) {
cross_slide268851.style.left=parseInt(cross_slide268851.style.left)+ copyspeed68851 +"px";
}
else {
cross_slide268851.style.left=parseInt(cross_slide68851.style.left) - actualwidth68851 - slideshowgap+"px";
}
}
else if (document.layers){
if (ns_slide68851.left>(actualwidth68851 * (-1)+8)) {
ns_slide68851.left-=copyspeed68851;
}
else {
ns_slide68851.left=ns_slide268851.left + actualwidth68851 + slideshowgap;
}
if (ns_slide268851.left>(actualwidth68851 *(-1)+8)) {
ns_slide268851.left-=copyspeed68851;
}
else {
ns_slide268851.left=ns_slide68851.left+actualwidth68851 +slideshowgap;
}
}
}
function slideleft68851(){
if (iedom68851){
if (parseInt(cross_slide68851.style.left)>(actualwidth68851 *(-1)+8))
cross_slide68851.style.left=parseInt(cross_slide68851.style.left) - copyspeed68851 +"px"
else
cross_slide68851.style.left=parseInt(cross_slide268851.style.left)+actualwidth68851 +slideshowgap+"px"
if (parseInt(cross_slide268851.style.left)>(actualwidth68851 *(-1)+8))
cross_slide268851.style.left=parseInt(cross_slide268851.style.left)- copyspeed68851 +"px"
else
cross_slide268851.style.left=parseInt(cross_slide68851.style.left)+actualwidth68851 +slideshowgap+"px"
}
else if (document.layers){
if (ns_slide68851.left>(actualwidth68851 *(-1)+8))
ns_slide68851.left-=copyspeed68851
else
ns_slide68851.left=ns_slide268851.left+actualwidth68851 +slideshowgap
if (ns_slide268851.left>(actualwidth68851 *(-1)+8))
ns_slide268851.left-=copyspeed68851
else
ns_slide268851.left=ns_slide68851.left+actualwidth68851 +slideshowgap
}
}
setTimeout('fillup68851();', 100);