/**********************************************************************************************
						Corcoran DOM Styles Class
						This class is used for a client-side formating of DOM elements
				
						Written Tuesday, September 18, 2007
						Questions/Comments/Improvements? 
						Make them or contact Cornelius(cmoore@corcoran.com)
***********************************************************************************************/

/***********************************************************************************************
					The following classes have been initialized
					Homepage, 
************************************************************************************************/

function CorcoranDOMStyles(){	
	CorcoranDOMStyles.prototype.SetMouseToPointer = function(obj){
		obj.style.cursor="hand";
	}
	CorcoranDOMStyles.prototype.getTypeOf = function(x){
		if (x == null) return "null";
   		var t = typeof x;
    	if (t != "object")  return t;
		
		// Otherwise, x is an object. Using the default toString( ) 
		var c = Object.prototype.toString.apply(x); 
		c = c.substring(8, c.length-1); 
		if (c != "Object") return c;
		if (x.constructor == Object) return c;  //the type really is "Object"
		if ("classname" in x.constructor.prototype &&  // inherits classname
			typeof x.constructor.prototype.classname == "string") // its a string
			return x.constructor.prototype.classname;

		// Can't figure it out.
		return "<unknown type>";
	}
	CorcoranDOMStyles.prototype.ObjectName = function(obj){
		return Object.prototype.toString.apply(obj);
	} 
}


/***********************************************************************************************
					Begin defining Subclasses. Here, I have setup
					each section of corcoran.com to have its class
					which is a subclass on CorcoranDOMStyles 
************************************************************************************************/
function Homepage(){
	this.superclass();
	Homepage.prototype.SurveyChoiceClick = function (obj){
		SendXmlHttpRequestV(obj.id);
	}
}
function AboutUs(){
	this.superclass();
}
function Guides(){
	this.superclass();
}
function Selling(){
	this.superclass();
}
function OurAgents(){
	this.superclass();
}
function Relocation(){
	this.superclass();
}
function Property(){
	this.superclass();
}

/***********************************************************************************************
					SubClass initialization - Each Subclass inherits CorcoranDOMStyles
					but uses its own contructor.
************************************************************************************************/
Homepage.prototype = new CorcoranDOMStyles();
Homepage.prototype.contructor = Homepage;
Homepage.prototype.superclass = CorcoranDOMStyles;
Homepage = new Homepage();

AboutUs.prototype = new CorcoranDOMStyles();
AboutUs.prototype.contructor = AboutUs;
AboutUs.prototype.superclass = CorcoranDOMStyles;
AboutUs = new AboutUs();

Guides.prototype = new CorcoranDOMStyles();
Guides.prototype.contructor = Guides;
Guides.prototype.superclass = CorcoranDOMStyles;
Guides = new Guides();

Selling.prototype = new CorcoranDOMStyles();
Selling.prototype.contructor = Selling;
Selling.prototype.superclass = CorcoranDOMStyles;
Selling = new Selling();

OurAgents.prototype = new CorcoranDOMStyles();
OurAgents.prototype.contructor = OurAgents;
OurAgents.prototype.superclass = CorcoranDOMStyles;
OurAgents = new OurAgents();

Relocation.prototype = new CorcoranDOMStyles();
Relocation.prototype.contructor = Relocation;
Relocation.prototype.superclass = CorcoranDOMStyles;
Relocation = new Relocation();

Property.prototype = new CorcoranDOMStyles();
Property.prototype.contructor = Property;
Property.prototype.superclass = CorcoranDOMStyles;
Property = new Property();