$(document).ready(function(){
	var settings= {
		navHeight : 29,
		seperatorHeight : 2,
		
		//Text Colors
		navTextColorNormal :"#6E6E6E",
		navTextColorOver :"#FFF", 
		navTextColorActive : "#135700",
		
		
		//Active Image and Over Image Are The Same?
		overAndActiveImgAreSame:false,
		
		//Active Operations
		changeTextColorOnActive : true,
		changeBgImageOnActive : true,
		
		//Over Operations
		changeTextColorOnOver : true,
		changeBgImageOnOver : true
		
	};
	$("#nav1").isNavigation(settings);
	
	//----------------------- Start Link Page More and Back Buttons -----------------------
	$(".link_more").click(function(){
		$(this).parent().parent().slideUp('slow');
		$(this).parent().parent().parent().children("div.hiddenTbl").slideDown('slow');
		return false;
	});

	$(".link_back").click(function(){
		$(this).parent().parent().slideUp('slow');
		$(this).parent().parent().parent().children("div.visibleTbl").slideDown('slow');
		return false;
	});
	//----------------------- End Link Page More and Back Buttons -------------------------
	
	$(".cycle_container").cycle({
			fx: 'fade',
			timeout: 5000,
			pager: '#nav',
			after:function(){
				$(".cycle_title").html($(this).find("img").attr("alt"));
			}
		});
	
});
function inner_loaded(){
	$(".page_body").balanceChildrenHeight();	
}
function links_loaded(){
	$("#container_links").balanceChildrenHeight();
	$(".page_body").balanceChildrenHeight();	
};

$(function () {                
    $('div.vm marquee').marquee('pointer').mouseover(function () {
        $(this).trigger('stop');
    }).mouseout(function () {
        $(this).trigger('start');
    }).mousemove(function (event) {
        if ($(this).data('drag') == true) {
            this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
        }
    }).mousedown(function (event) {
        $(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
    }).mouseup(function () {
        $(this).data('drag', false);
    });
});