function init_dw_Scroll() {
		var winW = 630
	if (document.body && document.body.offsetWidth) {
		winW = document.body.offsetWidth;
	}
	if (document.compatMode=='CSS1Compat' &&
		document.documentElement &&
		document.documentElement.offsetWidth ) {
		winW = document.documentElement.offsetWidth;
	}
	if (window.innerWidth) {
		winW = window.innerWidth;
	}
	divW =  document.getElementById('lyr1').offsetWidth;
    var wndo = new dw_scrollObj('content', 'lyr1', 't1');
    wndo.setUpScrollbar("dragBar", "track", "h", 3, 3);
    wndo.setUpScrollControls('scrollbar');
	
	if(winW > divW){
		document.getElementById("scrollbar").style.visibility = "hidden";
	}else{
		document.getElementById("scrollbar").style.visibility = "visible";
	}
}

// if code supported, link in the style sheet and call the init function onload
if ( dw_scrollObj.isSupported() ) {
    //dw_Util.writeStyleSheet('css/scroll.css');
    dw_Event.add( window, 'load', init_dw_Scroll);
}
