eval("try {document.execCommand('BackgroundImageCache', false, true);} catch(e) {}");

/** RAMJET
 * This method will call server with specified url.
 * Url will be appended with @widgetId so the server side could know whit widget template it should return.
 * Returned HTML will replace current content of element with containerId.
 */
function partialFormUpdate(submitId, widgetId, containerId) {
    var jForm = $("#" + widgetId).parents("form");
    var form = jForm[0];
//    var url = form.action + "@" + widgetId;
    var url = form.action.substr(0,form.action.indexOf("?")) + "@" + widgetId;
    var data = jForm.serializeArray();

/* Captcha field mustn't be send to avoid validation */
var noCaptchaData = new Array(data.length - 1);
for(i = 0, j = 0; i < data.length; i++) {
	var field = data[i];
	if(field.name != "captcha") {
		noCaptchaData[j++] = field;
	}
}
data = noCaptchaData;

    data[data.length] = {name: 'eventName.' + submitId,  value: ""};
    $.post(
        url, data, function(result) {
            $("#"+containerId).html(result);
        }, 'html'
    );
    return false;
}

/** IE6 menu **/
/*
$(document).ready(function() {
	$("#submenu ul>li").mouseover(function(){
		$(this).addClass("hover");
	}).mouseout(function(){
		$(this).removeClass("hover");
	});
});
*/