
$(document).ready(
	function()
	{
		interval = setInterval('funcRepeatCall()', 500);
		resizeFlag();
		$(window).resize(resizeFlag);
		
		$(window).load(
			function()
			{
				clearInterval(interval);
				resizeFlag();
			}
		);
	}
);


function resizeFlag()
{
	lastImageOffset   = $("#imgBeforeFlag").offset();
	lastImageLeftLoc  = lastImageOffset.left;
	lastImageTopLoc   = lastImageOffset.top;		
	lastImageRightLoc = lastImageLeftLoc * 1 + $("#imgBeforeFlag").width()+1 * 1;
	//$("#dvprojadds").css({left: lastImageRightLoc + "px", top: lastImageTopLoc+ "px", width:"130px"});
	
	$("#dvTranslationFlag").css({left: lastImageRightLoc, top: lastImageTopLoc, width:106, position : "absolute"});
	//alert($("#dvprojadds").length);
	
	//$("#countryFlag").css({left: lastImageRightLoc, top: lastImageTopLoc - $("#countryFlag").height() - 18, width: 130});
}

function funcRepeatCall()
{
	resizeFlag();
}
