startList = function() {
    if (document.all&&document.getElementById) {
        navRoot = document.getElementById("tree");
        for (i=0;i<navRoot.childNodes.length;i++)
        {
                node = navRoot.childNodes[i];
                if (node.nodeName=="LI") {
                        node.onmouseover=function() {
                                this.className+=" over";
                        }
                        node.onmouseout=function() {
                                this.className=this.className.replace(" over", "");
                        }
                }
        }
    }
}

function one(){document.getElementById("scroll").scrollTop = '0';}
function two(){document.getElementById("scroll").scrollTop = '265';}
function three(){document.getElementById("scroll").scrollTop = '530';}
function four(){document.getElementById("scroll").scrollTop = '795';}
function five(){document.getElementById("scroll").scrollTop = '1060';}

$(document).ready(function(){
		
        $('ul#news-scroll').innerfade({
			speed: 500,
			timeout: 4000,
			type: 'sequence',
			containerheight: 'auto'
		});

	$('#pr-menu li').click(function () {
				$('#pr-menu li').removeClass('selected');
				$(this).addClass('selected');
	});

    if(document.getElementById("tree")){startList()};

    $("#vertical_container a.accordion_toggle").click(function(){
        $(this).css({color:"#993300"}).next("div.accordion_content").slideToggle(200).siblings("div.accordion_content").slideUp("slow");
        $(this).siblings().css({color:"#000000"});
    });

    $("#manager").colorbox({width:"286px", inline:true, href:"#box"});

    $('#scroll-left').click(function(){
        $('.flexcroll')[0].fleXcroll.scrollContent(-240, 0);
        return false;
    })

    $('#scroll-right').click(function(){
        $('.flexcroll')[0].fleXcroll.scrollContent(240, 0);
        return false;
    })

});
