﻿var tgs=new Array("div","td","font","p");var szs=new Array("12px","14px","16px");var startsz="";function ts(C,F,A){if(!document.getElementById){return }var E=document,I=null,G,D,B,H;G=A;if(G<0){G=0}if(G>2){G=2}startsz=G;if(!(I=E.getElementById(F))){I=E.getElementsByTagName(F)[0]}for(D=0;D<C.length;D++){H=I.getElementsByTagName(C[D]);for(B=0;B<H.length;B++){if(H[B].className.indexOf("Nagłówek")!=-1){continue}H[B].style.fontSize=szs[G];if(A==1){H[B].style.lineHeight="22px"}else{if(A==2){H[B].style.lineHeight="26px"}else{H[B].style.lineHeight="20px"}}}}}function RadEditorCustomFilter(){this.GetDesignContent=function(B){var A=B;A=A.replace(new RegExp("<p> </p>","gi"),"<p>&nbsp;</p>");A=A.replace(new RegExp("<p></p>","gi"),"<p>&nbsp;</p>");return A};this.GetHtmlContent=function(B){var A=B;A=A.replace(new RegExp("<p> </p>","gi"),"<p>&nbsp;</p>");A=A.replace(new RegExp("<p></p>","gi"),"<p>&nbsp;</p>");return A};this.GetPreviewContent=null}function RadEditoronClientLoad(B){var A=new RadEditorCustomFilter();B.FiltersManager.Add(A)};

function Ext_FilePickerCallback(sender, args)
		{
		    if(args.Result)
		        if(args.Result.pathname)
		        {
		            var url =  args.Result.pathname;
		            var splitPosition = url.indexOf("//");
		            if (splitPosition >= 0) //absolute
		            {   }      
		            else if(url[0] != '/')
		            {
		                url = '/' + url;
		            }
		            $get(this.get_ControlToUpdate()).value = url;
		        }
		}