// browser window size functions
// not yet Tested on: IE 4.0, 5.0, 5.5, 6.0 NN 4.04,4.7, 6 - This shold be done

// Copyright (C) 2003 lukas@sdi.net.pl

function ShowVerticalAlign () {
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
  } else {
    if( document.documentElement &&
        ( document.documentElement.clientWidth ) ) {
      //IE 6+ in 'standards compliant mode'
      myWidth = document.documentElement.clientWidth;
    } else {
      if( document.body && ( document.body.clientWidth ) ) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
      }
    }
  }
  window.alert( 'Width = ' + myWidth );
}

function WindowWidth () {
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
  } else {
    if( document.documentElement &&
        ( document.documentElement.clientWidth ) ) {
      //IE 6+ in 'standards compliant mode'
      myWidth = document.documentElement.clientWidth;
    } else {
      if( document.body && ( document.body.clientWidth ) ) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
      }
    }
  }
  return( myWidth );
}

function PrintScrollerDiv () {
	document.write ( '<DIV id=scrollRollerDiv style="left: '+(WindowWidth () /2 + 350)+'px; top: 200px; POSITION: absolute" align="right">' ) ; 
//	document.write ( '<h1>'+(WindowWidth () /2  + 350)+'</h1>' ) ; 
}

function PrintContentDiv () {
	document.write ( '<DIV id=scrollWindowDiv  style="CLIP: rect(0px 350px  290px 0px); HEIGHT: 290px; LEFT: '+(WindowWidth () /2 -10)+'px; POSITION: absolute; TOP: 200px; WIDTH: 320px">' ) ; 
}

function Fotosy () {
//	window.open('fotosy.html', 'Warjutkowiey', 'resizable,height=300,width=300');
//	window.open('fotosy.html', 'Fotosy', 'resizable,height=500,width=500'); 
	window.open('fotosy.php', 'Fotosy', 'noresize,height=530,width=530'); 
}


function BrowserCheck() {
	
	if(document.getElementById)
		NVer=5
	else
	{
		NVer=parseInt(navigator.appVersion)	
	}
	//NVer=4
	if(document.all)
		NName="ie"
	else 
		if(document.layers)
			NName="nn"
		else
			NName="un"
		
	
}
