// JavaScript Document

function InitLogo() {
	var t = setTimeout("UpdateMask()",1200);
}
function UpdateMask() {
	//move the mask x pixels and reposition the image within the mask accordingly
	var dist = 5;
	//get current positions
	var maskX = GetLeft("#mask");
	var imgX  = GetLeft("#mask img");
	//set new positions
	maskX += dist;
	imgX  -= dist;
	//move
	$("#mask").css('left',maskX);
	$("#mask img").css('left',imgX);
	
	if(maskX<=345) {
		var t = setTimeout("UpdateMask()",30);
	}
}
function GetLeft(el) {
	var position = $(el).position();
	return position.left;
}

