﻿function init() {

    $("#slider").easySlider({
        auto: true,
        continuous: true,
        speed: 800,
        pause: 5000
    });
}

function init2() {

    $("#slider").easySlider({
        prevId: 		'prevBtn',
		prevText: 		'Previous',
		nextId: 		'nextBtn',	
		nextText: 		'Next',
		controlsShow:	true,
		controlsBefore:	'',
		controlsAfter:	'',	
		controlsFade:	true,
		firstId: 		'firstBtn',
		firstText: 		'First',
		firstShow:		false,
		lastId: 		'lastBtn',	
		lastText: 		'Last',
		lastShow:		false,				
		vertical:		false,
		speed: 			400,
		auto:			true,
		pause:			100,
		continuous:		false, 
		numeric: 		false,
		numericId: 		'controls'
    });
}

$(function() {
    var tabContainers = $('div.tabs > div');

    $('div.tabs ul.tabNavigation a').click(function() {
        tabContainers.hide().filter(this.hash).show();

        $('div.tabs ul.tabNavigation a').removeClass('selected');
        $(this).addClass('selected');

        return false;
    }).filter(':first').click();
});

$(function() {
    var tabs = [];
    var tabContainers = [];
    $('ul.tabs a').each(function() {
        // note that this only compares the pathname, not the entire url
        // which actually may be required for a more terse solution.
        if (this.pathname == window.location.pathname) {
            tabs.push(this);
            tabContainers.push($(this.hash).get(0));
        }
    });

    $(tabs).click(function() {
        // hide all tabs
        $(tabContainers).hide().filter(this.hash).show();

        // set up the selected class
        $(tabs).removeClass('selected');
        $(this).addClass('selected');

        return false;
    });
});

var current_panel = "panel_01";

function show(id) {
    document.getElementById(current_panel).style.display = 'none';
    document.getElementById(id).style.display = 'block';
    current_panel = id;
    window.status.replace = id + "tt";
}

