var speed	= 4000;
var fade 	= 150;
var pic 	= new Array(); // don't change this
var txt 	= new Array(); // don't change this

pic[1]  = 'images/facebook/button.gif';
pic[2]  = 'images/calendar/calendar.gif';
pic[3]  = 'club/images/marketing.gif';
pic[4]	=	'images/marketing/onphc_logo.gif';
pic[5]  = 'images/funplex/button.jpg';
pic[5]  = 'images/marketing/cis_button.gif';
pic[6]  = 'images/uno/uno.gif';
pic[7]  = 'floater/btn/button.gif';

txt[1]  = "http://www.facebook.com/pages/Omaha-NE/Firewater-Grille/44801868369";
txt[2]  = "calendar.asp";
txt[3]  = "club.asp";
txt[4]  = "http://www.omahaparrotheadclub.com/";
txt[5]  = "http://www.omahacis.com/specials.asp";
txt[5]  = "http://www.omahacis.com/specials.asp";
txt[6]  = "uno.asp";
txt[7]  = "blog/index.php";

var x;
var y1 			= 1;
var z;
var sCnt 		= pic.length-1;
var preLoad = new Array();

for (x = 1; x < sCnt+1; x++){
		preLoad[x] 		 = new Image();
		preLoad[x].src = pic[x];}

function runSlides(){
if (document.all){
		document.images.PicImg1.style.filter="blendTrans(duration=fade)";
		document.images.PicImg1.filters.blendTrans.Apply();
		document.images.PicImg2.style.filter="blendTrans(duration=fade)";
		document.images.PicImg2.filters.blendTrans.Apply();
		document.images.PicImg3.style.filter="blendTrans(duration=fade)";
		document.images.PicImg3.filters.blendTrans.Apply();
		document.images.PicImg4.style.filter="blendTrans(duration=fade)";
		document.images.PicImg4.filters.blendTrans.Apply();}

y2 = y1 - 1
y3 = y1 - 2
y4 = y1 - 3

if (y2 < 1){y2 = y2 + sCnt}
if (y3 < 1){y3 = y3 + sCnt}
if (y4 < 1){y4 = y4 + sCnt}

document.images.PicImg1.src = preLoad[y1].src;
document.images.PicImg2.src = preLoad[y2].src;
document.images.PicImg3.src = preLoad[y3].src;
document.images.PicImg4.src = preLoad[y4].src;

if (document.getElementById) document.getElementById("Txt1").href= txt[y1];
if (document.all) document.images.PicImg1.filters.blendTrans.Play();
if (document.getElementById) document.getElementById("Txt2").href= txt[y2];
if (document.all) document.images.PicImg2.filters.blendTrans.Play();
if (document.getElementById) document.getElementById("Txt3").href= txt[y3];
if (document.all) document.images.PicImg3.filters.blendTrans.Play();
if (document.getElementById) document.getElementById("Txt4").href= txt[y4];
if (document.all) document.images.PicImg4.filters.blendTrans.Play();

y1 = y1 + 1;

if (y1 > (sCnt)) y1=1;
z = setTimeout('runSlides()', speed);
}