 


document.write("<!--Please do not copy and use this javascript directly. -->");
document.write("<!--This script loses functionality unless called from external src file. -->");
document.write("<!--(c) 2006 eLocalLink, Inc. -->");function ellOpenWindow(url, w, h) {var windowprops = "width=" + w + ",height=" + h+", scrollbars=yes";popup = window.open(url,"remote",windowprops);}s=new Array(); function RemoteEffects(){this.r;this.t;this.b;this.c;this.u;this.MoveEffect = j;this.h = q;this.Cancel=p;this.e=0;this.a=10;this.o=3;this.f=0;this.oo=0;this.v=0;this.n=1;this.q=1;this.y=0;this.k;function q(w){sr = s[w];td = new Date();var x = td.getTime();sr.e+=(x-sr.k);sr.k = x;g=false;i = (sr.o * (sr.e/1000))+(.5*(sr.oo)*((sr.e/1000) * (sr.e/1000)));ww = Math.cos(sr.y) * i; ee = Math.sin(sr.y) * i;rr = Number(sr.o)+(Number(sr.oo)*Number(Number(sr.e)/1000));
xval=Number(sr.v)+(Number(ww)*sr.n);yval=Number(sr.qq)+(Number(ee)*sr.q);if(Math.abs(Number(i))>=Math.abs(Number(sr.b)) || rr<=0){xval=Number(sr.v)+(Number(sr.r)*sr.n);	yval=Number(sr.qq)+(Number(sr.t)*sr.q);g=true;}sr.tt.style.left=Math.round(xval)+'px';sr.tt.style.top =Math.round(yval)+'px';if(g==true){window.clearInterval(sr.u);if(typeof(sr.yy) == "function") sr.yy();}}function p(){window.clearInterval(sr.u);}function j( r, t, c, tt, uu){if(r<0) this.n=-1; else this.n=1;if(t<0) this.q=-1; else this.q=1;this.y = (Math.atan(Math.abs(t/r)));r=Math.abs(r);t=Math.abs(t);this.r = r;this.t = t;this.b = Math.sqrt((r*r)+(t*t));this.d = new Date();this.k = this.d.getTime();this.c = c;this.tt = document.getElementById(tt);this.yy = uu;this.e=0;if(this.tt.style.left) this.v = ii(this.tt.style.left); else this.v=0;if(this.tt.style.top) this.qq = ii(this.tt.style.top);else this.qq=0;w = s.length;s[w]=this;this.o = ((this.b*2)/this.c);this.oo = (this.f - this.o)/this.c;this.u = window.setInterval("s["+w+"].h("+w+")", this.a);}function ii(pp){return pp.substring(0, pp.length-2);}}Tourbook_extended=false;
Tourbook_distanceToMove=-1;
Tourbook_distanceToMoveBack=-1;
Tourbook_transitioning=false;
Tourbook_openHeight=-1;
Tourbook_closeText="";
Tourbook_openText="";
Tourbook_opening_effectobj = new RemoteEffects(); 
Tourbook_closing_effectobj = new RemoteEffects(); 

function dropDownObj(imname,imwidth, imheight, divname, extralines, openTextVal, closeTextVal){

	this.entries= new Array();
	this.links= new Array();
	this.numLines = new Array();
	this.imageName=imname;
	this.imageWidth=imwidth;
	this.imageHeight=imheight;
	this.targetDiv=divname;
	this.addEntry=addEntryFunc;
	this.draw=drawDropdown;
	this.height=0;
	this.spacing=26;
	this.isOpen=false;
	this.extraLineSpace=extralines*13;
	this.onchange=null;
	this.openText=openTextVal;
	this.setExtraLines=setExtraLinesFunc;
	this.setNumLines=setNumLinesFunc;
	Tourbook_openText=openTextVal;
	Tourbook_closeText=closeTextVal;
}

function addEntryFunc(textVal, linkVal){
	this.entries.push(textVal);
	this.links.push(linkVal);
	this.numLines.push(0);
	this.height+=this.spacing;
}

function returnToNormal(num){
	document.getElementById('highlightdiv'+num).style.backgroundColor="";
}

function changeBackground(num){
	document.getElementById('highlightdiv'+num).style.backgroundColor="#e0e9fb";	
}

function setExtraLinesFunc(num){
	this.extraLineSpace=num*13;		
}

function setNumLinesFunc(pos, num){
	this.numLines[pos]=num;
}

function drawDropdown(){
	
	var eDiv=document.createElement("DIV");
	eDiv.style.position="absolute";
	eDiv.style.width="159px";
	Tourbook_openHeight=this.height+this.extraLineSpace+59;
	eDiv.style.height="40px";
	
	Tourbook_distanceToMove=this.height+this.extraLineSpace+4;
	Tourbook_distanceToMoveBack=(-1)*(this.height+this.extraLineSpace+4);
	
	eDiv.style.top="38px"
	eDiv.style.borderWidth="0px";
	eDiv.style.borderColor="#000000";
	eDiv.style.borderStyle="solid";
	eDiv.style.overflow="hidden";
	eDiv.style.display="block";
	//eDiv.style.zIndex="200";
	eDiv.id="hider";
	document.getElementById(this.targetDiv).appendChild(eDiv);
	
	eDiv=document.createElement("DIV");
	eDiv.id="bundle";
	eDiv.style.position="absolute";
	//eDiv.style.zIndex="100";
	eDiv.style.top="-"+String(this.height+this.extraLineSpace+4)+"px";
	document.getElementById("hider").appendChild(eDiv);
	
	document.getElementById("bundle").appendChild(buildDiv(1,0,"159px","auto", "", "paneldiv"));
	
	for(i=0;i<this.entries.length;i++){
		
		var thehref=document.createElement("A");
		thehref.href=this.links[i];
		thehref.target="_blank";
		thehref.id="linkhighlight"+i;
		thehref.style.textDecoration="none";
		
		var eDiv=document.createElement("DIV");
		eDiv.innerHTML="<font style='text-decoration:none; color:#000000'>"+this.entries[i]+"</font>";
		if(i==0)
			eDiv.style.paddingTop="15px";
		else
			eDiv.style.paddingTop="5px";
		
		eDiv.style.paddingBottom="5px";
		eDiv.style.borderWidth="0px";
		eDiv.style.borderColor="#000000";
		eDiv.style.borderStyle="solid";
		eDiv.style.cursor="pointer";
		eDiv.id="highlightdiv"+i;
		eDiv.style.height="14px";
		
		
		
		eDiv.style.whiteSpace="normal";
		eDiv.style.width="151px";
		eDiv.style.paddingLeft="10px";
		eDiv.style.marginLeft="4px";
		eDiv.style.position="relative";
		eDiv.style.fontFamily="Arial, Helvetica, sans-serif";
		eDiv.style.fontSize="11px";
		//thehref.appendChild(eDiv);
		//document.getElementById("paneldiv").appendChild(thehref);
		
		height_to_use=14;
		if(quirks_mode_flag){
			if(quirks_mode_flag=="q" && browserName=="Explorer") 	height_to_use=24;
		}
		
		if(i==0){
			document.getElementById("paneldiv").innerHTML+="<a href=\"javascript:ellOpenWindow('"+this.links[i]+"', 874, 692)\" id=\"linkhighlight"+i+"\" style=\" text-decoration:none\" ><div onmouseout=\"javascript:returnToNormal("+i+")\" onmouseover=\"javascript:changeBackground("+i+")\" style=\"padding-bottom:5px; border-width:0px; border-color:#000000; border-style:solid;padding-top:15px;  background-image:url(http://www.elocallink.tv/ellsrc/spacer.gif); cursor:pointer; height:"+(height_to_use+(this.numLines[i]*13))+"px; white-space:normal; width:151px; padding-left:0px; margin-left:4px; position:relative; font-family:Arial, Helvetica, sans-serif; line-height:12px;font-size:11px\" id=\"highlightdiv"+i+"\"><p style=\"margin:0px;font-family:Arial, Helvetica, sans-serif; line-height:12px;font-size:11px; margin-left:5px;text-decoration:none; padding:0px; font-weight:bold; color:#000000\">"+this.entries[i]+"</p></div></a>";
		}else{
				document.getElementById("paneldiv").innerHTML+="<a href=\"javascript:ellOpenWindow('"+this.links[i]+"', 874, 692)\" id=\"linkhighlight"+i+"\" style=\" text-decoration:none\" ><div onmouseout=\"javascript:returnToNormal("+i+")\" onmouseover=\"javascript:changeBackground("+i+")\" style=\"padding-bottom:5px;padding-top:5px; border-width:0px; background-image:url(http://www.elocallink.tv/ellsrc/spacer.gif); border-color:#000000; border-style:solid; cursor:pointer; height:"+(height_to_use+(this.numLines[i]*13))+"px; white-space:normal; width:151px; padding-left:0px; margin-left:4px; position:relative; font-family:Arial, Helvetica, sans-serif; line-height:12px;font-size:11px\" id=\"highlightdiv"+i+"\"><p style=\"margin:0px; font-family:Arial, Helvetica, sans-serif; line-height:12px;font-size:11px; text-decoration:none; margin-left:5px; padding:0px; font-weight:bold; color:#000000\">"+this.entries[i]+"</p></div></a>";
		}
		//document.getElementById("highlightdiv"+i).onmouseover="javascript:changeBackground("+i+");";
		//document.getElementById("highlightdiv"+i).onmouseout="javascript:returnToNormal("+i+");";
		
		
		eDiv=document.createElement("DIV");
		eDiv.style.height="1px";
		eDiv.style.width="151px";
		eDiv.style.overflow="hidden";
		eDiv.style.marginLeft="4px";
		eDiv.style.backgroundColor="#AAAAAA";
		document.getElementById("paneldiv").appendChild(eDiv);
		eDiv=document.createElement("DIV");
		eDiv.style.overflow="hidden";
		eDiv.style.height="1px";
		eDiv.style.width="151px";
		eDiv.style.marginLeft="4px";
		eDiv.style.backgroundColor="#FFFFFF";
		document.getElementById("paneldiv").appendChild(eDiv);
															
	}
	
	
	//Add the click to open/close div
	var thehref=document.createElement("A");
		thehref.href="javascript:cgiClickedFunc()";
		thehref.style.textDecoration="none";
		
		
		var eDiv=document.createElement("DIV");
		eDiv.style.textAlign="center";
		eDiv.innerHTML="<font style='font-weight:bold; text-decoration:none; color:#5ba6eb'>"+this.openText+"</font>";
		if(i==0)
			eDiv.style.paddingTop="15px";
		else
			eDiv.style.paddingTop="5px";
		eDiv.style.paddingBottom="0px";
		eDiv.style.borderWidth="0px";
		eDiv.style.borderColor="#000000";
		eDiv.style.borderStyle="solid";
		eDiv.style.cursor="pointer";
		eDiv.id="openclose";
	
		eDiv.style.height="auto";
		eDiv.style.whiteSpace="normal";
		eDiv.style.width="132px";
		eDiv.style.marginLeft="12px";
		eDiv.style.position="relative";
		eDiv.style.fontFamily="Arial, Helvetica, sans-serif";
		eDiv.style.fontSize="11px";
		thehref.appendChild(eDiv);
		document.getElementById("paneldiv").appendChild(thehref);

	
/*	eDiv=document.createElement("DIV");
	eDiv.style.position="relative";
	eDiv.style.marginLeft="1px";
	var eImg=document.createElement("IMG");
	eImg.src="http://www.elocallink.tv/ellsrc/img/lowertip.png";
	eDiv.appendChild(eImg);
	document.getElementById("bundle").appendChild(eDiv);*/
	
	writeImageToDivWithID(this.imageName, this.imageWidth,this.imageHeight, 0, 0, this.targetDiv, "", "javascript:cgiClickedFunc()");
	
	document.getElementById("bundle").innerHTML+="<div id=\"lowertipdiv\" style=\"margin-left:1px\"></div>";
	writeImageToDivWithID("http://www.elocallink.tv/ellsrc/img/lowertip.png", 159,13, 0, 0, "lowertipdiv", "", "");


}


function cgiClickedFunc(){
	if(Tourbook_transitioning==true) return;
	Tourbook_transitioning=true;
	if(Tourbook_extended==true){
		document.getElementById('openclose').innerHTML="<font style='font-weight:bold; text-decoration:none; color:#5ba6eb'>"+Tourbook_openText+"</font>";
		Tourbook_closing_effectobj.MoveEffect(0, Tourbook_distanceToMoveBack, .6, "bundle", function(){Tourbook_extended=false;Tourbook_transitioning=false;document.getElementById('hider').style.height='40px';});
		//new Effect.Move ('bundle',{ x: 0, y: Tourbook_distanceToMoveBack, duration:.6, mode: 'relative', afterFinish:function(){Tourbook_extended=false;Tourbook_transitioning=false;document.getElementById('hider').style.height='40px'}});
	}
	else{
		document.getElementById('openclose').innerHTML="<font style='font-weight:bold; text-decoration:none; color:#5ba6eb'>"+Tourbook_closeText+"</font>";
		document.getElementById('hider').style.height=Tourbook_openHeight+'px';
		Tourbook_opening_effectobj.MoveEffect(0, Tourbook_distanceToMove, .6, "bundle", function(){Tourbook_extended=true;Tourbook_transitioning=false;});		
		//new Effect.Move ('bundle',{ x: 0, y: Tourbook_distanceToMove, duration:.6, mode: 'relative', afterFinish:function(){Tourbook_extended=true;Tourbook_transitioning=false;}});
	}
}

function buildDiv(x,y, width, height, inText, idval)
{
var eDiv=document.createElement("DIV");
eDiv.id=idval;
eDiv.style.width=String(width);
eDiv.style.height=String(height);
eDiv.style.position="relative";
eDiv.style.marginLeft=String(x)+"px";
eDiv.style.marginTop=String(y)+"px";
eDiv.style.overflow="hidden";
//eDiv.style.whiteSpace="nowrap";
eDiv.style.borderWidth="0px";
eDiv.style.borderColor="#000000";
eDiv.style.borderStyle="solid";

	
if(browserName=="Explorer"){
	if(	Number(browserVersion<7)){
		eDiv.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='http://www.elocallink.tv/ellsrc/img/midvert.png')";
	}
	else{
		eDiv.style.backgroundImage="url(http://www.elocallink.tv/ellsrc/img/midvert.png)";
	}
}
else{
		eDiv.style.backgroundImage="url(http://www.elocallink.tv/ellsrc/img/midvert.png)";
}

eDiv.style.fontFamily="Arial, Helvetica, sans-serif";
eDiv.style.fontSize="12px";
eDiv.innerHTML=inText;
return eDiv;
}

var browserName;
var browserVersion;
var quirks_mode_flag="sc";

function writeRelativeImageToDiv(imageName, width, height, xPos, yPos, divName, linkNameVar){
	
	if(browserName=="Explorer"){
		if(	Number(browserVersion<7)){
			if(linkNameVar!="")
				document.getElementById(divName).innerHTML+='<a href="'+linkNameVar+'"><img src="http://www.elocallink.tv/ellsrc/img/spacer.gif" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+imageName+'\', sizingMethod=\'scale\'); border-width:0px; position:relative; margin-left:'+xPos+'px; margin-top:'+yPos+'px; width:'+width+'px; height:'+height+'px;" ></a>';
			else
				document.getElementById(divName).innerHTML+='<img src="http://www.elocallink.tv/ellsrc/img/spacer.gif" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+imageName+'\', sizingMethod=\'scale\'); border-width:0px; position:relative; margin-left:'+xPos+'px; margin-top:'+yPos+'px; width:'+width+'px; height:'+height+'px;" >';
			return;
		}
	}
	
	if(linkNameVar!="")
		document.getElementById(divName).innerHTML+="<a href='"+linkNameVar+"'><img src='"+imageName+"' style='border-width:0px; position:relative; width:"+width+"px; height:"+height+"px; margin-left:"+xPos+"px; margin-top:"+yPos+"px;'></a>";
	else
		document.getElementById(divName).innerHTML+="<img src='"+imageName+"' style='border-width:0px; position:relative; margin-left:"+xPos+"px; width:"+width+"px; height:"+height+"px; margin-top:"+yPos+"px;'>";
}

function writeImageToDiv(imageName, width, height, xPos, yPos, divName, linkNameVar){
	
	if(browserName=="Explorer"){
		if(	Number(browserVersion<7)){
			if(linkNameVar!="")
				document.getElementById(divName).innerHTML+='<a href="'+linkNameVar+'"><img src="http://www.elocallink.tv/ellsrc/img/spacer.gif" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+imageName+'\', sizingMethod=\'scale\'); border-width:0px; position:absolute; left:'+xPos+'px; top:'+yPos+'px; width:'+width+'px; height:'+height+'px;" ></a>';
			else
				document.getElementById(divName).innerHTML+='<img src="http://www.elocallink.tv/ellsrc/img/spacer.gif" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+imageName+'\', sizingMethod=\'scale\'); border-width:0px; position:absolute; left:'+xPos+'px; top:'+yPos+'px; width:'+width+'px; height:'+height+'px;" >';
			return;
		}
	}
	
	if(linkNameVar!="")
		document.getElementById(divName).innerHTML+="<a href='"+linkNameVar+"'><img src='"+imageName+"' style='border-width:0px; position:absolute; width:"+width+"px; height:"+height+"px; left:"+xPos+"px; top:"+yPos+"px;'></a>";
	else
		document.getElementById(divName).innerHTML+="<img src='"+imageName+"' style='border-width:0px; position:absolute; left:"+xPos+"px; width:"+width+"px; height:"+height+"px;top:"+yPos+"px;'>";
}

function writeImageToDivWithID(imageName, width, height, xPos, yPos, divName, idName, linkNameVar){
	
	if(browserName=="Explorer"){
		if(	Number(browserVersion<7)){
			if(linkNameVar!="")
				document.getElementById(divName).innerHTML+='<a href="'+linkNameVar+'" style="outline: none"><img id="'+idName+'" src="http://www.elocallink.tv/ellsrc/img/spacer.gif" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+imageName+'\', sizingMethod=\'scale\'); border-width:0px; position:relative; left:'+xPos+'px; top:'+yPos+'px; width:'+width+'px; height:'+height+'px;" ></a>';
			else
				document.getElementById(divName).innerHTML+='<img id="'+idName+'" src="http://www.elocallink.tv/ellsrc/img/spacer.gif" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+imageName+'\', sizingMethod=\'scale\'); border-width:0px; position:relative; left:'+xPos+'px; top:'+yPos+'px; width:'+width+'px; height:'+height+'px;" >';
			return;
		}
	}
	
	if(linkNameVar!="")
		document.getElementById(divName).innerHTML+="<a href='"+linkNameVar+"' style='outline: none'><img  id='"+idName+"' src='"+imageName+"' style='border-width:0px; position:relative; left:"+xPos+"px; top:"+yPos+"px;'></a>";
	else
		document.getElementById(divName).innerHTML+="<img id='"+idName+"' src='"+imageName+"' style='border-width:0px; position:relative; left:"+xPos+"px; top:"+yPos+"px;'>";
}

var BrowserDetect = {
	init: function () {
		this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
		this.version = this.searchVersion(navigator.userAgent)
			|| this.searchVersion(navigator.appVersion)
			|| "an unknown version";
		this.OS = this.searchString(this.dataOS) || "an unknown OS";
		browserName=this.browser;
		browserVersion=this.version;
	},
	searchString: function (data) {
		for (var i=0;i<data.length;i++)	{
			var dataString = data[i].string;
			var dataProp = data[i].prop;
			this.versionSearchString = data[i].versionSearch || data[i].identity;
			if (dataString) {
				if (dataString.indexOf(data[i].subString) != -1)
					return data[i].identity;
			}
			else if (dataProp)
				return data[i].identity;
		}
	},
	searchVersion: function (dataString) {
		var index = dataString.indexOf(this.versionSearchString);
		if (index == -1) return;
		return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
	},
	dataBrowser: [
		{ 	string: navigator.userAgent,
			subString: "OmniWeb",
			versionSearch: "OmniWeb/",
			identity: "OmniWeb"
		},
		{
			string: navigator.vendor,
			subString: "Apple",
			identity: "Safari"
		},
		{
			prop: window.opera,
			identity: "Opera"
		},
		{
			string: navigator.vendor,
			subString: "iCab",
			identity: "iCab"
		},
		{
			string: navigator.vendor,
			subString: "KDE",
			identity: "Konqueror"
		},
		{
			string: navigator.userAgent,
			subString: "Firefox",
			identity: "Firefox"
		},
		{
			string: navigator.vendor,
			subString: "Camino",
			identity: "Camino"
		},
		{		// for newer Netscapes (6+)
			string: navigator.userAgent,
			subString: "Netscape",
			identity: "Netscape"
		},
		{
			string: navigator.userAgent,
			subString: "MSIE",
			identity: "Explorer",
			versionSearch: "MSIE"
		},
		{
			string: navigator.userAgent,
			subString: "Gecko",
			identity: "Mozilla",
			versionSearch: "rv"
		},
		{ 		// for older Netscapes (4-)
			string: navigator.userAgent,
			subString: "Mozilla",
			identity: "Netscape",
			versionSearch: "Mozilla"
		}
	],
	dataOS : [
		{
			string: navigator.platform,
			subString: "Win",
			identity: "Windows"
		},
		{
			string: navigator.platform,
			subString: "Mac",
			identity: "Mac"
		},
		{
			string: navigator.platform,
			subString: "Linux",
			identity: "Linux"
		}
	]

};
BrowserDetect.init();
var mode=document.compatMode;if(mode){if(mode=='BackCompat')quirks_mode_flag='q';else if(mode=='CSS1Compat')quirks_mode_flag='sc';else quirks_mode_flag='asc';}
  document.write('<div align=\'left\' id=\'tourbookdiv\' style=\'position:relative; width:147px; height:auto; border-width:0px; z-index:201; border-color:#000000; border-style:solid\'></div>');var tourDrop=new dropDownObj("http://www.elocallink.tv/clients3/fl/plantation/dropdown_top.png", 161, 53,"tourbookdiv", 0, "Watch Our Videos", "Click to Close"); tourDrop.addEntry("Welcome", "http://www.elocallink.tv/clients3/fl/plantation/tourplay.php?movie=plflwel_rev1&spon=welcome");tourDrop.addEntry("Quality of Life", "http://www.elocallink.tv/clients3/fl/plantation/tourplay.php?movie=plflqol_rev2&spon=qualityo");tourDrop.addEntry("Education", "http://www.elocallink.tv/clients3/fl/plantation/tourplay.php?movie=plfledu_rev2&spon=educatio");tourDrop.addEntry("Real Estate and Relocation", "http://www.elocallink.tv/clients3/fl/plantation/tourplay.php?movie=plflree_rev1&spon=realesta");tourDrop.addEntry("Plantation Preserve Golf Course", "http://www.elocallink.tv/clients3/fl/plantation/tourplay.php?movie=plflplant_rev1&spon=plantati");tourDrop.addEntry("Business Districts", "http://www.elocallink.tv/clients3/fl/plantation/tourplay.php?movie=plflbus_rev2&spon=business");tourDrop.addEntry("City Events", "http://www.elocallink.tv/clients3/fl/plantation/tourplay.php?movie=plflce_rev2&spon=cityeven");tourDrop.addEntry("City Parks", "http://www.elocallink.tv/clients3/fl/plantation/tourplay.php?movie=plflprks_rev2&spon=citypark");tourDrop.addEntry("Economic Development", "http://www.elocallink.tv/clients3/fl/plantation/tourplay.php?movie=plfleco_rev2&spon=economic");tourDrop.addEntry("Beautification", "http://www.elocallink.tv/clients3/fl/plantation/tourplay.php?movie=plflbeat_rev1&spon=treecity");tourDrop.setExtraLines(1);tourDrop.setNumLines(0,0);tourDrop.setNumLines(1,0);tourDrop.setNumLines(2,0);tourDrop.setNumLines(3,0);tourDrop.setNumLines(4,1);tourDrop.setNumLines(5,0);tourDrop.setNumLines(6,0);tourDrop.setNumLines(7,0);tourDrop.setNumLines(8,0);tourDrop.setNumLines(9,0);tourDrop.draw();