var wait;
var agent = navigator.userAgent.toLowerCase();
var w3c = document.getElementById;
var ie = agent.indexOf("msie") != -1;
var gecko = agent.indexOf("gecko") != -1;
var opera = agent.indexOf("opera",0) != -1;
var opera = agent.indexOf("firefox",0) != -1;
var linux = agent.indexOf("linux",0) != -1;
var browserVersion = navigator.appVersion;
var fileName = new String(location.pathname);
var domainName = new String(document.domain);

function init() {
       // quit if this function has already been called
       if (arguments.callee.done) return;

       // flag this function so we don't do the same thing twice
       arguments.callee.done = true;

       // create the "page loaded" message
       var contentLeft = document.getElementById('base-left');
       var baseRight = document.getElementById('base-right');
       if ( contentLeft.offsetHeight > baseRight.offsetHeight)
       {
       	baseRight.style.height = contentLeft.offsetHeight+"px";
       }
   };

/* for Mozilla */
if (document.addEventListener) {
document.addEventListener("DOMContentLoaded", init, false);
}

/* for Internet Explorer */
/*@cc_on @*/
/*@if (@_win32)
document.write("<script defer src=ie_onload.js><"+"/script>");
/*@end @*/

/* for other browsers */
window.onload = window.onresize =  init

function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop];
}

function setContentScroll() {
	return false;
}