var slideSpeed = "slow";
var slideDirection = "right";

$(document).ready(function() {
	WindowInit();
});

function WindowInit()
{		
	var speed = slideSpeed;
	try{speed = parseInt(speed);}catch(e){}
	var direction = slideDirection;
	$("#inner").inner_slide("#outter", direction, {duration: speed}, 
		function(){
			//alert("slide ok");
	  });
	
	$('#b a.rollover')
		.css( {backgroundPosition: "10 0"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(-260px 0)"}, {duration:500})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(300px 0)"}, {duration:200, complete:function(){
				$(this).css({backgroundPosition: "0 0"})
			}})
		})
}

// getObj(divID) - Returns the div object, regardless of browser
function getObj(name)
{
	if (document.getElementById) { return document.getElementById(name); }
	else if (document.all) { return document.all[name]; }
	else if (document.layers) { return document.layers[name]; }
}
