/***********************************************
* Ultimate Fade-In Slideshow (v1.51): © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var fadeimages=new Array()

fadeimages[0]=["./Home Pictures/Pic3a.bmp", "", ""] 
fadeimages[1]=["./Home Pictures/Pic6a.bmp", "", ""] 
fadeimages[2]=["./Home Pictures/Pic11a.bmp", "", ""] 
fadeimages[3]=["./Home Pictures/Pic1a.bmp", "", ""] 
fadeimages[4]=["./Home Pictures/Pic8a.bmp", "", ""] 
fadeimages[5]=["./Home Pictures/Pic9a.bmp", "", ""] 
fadeimages[6]=["./Home Pictures/Pic5a.bmp", "", ""] 
fadeimages[7]=["./Home Pictures/Pic2a.bmp", "", ""] 
fadeimages[8]=["./Home Pictures/Pic7a.bmp", "", ""] 
fadeimages[9]=["./Home Pictures/Pic4a.bmp", "", ""] 
fadeimages[10]=["./Home Pictures/Pic10a.bmp", "", ""] 
fadeimages[11]=["./Home Pictures/104DeerValley-2.jpg", "", ""] 
fadeimages[12]=["./Home Pictures/102Antler-12.jpg", "", ""] 
fadeimages[13]=["./Home Pictures/303DeerValley-8.jpg", "", ""] 
fadeimages[14]=["./Home Pictures/303DeerValley-7.jpg", "", ""] 
fadeimages[15]=["./Home Pictures/102Antler-10.jpg", "", ""] 
fadeimages[16]=["./Home Pictures/102Antler-9.jpg", "", ""] 
fadeimages[17]=["./Home Pictures/102Antler-5.jpg", "", ""] 
fadeimages[18]=["./Home Pictures/310DeerValley-10.jpg", "", ""] 
fadeimages[19]=["./Home Pictures/310DeerValley-8.jpg", "", ""] 
fadeimages[20]=["./Home Pictures/111Whitetail-9.jpg", "", ""] 
fadeimages[21]=["./Home Pictures/111Whitetail-5.jpg", "", ""] 
fadeimages[22]=["./Home Pictures/104DeerValley-10.jpg", "", ""] 
fadeimages[23]=["./Home Pictures/104DeerValley-5.jpg", "", ""] 


var fadeimages2=new Array() 
fadeimages2[0]=["./Home Pictures/Pic5b.bmp", "", ""] 
fadeimages2[1]=["./Home Pictures/Pic2b.bmp", "", ""] 
fadeimages2[2]=["./Home Pictures/Pic7b.bmp", "", ""] 

var fadeimages3=new Array() 
fadeimages3[0]=["./Home Pictures/Pic3b.bmp", "", ""] 
fadeimages3[1]=["./Home Pictures/Pic6b.bmp", "", ""] 
fadeimages3[2]=["./Home Pictures/Pic11b.bmp", "", ""] 

var fadeimages4=new Array() 
fadeimages4[0]=["./Home Pictures/Pic4b.bmp", "", ""] 
fadeimages4[1]=["./Home Pictures/Pic10b.bmp", "", ""] 
fadeimages4[2]=["./Home Pictures/Pic1b.bmp", "", ""] 
fadeimages4[3]=["./Home Pictures/Pic12b.jpg", "", ""] 

var fadeimages5=new Array() 
fadeimages5[0]=["./Home Pictures/Pic8b.bmp", "", ""] 
fadeimages5[1]=["./Home Pictures/Pic9b.bmp", "", ""] 
fadeimages5[2]=["./Home Pictures/Pic13b.bmp", "", ""] 

// ***************** Homes For Sale *****************

  var Images304DV=new Array() 
  Images304DV[0]=["./ForSale/304DeerValley-3.jpg", "", ""] 
  Images304DV[1]=["./ForSale/304DeerValley-9.jpg", "", ""] 
  Images304DV[2]=["./ForSale/304DeerValley-4.bmp", "", ""] 
  Images304DV[3]=["./ForSale/304DeerValley-7.bmp", "", ""] 
  Images304DV[4]=["./ForSale/304DeerValley-8.bmp", "", ""] 
  Images304DV[5]=["./ForSale/304DeerValley-6.bmp", "", ""] 
  Images304DV[6]=["./ForSale/304DeerValley-2.jpg", "", ""] 
  Images304DV[7]=["./ForSale/304DeerValley-5.bmp", "", ""] 

  var Images104DV=new Array() 
  Images104DV[0]=["./ForSale/104DeerValley-3.jpg", "", ""] 
  Images104DV[1]=["./ForSale/104DeerValley-2.jpg", "", ""] 
  Images104DV[2]=["./ForSale/104DeerValley-8.jpg", "", ""] 
  Images104DV[3]=["./ForSale/104DeerValley-6.jpg", "", ""] 
  Images104DV[4]=["./ForSale/104DeerValley-4.jpg", "", ""] 
  Images104DV[5]=["./ForSale/104DeerValley-9.jpg", "", ""] 
  Images104DV[6]=["./ForSale/104DeerValley-7.jpg", "", ""] 
  Images104DV[7]=["./ForSale/104DeerValley-5.jpg", "", ""] 
  Images104DV[8]=["./ForSale/104DeerValley-10.jpg", "", ""] 
  Images104DV[9]=["./ForSale/104DeerValley-11.jpg", "", ""] 

  var Images303DV=new Array() 
  Images303DV[0]=["./ForSale/303DeerValley-3.jpg", "", ""] 
  Images303DV[1]=["./ForSale/303DeerValley-2.jpg", "", ""] 
  Images303DV[2]=["./ForSale/303DeerValley-9.jpg", "", ""] 
  Images303DV[3]=["./ForSale/303DeerValley-6.jpg", "", ""] 
  Images303DV[4]=["./ForSale/303DeerValley-8.jpg", "", ""] 
  Images303DV[5]=["./ForSale/303DeerValley-5.jpg", "", ""] 
  Images303DV[6]=["./ForSale/303DeerValley-7.jpg", "", ""] 
  Images303DV[7]=["./ForSale/303DeerValley-4.jpg", "", ""] 
  Images303DV[8]=["./ForSale/303DeerValley-10.jpg", "", ""] 

  var Images310DV=new Array() 
  Images310DV[0]=["./ForSale/310DeerValley-2.jpg", "", ""] 
  Images310DV[1]=["./ForSale/310DeerValley-9.jpg", "", ""] 
  Images310DV[2]=["./ForSale/310DeerValley-5.jpg", "", ""] 
  Images310DV[3]=["./ForSale/310DeerValley-4.jpg", "", ""] 
  Images310DV[4]=["./ForSale/310DeerValley-3.jpg", "", ""] 
  Images310DV[5]=["./ForSale/310DeerValley-7.jpg", "", ""] 
  Images310DV[6]=["./ForSale/310DeerValley-8.jpg", "", ""] 
  Images310DV[7]=["./ForSale/310DeerValley-10.jpg", "", ""] 
  Images310DV[8]=["./ForSale/310DeerValley-6.jpg", "", ""] 

  var Images102ANT=new Array() 
  Images102ANT[0]=["./ForSale/102Antler-3.jpg", "", ""] 
  Images102ANT[1]=["./ForSale/102Antler-4.jpg", "", ""] 
  Images102ANT[2]=["./ForSale/102Antler-7.jpg", "", ""] 
  Images102ANT[3]=["./ForSale/102Antler-10.jpg", "", ""] 
  Images102ANT[4]=["./ForSale/102Antler-13.jpg", "", ""] 
  Images102ANT[5]=["./ForSale/102Antler-9.jpg", "", ""] 
  Images102ANT[6]=["./ForSale/102Antler-11.jpg", "", ""] 
  Images102ANT[7]=["./ForSale/102Antler-5.jpg", "", ""] 
  Images102ANT[8]=["./ForSale/102Antler-6.jpg", "", ""] 
  Images102ANT[9]=["./ForSale/102Antler-12.jpg", "", ""] 

  var Images111WT=new Array() 
  Images111WT[0]=["./ForSale/111Whitetail-8.jpg", "", ""] 
  Images111WT[1]=["./ForSale/111Whitetail-10.jpg", "", ""] 
  Images111WT[2]=["./ForSale/111Whitetail-4.jpg", "", ""] 
  Images111WT[3]=["./ForSale/111Whitetail-3.jpg", "", ""] 
  Images111WT[4]=["./ForSale/111Whitetail-9.jpg", "", ""] 
  Images111WT[5]=["./ForSale/111Whitetail-7.jpg", "", ""] 
  Images111WT[6]=["./ForSale/111Whitetail-2.jpg", "", ""] 
  Images111WT[7]=["./ForSale/111Whitetail-6.jpg", "", ""] 
  Images111WT[8]=["./ForSale/111Whitetail-5.jpg", "", ""] 

// ******************* Homes Sold *******************

  var Images109WT=new Array() 
  Images109WT[0]=["./Sold/109Whitetail-1.jpg", "", ""] 
  Images109WT[1]=["./Sold/109Whitetail-3.jpg", "", ""] 
  Images109WT[2]=["./Sold/109Whitetail-4.jpg", "", ""] 
  Images109WT[3]=["./Sold/109Whitetail-5.jpg", "", ""] 
  Images109WT[4]=["./Sold/109Whitetail-6.jpg", "", ""] 
  Images109WT[5]=["./Sold/109Whitetail-7.jpg", "", ""] 
  Images109WT[6]=["./Sold/109Whitetail-8.jpg", "", ""] 
  Images109WT[7]=["./Sold/109Whitetail-9.jpg", "", ""] 
  Images109WT[8]=["./Sold/109Whitetail-10.jpg", "", ""] 
  Images109WT[9]=["./Sold/109Whitetail-11.jpg", "", ""] 
  Images109WT[10]=["./Sold/109Whitetail-12.jpg", "", ""] 
  Images109WT[11]=["./Sold/109Whitetail-13.jpg", "", ""] 
  Images109WT[12]=["./Sold/109Whitetail-14.jpg", "", ""] 
  Images109WT[13]=["./Sold/109Whitetail-15.jpg", "", ""] 
  Images109WT[14]=["./Sold/109Whitetail-16.jpg", "", ""] 
  Images109WT[15]=["./Sold/109Whitetail-17.jpg", "", ""] 

// **************************************************

/*
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages2[0]=["photo1.jpg", "", ""] //plain image syntax
fadeimages2[1]=["photo2.jpg", "http://www.cssdrive.com", ""] //image with link syntax
fadeimages2[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax
*/

var fadebgcolor="white"

////NO need to edit beyond here/////////////

var fadearray=new Array() //array to cache fadeshow instances
var fadeclear=new Array() //array to cache corresponding clearinterval pointers

var dom=(document.getElementById) //modern dom browsers
var iebrowser=document.all

function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.degree=10 //initial opacity degree (10%)
this.curimageindex=0
this.nextimageindex=1
fadearray[fadearray.length]=this
this.slideshowid=fadearray.length-1
this.canvasbase="canvas"+this.slideshowid
this.curcanvas=this.canvasbase+"_0"
if (typeof displayorder!="undefined")
theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
this.theimages=theimages
this.imageborder=parseInt(borderwidth)
this.postimages=new Array() //preload images
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[p].src=theimages[p][0]
this.postimages[p].width=fadewidth
this.postimages[p].height=fadeheight
}

var fadewidth=fadewidth+this.imageborder*2
var fadeheight=fadeheight+this.imageborder*2

if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')

if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox
this.startit()
else{
this.curimageindex++
setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)
}
}

function fadepic(obj){
if (obj.degree<100){
obj.degree+=10
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+
obj.tempobj.filters[0].opacity=obj.degree
else //else if IE5.5-
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
}
else if (obj.tempobj.style.MozOpacity)
obj.tempobj.style.MozOpacity=obj.degree/101
else if (obj.tempobj.style.KhtmlOpacity)
obj.tempobj.style.KhtmlOpacity=obj.degree/100
else if (obj.tempobj.style.opacity&&!obj.tempobj.filters)
obj.tempobj.style.opacity=obj.degree/101
}
else{
clearInterval(fadeclear[obj.slideshowid])
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
obj.populateslide(obj.tempobj, obj.nextimageindex)
obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
}
}

fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}


fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1) //if pause onMouseover enabled, cache object
var cacheobj=this
if (this.mouseovercheck==1)
setTimeout(function(){cacheobj.rotateimage()}, 100)
else if (iebrowser&&dom||dom){
this.resetit()
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
crossobj.style.zIndex++
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var ns4imgobj=document.images['defaultslide'+this.slideshowid]
ns4imgobj.src=this.postimages[this.curimageindex].src
}
this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}

fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=this.degree/100
else if (crossobj.style.opacity&&!crossobj.filters)
crossobj.style.opacity=this.degree/101
}


fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER
var cacheobj=this
var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
this.rotateimage()
}

/*
        function initswf() {
	var flashvars = {};
	if (swfobject.hasFlashPlayerVersion("9.0.115")) { //have 9 and more than 9.0.115
	////	need to set myMovie to the flv8 address
		flashvars.video_url = "http://www.elocallink6.com/dl/fcce61d9ae489c1b3e4174430012e87f/4a5fd83d/clients6/la/lafayette/biz/lala3voh_rev1_flv8.flv";
		} else  {
		//// 	need to set mymovie to the flv7 address
			flashvars.video_url = "./Acadiana's Best LLC.flv";
		}
		////
		////
		flashvars.forcemode = 1; //remove when enviroment expands for wide screen
		flashvars.smooth_video = "true";
		flashvars.onfinish = "true";
                flashvars.fullscreen = "true";
	
		var params = {};
		params.wmode = "transparent";
		params.allowfullscreen = "true";
		var attributes = {};
		attributes.id = "player09";
		attributes.name = "player09";
		swfobject.embedSWF("/ocswf/oc6player09.swf", "ellflashcontent", "100%", "100%", "9.0.0", "/scripts/expressInstall.swf", flashvars, params, attributes);
	}
	
	function resizeSWF(width, height){		
		document.getElementById("scaled_div").style.width=width+"px";
		document.getElementById("scaled_div").style.height=height+"px";
			
	}
		
        <div id="out_scaled_div" style="position:relative; height:340px">
        	<div id="scaled_div" style="position:relative; width:400px; height:340px">
            	<div id="ellflashcontent" >&nbsp;
            	</div>
        	</div>
     	</div>
		
		function pauseMovOS6(){
			var swf=document.getElementById("player09");
			swf.justPause();
		} 
		function playMovOS6(){
			var swf=document.getElementById("player09");
			swf.justPlay();
		} 
		function muteToggleOS6(){
			var swf=document.getElementById("player09");
			swf.muteToggle();
		} 


		if (navigator.appName == "Microsoft Internet Explorer") {
			active_element = document.activeElement;
			bIsMSIE = true;
			document.body.onfocusout = function(){
				if (active_element != document.activeElement) {
					active_element = document.activeElement;
				} else {
					pauseMovOS6();
				}
			}
		} else { window.onblur = function(){pauseMovOS6();} }
		
*/



