function reloadEventLoad() {
	checkInputTextDigitLength(null);
	compareProductEngine_checkStatus();
	fixMiddleHeight();
	gpic_initialize();
	infoWinMask();
	setDateInputField();
	if (!objExists("div", "createOverlay_DIV")) {
		closeOverlayDiv();
	}
	$("img[align='absmiddle']").css({
		"vertical-align" : "middle"
		, "margin-bottom" : "0.25em"
	});

	$("input[type='checkbox'][rel^='graphicCheckbox']").graphicCheckbox("graphicCheckbox");
	$("input[type='radio'][rel^='graphicRadio']").graphicRadio("graphicRadio");

	$("a[rel='submit']").bind("click", function(){
		$(this).graphicSubmit_click();
	});
}



//onload
$(document).ready(function(event){


	$("img[class='macrocategoryAnimate']").parent().hover(
		function(){
			$(this).children("img").animate({width:125, height:125}, 200, function(){});
		},
		function(){
			$(this).children("img").animate({width:100, height:100}, 200, function(){});
		}
	);
	$("#mainSearchInput").focus(function(){
		if ($(this).attr("value").toLowerCase() == "cerca prodotto") {
			$(this).attr("value", "");
		}
	});
	$("#mainSearchInput").bind("blur", function(){
		if ($(this).attr("value") == "") {
			$(this).attr("value", "Cerca prodotto");
		}
	});

	if ((location.href.toLowerCase().indexOf("/flyer.asp?f=") > -1) && (flyerArray.length > 1)) {
		flyer_page(1);
	}



/*
	$("textarea[id^='htmlEditor']").bind("keyup", function(){
		gHtmlEditor($(this));
	});
*/

/*
	$("#mainSearchInput").hover(function(){
		$(this).css("border", "1px solid #ffffff");
		$(this).css("color", "#ffffff");
	}, function(){
		$(this).css("border", "1px solid #81b2e9");
		$(this).css("color", "#81b2e9");
	});
*/


	reloadEventLoad();
	closeOverlayDiv();

	if (location.href.toLowerCase().indexOf("makelogin=1") > -1) {
		sid = ajaxGetValue("sid_GET");
		if ((sid == "undefined") || (sid == null) || (sid == "")) {
			createLogin();
		}
	}

});


//onkeyup
$(document).bind("keyup", function(e){
	if (e.keyCode == 27) {
		closeOverlayDiv();
	}
	return false;
});

//onresize
$(window).resize(function() {
  	absoluteContainerPositioning("absoluteCenterContainer_DIV");
});

//onmove
//$(window).scroll(function() {
//  	absoluteContainerPositioning("absoluteCenterContainer_DIV");
//});

