var haveFlash43460010010 = false;

function CAWBrowser(){
	var ua = navigator.userAgent;
	this.msie = (ua && ( parseFloat( navigator.appVersion )  >=4 ) && ( ua.indexOf("Opera") < 0 ) && ( ua.indexOf("MSIE 4") < 0 ) && ( ua.indexOf( "MSIE" ) >=0) );
	this.win = (ua && ((ua.indexOf( "Windows 95" ) >=0) || (ua.indexOf("Windows NT") >=0 ) || (ua.indexOf("Windows 98") >=0) ) );
	this.mac = (navigator.platform && (navigator.platform.indexOf('Mac')!=-1));
	this.opera7 = ((ua.indexOf('Opera') != -1) && window.opera && document.readyState) ? 1 : 0;
	this.gecko   = (ua.toLowerCase().indexOf('gecko') != -1) && (ua.indexOf('safari') == -1);

	haveFlash43460010010 = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

	if( haveFlash43460010010 ){
		haveFlash43460010010 = (parseInt(haveFlash43460010010.description.substring(haveFlash43460010010.description.indexOf(".")-1))>=6);
	}else if ( this.msie && this.win && !this.mac){
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'
			+ ' on error resume next \n'
			+ ' haveFlash43460010010 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n'
			+ '</SCR' + 'IPT\> \n' );
	}

	this.other = !( (this.gecko || this.msie) && this.win && !this.mac);
	this.desc =  this.msie ? "msie " : this.gecko ? "gecko " : this.opera7 ? "opera7(other) " : this.other? "other" : "ukn";
	this.flash = haveFlash43460010010 ? 8 : 0;	
}

function aw_write_js_code43460010010(){
	var seed = Math.round(Math.random()*65535); 
	var uniq = "43460010010";
	var jssrc = "rich.js";

	var jssrc_code = '<script src="' + jssrc +'"></sc' + 'ript>';
	if ( !aw_br.other){
		document.write( '<table border=0 cellpadding=0 cellspacing=0 id="aw_tb' 
			+ uniq + '" width=0 height=0 ><tr><td id="aw_td' + uniq + '"></td></tr></table>' );	

		var h = document.getElementsByTagName('head')[0];
		var s = document.createElement('script');
		s.type = 'text/javasc'+'ript';
		s.src = jssrc;
		h.appendChild(s);					
	}else{ 
		document.write(jssrc_code);
	}
}

var aw_br = new CAWBrowser();
aw_write_js_code43460010010();

