function Is(){
var agent		= navigator.userAgent.toLowerCase();
this.major		= parseInt(navigator.appVersion);
this.minor		= parseFloat(navigator.appVersion);
this.dom		= document.getElementById?1:0;
this.k			= (agent.indexOf('konqueror') != -1);
this.ko			= (this.k && Number(agent.substring(agent.indexOf('konqueror') + 10,agent.indexOf('konqueror') + 13)) > 3);
this.ns			= ((agent.indexOf('mozilla') != -1) && ((agent.indexOf('spoofer') == -1) && (agent.indexOf('compatible') == -1)));
this.ns0		= (this.ns && this.major < 5);
this.ns5		= (this.dom && this.ns && this.major == 5);
this.safari		= (agent.indexOf('safari') != -1);
this.ie			= (agent.indexOf('msie') != -1);
this.ie0		= (this.ie && agent.indexOf('msie 5') == -1 && agent.indexOf('msie 6') == -1);
this.ie5		= (this.ie && agent.indexOf('msie 5') != -1);
this.ie6		= (this.ie && agent.indexOf('msie 6') != -1);
this.o			= (agent.indexOf('opera') != -1);
this.op			= (this.o && Number(agent.substring(agent.indexOf('opera') + 6,agent.indexOf('opera') + 9)) > 7);
this.win95		= (agent.indexOf('win') != -1 && agent.indexOf('95') != -1);
this.win98		= (agent.indexOf('win') != -1 && agent.indexOf('98') != -1);
this.winnt		= (agent.indexOf('win') != -1 && agent.indexOf('nt') != -1 && agent.indexOf('4.0') != -1);
this.win2k		= (agent.indexOf('win') != -1 && agent.indexOf('nt') != -1 && agent.indexOf('5.0') != -1);
this.winxp1		= (agent.indexOf('win') != -1 && agent.indexOf('nt') != -1 && agent.indexOf('5.1') != -1);
this.winxp2		= (agent.indexOf('win') != -1 && agent.indexOf('nt') != -1 && agent.indexOf('5.2') != -1);
this.unix		= (agent.indexOf('x11')!= -1);
this.linux		= (agent.indexOf('linux') !=- 1);
this.mac		= (agent.indexOf('mac') != -1 || agent.indexOf('macppc') != -1 || agent.indexOf('mac_powerpc') != -1);
this.badmacie	= (this.mac && this.ie);
this.en			= ((this.safari || this.ns5 || this.ie6 || this.ie5 || this.op) && !this.badmacie);
}
var is = new Is();

function draft(){
if(is.en){
	document.getElementById('draftDropper').src = '/sys/draft.html';
	switch(location.href.replace('http://','').replace('www.','').replace('triton-safari.','').replace('com/','').replace('org/','').substring(0,2)){
		case 'de' :
			hint = 'Bewege den Cursor mit der Maus über den Grundriss der <EM>Triton</EM>.';
		break;
		case 'fr' :
			hint = 'Promčnes le curseur sur le plan du <EM>Triton</EM>...';
		break;
		case 'it' :
			hint = 'Muoevetp la treccia con il maus sonrail diseguo...';
		break;
		case 'ru' :
			hint = '&#x0427;&#x0442;&#x043E;&#x0431;&#x044B;&#x0020;&#x0443;&#x0432;&#x0438;&#x0434;&#x0435;&#x0442;&#x044C;&#x0020;&#x0438;&#x043D;&#x0442;&#x0435;&#x0440;&#x044C;&#x0435;&#x0440;&#x002C;&#x0020;&#x0441;&#x043A;&#x043E;&#x043B;&#x044C;&#x0437;&#x0438;&#x0442;&#x0435;&#x0020;&#x043C;&#x044B;&#x0448;&#x044C;&#x044E;&#x0020;&#x043F;&#x043E;&#x0020;&#x043F;&#x043B;&#x0430;&#x043D;&#x0443;&#x0020;&#x043A;&#x043E;&#x0440;&#x0430;&#x0431;&#x043B;&#x044F;';
		break;
		case 'sp' :
			hint = 'Mueves el cursor con el ratón sobre la planta del <EM>Triton</EM>...';
		break;
		default :
			hint = 'Move your cursor over this draft of <EM>Triton</EM>...';
		break;
		}
	document.getElementById('draftintro').innerHTML = hint;
	}
}

