function hoverOn(){
	$(this).addClass("hover");
}
function hoverOff(){
	$(this).removeClass("hover");
}
function focusOn(){
	$(this).addClass("focus");
}
function focusOff(){
	$(this).removeClass("focus");
}
function stopProp(event){
	event.stopPropagation();
}
function encodeId(id){
	var encodedId = '';

	for (var i=0,n=id.length;i<n;i++) {
		var thisChar = id.charCodeAt(i).toString(16);
		encodedId += '\\000000'.substring(0,7-Math.min(6,thisChar.length))+thisChar.substring(0,6);
	}

	return encodedId;
}
function serializeArrayToObject(list) { var obj={}; for(var n=0,l=list.length; n<l; n++) obj[list[n].name] = list[n].value; return obj;}

if (typeof Object.assign != 'function') {
	(function () {
		Object.assign = function (target) {
			'use strict';
			if (target === undefined || target === null) {
				throw new TypeError('Cannot convert undefined or null to object');
			}

			var output = Object(target);
			for (var index = 1; index < arguments.length; index++) {
				var source = arguments[index];
				if (source !== undefined && source !== null) {
					for (var nextKey in source) {
						if (source.hasOwnProperty(nextKey)) {
							output[nextKey] = source[nextKey];
						}
					}
				}
			}
			return output;
		};
	})();
}
