//====================================================================
// get browser
//-------------------------------------------------------------------
function getBrowser(){
	
	var ua = navigator.userAgent;

	this.NN4  = (document.layers);
	this.IE5 = (ua.indexOf("MSIE 5") != -1);
	this.IE50 = (ua.indexOf("MSIE 5.0") != -1);
	this.IE55 = (ua.indexOf("MSIE 5.5") != -1);
	this.IE6 = (ua.indexOf("MSIE 6") != -1);
	this.IE4  = (ua.indexOf("MSIE 4") != -1);
	this.IE   = (ua.indexOf("MSIE") != -1);
	this.Moz  = (ua.indexOf("Gecko") != -1);
	this.Op6  = (ua.match(/Opera.6/) != null); // Opera "6" only
	this.Omn  = (ua.indexOf("OmniWeb") != -1);
	this.Safari  = (ua.indexOf("Safari") != -1);
	this.FF   =  (ua.indexOf("Firefox") != -1);
	this.Win  = (ua.indexOf("Windows") != -1);
	this.Mac  = (ua.indexOf("Mac") != -1);
	if (this.Op6) this.IE50 = this.IE = false; 
	if (this.Omn) this.NN4            = false; 
	}
	
//======================================================
//RollOver Image
//------------------------------------------------------
function RollOver(obj) {
	getBrowser();
	if ((this.IE5 && this.Mac)||this.IE50) {
			void(0);
			}else{
				ext=obj.src.slice(-4);
				oldImage=obj.src.replace(ext,'');
				if(obj.src.slice(-6)!='_o'+ext){
						newImage=oldImage+'_o'+ext;
						}else{
							newImage=obj.src.replace('_o'+ext,ext);
							}
						obj.src=newImage;
			}
	} 
	

//======================================================
//RollOver Image
//------------------------------------------------------
function fontSize(){
	getBrowser();
	lang=document.getElementsByTagName('html')[0].getAttribute('lang')
	
	if(this.Mac){
		if (navigator.appVersion.indexOf("Safari") > -1){
				if(lang!="en"){
					document.body.style.fontSize='11px';
					}else{
						document.getElementsByTagName("body")[0].style.fontSize ='11.5px';
						}
		}else{
			document.getElementsByTagName("body")[0].style.fontSize ='12px';
		}
		
	}else{
		if(lang=="en"){
			document.getElementsByTagName("body")[0].style.fontSize ='12px';
			
			}else{
				document.getElementsByTagName("body")[0].style.fontSize ='12px';
				}
		}
}

//---------------------------------------------------------------
window.onload =function(){
		fontSize();
		}