var timenowrandimage22295 = 0;
var counttimerrandimage22295 = -1;
var counttimerlrandimage22295 = counttimerrandimage22295;
var timesetrandimage22295 = 10;
var nimagerandimage22295 = new Image;
var imagesrandimage22295 = new Array('http://www.cgiconnection.com/randimage4/images/ocean-2.jpg','http://www.cgiconnection.com/randimage4/images/oceanflip-2.jpg');
var urlsrandimage22295 = new Array('http://','http://');
var timesrandimage22295 = new Array('','');
var newwinsrandimage22295 = new Array('','');
var footersrandimage22295 = new Array('','');
var timerrandimage22295;
var timerfrandimage22295;
var i = 0;
var preloadimgrandimage22295 = 0;
var footerrandimage22295 = '
"CGI Connection Software Makes COOL Web Sites"
Created with the Random Image Rotator 4';
var statusrandimage22295 = '';
var floatidrandimage22295 = 0;
var zoomidrandimage22295 = 0;
var carrandimage22295 = 1;
var fadeSpeedrandimage22295 = 10;
var outTime = 2100 - (fadeSpeedrandimage22295 * 35);
var objrandimage22295;
var opacityrandimage22295;
var nsrandimage22295 = document.layers;
var ierandimage22295 = document.all;
var fadeinvalrandimage22295 = "";
var fadeoutvalrandimage22295 = "";
var sliderandimage22295 = 0;
var zfrandimage22295 = 0.075;
var ztrandimage22295 = 500;
var wcrandimage22295;
var Elemrandimage22295;
var yPosrandimage22295 = 0;
var xPosrandimage22295 = 0;
var xPostrandimage22295 = 0;
var yPostrandimage22295 = 0;
var gsrandimage22295 = "";
if (preloadimgrandimage22295 == 1)
{
for(i=0; i < imagesrandimage22295.length; i++)
{
nimagerandimage22295.src = imagesrandimage22295[i];
}
}
function setOpacrandimage22295(objrandimage22295, opacityrandimage22295) {
opacityrandimage22295 = (opacityrandimage22295 == 100)?99.999:opacityrandimage22295;
if (nsrandimage22295)
{
objrandimage22295.style.MozOpacity = opacityrandimage22295/100;
}
else if (ierandimage22295)
{
objrandimage22295.style.filter = "alpha(opacity:"+opacityrandimage22295+")";
}
else
{
objrandimage22295.style.opacity = opacityrandimage22295/100;
}
}
function fadeInrandimage22295(objIdrandimage22295,opacityrandimage22295) {
if (document.getElementById) {
objrandimage22295 = document.getElementById(objIdrandimage22295);
if (opacityrandimage22295 <= 100) {
setOpacrandimage22295(objrandimage22295, opacityrandimage22295);
opacityrandimage22295 += fadeSpeedrandimage22295;
window.setTimeout("fadeInrandimage22295('" + objIdrandimage22295 +"',"+opacityrandimage22295+")", 100);
}
else
{
setOpacrandimage22295(objrandimage22295, 100);
}
}
}
function fadeOutrandimage22295(objIdrandimage22295,opacityrandimage22295) {
if (document.getElementById) {
objrandimage22295 = document.getElementById(objIdrandimage22295);
if (opacityrandimage22295 >= 0) {
setOpacrandimage22295(objrandimage22295, opacityrandimage22295);
opacityrandimage22295 = opacityrandimage22295 - fadeSpeedrandimage22295;
window.setTimeout("fadeOutrandimage22295('" + objIdrandimage22295 +"',"+opacityrandimage22295+")", 100);
}
else
{
setOpacrandimage22295(objrandimage22295, 0);
}
}
}
function changeTextrandimage22295(div_id,val){
elm=document.getElementById(div_id);
elm.innerHTML = '
' + val + footerrandimage22295 + '
';
}
document.write('');
if (floatidrandimage22295 == 1)
{
document.write('');
}
document.write('
');
document.write('
');
document.write('');
if (carrandimage22295 == 1)
{
document.write('');
}
if (sliderandimage22295 == 1)
{
document.write('');
document.write(' ');
document.write(' ');
document.write(' ');
}
if (sliderandimage22295 != 1 && carrandimage22295 != 1)
{
if (zoomidrandimage22295 == 0)
{
document.write('');
}
else
{
document.write('');
}
document.write('');
document.write(' |
');
}
if (sliderandimage22295 == 1 || carrandimage22295 == 1)
{
document.write('' + footerrandimage22295 + ' |
');
}
else
{
document.write(' |
');
}
document.write('');
document.write('
');
if (floatidrandimage22295 == 1)
{
document.write('
');
}
var imageIdrandimage22295 = 'randimage22295';
var imageElemrandimage22295 = document.getElementById(imageIdrandimage22295);
var tempURLnum;
function go_urlrandimage22295(tempURLnum,openinnew,templink,tempsrc) {
window.status = statusrandimage22295;
var myURL = "";
var isNew = "";
var mySRC = "";
var mainURL = "http://www.cgiconnection.com/cgi-bin/cgi-con/randimage4.cgi";
var recURL22295 = 0;
if (tempURLnum > 0)
{
counttimerrandimage22295 = tempURLnum - 1;
}
if (tempURLnum == -1)
{
myURL = templink;
mySRC = tempsrc;
isNew = openinnew;
}
else
{
myURL = urlsrandimage22295[counttimerrandimage22295];
mySRC = imagesrandimage22295[counttimerrandimage22295];
isNew = newwinsrandimage22295[counttimerrandimage22295];
}
if (myURL != "" && myURL != "http://")
{
if (recURL22295 == 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_backrandimage22295() {
clearTimeout(timerfrandimage22295);
window.status = statusrandimage22295;
counttimerlrandimage22295 = counttimerrandimage22295;
counttimerrandimage22295 = counttimerrandimage22295 - 1;
begin_imagerandimage22295(1);
}
function go_nextrandimage22295() {
clearTimeout(timerfrandimage22295);
window.status = statusrandimage22295;
counttimerlrandimage22295 = counttimerrandimage22295;
counttimerrandimage22295++;
begin_imagerandimage22295(1);
}
function begin_imagerandimage22295(doit) {
if (counttimerrandimage22295 >= (imagesrandimage22295.length - 1))
{
if (doit < 1)
{
counttimerrandimage22295 = 0;
}
}
else
{
if (doit < 1)
{
counttimerrandimage22295++;
}
}
if (counttimerrandimage22295 < 0 && doit == 1)
{
counttimerrandimage22295 = imagesrandimage22295.length - 1;
}
if (counttimerrandimage22295 > (imagesrandimage22295.length - 1) && doit == 1)
{
counttimerrandimage22295 = 0;
}
var tempTime = timesrandimage22295[counttimerrandimage22295];
if (tempTime < 1)
{
tempTime = timesetrandimage22295;
}
tempTime = tempTime * 1000;
if (fadeinvalrandimage22295 == 'Y')
{
setOpacrandimage22295(imageElemrandimage22295, 0);
}
if (fadeinvalrandimage22295 == '' && fadeoutvalrandimage22295 == 'Y')
{
setOpacrandimage22295(imageElemrandimage22295, 100);
}
nimagerandimage22295.src = imagesrandimage22295[counttimerrandimage22295];
document.randimage22295.src = nimagerandimage22295.src;
changeTextrandimage22295("divtextrandimage22295",footersrandimage22295[counttimerrandimage22295]);
if (fadeinvalrandimage22295 == 'Y')
{
fadeInrandimage22295(imageIdrandimage22295,0);
}
if (fadeoutvalrandimage22295 == 'Y')
{
timerfrandimage22295 = setTimeout('fadeOutrandimage22295(imageIdrandimage22295,100);', (tempTime - outTime));
}
clearTimeout(timerrandimage22295);
timerrandimage22295 = setTimeout('begin_imagerandimage22295(0);', tempTime);
}
function dimsrandimage22295(Elemrandimage22295) {
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 (xPosrandimage22295 > 0)
{
xPostrandimage22295 = xPosrandimage22295;
yPostrandimage22295 = yPosrandimage22295;
wcrandimage22295.style.width = xPosrandimage22295;
wcrandimage22295.style.height = yPosrandimage22295;
}
if (ns4) {
var Elemrandimage22295 = getObjNN4(document, Elemrandimage22295);
yPosrandimage22295 = Elemrandimage22295.clip.height;
xPosrandimage22295 = Elemrandimage22295.clip.width;
return;
}
else {
var Elemrandimage22295;
if(document.getElementById) {
var Elemrandimage22295 = document.getElementById(Elemrandimage22295);
}
else if (document.all) {
var Elemrandimage22295 = document.all[Elemrandimage22295];
}
}
if (op5) {
yPosrandimage22295 = Elemrandimage22295.style.pixelHeight;
xPosrandimage22295 = Elemrandimage22295.style.pixelWidth;
}
else {
yPosrandimage22295 = Elemrandimage22295.offsetHeight;
xPosrandimage22295 = Elemrandimage22295.offsetWidth;
}
}
function znrandimage22295() {
clearTimeout(timerrandimage22295);
clearTimeout(timerfrandimage22295);
czrandimage22295();
if (xPosrandimage22295 > 0)
{
wcrandimage22295.style.width = xPosrandimage22295;
wcrandimage22295.style.height = yPosrandimage22295;
}
dimsrandimage22295("randimage22295");
window.status=statusrandimage22295;
zoomrandimage22295(xPosrandimage22295,yPosrandimage22295,'randimage22295','in');
timerrandimage22295 = setTimeout("czrandimage22295();", ztrandimage22295);
}
function zbrandimage22295() {
xPostrandimage22295 = xPosrandimage22295;
yPostrandimage22295 = yPosrandimage22295;
clearTimeout(timerrandimage22295);
czrandimage22295();
setOpacrandimage22295(imageElemrandimage22295, 100);
zoomrandimage22295(xPosrandimage22295,yPosrandimage22295,'randimage22295','out');
timerrandimage22295 = setTimeout('begin_imagerandimage22295(0);', counttimerlrandimage22295);
}
function zhrandimage22295(){
if (gsrandimage22295 == "out" && (xPostrandimage22295 < xPosrandimage22295 || yPostrandimage22295 < yPosrandimage22295))
{
setOpacrandimage22295(imageElemrandimage22295, 100);
xPostrandimage22295 = xPosrandimage22295;
yPostrandimage22295 = yPosrandimage22295;
wcrandimage22295.style.width = xPosrandimage22295;
wcrandimage22295.style.height = yPosrandimage22295;
gsrandimage22295 = "";
czrandimage22295();
return;
}
if (parseInt(wcrandimage22295.style.width)>10&&parseInt(wcrandimage22295.style.height)>10)
{
xPostrandimage22295 = parseInt(wcrandimage22295.style.width) + parseInt(wcrandimage22295.style.width) * zfrandimage22295 * pfrandimage22295;
yPostrandimage22295 = parseInt(wcrandimage22295.style.height) + parseInt(wcrandimage22295.style.height) * zfrandimage22295 * pfrandimage22295;
wcrandimage22295.style.width = xPostrandimage22295;
wcrandimage22295.style.height = yPostrandimage22295;
}
}
function zoomrandimage22295(originalW, originalH, what, state){
gsrandimage22295 = state;
if (!document.all&&!document.getElementById) {
return;
}
wcrandimage22295 = eval("document.images."+what);
pfrandimage22295 = (state=="in")? 1 : -1;
if (wcrandimage22295.style.width=="")
{
wcrandimage22295.style.width=originalW;
wcrandimage22295.style.height=originalH;
}
if (state=="restore"){
xPostrandimage22295 = xPosrandimage22295;
yPostrandimage22295 = yPosrandimage22295;
wcrandimage22295.style.width=originalW;
wcrandimage22295.style.height=originalH;
czrandimage22295();
return;
}
else
{
zhrandimage22295();
}
bzrandimage22295 = setInterval("zhrandimage22295()",100);
}
function czrandimage22295(){
if (window.bzrandimage22295) {
if (gsrandimage22295 != "in" && (xPostrandimage22295 != xPosrandimage22295 || yPostrandimage22295 != yPosrandimage22295))
{
xPostrandimage22295 = xPosrandimage22295;
yPostrandimage22295 = yPosrandimage22295;
wcrandimage22295.style.width = xPosrandimage22295;
wcrandimage22295.style.height = yPosrandimage22295;
gsrandimage22295 = "";
}
clearInterval(bzrandimage22295);
}
}
var tempcount2;
var tempcount5;
var Car_Image_Sources22295 = new Array();
var FootersAll22295 = new Array();
var myNewWin22295 = new Array();
var imglength22295 = imagesrandimage22295.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_Width22295 = 300;
var Car_Image_Height22295 = 220;
var Car_Border=false;
var Car_Border_Color="white";
var Car_Speed22295 = 2;
var Car_Direction22295 = true;
var Car_NoOfSides22295 = 6;
var tempcounta22295 = 0;
var carTimer22295;
var tempL22295 = 0;
function startItC22295(whichOne) {
if (whichOne == 0)
{
clearTimeout(carTimer22295);
Car_Direction22295 = true;
}
else
{
clearTimeout(carTimer22295);
Car_Direction22295 = false;
}
carTimer22295 = setTimeout("CarImages22295()",50);
}
if (imglength22295 < 6)
{
tempL22295 = 7 - imglength22295;
}
if (tempL22295 < 1)
{
tempL22295 = 1;
}
var mainCount22295 = 0;
for (tempcount5 = 0; tempcount5 < tempL22295; tempcount5++)
{
for (tempcount2 = 0; tempcount2 < imglength22295; tempcount2++)
{
var tempVal = imagesrandimage22295[tempcount2];
Car_Image_Sources22295[tempcounta22295] = tempVal;
FootersAll22295[tempcounta22295] = footersrandimage22295[tempcount2];
myNewWin22295[tempcounta22295] = newwinsrandimage22295[tempcount2];
tempcounta22295++;
Car_Image_Sources22295[tempcounta22295] = urlsrandimage22295[tempcount2];
FootersAll22295[tempcounta22295] = footersrandimage22295[tempcount2];
myNewWin22295[tempcounta22295] = newwinsrandimage22295[tempcount2];
tempcounta22295++;
mainCount22295++;
}
}
imglength22295 = mainCount22295;
CW_I22295 = new Array(Car_NoOfSides22295 / 2+1);C_ClcW22295 = new Array(Car_NoOfSides22295 / 2);
C_Coef22295 = 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_CoefOf22295 = Car_NoOfSides22295 == 4?0:Car_NoOfSides22295 == 6 ? 2:Car_NoOfSides22295 == 8?5:9;
C_Pre_Img22295 = new Array(Car_Image_Sources22295.length);
var C_Angle22295 = Car_Direction22295 ? Math.PI/(Car_NoOfSides22295 / 2):0,C_CrImg22295 = Car_NoOfSides22295,C_MaxW22295,C_TotalW22295,C_Stppd22295=false,i22295,C_LeftOffset22295,C_HalfNo22295 = Car_NoOfSides22295 / 2;
function CarouselStart22295(){
if(document.getElementById){
for(i22295=0;i22295 < Car_Image_Sources22295.length; i22295+=2){
C_Pre_Img22295[i22295]=new Image();C_Pre_Img22295[i22295].src=Car_Image_Sources22295[i22295]}
C_MaxW22295=Car_Image_Width22295 / Math.sin(Math.PI/Car_NoOfSides22295)+C_HalfNo22295 + 1;
Car_Div=document.getElementById("Carousel22295");
for(i22295=0;i22295= Math.PI/C_HalfNo22295)){
if(C_CrImg22295 == Car_Image_Sources22295.length)C_CrImg22295=0;
if(Car_Direction22295){
CW_I22295[C_HalfNo22295] = CW_I22295[0];
for(i22295=0;i22295 0;i22295--)CW_I22295[i22295]=CW_I22295[i22295-1];
CW_I22295[0]=CW_I22295[C_HalfNo22295];
CW_I22295[0].src=Car_Image_Sources22295[C_CrImg22295];
CW_I22295[0].lnk=Car_Image_Sources22295[C_CrImg22295+1];
CW_I22295[0].desc=FootersAll22295[C_CrImg22295];
CW_I22295[0].newwin=myNewWin22295[C_CrImg22295];
}
C_Angle22295 = Car_Direction22295 ? Math.PI/C_HalfNo22295:0;C_CrImg22295+=2;}}
carTimer22295 = setTimeout("CarImages22295()",50);}
function C_LdLnk22295(){go_urlrandimage22295(-1,this.newwin,this.lnk,this.src);}
function C_Stp22295(){this.style.cursor=this.lnk?"pointer":"default";C_Stppd22295=true;changeTextrandimage22295("divtextrandimage22295",this.desc);}
function C_Rstrt22295(){C_Stppd22295=false;changeTextrandimage22295("divtextrandimage22295","");}
setTimeout("CarouselStart22295()",100);