function appdevSideBar(bNFirst) {
	 	var oS = new OSSniff();
	 	if (oS.ie||oS.nn>=5){
	 		if (!bNFirst){	 
	 			if (oS.ie>=5&&!oS.mac){window.attachEvent("onresize",appdevSideBar);}
				else{window.onresize=appdevSideBar;}
			}
	 		//setTimeout("appdevSideBar2()",100);	
	 		appdevSideBar2();
		}
}

function appdevSideBar2() {
	var oS=new OSSniff();
	if (oS.ie||oS.nn>=5){
		var oMidRow=document.getElementById("midRow");
		var bWid=(((oS.ie)?document.body.clientWidth:self.innerWidth)>950);
		oMidRow.style.width=(bWid)?"825px":"600px";
		var oSC=document.getElementById("sideBar");
		var oSB=document.getElementById("bottomBar");
		if(bWid){			
			if((oSC!=null)&&(oSC.src=="about:blank"))
				oSC.src=oSC.getAttribute("hideSrc");
			if(oSB!=null)
				//oSB.height="0px";
				oSB.src="about:blank"				
		}
		else{
			if((oSB!=null)&&(oSB.src=="about:blank"))
				oSB.src=oSB.getAttribute("hideSrc");			
				//oSB.height="200px";
			if(oSC!=null)
				oSC.src="about:blank"				
		}				
	}	
}

function OSSniff() {
	var ua=navigator.userAgent.toLowerCase();
	this.webtv = (ua.indexOf("webtv")>-1);
	this.ie = (parseFloat(ua.slice(ua.indexOf("msie")+5)));
	this.nn = (this.ie)?(-1):(parseFloat(ua.slice(ua.indexOf("mozilla/")+8)));
	this.mac = (ua.indexOf("mac")>-1);
		
// screen resolution
	this.screenHeight = screen.height;
	this.screenWidth = screen.width;
	this.colorDepth = (this.nn>=4)?screen.pixelDepth:screen.colorDepth;
}
