function PD_check(){
					window.PD_can_play=false;
	window.PD_mayor_v=6;
 if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write("<SCR" + "IPT LANGUAGE=VBScript\> \n");
	document.write("on error resume next \n");
	document.write("window.PD_can_play = ( IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.6\"))) \n");
	document.write("</SCR" + "IPT\> \n");
 	} else if (navigator.plugins && navigator.plugins["Shockwave Flash"]) {
		var PD_d = navigator.plugins["Shockwave Flash"].description;
		var PD_tv = parseInt(PD_d.charAt(PD_d.indexOf(".") - 1));
		//window.PD_can_play= PD_tv >= 6; 
		window.PD_can_play=true;
		}
		return window.PD_can_play;
				}
				if ( !PD_check() ) {
		try{
			while(!PD_check()){
				var PD_modalRet="cancel";
				var PD_modal=window.showModalDialog("/PD/error.php?lang=pl&vMa=6&type=modal&use_alternative=n" ,self ,"dialogWidth:350px;dialogHeight:310px;status:no;help:no")
				if(PD_modalRet=="cancel"){
					location="http://www.amu.pl/projects/PD/flash_absent.php?lang=pl";
					break;
				}else if(PD_modalRet=="loading" && PD_check()){
				break;
				}else if(PD_modalRet=="no_flash"){
					location="";
				break;
				}
			
			}
			}catch(e){		
						try{PD_win.close()}catch(e){}
			try{
				PD_checkPlugin=function (){
					try{window.PD_win.close()}catch(e){}
					if(window.PD_winRet=="cancel"){
					location="http://www.amu.pl/projects/PD/flash_absent.php?lang=pl";
					}else if(window.PD_winRet=="no_flash"){
					location="";
					}else if(!PD_check()){
					PD_win=window.open("/PD/error.php?lang=pl&vMa=6&type=new&use_alternative=n","PD_win","scrollbars=yes,width=350,height=310");
					}
			
				}
				if(!PD_check()){
					var PD_winRet="cancel";
					PD_win=window.open("/PD/error.php?lang=pl&vMa=6&type=new&use_alternative=n","PD_win","scrollbars=yes,width=350,height=310");
					
				}
				if(!PD_win)	alert("Brak wtyczki Macromedia Flash Player")
			}catch(e){
					
				}
					}
}else{
document.cookie="PD_ok=1; path=/";
}