﻿// JScript File - Protected by copy right


var slidespeed=2000
var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++)
    {
        imageholder[i]=new Image()
        imageholder[i].src=slideimages[i]
    }

function gotoshow(){
if (newwindow)
   window.open(slidelinks[whichlink])
else
   window.location=slidelinks[whichlink]
}

function slideit(){
if (!document.images) return
if (ie) document.images.slide.filters[0].apply()
document.images.slide.src=imageholder[whichimage].src
if (ie) document.images.slide.filters[0].play()
whichlink=whichimage
whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
setTimeout("slideit()",slidespeed+blenddelay)
}


function showobject(c)
{
var theObj = document.getElementById(c);
var fn;

theObj.src = c;
theObj.style.visibility="visible";
fn="hideobject('"+ c +"');"
setTimeout(fn,4000);  

}



function hideobject(c)
{
var theObj = document.getElementById(c);
theObj.src = c;
theObj.style.visibility="hidden";
}



function showMouseOverPic(c)
{

var theImage = document.getElementById("myImage");
theImage.src = c;
theImage.style.visibility="visible";
/*
theImage.style.filters[0].apply()
theImage.style.filters[0].play() */

}

function hideMouseOverPic()
{
var theImage = document.getElementById("myImage");
theImage.src = "";
theImage.style.visibility="hidden";
}
/*
function hideMouseOverPic(){
 theImage.src = "image1.gif";
}

function showClickPic(){
 theImage.onmouseover = "";
 theImage.onmouseout = "";
 theImage.src = "image3.gif";
}

*/
function detect(){
if(screen.width>1280||screen.height>1024)
location.href('indexlo.htm');

}

function detectx(){
if(screen.width<1280||screen.height<1024)
{
alert("This web page is best viewed with a screen resolution of 1280 by 1024 or higher. Your current resolution is "+screen.width+" by "+screen.height+". If possible please change your resolution.");
}
else{
alert("Whoa, you have a high resolution. Nice Job!");
}

}

function loadobject(c)
{
var theObj = document.getElementById(c);
theObj.src = "clips/test.wmv";
//theObj.style.visibility="hidden";
}
