/* Tabs */
(function($){
var EYE = window.EYE = function() {var _registered = { init: [] };
return {init: function() { $.each(_registered.init, function(nr, fn){fn.call();});},
extend: function(prop) {for (var i in prop) {if (prop[i] != undefined) {this[i] = prop[i];}}},
register: function(fn, type) {if (!_registered[type]) {_registered[type] = [];}_registered[type].push(fn);}};}();
$(EYE.init); })(jQuery);
(function($){
var initLayout = function() {
var hash = window.location.hash.replace('#', '');
var currentTab = $('ul.tabs a').bind('click', showTab).filter('a[rel=' + hash + ']');
if (currentTab.size() == 0) {
	currentTab = $('ul.tabs a:first'); } showTab.apply(currentTab.get(0)); };	
var showTab = function(e) {
	var tabIndex = $('ul.tabs a').removeClass('active').index(this);
	$(this).addClass('active').blur();
	$('div.tab').hide().eq(tabIndex).show(); };	
	EYE.register(initLayout, 'init');
})(jQuery)	
/* 2-Level Menu */
		$(function(){
			$.slidenav({
				animspeed: 'medium',
				hideonout: 'true'
			});
		});
/* Accordion */
jQuery(document).ready(function()
{
	jQuery("#acc-menu p.acc_head").click(function()
    {
		jQuery(this).css({backgroundImage:"url(./design/ALS-402da-tabs/images/down.gif)"}).css({backgroundColor:"#2B9B2B"}).next("div.acc_body").slideToggle(360).siblings("div.acc_body").slideUp("slow");
       	jQuery(this).siblings().css({backgroundImage:"url(./design/ALS-402da-tabs/images/right.gif)"}).css({backgroundColor:"#2D84A2"});
	});
	
});
/*Rotator */
$(document).ready(
	function(){
	$('#rotator').innerfade({
	speed: 1000,
	timeout: 5000,
	type: 'sequence',
	containerheight: '220px'
	});					
});

/* Panel Out */
jQuery(function(){
    jQuery('.info_panel').tabSlideOut({
     tabHandle: '.handle',
     pathToTabImage: './design/ALS-402da-tabs/images/contact_tab.gif',
     imageHeight: '25px',
     imageWidth: '126px',
     speed: 600,
     action: 'click',
     leftPos: '120px',
     fixedPosition: true
    }); });
