var nets = (document.layers)? true:false;
var iexp = (document.all)? true:false;

var vWidth;
var vHeight;

if (nets){
   vWidth  = window.innerWidth;
   vHeight = window.innerHeight;}
   
function fReload(){
	if(nets){
		if (window.innerWidth > 800){
		document.v1.left = (window.innerWidth/2)+150;}
		if (window.innerWidth <= 800){
		 document.v1.left = 560;}
	         }
	if(iexp){
		if (document.body.clientWidth > 800){
		 v1.style.left = (document.body.clientWidth/2)+160;}
		if (document.body.clientWidth <= 800){
		v1.style.left = 560;}
	         }
}

function fDrez(){
	if(iexp){
		 v1.style.visibility = "visible"};
	if(nets){
		document.v1.visibility = "visible"};
		}

function fPodm1(vPrzel, vName, vDir){
	if(vPrzel == 1){
		document.images[vDir].src = "../main_graphics/" + vName + "_1.gif";}
	if(vPrzel == 2){
		document.images[vDir].src = "../main_graphics/" + vName + "_2.gif";}}

function fPre()
{
	if (document.images)
	{
		var vImg = fPre.arguments;
		if (document.aArr == null)
		{
			document.aArr = new Array();
		}
		var i = document.aArr.length;
		with(document)
		{
			for(var j = 0; j < vImg.length; j++)
			{
				if (vImg[j].charAt(0) != "#")
				{
      				aArr[i] = new Image;
      				aArr[i++].src = vImg[j];
				}
			}
		}
	}
}

