// JavaScript Document
var string = window.location.pathname.substring(1) //subtract 1 character ("/") from the pathname string (e.g. /index.html -> dex.html)
var slash = string.split("/") //transfer path string into an array
////////////////////////////////////////////////////////////////////////////////////////////
// JavaScript Document to display footer because, Server Side Includes on eprimevest is not turned on. 
//Reason for relative path creation = absolute/root path not available/provided  
//www.ePrimeVest.com //
//Smart footer menu//
// November 2008 //
// In linksArray add the website name and in the linksName the link name in the same order//
////////////////////////////////////////////////////////////////////////////////////////////
var str = ('../')

if (slash.length > 0){ //
var num = slash.length - 1
	function stringMultiplication (str, num) {
		var acc = [];
		for (var i = 0; (1 << i) <= num; i++) {
		if ((1 << i) & num)
				acc.push(str);
			str += str;
		}
		return acc.join("");
	}
var str = stringMultiplication(str,num) // Returns string (see join) containing x(../) depending on amount of sub directories -> use variable (str)
}

var logo = ('<p align="center"><a href="' + str + 'index.html" onMouseOver="window.status=') /* link for ePrimeVest */
	logo += ("'e*Primevest Home Page';")
	logo += ('return true" onMouseOut="')
	logo += ("window.status=''; ")
	logo += ('return true">')
	logo += ('<img src="' + str + 'images/pv_logo_smark.gif" width="160" height="38" border="0"></a></p>')

var	copyright  =('<p align="center" class="footer">')
	copyright +=('P<span id="smalltext">RIME</span>V<span id="smalltext">EST</span> Financial Services, Inc. is an independent, registered broker/dealer. Member ')
	copyright +=('<a href="javascript:popup')
	copyright +=("('http://www.finra.org',835,600)")
	copyright +=('">FINRA</a>/')
	copyright +=('<a href="javascript:popup')
	copyright +=("('http://www.sipc.org',835,600)")
	copyright +=('">SIPC</a>. ') 
	copyright +=("Securities and Insurance Products offered by ")
	copyright +=('P<span id="smalltext">RIME</span>V<span id="smalltext">EST</span>')
	copyright +=(": Not FDIC/NCUSIF insured &bull; May go down in value &bull; Not Financial Institution guaranteed &bull; Not a deposit &bull;")
	copyright +=(" Not insured by any federal government agency  The information in this website is for U.S. residents only and does not constitute an offer to sell, or a solicitation of an offer to purchase brokerage services to persons outside of the United States.</p>")			
document.write(logo + copyright);
////END /////////////////////////////////


