
function icon() {
}

icon.prototype.getOS = function() {
	return navigator.userAgent;
}

icon.prototype.getClient = function() {
	var clientObj = new Object();
	clientObj.isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
	clientObj.isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;

	return clientObj;
}

icon.prototype.generatePageTitle = function(pt) {
	var osStringMac = this.getOS().indexOf("Mac") != -1 ? true : false;
	var clientObj 	= this.getClient();

	if (osStringMac && clientObj.isIE) {
		var divString = "<div style='position:absolute;border-right:0px;border-top:0px;padding-left:110px; padding-bottom:0px;margin:0px;width:800px;height:20px;text-align:left;top:30px;font-weight:bold;line-height:18px;font-size:14px;'>"+pt+"</div>";
	} else {
		var divString = "<div id='absrel'>"+pt+"</div>";
	}	
	
	return divString;
}
