function fixFooter() {
	var viewport = getViewport();
	
	if (isIE6) {
		$("footer").style.position = "absolute";
		$("footer").style.top = ((viewport[1] + viewport[2]) - 31) + "px";
	}
}

function resizeGeneral() {
	//console.log("Resizing");
	//var viewport = getViewport();
	//var width = viewport[0];
	//var margin = (width < 976) ? 0 : (width - 976)/2;
	//console.log("Resizing: " + width + "/" + margin);
	//$("containerArea").style.marginLeft = margin + "px";
	
	fixFooter();
}

function loadGeneral() {
	//resizeGeneral();
	window.onresize = resizeGeneral;	
	counterConfigure();
	updatePngs();	
	
	if (isIE6) {
		window.attachEvent('onscroll', fixFooter);
	}
	
	setPlaceHolder("headerFindField", "Enter address, city, country, intersection, etc");
   	$('headerFindField').value = "";
   	//if (!currentLocation.isDefault) {
   	//	Cookie.set("currentAddress", currentLocation.address);
   	//	document.getElementById("headerFindField").value = currentLocation.address
   	//}
   	
   	showPlaceHolder("headerFindField");
}

function counterConfigure() {
	
	//console.log("Toilet Count = " + toiletCountStr);
	for (var i = 0; i < toiletCountStr.length;i++) {
		
		var digitChar = toiletCountStr.charAt(i);
		//console.log("Digit char = " + digitChar);
		$("headerCounterNumber" + i).src = "/sitorsquat/images/v3/header/" + digitChar + ".png"; 
	}
	
}