window["g"]={
go:function(url){
	if ( typeof(parent)=="object"  )
		parent.window.location.href=url;
}
 
}

var A=null;

if (window.prototype ==null) A=window; else A=Window.prototype;
A.$=function(e){ return (typeof(e)=="string")?document.getElementById(e):e }
A["addEvent"] = function(type,fn)
{
	if(this.attachEvent)
	this.attachEvent("on"+type,fn);
	else if(this.addEventListener)
	this.addEventListener(type,fn,false);
}

Function.prototype.bind = function(context) {
  var fun = this;
  var arg=arguments;
  return function(){
    return fun.apply(context,arg);
  };
};

var start={
	startArr:[],
	add:function(fn){
		this.startArr.push(fn);
	},
	startUp:function(){
		for(var i in this.startArr )
			if ( typeof(this.startArr[i])=='function')
			this.startArr[i]();
	
	},
	soyle:function(n){

	}

	
};


window.addEvent("load",start.startUp.bind(start) );



