﻿var temp;
var fadespeed = 600;
var startpanel = "jqCompany";
fadePanel = function(_value)
{
	if(_value == temp)
	{
		return;
	}
	$(_value).fadeIn(fadespeed);
	$(temp).fadeOut(fadespeed);
	temp = _value;
}

$(document).ready(function()
{
	$(".jqItem").each(function(index)
	{
		$(this).hide();
	});

	$("#" + startpanel).fadeIn(fadespeed);
	temp = "#" + startpanel;

	$(".jqMenu").each(function(index)
	{
		$(this).mouseover(function()
		{
			$(this).animate({left : '5px'}, 100, 'linear');
		}).mouseout(function()
		{
			$(this).animate({left : '10px'}, 100, 'swing');
		}).focus(function()
		{
			$(this).blur();
		});
	});
});
