//<![CDATA[<!-- 
var prn=false;
function ASS(t){var i,a;
  for(i=0;(a=document.getElementsByTagName('link')[i]);i++){
    if(a.getAttribute('rel').indexOf('style')!=-1&&a.getAttribute('title')){
      a.disabled=true;
      if(a.getAttribute('title')==t){a.disabled=false}
    }
  }
}

function swin(t){if(opener)if(opener.prn)ASS(t)}
function d(t){var b=document.getElementById('it').style;
	ASS(t);
	function d(h){var i,a;for(i=0;(a=document.getElementsByTagName('div')[i]);i++){
	if(a.className=='pl'||a.className=='po'){with(a.style){height=h}}}}
}

//Okna modalne
var wG,wB,wS,wD,wN;
var wA=[[wG,'../../../f','wG','height=650,width=550,scrollbars=1'],
		[wB,'../../../b/','wB','height=450,width=421,scrollbars=1,resizable=0'],
		[wS,'../../../s/','wS','height=450,width=421,scrollbars=1,resizable=0'],
		[wD,'z','wD','height=650,width=638,scrollbars=1,menubar=1,resizable=0'],
		[wN,'']]
function g(o,c){var u,p;
	u=wA[o][1]+c.charAt(0)+'.html#'+c;p=wA[o][3];
	p!=null?wA[o][0]=window.open(u,wA[o][2],p):wA[o][0]=window.open(u,wA[o][2]);
	wA[o][0].focus()
}
//CallBack function
var http_request=false;
function makeRequest(url,fCallback,fvar,fAsyn){
var method='GET';
http_request=false;
	if(window.XMLHttpRequest){ //Mozilla, Safari,...
		http_request=new XMLHttpRequest();
        if (http_request.overrideMimeType)http_request.overrideMimeType('text/xml');
    }else if(window.ActiveXObject){ //IE
    	try{
        	http_request=new ActiveXObject("Msxml2.XMLHTTP");
         }catch(e){
		 	try{
            	http_request=new ActiveXObject("Microsoft.XMLHTTP");
            }catch(e){}
         }
     }
	if(!http_request){
		alert('Giving up :( Cannot create an XMLHTTP instance');
        return false;
    }
	if(null!=fvar)method='POST';
	with(http_request){
		if("function"==typeof(fCallback))onreadystatechange=fCallback;
		open(method,url,fAsyn);
		if(method=='POST')setRequestHeader("Content-Type","application/x-www-form-urlencoded");
		send(fvar)
	}
}

function foto(){
	if(!http_request){
		alert('initial')
		http_request=true
	}
	alert(http_request)
	//g(0,'')
}

function initFoto(){
	
	
}


function c(){for(var i=0; i<=(wA.length-1); i++){if(wA[i][0]!=null){wA[i][0].close()}}}
function win(url){var w;w=window.open(url)}
//-->]]>

	

