
//dom father namespace
var Df = {
	
	version: 1.2,
	
	//load javascript files through inline as the page loads, n waints for n-1 to load(document.write)
	loadJS: function(){
		for(var i = 0; i < arguments.length; i++) {
			document.write('<script type="text/javascript" src="'+arguments[i]+'"></script>')
		}
	},
	
	browser: function(){
		
		//browser detection
		var obj = {
			mac : 0,
			safari : 0,
			firefoxMac : 0,
			pc : 0,
			ie : 0,
			ie6 : 0,
			ie7 : 0,
			netscape : 0,
			firefox : 0
		};
		
		var ua = navigator.userAgent.toLowerCase();
		
		if(ua.indexOf("macintosh")!=-1){
			obj.mac = 1;
			if(ua.indexOf("safari")!=-1){
				obj.safari = 1;
			}else if(ua.indexOf("firefox")!=-1){
				obj.firefoxMac = 1;
			}
		}else{
			obj.pc = 1;
			if(ua.indexOf("msie")!=-1){
				obj.ie = 1;
				if(ua.indexOf("msie 6")!=-1 || ua.indexOf("msie 5")!=-1){
					obj.ie6 = 1;
				}else if(ua.indexOf("msie 7")!=-1){
					obj.ie7 = 1;
				}
			}else if(ua.indexOf("netscape")!=-1){
				obj.netscape = 1;
			}else if(ua.indexOf("firefox")!=-1){
				obj.firefox = 1;
			}
		}
		
		return obj;
	},
	
	renderMode: function(){
		return document.compatMode;	
	},
	
	concat: function(){
		var ary = [];
		for(var i=0; i<arguments.length; i++){
			ary.push(arguments[i]);
		}
		return ary.join('');
	}
}
///////////////////////////////include js files //////////////////////

//load javascript files through inline as the page loads, n waints for n-1 to load(document.write)
Df.loadJS	(
	  		"/js/prototype1_5.js",
			"/js/prototype1_5_extend.js",
			"/js/Df.Modal.js"
		)











	
	  
	  