
            $(document).ready( function() {
            	
            	
            		// Investor hover tables
            		
            		//$("table.bottom-articles td:gt(0) table tr > td").parent().hover(
            		$("table.bottom-articles td:gt(0) table tr").hover(
            			function(){
            				if(!$(this).children("th").length) {
            					$(this).addClass("hover");
            				}
            			},
            			function(){
            				if(!$(this).children("th").length) {
            					$(this).removeClass("hover");
            				}
            			}
            		);
            	

                $("b.email").defuscate().css("font-weight","normal");
                
                //$("div.person-box .left, div.person-box .right").prepend("<"+"div class="min-height"></"+"div>");
                
                var strminheight  = "<" + "div class=\"min-height\"></"+"div>";

                $("div.person-box .left, div.person-box .right").prepend(strminheight);

                $("ul#menu-left li a.normal").hover(
                    function(){
                        var oldbg = $(this).css("background-image");
                        var newbg = oldbg.replace(/\/normal\//i, "/rollOver/");
                            newbg = newbg.replace(/_0_/i, "_1_");
                        $(this).css({ backgroundImage: newbg });
                    },
                    function(){
                        var oldbg = $(this).css("background-image");
                        var newbg = oldbg.replace(/\/rollOver\//i, "/normal/");
                            newbg = newbg.replace(/_1_/i, "_0_");
                        $(this).css({ backgroundImage: newbg });
                    }
                );



                // Front ticker
                $("#frontShareTicker").bind("mouseover", function(){
                	showFrontTicker();
                  })
                .click(function(event){
                  if(event.target.nodeName!="A") {            
                    hideFrontTicker();
                    return false;
                  }
                });


            }); //ready
            

            function showFrontTicker() {
                var $ticker   = $("#frontShareTicker").stop();
                var $tbl_down = $ticker.find("table.statedown");
                var $tbl_up   = $ticker.find("table.stateup");

                $ticker.css({ "background" : "#ffffff" }).animate({ "height" : "140px" }, "slow", function(){ 
                    $tbl_down.fadeOut("slow", function() {
                        $tbl_down.hide(0);
                        $tbl_up.fadeIn("slow");
                    });
                });

            }
            
            function hideFrontTicker() {
                var $ticker   = $("#frontShareTicker").stop();
                var $tbl_down = $ticker.find("table.statedown");
                var $tbl_up   = $ticker.find("table.stateup");

                $tbl_up.fadeOut("slow", function(){
                    $tbl_up.hide(0);
                    $tbl_down.fadeIn("slow", function(){
                        $ticker.animate({ "height"     : "50px" }, "slow", function(){ 
                            $ticker.css({ "background" : "transparent url(/gfx/bg_dashboard.png) repeat-y top left" });
                        });
                    });
                });
            }

            function submitenter(myfield,e) {
                var keycode;

                if (window.event) { 
                    keycode = window.event.keyCode;
                } else if (e) {
                    keycode = e.which;
                } else {
                    return true;
                }
                    
                if (keycode == 13) {
                    myfield.form.submit();
                    return false;
                } else {
                    return true;
                }

            }

            function changeClass(id, cls) {
                var e = document.getElementById(id);
                e.className=cls;
            }
            
            function setCSS(elementid, attr, val) {
                if(document.getElementById) {
                    //document.write(attr + ' = ' + val);
                    document.getElementById(elementid).style.attr = "'" + val + "'";
                }
            }

