// JavaScript Document

function msHelper(params){

	//vars
	
	var init = init();	
	var browserType = "";
	var debugMode = "";
		
	//methods
	//this.getBrowser = browserCheck;
	this.trace =  trace;

	function init (){	
		if (browserObject){
			this.browserType = browsrObj.browserType;		
		}
	}
	

	function debugObj(ele){
			jQuery.each(ele, function(i, val) {
			console.log("debugObj function");
			console.log("-----------------");
				console.log("i = ", i);
				console.log("val = ", val);
			console.log("-----------------");					
			});
	}
		
		
	function showPosition(){
		
	}
	 
	 
	function showOffset(ele){
			var element = $(ele); 			
			$("#divOffsetLeft").text("The left offset for the " + ele+ 
						" is " + ele.left + "px. " ); 
		  
			$("#divOffsetTop").text("The top offset for the " + ele+ 
						" is " + ele.top + "px. " ); 
	}
	   
	
	function showHeight(ele, h) {      	
		  $("#divH").text("The height for the " + ele + 
						" is " + h + "px.");
	}
	  
	   
	  
	function showWidth(ele, w) {
		 $("#div").text("The width for the " + ele + 
						" is " + w + "px.");
	}
		
	
	
	
		
		
	function trace(t,p){	
		
		if (typeof p == 'undefined' ){			
			p="";
		} else {
			p = "= " + p;
		}
			
			
			if(this.debugMode == true){
	
				if (jQuery.browser.mozilla == true){			
					
					console.log(t, p);
					
				}
				else { 
					 console.log(t + p);
				}
			}
		
	}

}