function setHover(){
	aHoverRss = getElementsByClass('contentRSS');
	for(i=0;i<aHoverRss.length;i++){
		AttachEvent(aHoverRss[i],'mouseover',rssOver);
		AttachEvent(aHoverRss[i],'mouseout',rssOut);
	}
}
function rssOver(e){
	obj =  getElementByEvent(e);
	obj.src='/images/iconRSS_hover.gif';
}
function rssOut(e){
	obj =  getElementByEvent(e);
	obj.src='/images/iconRSS.gif';
}
function hideElements(){
    $$('.elementToHide').setStyle('display', 'none');
}

addLoadEvent(setHover);
addLoadEvent(hideElements);

    expander = {
        load: function() {
            fx = [];
            header = [];
            $$('.occHeader').each(function(obj, i) {
                var block = obj.getNext();
                fx[i] = new Fx.Slide(block, { duration: 300 });
                header[i] = obj;
                obj.addEvent('click', function(e) {
                    e = new Event(e).stop();
                    if (!fx[i].open) {
                        expander.show(i);
                    } else {
                        expander.hide(i);
                    }
                });
                if (!obj.hasClass('expand')) {
                    header[i].removeClass('show');
                    fx[i].hide();
                }
            });
        },
        show: function(i) {
            fx[i].slideIn();
            header[i].getFirst().addClass('occLinkOpen');
        },
        hide: function(i) {
            fx[i].slideOut();
            header[i].getFirst().removeClass('occLinkOpen');
        }
    }
    
    function expand()
    {
        for(i=0;i<=header.length;i++)
        {
            fx[i].show();
        }
    }

    
//    function init() {
//         shortcut("Ctrl+P",function() {
//         expand();
//         });
//    }

//    addLoadEvent(init);
    addLoadEvent(expander.load);
    addLoadEvent(externGoogleAnalyticsLink);

