// JavaScript Document

function browserObject(p){

	this.detectMac = detectMacXFF2;
	this.browserType  = ""; 	
	var init = init();	
	//var browserCheck = browserCheck;	
	//console.log("browserType = "+ this.browserType);
	//console.log("brwserType constructor called");
	
	function init(){
		browserCheck();
		detectMacXFF2();
	}		
		
	function detectMacXFF2() {
	
	  var userAgent = navigator.userAgent.toLowerCase();
	  if (/firefox[\/\s](\d+\.\d+)/.test(userAgent)) {
		var ffversion = new Number(RegExp.$1);
		if (ffversion < 3 && userAgent.indexOf('mac') != -1) {
		  return true;
		}	
	  }
	   return false;
	}
	
	
	
	
	function browserCheck(){

				if (jQuery.browser.mozilla == true){
				
					this.browserType = "mozilla";  //jQuery.browser.mozilla;					
					return true;
					
				} else if (jQuery.browser.msie == true) {
					
					this.browserType = "msie";
					return false;
					
				} else {
					
					this.browserType = "other";
					return false;
				}
		
	}



}