// JavaScript Document

	function browser_control() {
	var b = navigator.appName.toString();
	var up = navigator.platform.toString();
	var ua = navigator.userAgent.toString();

	this.mozilla = this.ie = this.opera = r = false;
	var re_opera = /Opera.([0-9\.]*)/i;
	var re_msie = /MSIE.([0-9\.]*)/i;
	var re_gecko = /gecko/i;
	var re_safari = /safari\/([\d\.]*)/i;
	
	if (ua.match(re_opera)) {
		r = ua.match(re_opera);
		this.opera = true;
		this.version = parseFloat(r[1]);
	} else if (ua.match(re_msie)) {
		r = ua.match(re_msie);
		this.ie = true;
		this.version = parseFloat(r[1]);
	} else if (ua.match(re_safari)) {
		this.safari = true;
		this.version = 1.4;
	} else if (ua.match(re_gecko)) {
		var re_gecko_version = /rv:\s*([0-9\.]+)/i;
		r = ua.match(re_gecko_version);
		this.mozilla = true;
		this.version = parseFloat(r[1]);
	}
	this.windows = this.mac = this.linux = false;

	this.Platform = ua.match(/windows/i) ? "windows" :
					(ua.match(/linux/i) ? "linux" :
					(ua.match(/mac/i) ? "mac" :
					ua.match(/unix/i)? "unix" : "unknown"));
	this[this.Platform] = true;
	this.v = this.version;

	if (this.safari && this.mac && this.mozilla) {
		this.mozilla = false;
	}
	

	
};

browser_control();


var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac')        >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera')      >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
	document.write('<style type=text/css> .css-peter-pan-onlus #ContentDx { margin-top: 10px;} </style>');
} //else { document.write('<scr'+'ipt>function crea_text_editor() { return false; }</scr'+'ipt>'); }

// // // modifica dei bordi delle sezioni
 	if (this.mozilla) {
		//document.write('<style type="text/css">');
		//document.write('.css-peter-pan-onlus  .box-BoxPrimoPiano-main {border-right-width: medium;border-left-width: medium;}');
		//document.write('.css-peter-pan-onlus  .box-right-main {border-right-width: medium;border-left-width: medium; width:194px;}</style>');
		//document.write('.css-peter-pan-onlus  .box-right-main {border-right-width: 2px;border-left-width: 2px; width:196px;}</style>');

	}
