/*swoop.core.start*/
swoop=null;
is_type={_obj:"object",_fnc:"function",_bol:"boolean",_str:"string",_int:"number",_udf:"undefined",_vis:"visible",_hid:"hidden",_img:"image object"};
function swobj(){
	this.ver=0.03;
	this.win=window;
	this.doc=document;
	this.frm=this.doc.forms;
	this.pth=this.getBasePath();
	window.eol=new Array();
	window.gmp={x:0,y:0};
	window.ump=false;
	window.onmousemove=function(e){
		if(typeof(window.gmp)==is_type._obj){
			if((typeof(e)==is_type._udf)&&(typeof(event)==is_type._obj)){
				e=event;}
			if(typeof(e.pageX)==is_type._int){
				window.gmp.x=parseInt(e.pageX);
				window.gmp.y=parseInt(e.pageY);}
			else if(typeof(e.clientX)==is_type._int){
				window.gmp.x=parseInt(e.clientX);
				window.gmp.y=parseInt(e.clientY);}}
		return true;}
	window.onload=function(){
		window.ump=true;
		for(i=0;i<window.eol.length;i++){
			if(typeof(window.eol[i])==is_type._fnc){
				window.eol[i]();}
			else{eval(window.eol[i]);}}}}
swobj.prototype.getObjById=function(id,obj){
	if(this.getObjById.arguments.length<2){
		obj=this.doc;}
	if(typeof(obj.all)==is_type._obj){
		if(typeof(obj.all[id])==is_type._obj){
			return obj.all[id];}}
	else if(typeof(obj.getElementById)==is_type._fnc){
		if(typeof(obj.getElementById(id))==is_type._obj){
			return obj.getElementById(id);}}
	return null;}
swobj.prototype.getObjByTag=function(tag,obj){
	if(this.getObjByTag.arguments.length<2){
		obj=this.doc;}
	if((typeof(obj.all)==is_type._obj)&&(typeof(obj.all.tags)==is_type._obj)){
		if(typeof(obj.all.tags(tag))==is_type._obj){
			return obj.all.tags(tag);}}
	if(typeof(obj.getElementsByTagName)==is_type._fnc){
		if(typeof(obj.getElementsByTagName(tag))==is_type._obj){
			return obj.getElementsByTagName(tag);}}
	return null;}
swobj.prototype.execOnLoad=function(f){
	if(typeof(window.eol)==is_type._obj){
		window.eol.push(f);}}
swobj.prototype.getBasePath=function(){
	lnk=this.getObjByTag("LINK");
	if(lnk!=null){
		for(i=0;i<lnk.length;i++){
			if((typeof(lnk[i].type)==is_type._str)&&(lnk[i].type="swoop/path")){
				return lnk[i].href;}}}
	return false;}
swoop=new swobj();
if(typeof($)==is_type._udf){
	try{function $(id){
		if((typeof(swoop)==is_type._obj)&&(typeof(swoop.getObjById)==is_type._fnc)){
			obj=swoop.getObjById(id);
			if(obj!=null){
				obj.move=function(x,y){
					this.style.top=y;
					this.style.left=x;}
				obj.hide=function(){
					this.dspl=this.style.display;
					this.style.visibility=is_type._hid;
					this.style.display="none";}
				obj.show=function(){
					this.style.visibility=is_type._vis;
					this.style.display=this.dspl;}
				obj.read=function(){
					return this.innerHTML;}
				obj.write=function(d){
					this.innerHTML=d;}}
			return obj;}
		return null;}}catch(e){}}
/*swoop.core.end*/
