/**
* DisableSelection
* Make text not selectable, hence unable to copy and paste
* @constructor
* @base Overlay
* @namespace stubhub.ui.Mask
* @param {String} divID: The html id of div
* @param {String} className: class name of the divs 
* @return void
*/
/* //comment out to resolve jquery conflict
stubhub.window.onLoad = function(){
	var cfg = stubhub.cfg;	
	if(cfg.divID){
		oDiv = stubhub.ui.core.Div(cfg.divID);
		//stubhub.ui.DisableSelection(oDiv.elem);
		stubhub.ui.DisableSelection(document.getElementById(cfg.divID));
	}
	if(cfg.className){
		classDiv=stubhub.getElementsByClassName(cfg.className);
		for(myDiv in classDiv)
		{
			stubhub.ui.DisableSelection(classDiv[myDiv]);
		}
	}	
};


stubhub.ui.DisableSelection = function(element){
    element.onselectstart = function() {
	return false;
    };
    element.unselectable = "on";
    element.style.MozUserSelect = "none";
    element.style.cursor = "default";
};
*/


window.onload = function(){	
	if(cfg.divID){
		disableSelection(document.getElementById(cfg.divID));
	}
};


disableSelection = function(element){
    element.onselectstart = function() {
	return false;
    };
    element.unselectable = "on";
    element.style.MozUserSelect = "none";
    element.style.cursor = "default";
};
