/***********************************************
*this JavaScript is for pop-up windows.
************************************************/

function openWin(url,windowName,width,height) 
	{
	window.open(url,windowName,"width="+width+",height="+height+",scrollbars=yes,location=yes,status=yes,menubar=yes,toolbar=yes,resizable=yes, left=200, top=50");
	}


/***********************************************
*this JavaScript is for the drop-down menus.
************************************************/

/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="/about.htm"> Forward Management, LLC </a>'
menu1[1]='<a href="/mgmt-team.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Management Team </a>'
menu1[2]='<a href="/transparency.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Transparency </a>'
menu1[3]='<a href="/board.htm">    <span style="color:#666699;">-</span> Trustees </a>'
menu1[4]='<a href="/fundflows.htm">    <span style="color:#666699;">-</span> Fund Flows </a>'
menu1[5]='<a href="/ethics.htm">    <span style="color:#666699;">-</span> Code of Ethics </a>'
menu1[6]='<a href="/shareholderletter.htm">    <span style="color:#666699;">-</span> Shareholder Letter </a>'
menu1[7]='<img src="/images/nav_line_170.gif" width="170" height="1">'
menu1[8]='<a href="/news.htm"> News </a>'
menu1[9]='<a href="/news.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Forward in the News </a>'
menu1[10]='<a href="/press-releases.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Press Releases </a>'
menu1[11]='<a href="/forpress.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> For the Press </a>'
menu1[12]='<img src="/images/nav_line_170.gif" width="170" height="1">'
menu1[13]='<a href="/contact.htm"> Contact Us </a>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="/funds.htm"> Forward Funds </a>'
menu2[1]='<a href="/perf-hssax.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Banking and Finance </a>'
menu2[2]='<a href="/perf-pgerx.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Emerging Markets </a>'
menu2[3]='<a href="/perf-kgiax.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Global Infrastructure </a>'
menu2[4]='<a href="/perf-hspgx.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Growth </a>'
menu2[5]='<a href="/perf-ffinx.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> International Equity </a>'
menu2[6]='<a href="/perf-ffxrx.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> International Fixed Income </a>'
menu2[7]='<a href="/perf-kirax.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> International Real Estate </a>'
menu2[8]='<a href="/perf-pisrx.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> International Small Companies </a>'
menu2[9]='<a href="/perf-fflax.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Large Cap Equity </a>'
menu2[10]='<a href="/perf-fflmx.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Legato </a>'
menu2[11]='<a href="/perf-flsrx.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Long/Short Credit Analysis </a>'
menu2[12]='<a href="/perf-ffrex.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Real Estate</a>'
menu2[13]='<a href="/perf-kifax.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Select Income </a>'
menu2[14]='<a href="/perf-ffscx.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Small Cap Equity </a>'
menu2[15]='<a href="/perf-ksrax.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Strategic Realty </a>'
menu2[16]='<a href="/perf-fftgx.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Tactical Growth </a>'
menu2[17]='<img src="/images/nav_line_215.gif" width="215" height="1">'
menu2[18]='<a href="/commentary.htm"> Fund Commentary </a>'
menu2[19]='<img src="/images/nav_line_215.gif" width="215" height="1">'
menu2[20]='<a href="/reflow-forward.htm"> ReFlow and Forward Funds </a>'

//Contents for menu 3, and so on
var menu3=new Array()
menu3[0]='<a href="/nav-investor.htm"> Daily Nav </a>'
menu3[1]='<a href="/nav-investor.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Investor Class </a>'
menu3[2]='<a href="/nav-inst.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Institutional Class </a>'
menu3[3]='<a href="/nav-ac.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> A&C Shares </a>'
menu3[4]='<a href="/nav-b.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> B Shares </a>'
menu3[5]='<img src="/images/nav_line_160.gif" width="160" height="1">'
menu3[6]='<a href="/performance-mon.htm"> Month-End Performance </a>'
menu3[7]='<a href="/performance-mon.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Investor Class </a>'
menu3[8]='<a href="/performance-mon-inst.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Institutional Class </a>'
menu3[9]='<a href="/performance-mon-ac.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> A&C Shares </a>'
menu3[10]='<a href="/performance-mon-b.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> B Shares </a>'
menu3[11]='<img src="/images/nav_line_160.gif" width="160" height="1">'
menu3[12]='<a href="/performance-qtrly.htm"> Quarter-End Performance </a>'
menu3[13]='<a href="/performance-qtrly.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Investor Class </a>'
menu3[14]='<a href="/performance-qtrly-inst.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Institutional Class </a>'
menu3[15]='<a href="/performance-qtrly-ac.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> A&C Shares </a>'
menu3[16]='<a href="/performance-qtrly-b.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> B Shares </a>'
menu3[17]='<img src="/images/nav_line_160.gif" width="160" height="1">'
menu3[18]='<a href="/distributions-estimated.htm"> Distributions </a>'
menu3[19]='<a href="/distributions-estimated.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Schedule </a>'
menu3[20]='<a href="/distributions-history.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> History </a>'

//Contents for menu 4, and so on
var menu4=new Array()
menu4[0]='<a href="/invest.htm"> How to Invest </a>'
menu4[1]='<img src="/images/nav_line_205.gif" width="205" height="1">'
menu4[2]='<a href="/accounts.htm"> Types of Accounts </a>'
menu4[3]='<img src="/images/nav_line_205.gif" width="205" height="1">'
menu4[4]='<a href="/invest.htm"> Prospectuses and Annual Reports </a>'
menu4[5]='<img src="/images/nav_line_205.gif" width="205" height="1">'
menu4[6]='<a href="/invest.htm#downloadapp"> Applications and Forms </a>'
menu4[7]='<img src="/images/nav_line_205.gif" width="205" height="1">'
menu4[8]='<a href="/commentary.htm"> Fund Commentary </a>'
menu4[9]='<img src="/images/nav_line_205.gif" width="205" height="1">'
menu4[10]='<a href="/performance-mon.htm"> Performance </a>'
menu4[11]='<a href="/nav-investor.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Daily NAVs </a>'
menu4[12]='<a href="/nav-investor.htm">    <span style="color:#666699;">-</span> Investor Class </a>'
menu4[13]='<a href="/nav-inst.htm">    <span style="color:#666699;">-</span> Institutional Class </a>'
menu4[14]='<a href="/nav-ac.htm">    <span style="color:#666699;">-</span> A&C Share Classes </a>'
menu4[15]='<a href="/performance-mon.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Month-End Performance </a>'
menu4[16]='<a href="/performance-mon.htm">    <span style="color:#666699;">-</span> Investor Class </a>'
menu4[17]='<a href="/performance-mon-inst.htm">    <span style="color:#666699;">-</span> Institutional Class </a>'
menu4[18]='<a href="/performance-mon-ac.htm">    <span style="color:#666699;">-</span> A&C Share Classes </a>'
menu4[19]='<a href="/performance-qtrly.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Quarter-End Performance </a>'
menu4[20]='<a href="/performance-qtrly.htm">    <span style="color:#666699;">-</span> Investor Class </a>'
menu4[21]='<a href="/performance-qtrly-inst.htm">    <span style="color:#666699;">-</span> Institutional Class </a>'
menu4[22]='<a href="/performance-qtrly-ac.htm">    <span style="color:#666699;">-</span> A&C Share Classes </a>'


//Contents for menu 5, and so on
var menu5=new Array()
menu5[0]='<a href="/invest-prof.htm"> Prospectuses and Annual Reports </a>'
menu5[1]='<img src="/images/nav_line_205.gif" width="205" height="1">'
menu5[2]='<a href="/commentary.htm"> Fund Commentary </a>'
menu5[3]='<img src="/images/nav_line_205.gif" width="205" height="1">'
menu5[4]='<a href="/funds.htm"> Funds Overview </a>'
menu5[5]='<img src="/images/nav_line_205.gif" width="205" height="1">'
menu5[6]='<a href="/performance-mon-inst.htm"> Performance </a>'
menu5[7]='<a href="/nav-investor.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Daily NAVs </a>'
menu5[8]='<a href="/nav-investor.htm">    <span style="color:#666699;">-</span> Investor Class </a>'
menu5[9]='<a href="/nav-inst.htm">    <span style="color:#666699;">-</span> Institutional Class </a>'
menu5[10]='<a href="/nav-ac.htm">    <span style="color:#666699;">-</span> A&C Share Classes </a>'
menu5[11]='<a href="/performance-mon.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Month-End Performance </a>'
menu5[12]='<a href="/performance-mon.htm">    <span style="color:#666699;">-</span> Investor Class </a>'
menu5[13]='<a href="/performance-mon-inst.htm">    <span style="color:#666699;">-</span> Institutional Class </a>'
menu5[14]='<a href="/performance-mon-ac.htm">    <span style="color:#666699;">-</span> A&C Share Classes </a>'
menu5[15]='<a href="/performance-qtrly.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Quarter-End Performance </a>'
menu5[16]='<a href="/performance-qtrly.htm">    <span style="color:#666699;">-</span> Investor Class </a>'
menu5[17]='<a href="/performance-qtrly-inst.htm">    <span style="color:#666699;">-</span> Institutional Class </a>'
menu5[18]='<a href="/performance-qtrly-ac.htm">    <span style="color:#666699;">-</span> A&C Share Classes </a>'
menu5[19]='<img src="/images/nav_line_205.gif" width="205" height="1">'

//Contents for menu 6, and so on
var menu6=new Array()
menu6[0]='<a href="/invest.htm"> Invest </a>'
menu6[1]='<a href="/invest.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Individual Investors </a>'
menu6[2]='<a href="/invest-prof.htm">  <img src="/images/bullet_tall.gif" border="0" width="4" height="16"> Investment Professionals </a>'

var menuwidth='165px' //default menu width
var menubgcolor='#000033'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="z-index:300;visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=2
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu
/***********************************************
*end of JavaScript for the drop-down menus.
************************************************/

/***********************************************
*This is to check the form fields on the Investment
*Insight form page before submitting the form.
************************************************/

function formCheck(formobj){
	// name of mandatory fields
	var fieldRequired
	var fieldDescription
	
	fieldRequired = Array("salutation","first_name", "last_name","address1","city","state","email","zip");
	// field description to appear in the dialog box
	fieldDescription = Array("Prefix","First Name", "Last Name","Address","City","State","E-mail","Zip");
	

	// dialog message
	var alertMsg = "Please complete the following fields:\n";
	
	var l_Msg = alertMsg.length;
	
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		if (obj){
			switch(obj.type){
			case "select-one":
				if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == "Please Select"){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
				
			case 'radio':
			if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == "Please Select"){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
			 if (document.form.email_updates[0].checked == false && document.form.email_updates[1].checked == false){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}
	}

var obj2 = formobj.elements["send_material"];
		
if (obj2){
	if (obj2.options[obj2.selectedIndex].text == "Electronic Only" || obj2.options[obj2.selectedIndex].text == "Electronic & Hard Copy"){
		if (formobj.elements['email'].value == "") {
			alertMsg += " - " + "E-mail" + "\n";
		}
	}
	if (obj2.options[obj2.selectedIndex].text == "Hard Copy Only" || obj2.options[obj2.selectedIndex].text == "Electronic & Hard Copy") {
		if (formobj.elements['address1'].value == "") {
			alertMsg += " - " + "Address" + "\n";
		}
		if (formobj.elements['city'].value == "") {
			alertMsg += " - " + "City" + "\n";
		}
		if (formobj.elements['state'].value == "") {
			alertMsg += " - " + "State" + "\n";
		}
		if (formobj.elements['zip'].value == "") {
			alertMsg += " - " + "Zip" + "\n";
		}
	}	
}else{
}

	if (document.form.zip.value != ""){
		if (document.form.zip.value.length < 5){
		alertMsg += " - " + "Zip field must contain at least 5 characters" + "\n";
		}
	}
	
	if ((document.form.area_code.value != "") || (document.form.phone.value != "") || (document.form.phone2.value != "")) {
		if ((document.form.area_code.value.length < 3) || (document.form.phone.value.length < 3) || (document.form.phone2.value.length < 4)) {
		alertMsg += " - " + "Please enter your full phone number with area code" + "\n";
		}
	}


if (alertMsg.length == l_Msg){
	return true;
}else{
	alert(alertMsg);
	return false;
}
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


	
/***********************************************
*End of Form Fields check.
************************************************/


/*Original script borrowed from http://web.uvic.ca/atrsweb/vikes/default.html -->
Implemented at Kwantlen 26 June 2000 DMH*/
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}

