Try.these(function(){
    console.log("hello, world, firefox");
    console.log("http://www.getfirebug.com/logging.html");
})

function setupAjaxForms(){
    
    $$("div.inline-form form").each(function(frm,i){
        
        frm.hide=function(){
            this.up("div").style.display="none";
        }
        frm.onsubmit=function(){
            
            // http://prototypejs.org/api/ajax/options
            $(this).request({
                onComplete: function(){ alert('Your enquiry has been accepted!') }
            })
            $(this).reset()
            if(this.hide){
                this.hide()
            }
            return false;
        }
        
    })
}

var onDomLoaded=function(){
    count=0;
    $$('div#menu ul li').each(function(li,i){
        li.onmouseover=function(){
            this.addClassName("hover");
        }
        
        li.onmouseout=function(){
            this.removeClassName("hover");
        }
        count++;
    });
    
    //BEGIN fix for IE7 click-to-activate
    theObjects = document.getElementsByTagName("object");
    for (var i = 0; i < theObjects.length; i++) {
        theObjects[i].outerHTML = theObjects[i].outerHTML;
    }
    //END fix for IE7 click-to-activate
    
    $$('a.moreinfo-button').each(function(a,i){
        a.onclick=function(){
            if(!a.isLoaded){
                var url=this.href+"?ajaxrq=get_form&source_url="+escape(location.toString())
                new Ajax.Request(url,
                    {
                        method:'get',
                        onSuccess: function(transport){
                            a.isLoaded=true;
                            a.original_target=a.href;
                            a.href="javascript:void(null)";
                            var div=new Element('div',{'class':'inline-form'});
                            a.up('div').insert({after:div});
                            a.relatedContainer=div;
                            div.innerHTML=transport.responseText;
                            setupAjaxForms();
                        },
                        onFailure: function(transport){
                            var response = transport.responseText;
                        }
                });
            }else{
                if(a.relatedContainer.style.display=="none"){
                    a.relatedContainer.style.display="block";
                    a.href="javascript:void(null)";
                }else{
                    a.relatedContainer.style.display="none";
                    a.href=a.original_target;
                }    
            }
            return false;
        }
    })

    $$('a.nospam-link').each(function(a,i){
    	a.href=a.href.replace(/\(AT\)/,'@');
	a.innerHTML=a.innerHTML.replace(/\(AT\)/,'@');
    });
    
}
	window.onload=onDomLoaded
	//Event.observe(window,'load',onDomLoaded);

//document.observe('dom:loaded',onDomLoaded);

