function CreateSplash(file)
{
	dw('<object type="application/x-shockwave-flash" data="'+file+'">');
	dw('<param name="movie" value="'+file+'">');
	dw('<param name="loop" value="false">');
	dw('<param name="wmode" value="transparent">');
	dw('</object>');
} //end function

var current = 0;
var position = 0;

function SelectMLA(direction)
{	
	var width = 255 + 50; //width of LI + MARGIN
	
	if (direction == "left")
	{		
		position = position + width;
		current = current - 1;
	}
	else if (direction == "right")
	{
		position = position - width;
		current = current + 1;
	}
	else
	{		
		current = 1;
	}
	
	$("#stacked").animate({ left: position }, 1000, 'swing');
	
	$("#previous").html("\<span title='Previous' onclick='SelectMLA(\"left\"); return false;'>&nbsp;<\/span>");
	$("#next").html("\<span title='Next' onclick='SelectMLA(\"right\"); return false;'>&nbsp;<\/span>");
	
	//Hide-Show Previous
	if (current < 2) { gs("previous").display = "none"; } else { gs("previous").display = "block"; }		
	
	//Hide-Show Next
	if (current > 4) { gs("next").display = "none"; } else { gs("next").display = "block"; }

} //end function

$(document).ready(function() {	
	SelectMLA("");
});