var timenowrandimage57459 = 0;
var counttimerrandimage57459 = -1;
var counttimerlrandimage57459 = counttimerrandimage57459;
var timesetrandimage57459 = 10;
var nimagerandimage57459 = new Image;
var imagesrandimage57459 = new Array('http://www.cgiconnection.com/randimage4/images/ocean-2.jpg','http://www.cgiconnection.com/randimage4/images/oceanflip-2.jpg');
var urlsrandimage57459 = new Array('http://','http://');
var timesrandimage57459 = new Array('','');
var newwinsrandimage57459 = new Array('','');
var footersrandimage57459 = new Array('','');
var timerrandimage57459;
var timerfrandimage57459;
var i = 0;
var preloadimgrandimage57459 = 0;
var footerrandimage57459 = '
"CGI Connection Software Makes COOL Web Sites"
Created with the Random Image Rotator 4';
var statusrandimage57459 = '';
var floatidrandimage57459 = 0;
var zoomidrandimage57459 = 0;
var carrandimage57459 = 1;
var fadeSpeedrandimage57459 = 10;
var outTime = 2100 - (fadeSpeedrandimage57459 * 35);
var objrandimage57459;
var opacityrandimage57459;
var nsrandimage57459 = document.layers;
var ierandimage57459 = document.all;
var fadeinvalrandimage57459 = "";
var fadeoutvalrandimage57459 = "";
var sliderandimage57459 = 0;
var zfrandimage57459 = 0.075;
var ztrandimage57459 = 500;
var wcrandimage57459;
var Elemrandimage57459;
var yPosrandimage57459 = 0;
var xPosrandimage57459 = 0;
var xPostrandimage57459 = 0;
var yPostrandimage57459 = 0;
var gsrandimage57459 = "";
if (preloadimgrandimage57459 == 1)
{
for(i=0; i < imagesrandimage57459.length; i++)
{
nimagerandimage57459.src = imagesrandimage57459[i];
}
}
function setOpacrandimage57459(objrandimage57459, opacityrandimage57459) {
opacityrandimage57459 = (opacityrandimage57459 == 100)?99.999:opacityrandimage57459;
if (nsrandimage57459)
{
objrandimage57459.style.MozOpacity = opacityrandimage57459/100;
}
else if (ierandimage57459)
{
objrandimage57459.style.filter = "alpha(opacity:"+opacityrandimage57459+")";
}
else
{
objrandimage57459.style.opacity = opacityrandimage57459/100;
}
}
function fadeInrandimage57459(objIdrandimage57459,opacityrandimage57459) {
if (document.getElementById) {
objrandimage57459 = document.getElementById(objIdrandimage57459);
if (opacityrandimage57459 <= 100) {
setOpacrandimage57459(objrandimage57459, opacityrandimage57459);
opacityrandimage57459 += fadeSpeedrandimage57459;
window.setTimeout("fadeInrandimage57459('" + objIdrandimage57459 +"',"+opacityrandimage57459+")", 100);
}
else
{
setOpacrandimage57459(objrandimage57459, 100);
}
}
}
function fadeOutrandimage57459(objIdrandimage57459,opacityrandimage57459) {
if (document.getElementById) {
objrandimage57459 = document.getElementById(objIdrandimage57459);
if (opacityrandimage57459 >= 0) {
setOpacrandimage57459(objrandimage57459, opacityrandimage57459);
opacityrandimage57459 = opacityrandimage57459 - fadeSpeedrandimage57459;
window.setTimeout("fadeOutrandimage57459('" + objIdrandimage57459 +"',"+opacityrandimage57459+")", 100);
}
else
{
setOpacrandimage57459(objrandimage57459, 0);
}
}
}
function changeTextrandimage57459(div_id,val){
elm=document.getElementById(div_id);
elm.innerHTML = '
' + val + footerrandimage57459 + '
';
}
document.write('');
if (floatidrandimage57459 == 1)
{
document.write('');
}
document.write('
');
document.write('
');
document.write('');
if (carrandimage57459 == 1)
{
document.write('');
}
if (sliderandimage57459 == 1)
{
document.write('');
document.write(' ');
document.write(' ');
document.write(' ');
}
if (sliderandimage57459 != 1 && carrandimage57459 != 1)
{
if (zoomidrandimage57459 == 0)
{
document.write('');
}
else
{
document.write('');
}
document.write('');
document.write(' |
');
}
if (sliderandimage57459 == 1 || carrandimage57459 == 1)
{
document.write('' + footerrandimage57459 + ' |
');
}
else
{
document.write(' |
');
}
document.write('');
document.write('
');
if (floatidrandimage57459 == 1)
{
document.write('
');
}
var imageIdrandimage57459 = 'randimage57459';
var imageElemrandimage57459 = document.getElementById(imageIdrandimage57459);
var tempURLnum;
function go_urlrandimage57459(tempURLnum,openinnew,templink,tempsrc) {
window.status = statusrandimage57459;
var myURL = "";
var isNew = "";
var mySRC = "";
var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi";
var recURL57459 = 0;
if (tempURLnum > 0)
{
counttimerrandimage57459 = tempURLnum - 1;
}
if (tempURLnum == -1)
{
myURL = templink;
mySRC = tempsrc;
isNew = openinnew;
}
else
{
myURL = urlsrandimage57459[counttimerrandimage57459];
mySRC = imagesrandimage57459[counttimerrandimage57459];
isNew = newwinsrandimage57459[counttimerrandimage57459];
}
if (myURL != "" && myURL != "http://")
{
if (recURL57459 == 1)
{
myURL = mainURL + '?filename=ocean_mountains_hp&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_backrandimage57459() {
clearTimeout(timerfrandimage57459);
window.status = statusrandimage57459;
counttimerlrandimage57459 = counttimerrandimage57459;
counttimerrandimage57459 = counttimerrandimage57459 - 1;
begin_imagerandimage57459(1);
}
function go_nextrandimage57459() {
clearTimeout(timerfrandimage57459);
window.status = statusrandimage57459;
counttimerlrandimage57459 = counttimerrandimage57459;
counttimerrandimage57459++;
begin_imagerandimage57459(1);
}
function begin_imagerandimage57459(doit) {
if (counttimerrandimage57459 >= (imagesrandimage57459.length - 1))
{
if (doit < 1)
{
counttimerrandimage57459 = 0;
}
}
else
{
if (doit < 1)
{
counttimerrandimage57459++;
}
}
if (counttimerrandimage57459 < 0 && doit == 1)
{
counttimerrandimage57459 = imagesrandimage57459.length - 1;
}
if (counttimerrandimage57459 > (imagesrandimage57459.length - 1) && doit == 1)
{
counttimerrandimage57459 = 0;
}
var tempTime = timesrandimage57459[counttimerrandimage57459];
if (tempTime < 1)
{
tempTime = timesetrandimage57459;
}
tempTime = tempTime * 1000;
if (fadeinvalrandimage57459 == 'Y')
{
setOpacrandimage57459(imageElemrandimage57459, 0);
}
if (fadeinvalrandimage57459 == '' && fadeoutvalrandimage57459 == 'Y')
{
setOpacrandimage57459(imageElemrandimage57459, 100);
}
nimagerandimage57459.src = imagesrandimage57459[counttimerrandimage57459];
document.randimage57459.src = nimagerandimage57459.src;
changeTextrandimage57459("divtextrandimage57459",footersrandimage57459[counttimerrandimage57459]);
if (fadeinvalrandimage57459 == 'Y')
{
fadeInrandimage57459(imageIdrandimage57459,0);
}
if (fadeoutvalrandimage57459 == 'Y')
{
timerfrandimage57459 = setTimeout('fadeOutrandimage57459(imageIdrandimage57459,100);', (tempTime - outTime));
}
clearTimeout(timerrandimage57459);
timerrandimage57459 = setTimeout('begin_imagerandimage57459(0);', tempTime);
}
function dimsrandimage57459(Elemrandimage57459) {
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 (xPosrandimage57459 > 0)
{
xPostrandimage57459 = xPosrandimage57459;
yPostrandimage57459 = yPosrandimage57459;
wcrandimage57459.style.width = xPosrandimage57459;
wcrandimage57459.style.height = yPosrandimage57459;
}
if (ns4) {
var Elemrandimage57459 = getObjNN4(document, Elemrandimage57459);
yPosrandimage57459 = Elemrandimage57459.clip.height;
xPosrandimage57459 = Elemrandimage57459.clip.width;
return;
}
else {
var Elemrandimage57459;
if(document.getElementById) {
var Elemrandimage57459 = document.getElementById(Elemrandimage57459);
}
else if (document.all) {
var Elemrandimage57459 = document.all[Elemrandimage57459];
}
}
if (op5) {
yPosrandimage57459 = Elemrandimage57459.style.pixelHeight;
xPosrandimage57459 = Elemrandimage57459.style.pixelWidth;
}
else {
yPosrandimage57459 = Elemrandimage57459.offsetHeight;
xPosrandimage57459 = Elemrandimage57459.offsetWidth;
}
}
function znrandimage57459() {
clearTimeout(timerrandimage57459);
clearTimeout(timerfrandimage57459);
czrandimage57459();
if (xPosrandimage57459 > 0)
{
wcrandimage57459.style.width = xPosrandimage57459;
wcrandimage57459.style.height = yPosrandimage57459;
}
dimsrandimage57459("randimage57459");
window.status=statusrandimage57459;
zoomrandimage57459(xPosrandimage57459,yPosrandimage57459,'randimage57459','in');
timerrandimage57459 = setTimeout("czrandimage57459();", ztrandimage57459);
}
function zbrandimage57459() {
xPostrandimage57459 = xPosrandimage57459;
yPostrandimage57459 = yPosrandimage57459;
clearTimeout(timerrandimage57459);
czrandimage57459();
setOpacrandimage57459(imageElemrandimage57459, 100);
zoomrandimage57459(xPosrandimage57459,yPosrandimage57459,'randimage57459','out');
timerrandimage57459 = setTimeout('begin_imagerandimage57459(0);', counttimerlrandimage57459);
}
function zhrandimage57459(){
if (gsrandimage57459 == "out" && (xPostrandimage57459 < xPosrandimage57459 || yPostrandimage57459 < yPosrandimage57459))
{
setOpacrandimage57459(imageElemrandimage57459, 100);
xPostrandimage57459 = xPosrandimage57459;
yPostrandimage57459 = yPosrandimage57459;
wcrandimage57459.style.width = xPosrandimage57459;
wcrandimage57459.style.height = yPosrandimage57459;
gsrandimage57459 = "";
czrandimage57459();
return;
}
if (parseInt(wcrandimage57459.style.width)>10&&parseInt(wcrandimage57459.style.height)>10)
{
xPostrandimage57459 = parseInt(wcrandimage57459.style.width) + parseInt(wcrandimage57459.style.width) * zfrandimage57459 * pfrandimage57459;
yPostrandimage57459 = parseInt(wcrandimage57459.style.height) + parseInt(wcrandimage57459.style.height) * zfrandimage57459 * pfrandimage57459;
wcrandimage57459.style.width = xPostrandimage57459;
wcrandimage57459.style.height = yPostrandimage57459;
}
}
function zoomrandimage57459(originalW, originalH, what, state){
gsrandimage57459 = state;
if (!document.all&&!document.getElementById) {
return;
}
wcrandimage57459 = eval("document.images."+what);
pfrandimage57459 = (state=="in")? 1 : -1;
if (wcrandimage57459.style.width=="")
{
wcrandimage57459.style.width=originalW;
wcrandimage57459.style.height=originalH;
}
if (state=="restore"){
xPostrandimage57459 = xPosrandimage57459;
yPostrandimage57459 = yPosrandimage57459;
wcrandimage57459.style.width=originalW;
wcrandimage57459.style.height=originalH;
czrandimage57459();
return;
}
else
{
zhrandimage57459();
}
bzrandimage57459 = setInterval("zhrandimage57459()",100);
}
function czrandimage57459(){
if (window.bzrandimage57459) {
if (gsrandimage57459 != "in" && (xPostrandimage57459 != xPosrandimage57459 || yPostrandimage57459 != yPosrandimage57459))
{
xPostrandimage57459 = xPosrandimage57459;
yPostrandimage57459 = yPosrandimage57459;
wcrandimage57459.style.width = xPosrandimage57459;
wcrandimage57459.style.height = yPosrandimage57459;
gsrandimage57459 = "";
}
clearInterval(bzrandimage57459);
}
}
var tempcount2;
var tempcount5;
var Car_Image_Sources57459 = new Array();
var FootersAll57459 = new Array();
var myNewWin57459 = new Array();
var imglength57459 = imagesrandimage57459.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_Width57459 = 300;
var Car_Image_Height57459 = 220;
var Car_Border=false;
var Car_Border_Color="white";
var Car_Speed57459 = 2;
var Car_Direction57459 = true;
var Car_NoOfSides57459 = 6;
var tempcounta57459 = 0;
var carTimer57459;
var tempL57459 = 0;
function startItC57459(whichOne) {
if (whichOne == 0)
{
clearTimeout(carTimer57459);
Car_Direction57459 = true;
}
else
{
clearTimeout(carTimer57459);
Car_Direction57459 = false;
}
carTimer57459 = setTimeout("CarImages57459()",50);
}
if (imglength57459 < 6)
{
tempL57459 = 7 - imglength57459;
}
if (tempL57459 < 1)
{
tempL57459 = 1;
}
var mainCount57459 = 0;
for (tempcount5 = 0; tempcount5 < tempL57459; tempcount5++)
{
for (tempcount2 = 0; tempcount2 < imglength57459; tempcount2++)
{
var tempVal = imagesrandimage57459[tempcount2];
Car_Image_Sources57459[tempcounta57459] = tempVal;
FootersAll57459[tempcounta57459] = footersrandimage57459[tempcount2];
myNewWin57459[tempcounta57459] = newwinsrandimage57459[tempcount2];
tempcounta57459++;
Car_Image_Sources57459[tempcounta57459] = urlsrandimage57459[tempcount2];
FootersAll57459[tempcounta57459] = footersrandimage57459[tempcount2];
myNewWin57459[tempcounta57459] = newwinsrandimage57459[tempcount2];
tempcounta57459++;
mainCount57459++;
}
}
imglength57459 = mainCount57459;
CW_I57459 = new Array(Car_NoOfSides57459 / 2+1);C_ClcW57459 = new Array(Car_NoOfSides57459 / 2);
C_Coef57459 = 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_CoefOf57459 = Car_NoOfSides57459 == 4?0:Car_NoOfSides57459 == 6 ? 2:Car_NoOfSides57459 == 8?5:9;
C_Pre_Img57459 = new Array(Car_Image_Sources57459.length);
var C_Angle57459 = Car_Direction57459 ? Math.PI/(Car_NoOfSides57459 / 2):0,C_CrImg57459 = Car_NoOfSides57459,C_MaxW57459,C_TotalW57459,C_Stppd57459=false,i57459,C_LeftOffset57459,C_HalfNo57459 = Car_NoOfSides57459 / 2;
function CarouselStart57459(){
if(document.getElementById){
for(i57459=0;i57459 < Car_Image_Sources57459.length; i57459+=2){
C_Pre_Img57459[i57459]=new Image();C_Pre_Img57459[i57459].src=Car_Image_Sources57459[i57459]}
C_MaxW57459=Car_Image_Width57459 / Math.sin(Math.PI/Car_NoOfSides57459)+C_HalfNo57459 + 1;
Car_Div=document.getElementById("Carousel57459");
for(i57459=0;i57459= Math.PI/C_HalfNo57459)){
if(C_CrImg57459 == Car_Image_Sources57459.length)C_CrImg57459=0;
if(Car_Direction57459){
CW_I57459[C_HalfNo57459] = CW_I57459[0];
for(i57459=0;i57459 0;i57459--)CW_I57459[i57459]=CW_I57459[i57459-1];
CW_I57459[0]=CW_I57459[C_HalfNo57459];
CW_I57459[0].src=Car_Image_Sources57459[C_CrImg57459];
CW_I57459[0].lnk=Car_Image_Sources57459[C_CrImg57459+1];
CW_I57459[0].desc=FootersAll57459[C_CrImg57459];
CW_I57459[0].newwin=myNewWin57459[C_CrImg57459];
}
C_Angle57459 = Car_Direction57459 ? Math.PI/C_HalfNo57459:0;C_CrImg57459+=2;}}
carTimer57459 = setTimeout("CarImages57459()",50);}
function C_LdLnk57459(){go_urlrandimage57459(-1,this.newwin,this.lnk,this.src);}
function C_Stp57459(){this.style.cursor=this.lnk?"pointer":"default";C_Stppd57459=true;changeTextrandimage57459("divtextrandimage57459",this.desc);}
function C_Rstrt57459(){C_Stppd57459=false;changeTextrandimage57459("divtextrandimage57459","");}
setTimeout("CarouselStart57459()",100);