function getWidth() {
var myWidth = 0;
if( typeof( window.innerWidth ) == 'number' ) {
cmyWidth='100%';
} else if( document.documentElement && ( document.documentElement.clientWidth ) ) {
myWidth = document.documentElement.clientWidth;
cmyWidth = myWidth + 'px';
} else if( document.body && ( document.body.clientWidth ) ) {
myWidth = document.body.clientWidth;
cmyWidth = myWidth + 'px';
}
return cmyWidth;
}
var bodyRef = document.getElementsByTagName("body").item(0);
var htmlRef = document.getElementsByTagName("html").item(0);
var pierwszy = bodyRef.firstChild;
var mode=document.compatMode;
document.write('');