function displayResized(){
	var size = displaySize();
	var content = document.getElementById("fContent");
	content.style.width = (size[0] < 1024) ? "1024px" : size[0] + "px";
	content.style.height = (size[1] < 662) ? "662px" : size[1] + "px";
}

function displaySize(){
	var size = [0, 0];
	if (typeof window.innerWidth != "undefined") {
		size = [window.innerWidth, window.innerHeight];
	}
	else 
		if (typeof document.documentElement != "undefined" && typeof document.documentElement.clientWidth != "undefined" && document.documentElement.clientWidth != 0) {
			size = [document.documentElement.clientWidth, document.documentElement.clientHeight];
		}
		else {
			size = [document.getElementsByTagName("body")[0].clientWidth, document.getElementsByTagName("body")[0].clientHeight];
		}
	
	return size;
}

function uniqueID(lng){
	var str = "";
	var b = "";
	if (!lng) {
		var lng = 40;
	}
	for (var i = 0; i < lng; i++) {
		b = Math.round(Math.random() * 36).toString(36);
		str += Math.round(Math.random() * 2) ? b.toUpperCase() : b.toLowerCase();
	}
	return str;
}
