/*****************  Tell your friend  *****************************/

<!-- Begin

//Tell-a-friend script
//Carl Dimmer

var initialsubj="I found a page I would like to share with you."
var initialmsg="You may be interested in this site: "+window.location



var good;
function checkEmailAddress(field) {

var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.info)|(\.sex)|(\.biz)|(\.aero)|(\.coop)|(\.museum)|(\.name)|(\.pro)|(\..{2,2}))$)\b/gi);
if (goodEmail) {
good = true;
}
else {
alert('Please enter a valid address.');
field.focus();
field.select();
good = false;
   }
}
u = window.location;
function mailThisUrl() {
good = false
checkEmailAddress(document.eMailer.email);
if (good) {

//window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+document.title+" "+u;
window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+initialmsg
   }
}


//  End -->



/*****************  Date  *****************************/


        <!-- Hide from JavaScript-Impaired Browsers
        function displayDate() {
                 var isnMonths=new Array("January","February","March","April",
                                         "May","June","July","August","September",
                                         "October","November","December");
                 var   isnDays=new Array("Sunday","Monday","Tuesday","Wednesday",
                                         "Thursday","Friday","Saturday","Sunday");
                 today=new Date();
                 year = today.getYear();
                 if (year < 10) year=year+2000;  // (y2k check)
                 if (year < 2000) year=year+1900;  // (y2k check)
                 document.write(isnDays[today.getDay()]+", "+isnMonths[today.getMonth()]+" "+today.getDate()+", "+year);
                 }
        // End Hiding -->



/***********************************************
* AnyLink Vertical 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  (About)
var menu1=new Array()  
menu1[0]='<a href="about.jsp#mission">Our Mission and Creed</a>'
menu1[1]='<a href="about.jsp#ezone">Hottinger "E-Zone" Signals</a>'
menu1[2]='<a href="about.jsp#privacy">Your Privacy</a>'
menu1[3]='<a href="about.jsp#questions">Your Questions</a>'
menu1[4]='<a href="about.jsp#company">Our Company</a>'
menu1[5]='<a href="InvestorRelations.jsp">Investor Relations</a>'
menu1[6]='<a href="pr.jsp">Press Releases</a>'
// menu1[7]='<a href="about.jsp#cobrand">Co-Branding</a>'
menu1[7]='<a href="testimonials.jsp">Testimonials</a>'


//Contents for menu 2 (Products)
var menu2=new Array()
menu2[0]='<a href="products.jsp?prodDesc=Ezone">E-Zone System</a>'
menu2[1]='<a href="products.jsp?prodDesc=InvestmentQualityTrades">Investment Quality Trade</a>'
menu2[2]='<a href="products.jsp?prodDesc=ProfessionalSignals"">Professional Signals</a>'


// Contents for menu 3 (Contact Us)
// var menu3=new Array()
// menu3[0]='<a href="cobrand.jsp">Co-Brand Partnership</a>'
// menu3[0]='<a href="InvestorRelations.jsp">Investor Relations</a>'
// menu3[1]='<a href="feedback.jsp">Contact Us</a>'

//Contents for menu 4 (FAQs)
var menu4=new Array()
menu4[0]='<a href="faq.jsp">What? &amp; Why?</a>'
menu4[1]='<a href="faq.jsp#faqexp">The E-Zones Explained</a>'
menu4[2]='<a href="faq.jsp#faqorder">Ordering</a>'
menu4[3]='<a href="faq.jsp#faqother">Other Questions</a>'

//Contents for menu 5 (Strategy)
var menu5=new Array()
menu5[0]='<a href="strategy.jsp">Why is Strategy so Important?</a>'
menu5[1]='<a href="whythis.jsp">Why are these Products so Important?</a>'

//Contents for menu 6 (Email Alerts)
var menu6=new Array()
menu6[0]='<a href="ea.jsp">Notes from Fritz</a>'
menu6[1]='<a href="ea09.jsp">2009 Notes</a>'
menu6[2]='<a href="ea08.jsp">2008 Notes</a>'
menu6[3]='<a href="ea07.jsp">2007 Notes</a>'

var menuwidth='270px' //default menu width
var menubgcolor='#0e48d1'  //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="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? 150 : what.offsetTop-25;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? 150: totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
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=0
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 topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
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){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
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





/**********    Info popup box    ***************/



/******************************************
* Popup Box- By Jim Silver @ jimsilver47@yahoo.com
* Visit http://www.dynamicdrive.com/ for full source code
* This notice must stay intact for use
******************************************/

var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all

//drag drop function for NS 4////
/////////////////////////////////

var dragswitch=0
var nsx
var nsy
var nstemp

function drag_dropns(name){
if (!ns4)
return
temp=eval(name)
temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
temp.onmousedown=gons
temp.onmousemove=dragns
temp.onmouseup=stopns
}

function gons(e){
temp.captureEvents(Event.MOUSEMOVE)
nsx=e.x
nsy=e.y
}
function dragns(e){
if (dragswitch==1){
temp.moveBy(e.x-nsx,e.y-nsy)
return false
}
}

function stopns(){
temp.releaseEvents(Event.MOUSEMOVE)
}

//drag drop function for ie4+ and NS6////
/////////////////////////////////


function drag_drop(e){
if (ie4&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx
crossobj.style.top=tempy+event.clientY-offsety
return false
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx+"px"
crossobj.style.top=tempy+e.clientY-offsety+"px"
return false
}
}

function initializedrag(e){
crossobj=ns6? document.getElementById("showimage") : document.all.showimage
var firedobj=ns6? e.target : event.srcElement
var topelement=ns6? "html" : document.compatMode && document.compatMode!="BackCompat"? "documentElement" : "body"
while (firedobj.tagName!=topelement.toUpperCase() && firedobj.id!="dragbar"){
firedobj=ns6? firedobj.parentNode : firedobj.parentElement
}

if (firedobj.id=="dragbar"){
offsetx=ie4? event.clientX : e.clientX
offsety=ie4? event.clientY : e.clientY

tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)

dragapproved=true
document.onmousemove=drag_drop
}
}
document.onmouseup=new Function("dragapproved=false")

////drag drop functions end here//////

function hidebox(){
crossobj=ns6? document.getElementById("showimage") : document.all.showimage
if (ie4||ns6)
crossobj.style.visibility="hidden"
else if (ns4)
document.showimage.visibility="hide"
}

