var checkStoresLoadedInterval = 0;

$(document).ready(function() {
	// size initial div height
	sizeVerticals();
	//setupBackground();
	// Attach behaviour to resize vertical divs on window resize
	window.onresize = function() { 
		sizeVerticals();
		setupBackground();
	};
	
	if(file_name_only(window.location.href) == 'find-a-store')
	{
		//alert('find-a-store');
		checkStoresLoadedInterval = setInterval ("checkStoresLoaded()", 100);	
	}
	
	
});

sizeVerticals();

function checkStoresLoaded() {
	
	// do this every 100ms until (document.getElementById("side_bar").innerHTML == "")
	if (document.getElementById("side_bar").innerHTML == "")
	{
		sizeVerticals();
		setTimeout('sizeVerticals()', 1000);
		clearInterval(checkStoresLoadedInterval);
	}

}

/**********************************************************************************************************
just added a few lines to make the file bigger and try to avoid caching issues
*/
