//   *****************************************************
//   ***           web icon begin            ***
//   *****************************************************
document.write("<link rel='shortcut icon' href='/favicon.ico' type='image/ico'>")
//   web icon end 


//   *****************************************************
//   ***           search box scripts begin            ***
//   *****************************************************
var search_box = "<input type=\"hidden\" name=\"ct\" value=\"Public\" size=\"23\">"
+ "<input type=\"hidden\" name=\"advanced\" value=\"yes\"><input type=\"text\" size=\"10\" name=\"q1\" style=\"height: 17px; font-size: 9px; width: 100px; margin-top: 0px; margin-right: 10px;\">"
+ "<input type=\"image\" src=\"/images/build/clear.gif\" border=\"0\" alt=\"\">"
//   search box scripts end





//   *****************************************************
//   ***        office locator scripts begin           ***
//   *****************************************************
function offlocsubmitIt() {
	var link_to
	if (document.locate_office.zip.value == "")
		{alert("Please fill out a zip code or Financial Advisor last name.");return false;}

	else if(document.locate_office.zip.value.indexOf("1") > -1 || document.locate_office.zip.value.indexOf("2") > -1 || document.locate_office.zip.value.indexOf("3") > -1 || document.locate_office.zip.value.indexOf("4") > -1 || document.locate_office.zip.value.indexOf("5") > -1 || document.locate_office.zip.value.indexOf("6") > -1 || document.locate_office.zip.value.indexOf("7") > -1 || document.locate_office.zip.value.indexOf("8") > -1 || document.locate_office.zip.value.indexOf("9") > -1 || document.locate_office.zip.value.indexOf("0") > -1 )
		{link_to = "http://www.raymondjames.com/advisorsearch/mqinterconnect.exe"}

	else {link_to = "http://www.raymondjames.com/advisorsearch/list_fas.asp"
	document.forms.locate_office.last_name.value = document.forms.locate_office.zip.value}


document.forms.locate_office.method = "get"
document.forms.locate_office.action = link_to
		return true;
	}


var offloc_form = "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"width: 179px; margin-left: 10px; margin-right: 10px; \"><tr><td bgcolor=\"#F3F3F7\"><form action=\"\" method=\"get\" name=\"locate_office\" onsubmit=\"return offlocsubmitIt();\"><input type=\"HIDDEN\" name=\"closestprox\" value=\"1\"> <input type=\"HIDDEN\" name=\"closestn\" value=\"20\"> <input type=\"HIDDEN\" name=\"miles\" value=\"50\"> <input type=\"HIDDEN\" name=\"mouse_mode\" value=\"center\"> <input type=\"HIDDEN\" name=\"screen\" value=\"locate_office\"> <input type=\"HIDDEN\" name=\"link\" value=\"list_offices\"> <!-- lat and lng were added for the weston fl fix --><input type=\"HIDDEN\" name=\"lat\" value=\"\"> <input type=\"HIDDEN\" name=\"lng\" value=\"\"><input type=\"HIDDEN\" name=\"clientPOI1\" value=\"1\"> <input type=\"HIDDEN\" name=\"clientPOI2\" value=\"1\"> <input type=\"HIDDEN\" name=\"last_name\" value=\"\"> <div style=\"font-family: arial; font-size: 11px; background: #782642; color: white; padding: 1px; text-transform: uppercase; text-align: center; margin-bottom: 0px; margin-right: 0px;\">Find your local branch</div><div style=\"font-family: arial; font-size: 10px; margin-left: 3px; margin-right: 3px; margin-top: 2px; margin-bottom: 0px;\"><input name=\"zip\" maxlength=\"10\" size=\"15\" value=\"\" size=\"20\" style=\"background: #ffffff; font-weight: normal; width: 125px; margin-right: 3px; height: 20px;\"><input type=\"submit\" value=\"Go\" style=\"background: #782642; color: #ffffff; font-weight: bold; height: 20px; font-size: 12px;\"><br> Enter zip code or Financial Advisor&#146;s last name.<br><div style=\"margin-left: 0px; margin-top: 5px;margin-bottom: 0px;\"><a href=\"http://www.raymondjames.com/advisorsearch/mqinterconnect.exe?link=locate_office&clientPOI1=1&clientPOI2=1\">Advanced branch search</a><br><a href=\"http://www.raymondjames.ca/\">International branches</a></div></div></form></td></tr></table>"


// office locator scripts end

// variable for bkg on or off
var background = true


// top nav arrow - turn off if set to false in page
var top_nav_arrow = true

// check to see if the browser is IE 4 or better of NS 6+
var new_browser
if(document.getElementById || document.all){new_browser = true}
else {new_browser = false}
var id





var show_it = "visible"
var hide_it = "hidden"

function toggleLayer(id) {
	if(new_browser){
		if(document.all) {var obj = document.all(id).style}
		if(document.getElementById){var obj = document.getElementById(id).style}
		if(document.layers) {var obj = document.layers[id]; show_it = "show"; hide_it = "hide"}
		if(navigator.userAgent.indexOf("Opera")==0) {show_it = "VISIBLE"; hide_it = "HIDDEN"}
		if(obj.visibility == hide_it){obj.visibility = show_it}
		else {obj.visibility = hide_it}	
	}
}

function showLayer(id) {
	if(new_browser){
		if(document.all) {var obj = document.all(id).style}
		if(document.getElementById){var obj = document.getElementById(id).style}
		if(document.layers) {var obj = document.layers[id]; show_it = "show"; hide_it = "hide"}
		if(navigator.userAgent.indexOf("Opera")==0) {show_it = "VISIBLE"; hide_it = "HIDDEN"}
		obj.visibility = show_it

	}
}

function hideLayer(id) {
	if(new_browser){
		if(document.all) {var obj = document.all(id).style}
		if(document.getElementById){var obj = document.getElementById(id).style}
		if(document.layers) {var obj = document.layers[id]; show_it = "show"; hide_it = "hide"}
		if(navigator.userAgent.indexOf("Opera")==0) {show_it = "VISIBLE"; hide_it = "HIDDEN"}
		obj.visibility = hide_it
	}
}

