var isnav=false;
var isiex=false;
var nav4=false;
var version=parseInt(navigator.appVersion);
if (navigator.appName=="Netscape") {
	isnav=true;
	}else{
	isiex=true;
}
var res="800";
if (screen.width > 800){
	res="1024";
	}
document.write('<LINK REL="StyleSheet" HREF="style'+res+'.css" TYPE="text/css">');
var tag="div";
function get_object(obj){
	if (typeof obj=="string"){
	if (isnav==true && version>=5){
	theobj=eval('document.getElementById("'+obj+'").style');
			}
	if (isnav==true && version==4){
	theobj=eval(container+'document.'+obj);
			}
	if (isiex==true){
	theobj=eval("document.all."+obj+".style");
			}
	} else {
		theobj=obj;
	}
	return theobj
}
function show(obj){
	var theobj=get_object(obj);
	theobj.visibility="visible";
}
function hide(obj){
	var theobj=get_object(obj);
	theobj.visibility="hidden";
}
function shift_to(obj,x,y){
	var theobj=get_object(obj);
	if (isnav==true && version>=5){
		theobj.left=x+"px";
		theobj.top=y+"px";
	}
	if (isnav==true && version==4){
		theobj.moveTo(x,y);
	}
	if (isiex==true){
		theobj.pixelLeft+=x;
		theobj.pixelTop+=y;
	}
}
function shift_by(obj,x,y){
	var theobj=get_object(obj);
	if (isnav==true && version>=5){
		theobj.left=parseInt(theobj.left)+x+"px";
		theobj.top=parseInt(theobj.top)+y+"px";
		}
	if (isnav==true && version==4){
			theobj.moveBy(x,y);
		}
	if (isiex==true){
			theobj.pixelLeft+=x;
			theobj.pixelTop+=y;
		}
}
function get_left(obj){
	var theobj=get_object(obj);
	if (isnav==true && version>=5){
		return parseInt(theobj.left);
	}
	if (isnav==true && version==4){
		return theobj.left;
	}
	if (isiex==true){
		return theobj.pixelLeft;
	}
}
function get_top(obj){
	var theobj=get_object(obj);
	if (isnav==true && version>=5){
		return parseInt(theobj.top);
	}
	if (isnav==true && version==4){
		return theobj.top;
	}
	if (isiex==true){
		return theobj.pixelTop;
	}
}	
function get_width(obj){
	var theobj=get_object(obj);
	if (isnav==true && version>=5){
		return parseInt(theobj.width);

	}
	if (isnav==true && version==4){
		return theobj.width;
	}
	if (isiex==true){
		return theobj.pixelWidth;
	}
}
function get_height(obj){
	var theobj=get_object(obj);
	if (isnav==true && version>=5){
		return parseInt(theobj.height);
	}
	if (isnav==true && version==4){
		return theobj.height;
	}
	if (isiex==true){
		return theobj.pixelHeight;
	}
}	
function set_clip(obj,top,right,bottom,left){
	var theobj=get_object(obj);
	if (isnav==true && version==4){
		theobj.clip.left=left;
		theobj.clip.top=top;
		theobj.clip.right=right;
		theobj.clip.bottom=bottom;
	}
	if (isiex==true || (isnav==true && version>=5)){
		theobj.clip='rect('+top+'px '+right+'px '+bottom+'px '+left+'px)';

	}
}
function put(obj,contents){
	if (isiex==true){
	var theobj=eval("document.all."+obj);
	theobj.innerHTML=contents;				
	}
	if (isnav==true && version>=5){
	var theobj=eval('document.getElementById("'+obj+'")');
	theobj.innerHTML=contents;	
	}
	if (isnav==true && version==4){
	theobj=eval("document."+obj+".document");
	theobj.write(contents);
	theobj.close();
	}
}
function change_bgc(obj,color){
	var theobj=get_object(obj);
	theobj.backgroundColor=color;
}
function set_index(outframe,inframe,zorder){
	var theobj=get_object(inframe);
	if (isiex==true || (isnav==true && version>=5)){
		theobj.zIndex=zorder;
	}
	if (isnav==true && version==4){
document.layers[outframe].document.layers[inframe].zIndex=zorder;
	}
}
