var timenowrandimage31575 = 0;
var counttimerrandimage31575 = -1;
var counttimerlrandimage31575 = counttimerrandimage31575;
var timesetrandimage31575 = 5;
var nimagerandimage31575 = new Image;
var imagesrandimage31575 = new Array('http://www.cgiconnection.com/randimage4/images/home3.jpg','http://www.cgiconnection.com/randimage4/images/home4.jpg','http://www.cgiconnection.com/randimage4/images/home2.jpg','http://www.cgiconnection.com/randimage4/images/home5.jpg','http://www.cgiconnection.com/randimage4/images/home1.jpg');
var urlsrandimage31575 = new Array('http://','http://','http://','http://','http://');
var timesrandimage31575 = new Array('','','','','');
var newwinsrandimage31575 = new Array('','','','','');
var footersrandimage31575 = new Array('house 3','house 4','house 2','house 5','house 1');
var timerrandimage31575;
var timerfrandimage31575;
var i = 0;
var preloadimgrandimage31575 = 1;
var footerrandimage31575 = '
House Carousel';
var statusrandimage31575 = '';
var floatidrandimage31575 = 0;
var zoomidrandimage31575 = 0;
var carrandimage31575 = 1;
var fadeSpeedrandimage31575 = 18;
var outTime = 2100 - (fadeSpeedrandimage31575 * 35);
var objrandimage31575;
var opacityrandimage31575;
var nsrandimage31575 = document.layers;
var ierandimage31575 = document.all;
var fadeinvalrandimage31575 = "";
var fadeoutvalrandimage31575 = "";
var sliderandimage31575 = 0;
var zfrandimage31575 = 0.05;
var ztrandimage31575 = 500;
var wcrandimage31575;
var Elemrandimage31575;
var yPosrandimage31575 = 0;
var xPosrandimage31575 = 0;
var xPostrandimage31575 = 0;
var yPostrandimage31575 = 0;
var gsrandimage31575 = "";
if (preloadimgrandimage31575 == 1)
{
for(i=0; i < imagesrandimage31575.length; i++)
{
nimagerandimage31575.src = imagesrandimage31575[i];
}
}
function setOpacrandimage31575(objrandimage31575, opacityrandimage31575) {
opacityrandimage31575 = (opacityrandimage31575 == 100)?99.999:opacityrandimage31575;
if (nsrandimage31575)
{
objrandimage31575.style.MozOpacity = opacityrandimage31575/100;
}
else if (ierandimage31575)
{
objrandimage31575.style.filter = "alpha(opacity:"+opacityrandimage31575+")";
}
else
{
objrandimage31575.style.opacity = opacityrandimage31575/100;
}
}
function fadeInrandimage31575(objIdrandimage31575,opacityrandimage31575) {
if (document.getElementById) {
objrandimage31575 = document.getElementById(objIdrandimage31575);
if (opacityrandimage31575 <= 100) {
setOpacrandimage31575(objrandimage31575, opacityrandimage31575);
opacityrandimage31575 += fadeSpeedrandimage31575;
window.setTimeout("fadeInrandimage31575('" + objIdrandimage31575 +"',"+opacityrandimage31575+")", 100);
}
else
{
setOpacrandimage31575(objrandimage31575, 100);
}
}
}
function fadeOutrandimage31575(objIdrandimage31575,opacityrandimage31575) {
if (document.getElementById) {
objrandimage31575 = document.getElementById(objIdrandimage31575);
if (opacityrandimage31575 >= 0) {
setOpacrandimage31575(objrandimage31575, opacityrandimage31575);
opacityrandimage31575 = opacityrandimage31575 - fadeSpeedrandimage31575;
window.setTimeout("fadeOutrandimage31575('" + objIdrandimage31575 +"',"+opacityrandimage31575+")", 100);
}
else
{
setOpacrandimage31575(objrandimage31575, 0);
}
}
}
function changeTextrandimage31575(div_id,val){
elm=document.getElementById(div_id);
elm.innerHTML = '
' + val + footerrandimage31575 + '
';
}
document.write('');
if (floatidrandimage31575 == 1)
{
document.write('');
}
document.write('
');
document.write('
');
document.write('');
if (carrandimage31575 == 1)
{
document.write('');
}
if (sliderandimage31575 == 1)
{
document.write('');
document.write(' ');
document.write(' ');
document.write(' ');
}
if (sliderandimage31575 != 1 && carrandimage31575 != 1)
{
if (zoomidrandimage31575 == 0)
{
document.write('');
}
else
{
document.write('');
}
document.write(' ');
document.write(' |
');
}
if (sliderandimage31575 == 1 || carrandimage31575 == 1)
{
document.write('' + footerrandimage31575 + ' |
');
}
else
{
document.write(' |
');
}
document.write('<<< >>> |
');
document.write('');
document.write('
');
if (floatidrandimage31575 == 1)
{
document.write('
');
}
var imageIdrandimage31575 = 'randimage31575';
var imageElemrandimage31575 = document.getElementById(imageIdrandimage31575);
var tempURLnum;
function go_urlrandimage31575(tempURLnum,openinnew,templink,tempsrc) {
window.status = statusrandimage31575;
var myURL = "";
var isNew = "";
var mySRC = "";
var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi";
var recURL31575 = 0;
if (tempURLnum > 0)
{
counttimerrandimage31575 = tempURLnum - 1;
}
if (tempURLnum == -1)
{
myURL = templink;
mySRC = tempsrc;
isNew = openinnew;
}
else
{
myURL = urlsrandimage31575[counttimerrandimage31575];
mySRC = imagesrandimage31575[counttimerrandimage31575];
isNew = newwinsrandimage31575[counttimerrandimage31575];
}
if (myURL != "" && myURL != "http://")
{
if (recURL31575 == 1)
{
myURL = mainURL + '?filename=homes_carousel&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_backrandimage31575() {
clearTimeout(timerfrandimage31575);
window.status = statusrandimage31575;
counttimerlrandimage31575 = counttimerrandimage31575;
counttimerrandimage31575 = counttimerrandimage31575 - 1;
begin_imagerandimage31575(1);
}
function go_nextrandimage31575() {
clearTimeout(timerfrandimage31575);
window.status = statusrandimage31575;
counttimerlrandimage31575 = counttimerrandimage31575;
counttimerrandimage31575++;
begin_imagerandimage31575(1);
}
function begin_imagerandimage31575(doit) {
if (counttimerrandimage31575 >= (imagesrandimage31575.length - 1))
{
if (doit < 1)
{
counttimerrandimage31575 = 0;
}
}
else
{
if (doit < 1)
{
counttimerrandimage31575++;
}
}
if (counttimerrandimage31575 < 0 && doit == 1)
{
counttimerrandimage31575 = imagesrandimage31575.length - 1;
}
if (counttimerrandimage31575 > (imagesrandimage31575.length - 1) && doit == 1)
{
counttimerrandimage31575 = 0;
}
var tempTime = timesrandimage31575[counttimerrandimage31575];
if (tempTime < 1)
{
tempTime = timesetrandimage31575;
}
tempTime = tempTime * 1000;
if (fadeinvalrandimage31575 == 'Y')
{
setOpacrandimage31575(imageElemrandimage31575, 0);
}
if (fadeinvalrandimage31575 == '' && fadeoutvalrandimage31575 == 'Y')
{
setOpacrandimage31575(imageElemrandimage31575, 100);
}
nimagerandimage31575.src = imagesrandimage31575[counttimerrandimage31575];
document.randimage31575.src = nimagerandimage31575.src;
changeTextrandimage31575("divtextrandimage31575",footersrandimage31575[counttimerrandimage31575]);
if (fadeinvalrandimage31575 == 'Y')
{
fadeInrandimage31575(imageIdrandimage31575,0);
}
if (fadeoutvalrandimage31575 == 'Y')
{
timerfrandimage31575 = setTimeout('fadeOutrandimage31575(imageIdrandimage31575,100);', (tempTime - outTime));
}
clearTimeout(timerrandimage31575);
timerrandimage31575 = setTimeout('begin_imagerandimage31575(0);', tempTime);
}
function dimsrandimage31575(Elemrandimage31575) {
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 (xPosrandimage31575 > 0)
{
xPostrandimage31575 = xPosrandimage31575;
yPostrandimage31575 = yPosrandimage31575;
wcrandimage31575.style.width = xPosrandimage31575;
wcrandimage31575.style.height = yPosrandimage31575;
}
if (ns4) {
var Elemrandimage31575 = getObjNN4(document, Elemrandimage31575);
yPosrandimage31575 = Elemrandimage31575.clip.height;
xPosrandimage31575 = Elemrandimage31575.clip.width;
return;
}
else {
var Elemrandimage31575;
if(document.getElementById) {
var Elemrandimage31575 = document.getElementById(Elemrandimage31575);
}
else if (document.all) {
var Elemrandimage31575 = document.all[Elemrandimage31575];
}
}
if (op5) {
yPosrandimage31575 = Elemrandimage31575.style.pixelHeight;
xPosrandimage31575 = Elemrandimage31575.style.pixelWidth;
}
else {
yPosrandimage31575 = Elemrandimage31575.offsetHeight;
xPosrandimage31575 = Elemrandimage31575.offsetWidth;
}
}
function znrandimage31575() {
clearTimeout(timerrandimage31575);
clearTimeout(timerfrandimage31575);
czrandimage31575();
if (xPosrandimage31575 > 0)
{
wcrandimage31575.style.width = xPosrandimage31575;
wcrandimage31575.style.height = yPosrandimage31575;
}
dimsrandimage31575("randimage31575");
window.status=statusrandimage31575;
zoomrandimage31575(xPosrandimage31575,yPosrandimage31575,'randimage31575','in');
timerrandimage31575 = setTimeout("czrandimage31575();", ztrandimage31575);
}
function zbrandimage31575() {
xPostrandimage31575 = xPosrandimage31575;
yPostrandimage31575 = yPosrandimage31575;
clearTimeout(timerrandimage31575);
czrandimage31575();
setOpacrandimage31575(imageElemrandimage31575, 100);
zoomrandimage31575(xPosrandimage31575,yPosrandimage31575,'randimage31575','out');
timerrandimage31575 = setTimeout('begin_imagerandimage31575(0);', counttimerlrandimage31575);
}
function zhrandimage31575(){
if (gsrandimage31575 == "out" && (xPostrandimage31575 < xPosrandimage31575 || yPostrandimage31575 < yPosrandimage31575))
{
setOpacrandimage31575(imageElemrandimage31575, 100);
xPostrandimage31575 = xPosrandimage31575;
yPostrandimage31575 = yPosrandimage31575;
wcrandimage31575.style.width = xPosrandimage31575;
wcrandimage31575.style.height = yPosrandimage31575;
gsrandimage31575 = "";
czrandimage31575();
return;
}
if (parseInt(wcrandimage31575.style.width)>10&&parseInt(wcrandimage31575.style.height)>10)
{
xPostrandimage31575 = parseInt(wcrandimage31575.style.width) + parseInt(wcrandimage31575.style.width) * zfrandimage31575 * pfrandimage31575;
yPostrandimage31575 = parseInt(wcrandimage31575.style.height) + parseInt(wcrandimage31575.style.height) * zfrandimage31575 * pfrandimage31575;
wcrandimage31575.style.width = xPostrandimage31575;
wcrandimage31575.style.height = yPostrandimage31575;
}
}
function zoomrandimage31575(originalW, originalH, what, state){
gsrandimage31575 = state;
if (!document.all&&!document.getElementById) {
return;
}
wcrandimage31575 = eval("document.images."+what);
pfrandimage31575 = (state=="in")? 1 : -1;
if (wcrandimage31575.style.width=="")
{
wcrandimage31575.style.width=originalW;
wcrandimage31575.style.height=originalH;
}
if (state=="restore"){
xPostrandimage31575 = xPosrandimage31575;
yPostrandimage31575 = yPosrandimage31575;
wcrandimage31575.style.width=originalW;
wcrandimage31575.style.height=originalH;
czrandimage31575();
return;
}
else
{
zhrandimage31575();
}
bzrandimage31575 = setInterval("zhrandimage31575()",100);
}
function czrandimage31575(){
if (window.bzrandimage31575) {
if (gsrandimage31575 != "in" && (xPostrandimage31575 != xPosrandimage31575 || yPostrandimage31575 != yPosrandimage31575))
{
xPostrandimage31575 = xPosrandimage31575;
yPostrandimage31575 = yPosrandimage31575;
wcrandimage31575.style.width = xPosrandimage31575;
wcrandimage31575.style.height = yPosrandimage31575;
gsrandimage31575 = "";
}
clearInterval(bzrandimage31575);
}
}
var tempcount2;
var tempcount5;
var Car_Image_Sources31575 = new Array();
var FootersAll31575 = new Array();
var myNewWin31575 = new Array();
var imglength31575 = imagesrandimage31575.length;
/***********************************************
* Carousel Slideshow script- © Ger Versluis 2003
* Permission granted to DynamicDrive.com to feature script
* This notice must stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var Car_Image_Width31575 = 225;
var Car_Image_Height31575 = 200;
var Car_Border=false;
var Car_Border_Color="white";
var Car_Speed31575 = 3;
var Car_Direction31575 = false;
var Car_NoOfSides31575 = 8;
var tempcounta31575 = 0;
var carTimer31575;
var tempL31575 = 0;
function startItC31575(whichOne) {
if (whichOne == 0)
{
clearTimeout(carTimer31575);
Car_Direction31575 = true;
}
else
{
clearTimeout(carTimer31575);
Car_Direction31575 = false;
}
carTimer31575 = setTimeout("CarImages31575()",50);
}
if (imglength31575 < 6)
{
tempL31575 = 7 - imglength31575;
}
if (tempL31575 < 1)
{
tempL31575 = 1;
}
var mainCount31575 = 0;
for (tempcount5 = 0; tempcount5 < tempL31575; tempcount5++)
{
for (tempcount2 = 0; tempcount2 < imglength31575; tempcount2++)
{
var tempVal = imagesrandimage31575[tempcount2];
Car_Image_Sources31575[tempcounta31575] = tempVal;
FootersAll31575[tempcounta31575] = footersrandimage31575[tempcount2];
myNewWin31575[tempcounta31575] = newwinsrandimage31575[tempcount2];
tempcounta31575++;
Car_Image_Sources31575[tempcounta31575] = urlsrandimage31575[tempcount2];
FootersAll31575[tempcounta31575] = footersrandimage31575[tempcount2];
myNewWin31575[tempcounta31575] = newwinsrandimage31575[tempcount2];
tempcounta31575++;
mainCount31575++;
}
}
imglength31575 = mainCount31575;
CW_I31575 = new Array(Car_NoOfSides31575 / 2+1);C_ClcW31575 = new Array(Car_NoOfSides31575 / 2);
C_Coef31575 = new Array(
3*Math.PI/2,0,3*Math.PI/2,11*Math.PI/6,Math.PI/6,3*Math.PI/2,7*Math.PI/4, 0,
Math.PI/4,3*Math.PI/2,5*Math.PI/3,11*Math.PI/6,0,Math.PI/6,Math.PI/3);
var C_CoefOf31575 = Car_NoOfSides31575 == 4?0:Car_NoOfSides31575 == 6 ? 2:Car_NoOfSides31575 == 8?5:9;
C_Pre_Img31575 = new Array(Car_Image_Sources31575.length);
var C_Angle31575 = Car_Direction31575 ? Math.PI/(Car_NoOfSides31575 / 2):0,C_CrImg31575 = Car_NoOfSides31575,C_MaxW31575,C_TotalW31575,C_Stppd31575=false,i31575,C_LeftOffset31575,C_HalfNo31575 = Car_NoOfSides31575 / 2;
function CarouselStart31575(){
if(document.getElementById){
for(i31575=0;i31575 < Car_Image_Sources31575.length; i31575+=2){
C_Pre_Img31575[i31575]=new Image();C_Pre_Img31575[i31575].src=Car_Image_Sources31575[i31575]}
C_MaxW31575=Car_Image_Width31575 / Math.sin(Math.PI/Car_NoOfSides31575)+C_HalfNo31575 + 1;
Car_Div=document.getElementById("Carousel31575");
for(i31575=0;i31575= Math.PI/C_HalfNo31575)){
if(C_CrImg31575 == Car_Image_Sources31575.length)C_CrImg31575=0;
if(Car_Direction31575){
CW_I31575[C_HalfNo31575] = CW_I31575[0];
for(i31575=0;i31575 0;i31575--)CW_I31575[i31575]=CW_I31575[i31575-1];
CW_I31575[0]=CW_I31575[C_HalfNo31575];
CW_I31575[0].src=Car_Image_Sources31575[C_CrImg31575];
CW_I31575[0].lnk=Car_Image_Sources31575[C_CrImg31575+1];
CW_I31575[0].desc=FootersAll31575[C_CrImg31575];
CW_I31575[0].newwin=myNewWin31575[C_CrImg31575];
}
C_Angle31575 = Car_Direction31575 ? Math.PI/C_HalfNo31575:0;C_CrImg31575+=2;}}
carTimer31575 = setTimeout("CarImages31575()",50);}
function C_LdLnk31575(){go_urlrandimage31575(-1,this.newwin,this.lnk,this.src);}
function C_Stp31575(){this.style.cursor=this.lnk?"pointer":"default";C_Stppd31575=true;changeTextrandimage31575("divtextrandimage31575",this.desc);}
function C_Rstrt31575(){C_Stppd31575=false;changeTextrandimage31575("divtextrandimage31575","");}
setTimeout("CarouselStart31575()",100);