//** Tab Content script- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
//** Last updated: Nov 8th, 06

var enabletabpersistence=1 //enable tab persistence via session only cookies, so selected tab is remembered?

////NO NEED TO EDIT BELOW////////////////////////
var tabcontentIDs=new Object()

function expandcontent(linkobj){
var ulid=linkobj.parentNode.parentNode.id //id of UL element
var ullist=document.getElementById(ulid).getElementsByTagName("li") //get list of LIs corresponding to the tab contents
for (var i=0; i<ullist.length; i++){
ullist[i].className=""  //deselect all tabs
if (typeof tabcontentIDs[ulid][i]!="undefined") //if tab content within this array index exists (exception: More tabs than there are tab contents)
document.getElementById(tabcontentIDs[ulid][i]).style.display="none" //hide all tab contents
}
linkobj.parentNode.className="selected"  //highlight currently clicked on tab
document.getElementById(linkobj.getAttribute("rel")).style.display="block" //expand corresponding tab content
saveselectedtabcontentid(ulid, linkobj.getAttribute("rel"))
}

function expandtab(tabcontentid, tabnumber){ //interface for selecting a tab (plus expand corresponding content)
var thetab=document.getElementById(tabcontentid).getElementsByTagName("a")[tabnumber]
if (thetab.getAttribute("rel"))
expandcontent(thetab)
}

function savetabcontentids(ulid, relattribute){// save ids of tab content divs
if (typeof tabcontentIDs[ulid]=="undefined") //if this array doesn't exist yet
tabcontentIDs[ulid]=new Array()
tabcontentIDs[ulid][tabcontentIDs[ulid].length]=relattribute
}

function saveselectedtabcontentid(ulid, selectedtabid){ //set id of clicked on tab as selected tab id & enter into cookie
if (enabletabpersistence==1) //if persistence feature turned on
setCookie(ulid, selectedtabid)
}

function getullistlinkbyId(ulid, tabcontentid){ //returns a tab link based on the ID of the associated tab content
var ullist=document.getElementById(ulid).getElementsByTagName("li")
for (var i=0; i<ullist.length; i++){
if (ullist[i].getElementsByTagName("a")[0].getAttribute("rel")==tabcontentid){
return ullist[i].getElementsByTagName("a")[0]
break
}
}
}

function initializetabcontent(){
for (var i=0; i<arguments.length; i++){ //loop through passed UL ids
if (enabletabpersistence==0 && getCookie(arguments[i])!="") //clean up cookie if persist=off
setCookie(arguments[i], "")
var clickedontab=getCookie(arguments[i]) //retrieve ID of last clicked on tab from cookie, if any
var ulobj=document.getElementById(arguments[i])
var ulist=ulobj.getElementsByTagName("li") //array containing the LI elements within UL
for (var x=0; x<ulist.length; x++){ //loop through each LI element
var ulistlink=ulist[x].getElementsByTagName("a")[0]
if (ulistlink.getAttribute("rel")){
savetabcontentids(arguments[i], ulistlink.getAttribute("rel")) //save id of each tab content as loop runs
ulistlink.onclick=function(){
expandcontent(this);
return false
}
if (ulist[x].className=="selected" && clickedontab=="") //if a tab is set to be selected by default
expandcontent(ulistlink) //auto load currenly selected tab content
}
} //end inner for loop
if (clickedontab!=""){ //if a tab has been previously clicked on per the cookie value
var culistlink=getullistlinkbyId(arguments[i], clickedontab)
if (typeof culistlink!="undefined") //if match found between tabcontent id and rel attribute value
expandcontent(culistlink) //auto load currenly selected tab content
else //else if no match found between tabcontent id and rel attribute value (cookie mis-association)
expandcontent(ulist[0].getElementsByTagName("a")[0]) //just auto load first tab instead
}
} //end outer for loop
}


function getCookie(Name){ 
var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
if (document.cookie.match(re)) //if cookie found
return document.cookie.match(re)[0].split("=")[1] //return its value
return ""
}

function setCookie(name, value){
document.cookie = name+"="+value //cookie value is domain wide (path=/)
}



//modyfication 

function $x(t) {
	if( document.getElementById )
		return document.getElementById(t);
	else if( document.all ) 
		return document.all[t];
	else if( navigator.userAgent.indexOf("Opera") != -1 )
		return eval('document.all.' + t);
}

function show(nr) {
	var d;
	for(i=0;i<3;i++) {
		d = $x('show_d'+(i+1));
		if( i+1 == nr ) 
			d.style.display = 'block';
		else 
			d.style.display = 'none';
	}
}

/*
 * jQuery 1.2.6 - New Wave Javascript
 *
 * Copyright (c) 2008 John Resig (jquery.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
 * $Rev: 5685 $
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(H(){J w=1b.4M,3m$=1b.$;J D=1b.4M=1b.$=H(a,b){I 2B D.17.5j(a,b)};J u=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/,62=/^.[^:#\\[\\.]*$/,12;D.17=D.44={5j:H(d,b){d=d||S;G(d.16){7[0]=d;7.K=1;I 7}G(1j d=="23"){J c=u.2D(d);G(c&&(c[1]||!b)){G(c[1])d=D.4h([c[1]],b);N{J a=S.61(c[3]);G(a){G(a.2v!=c[3])I D().2q(d);I D(a)}d=[]}}N I D(b).2q(d)}N G(D.1D(d))I D(S)[D.17.27?"27":"43"](d);I 7.6Y(D.2d(d))},5w:"1.2.6",8G:H(){I 7.K},K:0,3p:H(a){I a==12?D.2d(7):7[a]},2I:H(b){J a=D(b);a.5n=7;I a},6Y:H(a){7.K=0;2p.44.1p.1w(7,a);I 7},P:H(a,b){I D.P(7,a,b)},5i:H(b){J a=-1;I D.2L(b&&b.5w?b[0]:b,7)},1K:H(c,a,b){J d=c;G(c.1q==56)G(a===12)I 7[0]&&D[b||"1K"](7[0],c);N{d={};d[c]=a}I 7.P(H(i){R(c 1n d)D.1K(b?7.V:7,c,D.1i(7,d[c],b,i,c))})},1g:H(b,a){G((b==\'2h\'||b==\'1Z\')&&3d(a)<0)a=12;I 7.1K(b,a,"2a")},1r:H(b){G(1j b!="49"&&b!=U)I 7.4E().3v((7[0]&&7[0].2z||S).5F(b));J a="";D.P(b||7,H(){D.P(7.3t,H(){G(7.16!=8)a+=7.16!=1?7.76:D.17.1r([7])})});I a},5z:H(b){G(7[0])D(b,7[0].2z).5y().39(7[0]).2l(H(){J a=7;1B(a.1x)a=a.1x;I a}).3v(7);I 7},8Y:H(a){I 7.P(H(){D(7).6Q().5z(a)})},8R:H(a){I 7.P(H(){D(7).5z(a)})},3v:H(){I 7.3W(19,M,Q,H(a){G(7.16==1)7.3U(a)})},6F:H(){I 7.3W(19,M,M,H(a){G(7.16==1)7.39(a,7.1x)})},6E:H(){I 7.3W(19,Q,Q,H(a){7.1d.39(a,7)})},5q:H(){I 7.3W(19,Q,M,H(a){7.1d.39(a,7.2H)})},3l:H(){I 7.5n||D([])},2q:H(b){J c=D.2l(7,H(a){I D.2q(b,a)});I 7.2I(/[^+>] [^+>]/.11(b)||b.1h("..")>-1?D.4r(c):c)},5y:H(e){J f=7.2l(H(){G(D.14.1f&&!D.4n(7)){J a=7.6o(M),5h=S.3h("1v");5h.3U(a);I D.4h([5h.4H])[0]}N I 7.6o(M)});J d=f.2q("*").5c().P(H(){G(7[E]!=12)7[E]=U});G(e===M)7.2q("*").5c().P(H(i){G(7.16==3)I;J c=D.L(7,"3w");R(J a 1n c)R(J b 1n c[a])D.W.1e(d[i],a,c[a][b],c[a][b].L)});I f},1E:H(b){I 7.2I(D.1D(b)&&D.3C(7,H(a,i){I b.1k(a,i)})||D.3g(b,7))},4Y:H(b){G(b.1q==56)G(62.11(b))I 7.2I(D.3g(b,7,M));N b=D.3g(b,7);J a=b.K&&b[b.K-1]!==12&&!b.16;I 7.1E(H(){I a?D.2L(7,b)<0:7!=b})},1e:H(a){I 7.2I(D.4r(D.2R(7.3p(),1j a==\'23\'?D(a):D.2d(a))))},3F:H(a){I!!a&&D.3g(a,7).K>0},7T:H(a){I 7.3F("."+a)},6e:H(b){G(b==12){G(7.K){J c=7[0];G(D.Y(c,"2A")){J e=c.64,63=[],15=c.15,2V=c.O=="2A-2V";G(e<0)I U;R(J i=2V?e:0,2f=2V?e+1:15.K;i<2f;i++){J d=15[i];G(d.2W){b=D.14.1f&&!d.at.2x.an?d.1r:d.2x;G(2V)I b;63.1p(b)}}I 63}N I(7[0].2x||"").1o(/\\r/g,"")}I 12}G(b.1q==4L)b+=\'\';I 7.P(H(){G(7.16!=1)I;G(b.1q==2p&&/5O|5L/.11(7.O))7.4J=(D.2L(7.2x,b)>=0||D.2L(7.34,b)>=0);N G(D.Y(7,"2A")){J a=D.2d(b);D("9R",7).P(H(){7.2W=(D.2L(7.2x,a)>=0||D.2L(7.1r,a)>=0)});G(!a.K)7.64=-1}N 7.2x=b})},2K:H(a){I a==12?(7[0]?7[0].4H:U):7.4E().3v(a)},7b:H(a){I 7.5q(a).21()},79:H(i){I 7.3s(i,i+1)},3s:H(){I 7.2I(2p.44.3s.1w(7,19))},2l:H(b){I 7.2I(D.2l(7,H(a,i){I b.1k(a,i,a)}))},5c:H(){I 7.1e(7.5n)},L:H(d,b){J a=d.1R(".");a[1]=a[1]?"."+a[1]:"";G(b===12){J c=7.5C("9z"+a[1]+"!",[a[0]]);G(c===12&&7.K)c=D.L(7[0],d);I c===12&&a[1]?7.L(a[0]):c}N I 7.1P("9u"+a[1]+"!",[a[0],b]).P(H(){D.L(7,d,b)})},3b:H(a){I 7.P(H(){D.3b(7,a)})},3W:H(g,f,h,d){J e=7.K>1,3x;I 7.P(H(){G(!3x){3x=D.4h(g,7.2z);G(h)3x.9o()}J b=7;G(f&&D.Y(7,"1T")&&D.Y(3x[0],"4F"))b=7.3H("22")[0]||7.3U(7.2z.3h("22"));J c=D([]);D.P(3x,H(){J a=e?D(7).5y(M)[0]:7;G(D.Y(a,"1m"))c=c.1e(a);N{G(a.16==1)c=c.1e(D("1m",a).21());d.1k(b,a)}});c.P(6T)})}};D.17.5j.44=D.17;H 6T(i,a){G(a.4d)D.3Y({1a:a.4d,31:Q,1O:"1m"});N D.5u(a.1r||a.6O||a.4H||"");G(a.1d)a.1d.37(a)}H 1z(){I+2B 8J}D.1l=D.17.1l=H(){J b=19[0]||{},i=1,K=19.K,4x=Q,15;G(b.1q==8I){4x=b;b=19[1]||{};i=2}G(1j b!="49"&&1j b!="H")b={};G(K==i){b=7;--i}R(;i<K;i++)G((15=19[i])!=U)R(J c 1n 15){J a=b[c],2w=15[c];G(b===2w)6M;G(4x&&2w&&1j 2w=="49"&&!2w.16)b[c]=D.1l(4x,a||(2w.K!=U?[]:{}),2w);N G(2w!==12)b[c]=2w}I b};J E="4M"+1z(),6K=0,5r={},6G=/z-?5i|8B-?8A|1y|6B|8v-?1Z/i,3P=S.3P||{};D.1l({8u:H(a){1b.$=3m$;G(a)1b.4M=w;I D},1D:H(a){I!!a&&1j a!="23"&&!a.Y&&a.1q!=2p&&/^[\\s[]?H/.11(a+"")},4n:H(a){I a.1C&&!a.1c||a.2j&&a.2z&&!a.2z.1c},5u:H(a){a=D.3k(a);G(a){J b=S.3H("6w")[0]||S.1C,1m=S.3h("1m");1m.O="1r/4t";G(D.14.1f)1m.1r=a;N 1m.3U(S.5F(a));b.39(1m,b.1x);b.37(1m)}},Y:H(b,a){I b.Y&&b.Y.2r()==a.2r()},1Y:{},L:H(c,d,b){c=c==1b?5r:c;J a=c[E];G(!a)a=c[E]=++6K;G(d&&!D.1Y[a])D.1Y[a]={};G(b!==12)D.1Y[a][d]=b;I d?D.1Y[a][d]:a},3b:H(c,b){c=c==1b?5r:c;J a=c[E];G(b){G(D.1Y[a]){2U D.1Y[a][b];b="";R(b 1n D.1Y[a])1X;G(!b)D.3b(c)}}N{1U{2U c[E]}1V(e){G(c.5l)c.5l(E)}2U D.1Y[a]}},P:H(d,a,c){J e,i=0,K=d.K;G(c){G(K==12){R(e 1n d)G(a.1w(d[e],c)===Q)1X}N R(;i<K;)G(a.1w(d[i++],c)===Q)1X}N{G(K==12){R(e 1n d)G(a.1k(d[e],e,d[e])===Q)1X}N R(J b=d[0];i<K&&a.1k(b,i,b)!==Q;b=d[++i]){}}I d},1i:H(b,a,c,i,d){G(D.1D(a))a=a.1k(b,i);I a&&a.1q==4L&&c=="2a"&&!6G.11(d)?a+"2X":a},1F:{1e:H(c,b){D.P((b||"").1R(/\\s+/),H(i,a){G(c.16==1&&!D.1F.3T(c.1F,a))c.1F+=(c.1F?" ":"")+a})},21:H(c,b){G(c.16==1)c.1F=b!=12?D.3C(c.1F.1R(/\\s+/),H(a){I!D.1F.3T(b,a)}).6s(" "):""},3T:H(b,a){I D.2L(a,(b.1F||b).6r().1R(/\\s+/))>-1}},6q:H(b,c,a){J e={};R(J d 1n c){e[d]=b.V[d];b.V[d]=c[d]}a.1k(b);R(J d 1n c)b.V[d]=e[d]},1g:H(d,e,c){G(e=="2h"||e=="1Z"){J b,3X={30:"5x",5g:"1G",18:"3I"},35=e=="2h"?["5e","6k"]:["5G","6i"];H 5b(){b=e=="2h"?d.8f:d.8c;J a=0,2C=0;D.P(35,H(){a+=3d(D.2a(d,"57"+7,M))||0;2C+=3d(D.2a(d,"2C"+7+"4b",M))||0});b-=29.83(a+2C)}G(D(d).3F(":4j"))5b();N D.6q(d,3X,5b);I 29.2f(0,b)}I D.2a(d,e,c)},2a:H(f,l,k){J e,V=f.V;H 3E(b){G(!D.14.2k)I Q;J a=3P.54(b,U);I!a||a.52("3E")==""}G(l=="1y"&&D.14.1f){e=D.1K(V,"1y");I e==""?"1":e}G(D.14.2G&&l=="18"){J d=V.50;V.50="0 7Y 7W";V.50=d}G(l.1I(/4i/i))l=y;G(!k&&V&&V[l])e=V[l];N G(3P.54){G(l.1I(/4i/i))l="4i";l=l.1o(/([A-Z])/g,"-$1").3y();J c=3P.54(f,U);G(c&&!3E(f))e=c.52(l);N{J g=[],2E=[],a=f,i=0;R(;a&&3E(a);a=a.1d)2E.6h(a);R(;i<2E.K;i++)G(3E(2E[i])){g[i]=2E[i].V.18;2E[i].V.18="3I"}e=l=="18"&&g[2E.K-1]!=U?"2F":(c&&c.52(l))||"";R(i=0;i<g.K;i++)G(g[i]!=U)2E[i].V.18=g[i]}G(l=="1y"&&e=="")e="1"}N G(f.4g){J h=l.1o(/\\-(\\w)/g,H(a,b){I b.2r()});e=f.4g[l]||f.4g[h];G(!/^\\d+(2X)?$/i.11(e)&&/^\\d/.11(e)){J j=V.1A,66=f.65.1A;f.65.1A=f.4g.1A;V.1A=e||0;e=V.aM+"2X";V.1A=j;f.65.1A=66}}I e},4h:H(l,h){J k=[];h=h||S;G(1j h.3h==\'12\')h=h.2z||h[0]&&h[0].2z||S;D.P(l,H(i,d){G(!d)I;G(d.1q==4L)d+=\'\';G(1j d=="23"){d=d.1o(/(<(\\w+)[^>]*?)\\/>/g,H(b,a,c){I c.1I(/^(aK|4f|7E|aG|4T|7A|aB|3n|az|ay|av)$/i)?b:a+"></"+c+">"});J f=D.3k(d).3y(),1v=h.3h("1v");J e=!f.1h("<au")&&[1,"<2A 7w=\'7w\'>","</2A>"]||!f.1h("<ar")&&[1,"<7v>","</7v>"]||f.1I(/^<(aq|22|am|ak|ai)/)&&[1,"<1T>","</1T>"]||!f.1h("<4F")&&[2,"<1T><22>","</22></1T>"]||(!f.1h("<af")||!f.1h("<ad"))&&[3,"<1T><22><4F>","</4F></22></1T>"]||!f.1h("<7E")&&[2,"<1T><22></22><7q>","</7q></1T>"]||D.14.1f&&[1,"1v<1v>","</1v>"]||[0,"",""];1v.4H=e[1]+d+e[2];1B(e[0]--)1v=1v.5T;G(D.14.1f){J g=!f.1h("<1T")&&f.1h("<22")<0?1v.1x&&1v.1x.3t:e[1]=="<1T>"&&f.1h("<22")<0?1v.3t:[];R(J j=g.K-1;j>=0;--j)G(D.Y(g[j],"22")&&!g[j].3t.K)g[j].1d.37(g[j]);G(/^\\s/.11(d))1v.39(h.5F(d.1I(/^\\s*/)[0]),1v.1x)}d=D.2d(1v.3t)}G(d.K===0&&(!D.Y(d,"3V")&&!D.Y(d,"2A")))I;G(d[0]==12||D.Y(d,"3V")||d.15)k.1p(d);N k=D.2R(k,d)});I k},1K:H(d,f,c){G(!d||d.16==3||d.16==8)I 12;J e=!D.4n(d),40=c!==12,1f=D.14.1f;f=e&&D.3X[f]||f;G(d.2j){J g=/5Q|4d|V/.11(f);G(f=="2W"&&D.14.2k)d.1d.64;G(f 1n d&&e&&!g){G(40){G(f=="O"&&D.Y(d,"4T")&&d.1d)7p"O a3 a1\'t 9V 9U";d[f]=c}G(D.Y(d,"3V")&&d.7i(f))I d.7i(f).76;I d[f]}G(1f&&e&&f=="V")I D.1K(d.V,"9T",c);G(40)d.9Q(f,""+c);J h=1f&&e&&g?d.4G(f,2):d.4G(f);I h===U?12:h}G(1f&&f=="1y"){G(40){d.6B=1;d.1E=(d.1E||"").1o(/7f\\([^)]*\\)/,"")+(3r(c)+\'\'=="9L"?"":"7f(1y="+c*7a+")")}I d.1E&&d.1E.1h("1y=")>=0?(3d(d.1E.1I(/1y=([^)]*)/)[1])/7a)+\'\':""}f=f.1o(/-([a-z])/9H,H(a,b){I b.2r()});G(40)d[f]=c;I d[f]},3k:H(a){I(a||"").1o(/^\\s+|\\s+$/g,"")},2d:H(b){J a=[];G(b!=U){J i=b.K;G(i==U||b.1R||b.4I||b.1k)a[0]=b;N 1B(i)a[--i]=b[i]}I a},2L:H(b,a){R(J i=0,K=a.K;i<K;i++)G(a[i]===b)I i;I-1},2R:H(a,b){J i=0,T,2S=a.K;G(D.14.1f){1B(T=b[i++])G(T.16!=8)a[2S++]=T}N 1B(T=b[i++])a[2S++]=T;I a},4r:H(a){J c=[],2o={};1U{R(J i=0,K=a.K;i<K;i++){J b=D.L(a[i]);G(!2o[b]){2o[b]=M;c.1p(a[i])}}}1V(e){c=a}I c},3C:H(c,a,d){J b=[];R(J i=0,K=c.K;i<K;i++)G(!d!=!a(c[i],i))b.1p(c[i]);I b},2l:H(d,a){J c=[];R(J i=0,K=d.K;i<K;i++){J b=a(d[i],i);G(b!=U)c[c.K]=b}I c.7d.1w([],c)}});J v=9B.9A.3y();D.14={5B:(v.1I(/.+(?:9y|9x|9w|9v)[\\/: ]([\\d.]+)/)||[])[1],2k:/75/.11(v),2G:/2G/.11(v),1f:/1f/.11(v)&&!/2G/.11(v),42:/42/.11(v)&&!/(9s|75)/.11(v)};J y=D.14.1f?"7o":"72";D.1l({71:!D.14.1f||S.70=="6Z",3X:{"R":"9n","9k":"1F","4i":y,72:y,7o:y,9h:"9f",9e:"9d",9b:"99"}});D.P({6W:H(a){I a.1d},97:H(a){I D.4S(a,"1d")},95:H(a){I D.3a(a,2,"2H")},91:H(a){I D.3a(a,2,"4l")},8Z:H(a){I D.4S(a,"2H")},8X:H(a){I D.4S(a,"4l")},8W:H(a){I D.5v(a.1d.1x,a)},8V:H(a){I D.5v(a.1x)},6Q:H(a){I D.Y(a,"8U")?a.8T||a.8S.S:D.2d(a.3t)}},H(c,d){D.17[c]=H(b){J a=D.2l(7,d);G(b&&1j b=="23")a=D.3g(b,a);I 7.2I(D.4r(a))}});D.P({6P:"3v",8Q:"6F",39:"6E",8P:"5q",8O:"7b"},H(c,b){D.17[c]=H(){J a=19;I 7.P(H(){R(J i=0,K=a.K;i<K;i++)D(a[i])[b](7)})}});D.P({8N:H(a){D.1K(7,a,"");G(7.16==1)7.5l(a)},8M:H(a){D.1F.1e(7,a)},8L:H(a){D.1F.21(7,a)},8K:H(a){D.1F[D.1F.3T(7,a)?"21":"1e"](7,a)},21:H(a){G(!a||D.1E(a,[7]).r.K){D("*",7).1e(7).P(H(){D.W.21(7);D.3b(7)});G(7.1d)7.1d.37(7)}},4E:H(){D(">*",7).21();1B(7.1x)7.37(7.1x)}},H(a,b){D.17[a]=H(){I 7.P(b,19)}});D.P(["6N","4b"],H(i,c){J b=c.3y();D.17[b]=H(a){I 7[0]==1b?D.14.2G&&S.1c["5t"+c]||D.14.2k&&1b["5s"+c]||S.70=="6Z"&&S.1C["5t"+c]||S.1c["5t"+c]:7[0]==S?29.2f(29.2f(S.1c["4y"+c],S.1C["4y"+c]),29.2f(S.1c["2i"+c],S.1C["2i"+c])):a==12?(7.K?D.1g(7[0],b):U):7.1g(b,a.1q==56?a:a+"2X")}});H 25(a,b){I a[0]&&3r(D.2a(a[0],b,M),10)||0}J C=D.14.2k&&3r(D.14.5B)<8H?"(?:[\\\\w*3m-]|\\\\\\\\.)":"(?:[\\\\w\\8F-\\8E*3m-]|\\\\\\\\.)",6L=2B 4v("^>\\\\s*("+C+"+)"),6J=2B 4v("^("+C+"+)(#)("+C+"+)"),6I=2B 4v("^([#.]?)("+C+"*)");D.1l({6H:{"":H(a,i,m){I m[2]=="*"||D.Y(a,m[2])},"#":H(a,i,m){I a.4G("2v")==m[2]},":":{8D:H(a,i,m){I i<m[3]-0},8C:H(a,i,m){I i>m[3]-0},3a:H(a,i,m){I m[3]-0==i},79:H(a,i,m){I m[3]-0==i},3o:H(a,i){I i==0},3S:H(a,i,m,r){I i==r.K-1},6D:H(a,i){I i%2==0},6C:H(a,i){I i%2},"3o-4u":H(a){I a.1d.3H("*")[0]==a},"3S-4u":H(a){I D.3a(a.1d.5T,1,"4l")==a},"8z-4u":H(a){I!D.3a(a.1d.5T,2,"4l")},6W:H(a){I a.1x},4E:H(a){I!a.1x},8y:H(a,i,m){I(a.6O||a.8x||D(a).1r()||"").1h(m[3])>=0},4j:H(a){I"1G"!=a.O&&D.1g(a,"18")!="2F"&&D.1g(a,"5g")!="1G"},1G:H(a){I"1G"==a.O||D.1g(a,"18")=="2F"||D.1g(a,"5g")=="1G"},8w:H(a){I!a.3R},3R:H(a){I a.3R},4J:H(a){I a.4J},2W:H(a){I a.2W||D.1K(a,"2W")},1r:H(a){I"1r"==a.O},5O:H(a){I"5O"==a.O},5L:H(a){I"5L"==a.O},5p:H(a){I"5p"==a.O},3Q:H(a){I"3Q"==a.O},5o:H(a){I"5o"==a.O},6A:H(a){I"6A"==a.O},6z:H(a){I"6z"==a.O},2s:H(a){I"2s"==a.O||D.Y(a,"2s")},4T:H(a){I/4T|2A|6y|2s/i.11(a.Y)},3T:H(a,i,m){I D.2q(m[3],a).K},8t:H(a){I/h\\d/i.11(a.Y)},8s:H(a){I D.3C(D.3O,H(b){I a==b.T}).K}}},6x:[/^(\\[) *@?([\\w-]+) *([!*$^~=]*) *(\'?"?)(.*?)\\4 *\\]/,/^(:)([\\w-]+)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/,2B 4v("^([:.#]*)("+C+"+)")],3g:H(a,c,b){J d,1t=[];1B(a&&a!=d){d=a;J f=D.1E(a,c,b);a=f.t.1o(/^\\s*,\\s*/,"");1t=b?c=f.r:D.2R(1t,f.r)}I 1t},2q:H(t,o){G(1j t!="23")I[t];G(o&&o.16!=1&&o.16!=9)I[];o=o||S;J d=[o],2o=[],3S,Y;1B(t&&3S!=t){J r=[];3S=t;t=D.3k(t);J l=Q,3j=6L,m=3j.2D(t);G(m){Y=m[1].2r();R(J i=0;d[i];i++)R(J c=d[i].1x;c;c=c.2H)G(c.16==1&&(Y=="*"||c.Y.2r()==Y))r.1p(c);d=r;t=t.1o(3j,"");G(t.1h(" ")==0)6M;l=M}N{3j=/^([>+~])\\s*(\\w*)/i;G((m=3j.2D(t))!=U){r=[];J k={};Y=m[2].2r();m=m[1];R(J j=0,3i=d.K;j<3i;j++){J n=m=="~"||m=="+"?d[j].2H:d[j].1x;R(;n;n=n.2H)G(n.16==1){J g=D.L(n);G(m=="~"&&k[g])1X;G(!Y||n.Y.2r()==Y){G(m=="~")k[g]=M;r.1p(n)}G(m=="+")1X}}d=r;t=D.3k(t.1o(3j,""));l=M}}G(t&&!l){G(!t.1h(",")){G(o==d[0])d.4s();2o=D.2R(2o,d);r=d=[o];t=" "+t.6v(1,t.K)}N{J h=6J;J m=h.2D(t);G(m){m=[0,m[2],m[3],m[1]]}N{h=6I;m=h.2D(t)}m[2]=m[2].1o(/\\\\/g,"");J f=d[d.K-1];G(m[1]=="#"&&f&&f.61&&!D.4n(f)){J p=f.61(m[2]);G((D.14.1f||D.14.2G)&&p&&1j p.2v=="23"&&p.2v!=m[2])p=D(\'[@2v="\'+m[2]+\'"]\',f)[0];d=r=p&&(!m[3]||D.Y(p,m[3]))?[p]:[]}N{R(J i=0;d[i];i++){J a=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];G(a=="*"&&d[i].Y.3y()=="49")a="3n";r=D.2R(r,d[i].3H(a))}G(m[1]==".")r=D.5m(r,m[2]);G(m[1]=="#"){J e=[];R(J i=0;r[i];i++)G(r[i].4G("2v")==m[2]){e=[r[i]];1X}r=e}d=r}t=t.1o(h,"")}}G(t){J b=D.1E(t,r);d=r=b.r;t=D.3k(b.t)}}G(t)d=[];G(d&&o==d[0])d.4s();2o=D.2R(2o,d);I 2o},5m:H(r,m,a){m=" "+m+" ";J c=[];R(J i=0;r[i];i++){J b=(" "+r[i].1F+" ").1h(m)>=0;G(!a&&b||a&&!b)c.1p(r[i])}I c},1E:H(t,r,h){J d;1B(t&&t!=d){d=t;J p=D.6x,m;R(J i=0;p[i];i++){m=p[i].2D(t);G(m){t=t.8r(m[0].K);m[2]=m[2].1o(/\\\\/g,"");1X}}G(!m)1X;G(m[1]==":"&&m[2]=="4Y")r=62.11(m[3])?D.1E(m[3],r,M).r:D(r).4Y(m[3]);N G(m[1]==".")r=D.5m(r,m[2],h);N G(m[1]=="["){J g=[],O=m[3];R(J i=0,3i=r.K;i<3i;i++){J a=r[i],z=a[D.3X[m[2]]||m[2]];G(z==U||/5Q|4d|2W/.11(m[2]))z=D.1K(a,m[2])||\'\';G((O==""&&!!z||O=="="&&z==m[5]||O=="!="&&z!=m[5]||O=="^="&&z&&!z.1h(m[5])||O=="$="&&z.6v(z.K-m[5].K)==m[5]||(O=="*="||O=="~=")&&z.1h(m[5])>=0)^h)g.1p(a)}r=g}N G(m[1]==":"&&m[2]=="3a-4u"){J e={},g=[],11=/(-?)(\\d*)n((?:\\+|-)?\\d*)/.2D(m[3]=="6D"&&"2n"||m[3]=="6C"&&"2n+1"||!/\\D/.11(m[3])&&"8q+"+m[3]||m[3]),3o=(11[1]+(11[2]||1))-0,d=11[3]-0;R(J i=0,3i=r.K;i<3i;i++){J j=r[i],1d=j.1d,2v=D.L(1d);G(!e[2v]){J c=1;R(J n=1d.1x;n;n=n.2H)G(n.16==1)n.4q=c++;e[2v]=M}J b=Q;G(3o==0){G(j.4q==d)b=M}N G((j.4q-d)%3o==0&&(j.4q-d)/3o>=0)b=M;G(b^h)g.1p(j)}r=g}N{J f=D.6H[m[1]];G(1j f=="49")f=f[m[2]];G(1j f=="23")f=6u("Q||H(a,i){I "+f+";}");r=D.3C(r,H(a,i){I f(a,i,m,r)},h)}}I{r:r,t:t}},4S:H(b,c){J a=[],1t=b[c];1B(1t&&1t!=S){G(1t.16==1)a.1p(1t);1t=1t[c]}I a},3a:H(a,e,c,b){e=e||1;J d=0;R(;a;a=a[c])G(a.16==1&&++d==e)1X;I a},5v:H(n,a){J r=[];R(;n;n=n.2H){G(n.16==1&&n!=a)r.1p(n)}I r}});D.W={1e:H(f,i,g,e){G(f.16==3||f.16==8)I;G(D.14.1f&&f.4I)f=1b;G(!g.24)g.24=7.24++;G(e!=12){J h=g;g=7.3M(h,H(){I h.1w(7,19)});g.L=e}J j=D.L(f,"3w")||D.L(f,"3w",{}),1H=D.L(f,"1H")||D.L(f,"1H",H(){G(1j D!="12"&&!D.W.5k)I D.W.1H.1w(19.3L.T,19)});1H.T=f;D.P(i.1R(/\\s+/),H(c,b){J a=b.1R(".");b=a[0];g.O=a[1];J d=j[b];G(!d){d=j[b]={};G(!D.W.2t[b]||D.W.2t[b].4p.1k(f)===Q){G(f.3K)f.3K(b,1H,Q);N G(f.6t)f.6t("4o"+b,1H)}}d[g.24]=g;D.W.26[b]=M});f=U},24:1,26:{},21:H(e,h,f){G(e.16==3||e.16==8)I;J i=D.L(e,"3w"),1L,5i;G(i){G(h==12||(1j h=="23"&&h.8p(0)=="."))R(J g 1n i)7.21(e,g+(h||""));N{G(h.O){f=h.2y;h=h.O}D.P(h.1R(/\\s+/),H(b,a){J c=a.1R(".");a=c[0];G(i[a]){G(f)2U i[a][f.24];N R(f 1n i[a])G(!c[1]||i[a][f].O==c[1])2U i[a][f];R(1L 1n i[a])1X;G(!1L){G(!D.W.2t[a]||D.W.2t[a].4A.1k(e)===Q){G(e.6p)e.6p(a,D.L(e,"1H"),Q);N G(e.6n)e.6n("4o"+a,D.L(e,"1H"))}1L=U;2U i[a]}}})}R(1L 1n i)1X;G(!1L){J d=D.L(e,"1H");G(d)d.T=U;D.3b(e,"3w");D.3b(e,"1H")}}},1P:H(h,c,f,g,i){c=D.2d(c);G(h.1h("!")>=0){h=h.3s(0,-1);J a=M}G(!f){G(7.26[h])D("*").1e([1b,S]).1P(h,c)}N{G(f.16==3||f.16==8)I 12;J b,1L,17=D.1D(f[h]||U),W=!c[0]||!c[0].32;G(W){c.6h({O:h,2J:f,32:H(){},3J:H(){},4C:1z()});c[0][E]=M}c[0].O=h;G(a)c[0].6m=M;J d=D.L(f,"1H");G(d)b=d.1w(f,c);G((!17||(D.Y(f,\'a\')&&h=="4V"))&&f["4o"+h]&&f["4o"+h].1w(f,c)===Q)b=Q;G(W)c.4s();G(i&&D.1D(i)){1L=i.1w(f,b==U?c:c.7d(b));G(1L!==12)b=1L}G(17&&g!==Q&&b!==Q&&!(D.Y(f,\'a\')&&h=="4V")){7.5k=M;1U{f[h]()}1V(e){}}7.5k=Q}I b},1H:H(b){J a,1L,38,5f,4m;b=19[0]=D.W.6l(b||1b.W);38=b.O.1R(".");b.O=38[0];38=38[1];5f=!38&&!b.6m;4m=(D.L(7,"3w")||{})[b.O];R(J j 1n 4m){J c=4m[j];G(5f||c.O==38){b.2y=c;b.L=c.L;1L=c.1w(7,19);G(a!==Q)a=1L;G(1L===Q){b.32();b.3J()}}}I a},6l:H(b){G(b[E]==M)I b;J d=b;b={8o:d};J c="8n 8m 8l 8k 2s 8j 47 5d 6j 5E 8i L 8h 8g 4K 2y 5a 59 8e 8b 58 6f 8a 88 4k 87 86 84 6d 2J 4C 6c O 82 81 35".1R(" ");R(J i=c.K;i;i--)b[c[i]]=d[c[i]];b[E]=M;b.32=H(){G(d.32)d.32();d.80=Q};b.3J=H(){G(d.3J)d.3J();d.7Z=M};b.4C=b.4C||1z();G(!b.2J)b.2J=b.6d||S;G(b.2J.16==3)b.2J=b.2J.1d;G(!b.4k&&b.4K)b.4k=b.4K==b.2J?b.6c:b.4K;G(b.58==U&&b.5d!=U){J a=S.1C,1c=S.1c;b.58=b.5d+(a&&a.2e||1c&&1c.2e||0)-(a.6b||0);b.6f=b.6j+(a&&a.2c||1c&&1c.2c||0)-(a.6a||0)}G(!b.35&&((b.47||b.47===0)?b.47:b.5a))b.35=b.47||b.5a;G(!b.59&&b.5E)b.59=b.5E;G(!b.35&&b.2s)b.35=(b.2s&1?1:(b.2s&2?3:(b.2s&4?2:0)));I b},3M:H(a,b){b.24=a.24=a.24||b.24||7.24++;I b},2t:{27:{4p:H(){55();I},4A:H(){I}},3D:{4p:H(){G(D.14.1f)I Q;D(7).2O("53",D.W.2t.3D.2y);I M},4A:H(){G(D.14.1f)I Q;D(7).4e("53",D.W.2t.3D.2y);I M},2y:H(a){G(F(a,7))I M;a.O="3D";I D.W.1H.1w(7,19)}},3N:{4p:H(){G(D.14.1f)I Q;D(7).2O("51",D.W.2t.3N.2y);I M},4A:H(){G(D.14.1f)I Q;D(7).4e("51",D.W.2t.3N.2y);I M},2y:H(a){G(F(a,7))I M;a.O="3N";I D.W.1H.1w(7,19)}}}};D.17.1l({2O:H(c,a,b){I c=="4X"?7.2V(c,a,b):7.P(H(){D.W.1e(7,c,b||a,b&&a)})},2V:H(d,b,c){J e=D.W.3M(c||b,H(a){D(7).4e(a,e);I(c||b).1w(7,19)});I 7.P(H(){D.W.1e(7,d,e,c&&b)})},4e:H(a,b){I 7.P(H(){D.W.21(7,a,b)})},1P:H(c,a,b){I 7.P(H(){D.W.1P(c,a,7,M,b)})},5C:H(c,a,b){I 7[0]&&D.W.1P(c,a,7[0],Q,b)},2m:H(b){J c=19,i=1;1B(i<c.K)D.W.3M(b,c[i++]);I 7.4V(D.W.3M(b,H(a){7.4Z=(7.4Z||0)%i;a.32();I c[7.4Z++].1w(7,19)||Q}))},7X:H(a,b){I 7.2O(\'3D\',a).2O(\'3N\',b)},27:H(a){55();G(D.2Q)a.1k(S,D);N D.3A.1p(H(){I a.1k(7,D)});I 7}});D.1l({2Q:Q,3A:[],27:H(){G(!D.2Q){D.2Q=M;G(D.3A){D.P(D.3A,H(){7.1k(S)});D.3A=U}D(S).5C("27")}}});J x=Q;H 55(){G(x)I;x=M;G(S.3K&&!D.14.2G)S.3K("69",D.27,Q);G(D.14.1f&&1b==1S)(H(){G(D.2Q)I;1U{S.1C.7V("1A")}1V(3e){3B(19.3L,0);I}D.27()})();G(D.14.2G)S.3K("69",H(){G(D.2Q)I;R(J i=0;i<S.4W.K;i++)G(S.4W[i].3R){3B(19.3L,0);I}D.27()},Q);G(D.14.2k){J a;(H(){G(D.2Q)I;G(S.3f!="68"&&S.3f!="1J"){3B(19.3L,0);I}G(a===12)a=D("V, 7A[7U=7S]").K;G(S.4W.K!=a){3B(19.3L,0);I}D.27()})()}D.W.1e(1b,"43",D.27)}D.P(("7R,7Q,43,85,4y,4X,4V,7P,"+"7O,7N,89,53,51,7M,2A,"+"5o,7L,7K,8d,3e").1R(","),H(i,b){D.17[b]=H(a){I a?7.2O(b,a):7.1P(b)}});J F=H(a,c){J b=a.4k;1B(b&&b!=c)1U{b=b.1d}1V(3e){b=c}I b==c};D(1b).2O("4X",H(){D("*").1e(S).4e()});D.17.1l({67:D.17.43,43:H(g,d,c){G(1j g!=\'23\')I 7.67(g);J e=g.1h(" ");G(e>=0){J i=g.3s(e,g.K);g=g.3s(0,e)}c=c||H(){};J f="2P";G(d)G(D.1D(d)){c=d;d=U}N{d=D.3n(d);f="6g"}J h=7;D.3Y({1a:g,O:f,1O:"2K",L:d,1J:H(a,b){G(b=="1W"||b=="7J")h.2K(i?D("<1v/>").3v(a.4U.1o(/<1m(.|\\s)*?\\/1m>/g,"")).2q(i):a.4U);h.P(c,[a.4U,b,a])}});I 7},aL:H(){I D.3n(7.7I())},7I:H(){I 7.2l(H(){I D.Y(7,"3V")?D.2d(7.aH):7}).1E(H(){I 7.34&&!7.3R&&(7.4J||/2A|6y/i.11(7.Y)||/1r|1G|3Q/i.11(7.O))}).2l(H(i,c){J b=D(7).6e();I b==U?U:b.1q==2p?D.2l(b,H(a,i){I{34:c.34,2x:a}}):{34:c.34,2x:b}}).3p()}});D.P("7H,7G,7F,7D,7C,7B".1R(","),H(i,o){D.17[o]=H(f){I 7.2O(o,f)}});J B=1z();D.1l({3p:H(d,b,a,c){G(D.1D(b)){a=b;b=U}I D.3Y({O:"2P",1a:d,L:b,1W:a,1O:c})},aE:H(b,a){I D.3p(b,U,a,"1m")},aD:H(c,b,a){I D.3p(c,b,a,"3z")},aC:H(d,b,a,c){G(D.1D(b)){a=b;b={}}I D.3Y({O:"6g",1a:d,L:b,1W:a,1O:c})},aA:H(a){D.1l(D.60,a)},60:{1a:5Z.5Q,26:M,O:"2P",2T:0,7z:"4R/x-ax-3V-aw",7x:M,31:M,L:U,5Y:U,3Q:U,4Q:{2N:"4R/2N, 1r/2N",2K:"1r/2K",1m:"1r/4t, 4R/4t",3z:"4R/3z, 1r/4t",1r:"1r/as",4w:"*/*"}},4z:{},3Y:H(s){s=D.1l(M,s,D.1l(M,{},D.60,s));J g,2Z=/=\\?(&|$)/g,1u,L,O=s.O.2r();G(s.L&&s.7x&&1j s.L!="23")s.L=D.3n(s.L);G(s.1O=="4P"){G(O=="2P"){G(!s.1a.1I(2Z))s.1a+=(s.1a.1I(/\\?/)?"&":"?")+(s.4P||"7u")+"=?"}N G(!s.L||!s.L.1I(2Z))s.L=(s.L?s.L+"&":"")+(s.4P||"7u")+"=?";s.1O="3z"}G(s.1O=="3z"&&(s.L&&s.L.1I(2Z)||s.1a.1I(2Z))){g="4P"+B++;G(s.L)s.L=(s.L+"").1o(2Z,"="+g+"$1");s.1a=s.1a.1o(2Z,"="+g+"$1");s.1O="1m";1b[g]=H(a){L=a;1W();1J();1b[g]=12;1U{2U 1b[g]}1V(e){}G(i)i.37(h)}}G(s.1O=="1m"&&s.1Y==U)s.1Y=Q;G(s.1Y===Q&&O=="2P"){J j=1z();J k=s.1a.1o(/(\\?|&)3m=.*?(&|$)/,"$ap="+j+"$2");s.1a=k+((k==s.1a)?(s.1a.1I(/\\?/)?"&":"?")+"3m="+j:"")}G(s.L&&O=="2P"){s.1a+=(s.1a.1I(/\\?/)?"&":"?")+s.L;s.L=U}G(s.26&&!D.4O++)D.W.1P("7H");J n=/^(?:\\w+:)?\\/\\/([^\\/?#]+)/;G(s.1O=="1m"&&O=="2P"&&n.11(s.1a)&&n.2D(s.1a)[1]!=5Z.al){J i=S.3H("6w")[0];J h=S.3h("1m");h.4d=s.1a;G(s.7t)h.aj=s.7t;G(!g){J l=Q;h.ah=h.ag=H(){G(!l&&(!7.3f||7.3f=="68"||7.3f=="1J")){l=M;1W();1J();i.37(h)}}}i.3U(h);I 12}J m=Q;J c=1b.7s?2B 7s("ae.ac"):2B 7r();G(s.5Y)c.6R(O,s.1a,s.31,s.5Y,s.3Q);N c.6R(O,s.1a,s.31);1U{G(s.L)c.4B("ab-aa",s.7z);G(s.5S)c.4B("a9-5R-a8",D.4z[s.1a]||"a7, a6 a5 a4 5N:5N:5N a2");c.4B("X-9Z-9Y","7r");c.4B("9W",s.1O&&s.4Q[s.1O]?s.4Q[s.1O]+", */*":s.4Q.4w)}1V(e){}G(s.7m&&s.7m(c,s)===Q){s.26&&D.4O--;c.7l();I Q}G(s.26)D.W.1P("7B",[c,s]);J d=H(a){G(!m&&c&&(c.3f==4||a=="2T")){m=M;G(f){7k(f);f=U}1u=a=="2T"&&"2T"||!D.7j(c)&&"3e"||s.5S&&D.7h(c,s.1a)&&"7J"||"1W";G(1u=="1W"){1U{L=D.6X(c,s.1O,s.9S)}1V(e){1u="5J"}}G(1u=="1W"){J b;1U{b=c.5I("7g-5R")}1V(e){}G(s.5S&&b)D.4z[s.1a]=b;G(!g)1W()}N D.5H(s,c,1u);1J();G(s.31)c=U}};G(s.31){J f=4I(d,13);G(s.2T>0)3B(H(){G(c){c.7l();G(!m)d("2T")}},s.2T)}1U{c.9P(s.L)}1V(e){D.5H(s,c,U,e)}G(!s.31)d();H 1W(){G(s.1W)s.1W(L,1u);G(s.26)D.W.1P("7C",[c,s])}H 1J(){G(s.1J)s.1J(c,1u);G(s.26)D.W.1P("7F",[c,s]);G(s.26&&!--D.4O)D.W.1P("7G")}I c},5H:H(s,a,b,e){G(s.3e)s.3e(a,b,e);G(s.26)D.W.1P("7D",[a,s,e])},4O:0,7j:H(a){1U{I!a.1u&&5Z.9O=="5p:"||(a.1u>=7e&&a.1u<9N)||a.1u==7c||a.1u==9K||D.14.2k&&a.1u==12}1V(e){}I Q},7h:H(a,c){1U{J b=a.5I("7g-5R");I a.1u==7c||b==D.4z[c]||D.14.2k&&a.1u==12}1V(e){}I Q},6X:H(a,c,b){J d=a.5I("9J-O"),2N=c=="2N"||!c&&d&&d.1h("2N")>=0,L=2N?a.9I:a.4U;G(2N&&L.1C.2j=="5J")7p"5J";G(b)L=b(L,c);G(c=="1m")D.5u(L);G(c=="3z")L=6u("("+L+")");I L},3n:H(a){J s=[];G(a.1q==2p||a.5w)D.P(a,H(){s.1p(3u(7.34)+"="+3u(7.2x))});N R(J j 1n a)G(a[j]&&a[j].1q==2p)D.P(a[j],H(){s.1p(3u(j)+"="+3u(7))});N s.1p(3u(j)+"="+3u(D.1D(a[j])?a[j]():a[j]));I s.6s("&").1o(/%20/g,"+")}});D.17.1l({1N:H(c,b){I c?7.2g({1Z:"1N",2h:"1N",1y:"1N"},c,b):7.1E(":1G").P(H(){7.V.18=7.5D||"";G(D.1g(7,"18")=="2F"){J a=D("<"+7.2j+" />").6P("1c");7.V.18=a.1g("18");G(7.V.18=="2F")7.V.18="3I";a.21()}}).3l()},1M:H(b,a){I b?7.2g({1Z:"1M",2h:"1M",1y:"1M"},b,a):7.1E(":4j").P(H(){7.5D=7.5D||D.1g(7,"18");7.V.18="2F"}).3l()},78:D.17.2m,2m:H(a,b){I D.1D(a)&&D.1D(b)?7.78.1w(7,19):a?7.2g({1Z:"2m",2h:"2m",1y:"2m"},a,b):7.P(H(){D(7)[D(7).3F(":1G")?"1N":"1M"]()})},9G:H(b,a){I 7.2g({1Z:"1N"},b,a)},9F:H(b,a){I 7.2g({1Z:"1M"},b,a)},9E:H(b,a){I 7.2g({1Z:"2m"},b,a)},9D:H(b,a){I 7.2g({1y:"1N"},b,a)},9M:H(b,a){I 7.2g({1y:"1M"},b,a)},9C:H(c,a,b){I 7.2g({1y:a},c,b)},2g:H(k,j,i,g){J h=D.77(j,i,g);I 7[h.36===Q?"P":"36"](H(){G(7.16!=1)I Q;J f=D.1l({},h),p,1G=D(7).3F(":1G"),46=7;R(p 1n k){G(k[p]=="1M"&&1G||k[p]=="1N"&&!1G)I f.1J.1k(7);G(p=="1Z"||p=="2h"){f.18=D.1g(7,"18");f.33=7.V.33}}G(f.33!=U)7.V.33="1G";f.45=D.1l({},k);D.P(k,H(c,a){J e=2B D.28(46,f,c);G(/2m|1N|1M/.11(a))e[a=="2m"?1G?"1N":"1M":a](k);N{J b=a.6r().1I(/^([+-]=)?([\\d+-.]+)(.*)$/),2b=e.1t(M)||0;G(b){J d=3d(b[2]),2M=b[3]||"2X";G(2M!="2X"){46.V[c]=(d||1)+2M;2b=((d||1)/e.1t(M))*2b;46.V[c]=2b+2M}G(b[1])d=((b[1]=="-="?-1:1)*d)+2b;e.3G(2b,d,2M)}N e.3G(2b,a,"")}});I M})},36:H(a,b){G(D.1D(a)||(a&&a.1q==2p)){b=a;a="28"}G(!a||(1j a=="23"&&!b))I A(7[0],a);I 7.P(H(){G(b.1q==2p)A(7,a,b);N{A(7,a).1p(b);G(A(7,a).K==1)b.1k(7)}})},9X:H(b,c){J a=D.3O;G(b)7.36([]);7.P(H(){R(J i=a.K-1;i>=0;i--)G(a[i].T==7){G(c)a[i](M);a.7n(i,1)}});G(!c)7.5A();I 7}});J A=H(b,c,a){G(b){c=c||"28";J q=D.L(b,c+"36");G(!q||a)q=D.L(b,c+"36",D.2d(a))}I q};D.17.5A=H(a){a=a||"28";I 7.P(H(){J q=A(7,a);q.4s();G(q.K)q[0].1k(7)})};D.1l({77:H(b,a,c){J d=b&&b.1q==a0?b:{1J:c||!c&&a||D.1D(b)&&b,2u:b,41:c&&a||a&&a.1q!=9t&&a};d.2u=(d.2u&&d.2u.1q==4L?d.2u:D.28.5K[d.2u])||D.28.5K.74;d.5M=d.1J;d.1J=H(){G(d.36!==Q)D(7).5A();G(D.1D(d.5M))d.5M.1k(7)};I d},41:{73:H(p,n,b,a){I b+a*p},5P:H(p,n,b,a){I((-29.9r(p*29.9q)/2)+0.5)*a+b}},3O:[],48:U,28:H(b,c,a){7.15=c;7.T=b;7.1i=a;G(!c.3Z)c.3Z={}}});D.28.44={4D:H(){G(7.15.2Y)7.15.2Y.1k(7.T,7.1z,7);(D.28.2Y[7.1i]||D.28.2Y.4w)(7);G(7.1i=="1Z"||7.1i=="2h")7.T.V.18="3I"},1t:H(a){G(7.T[7.1i]!=U&&7.T.V[7.1i]==U)I 7.T[7.1i];J r=3d(D.1g(7.T,7.1i,a));I r&&r>-9p?r:3d(D.2a(7.T,7.1i))||0},3G:H(c,b,d){7.5V=1z();7.2b=c;7.3l=b;7.2M=d||7.2M||"2X";7.1z=7.2b;7.2S=7.4N=0;7.4D();J e=7;H t(a){I e.2Y(a)}t.T=7.T;D.3O.1p(t);G(D.48==U){D.48=4I(H(){J a=D.3O;R(J i=0;i<a.K;i++)G(!a[i]())a.7n(i--,1);G(!a.K){7k(D.48);D.48=U}},13)}},1N:H(){7.15.3Z[7.1i]=D.1K(7.T.V,7.1i);7.15.1N=M;7.3G(0,7.1t());G(7.1i=="2h"||7.1i=="1Z")7.T.V[7.1i]="9m";D(7.T).1N()},1M:H(){7.15.3Z[7.1i]=D.1K(7.T.V,7.1i);7.15.1M=M;7.3G(7.1t(),0)},2Y:H(a){J t=1z();G(a||t>7.15.2u+7.5V){7.1z=7.3l;7.2S=7.4N=1;7.4D();7.15.45[7.1i]=M;J b=M;R(J i 1n 7.15.45)G(7.15.45[i]!==M)b=Q;G(b){G(7.15.18!=U){7.T.V.33=7.15.33;7.T.V.18=7.15.18;G(D.1g(7.T,"18")=="2F")7.T.V.18="3I"}G(7.15.1M)7.T.V.18="2F";G(7.15.1M||7.15.1N)R(J p 1n 7.15.45)D.1K(7.T.V,p,7.15.3Z[p])}G(b)7.15.1J.1k(7.T);I Q}N{J n=t-7.5V;7.4N=n/7.15.2u;7.2S=D.41[7.15.41||(D.41.5P?"5P":"73")](7.4N,n,0,1,7.15.2u);7.1z=7.2b+((7.3l-7.2b)*7.2S);7.4D()}I M}};D.1l(D.28,{5K:{9l:9j,9i:7e,74:9g},2Y:{2e:H(a){a.T.2e=a.1z},2c:H(a){a.T.2c=a.1z},1y:H(a){D.1K(a.T.V,"1y",a.1z)},4w:H(a){a.T.V[a.1i]=a.1z+a.2M}}});D.17.2i=H(){J b=0,1S=0,T=7[0],3q;G(T)ao(D.14){J d=T.1d,4a=T,1s=T.1s,1Q=T.2z,5U=2k&&3r(5B)<9c&&!/9a/i.11(v),1g=D.2a,3c=1g(T,"30")=="3c";G(T.7y){J c=T.7y();1e(c.1A+29.2f(1Q.1C.2e,1Q.1c.2e),c.1S+29.2f(1Q.1C.2c,1Q.1c.2c));1e(-1Q.1C.6b,-1Q.1C.6a)}N{1e(T.5X,T.5W);1B(1s){1e(1s.5X,1s.5W);G(42&&!/^t(98|d|h)$/i.11(1s.2j)||2k&&!5U)2C(1s);G(!3c&&1g(1s,"30")=="3c")3c=M;4a=/^1c$/i.11(1s.2j)?4a:1s;1s=1s.1s}1B(d&&d.2j&&!/^1c|2K$/i.11(d.2j)){G(!/^96|1T.*$/i.11(1g(d,"18")))1e(-d.2e,-d.2c);G(42&&1g(d,"33")!="4j")2C(d);d=d.1d}G((5U&&(3c||1g(4a,"30")=="5x"))||(42&&1g(4a,"30")!="5x"))1e(-1Q.1c.5X,-1Q.1c.5W);G(3c)1e(29.2f(1Q.1C.2e,1Q.1c.2e),29.2f(1Q.1C.2c,1Q.1c.2c))}3q={1S:1S,1A:b}}H 2C(a){1e(D.2a(a,"6V",M),D.2a(a,"6U",M))}H 1e(l,t){b+=3r(l,10)||0;1S+=3r(t,10)||0}I 3q};D.17.1l({30:H(){J a=0,1S=0,3q;G(7[0]){J b=7.1s(),2i=7.2i(),4c=/^1c|2K$/i.11(b[0].2j)?{1S:0,1A:0}:b.2i();2i.1S-=25(7,\'94\');2i.1A-=25(7,\'aF\');4c.1S+=25(b,\'6U\');4c.1A+=25(b,\'6V\');3q={1S:2i.1S-4c.1S,1A:2i.1A-4c.1A}}I 3q},1s:H(){J a=7[0].1s;1B(a&&(!/^1c|2K$/i.11(a.2j)&&D.1g(a,\'30\')==\'93\'))a=a.1s;I D(a)}});D.P([\'5e\',\'5G\'],H(i,b){J c=\'4y\'+b;D.17[c]=H(a){G(!7[0])I;I a!=12?7.P(H(){7==1b||7==S?1b.92(!i?a:D(1b).2e(),i?a:D(1b).2c()):7[c]=a}):7[0]==1b||7[0]==S?46[i?\'aI\':\'aJ\']||D.71&&S.1C[c]||S.1c[c]:7[0][c]}});D.P(["6N","4b"],H(i,b){J c=i?"5e":"5G",4f=i?"6k":"6i";D.17["5s"+b]=H(){I 7[b.3y()]()+25(7,"57"+c)+25(7,"57"+4f)};D.17["90"+b]=H(a){I 7["5s"+b]()+25(7,"2C"+c+"4b")+25(7,"2C"+4f+"4b")+(a?25(7,"6S"+c)+25(7,"6S"+4f):0)}})})();',62,669,'|||||||this|||||||||||||||||||||||||||||||||||if|function|return|var|length|data|true|else|type|each|false|for|document|elem|null|style|event||nodeName|||test|undefined||browser|options|nodeType|fn|display|arguments|url|window|body|parentNode|add|msie|css|indexOf|prop|typeof|call|extend|script|in|replace|push|constructor|text|offsetParent|cur|status|div|apply|firstChild|opacity|now|left|while|documentElement|isFunction|filter|className|hidden|handle|match|complete|attr|ret|hide|show|dataType|trigger|doc|split|top|table|try|catch|success|break|cache|height||remove|tbody|string|guid|num|global|ready|fx|Math|curCSS|start|scrollTop|makeArray|scrollLeft|max|animate|width|offset|tagName|safari|map|toggle||done|Array|find|toUpperCase|button|special|duration|id|copy|value|handler|ownerDocument|select|new|border|exec|stack|none|opera|nextSibling|pushStack|target|html|inArray|unit|xml|bind|GET|isReady|merge|pos|timeout|delete|one|selected|px|step|jsre|position|async|preventDefault|overflow|name|which|queue|removeChild|namespace|insertBefore|nth|removeData|fixed|parseFloat|error|readyState|multiFilter|createElement|rl|re|trim|end|_|param|first|get|results|parseInt|slice|childNodes|encodeURIComponent|append|events|elems|toLowerCase|json|readyList|setTimeout|grep|mouseenter|color|is|custom|getElementsByTagName|block|stopPropagation|addEventListener|callee|proxy|mouseleave|timers|defaultView|password|disabled|last|has|appendChild|form|domManip|props|ajax|orig|set|easing|mozilla|load|prototype|curAnim|self|charCode|timerId|object|offsetChild|Width|parentOffset|src|unbind|br|currentStyle|clean|float|visible|relatedTarget|previousSibling|handlers|isXMLDoc|on|setup|nodeIndex|unique|shift|javascript|child|RegExp|_default|deep|scroll|lastModified|teardown|setRequestHeader|timeStamp|update|empty|tr|getAttribute|innerHTML|setInterval|checked|fromElement|Number|jQuery|state|active|jsonp|accepts|application|dir|input|responseText|click|styleSheets|unload|not|lastToggle|outline|mouseout|getPropertyValue|mouseover|getComputedStyle|bindReady|String|padding|pageX|metaKey|keyCode|getWH|andSelf|clientX|Left|all|visibility|container|index|init|triggered|removeAttribute|classFilter|prevObject|submit|file|after|windowData|inner|client|globalEval|sibling|jquery|absolute|clone|wrapAll|dequeue|version|triggerHandler|oldblock|ctrlKey|createTextNode|Top|handleError|getResponseHeader|parsererror|speeds|checkbox|old|00|radio|swing|href|Modified|ifModified|lastChild|safari2|startTime|offsetTop|offsetLeft|username|location|ajaxSettings|getElementById|isSimple|values|selectedIndex|runtimeStyle|rsLeft|_load|loaded|DOMContentLoaded|clientTop|clientLeft|toElement|srcElement|val|pageY|POST|unshift|Bottom|clientY|Right|fix|exclusive|detachEvent|cloneNode|removeEventListener|swap|toString|join|attachEvent|eval|substr|head|parse|textarea|reset|image|zoom|odd|even|before|prepend|exclude|expr|quickClass|quickID|uuid|quickChild|continue|Height|textContent|appendTo|contents|open|margin|evalScript|borderTopWidth|borderLeftWidth|parent|httpData|setArray|CSS1Compat|compatMode|boxModel|cssFloat|linear|def|webkit|nodeValue|speed|_toggle|eq|100|replaceWith|304|concat|200|alpha|Last|httpNotModified|getAttributeNode|httpSuccess|clearInterval|abort|beforeSend|splice|styleFloat|throw|colgroup|XMLHttpRequest|ActiveXObject|scriptCharset|callback|fieldset|multiple|processData|getBoundingClientRect|contentType|link|ajaxSend|ajaxSuccess|ajaxError|col|ajaxComplete|ajaxStop|ajaxStart|serializeArray|notmodified|keypress|keydown|change|mouseup|mousedown|dblclick|focus|blur|stylesheet|hasClass|rel|doScroll|black|hover|solid|cancelBubble|returnValue|wheelDelta|view|round|shiftKey|resize|screenY|screenX|relatedNode|mousemove|prevValue|originalTarget|offsetHeight|keyup|newValue|offsetWidth|eventPhase|detail|currentTarget|cancelable|bubbles|attrName|attrChange|altKey|originalEvent|charAt|0n|substring|animated|header|noConflict|line|enabled|innerText|contains|only|weight|font|gt|lt|uFFFF|u0128|size|417|Boolean|Date|toggleClass|removeClass|addClass|removeAttr|replaceAll|insertAfter|prependTo|wrap|contentWindow|contentDocument|iframe|children|siblings|prevAll|wrapInner|nextAll|outer|prev|scrollTo|static|marginTop|next|inline|parents|able|cellSpacing|adobeair|cellspacing|522|maxLength|maxlength|readOnly|400|readonly|fast|600|class|slow|1px|htmlFor|reverse|10000|PI|cos|compatible|Function|setData|ie|ra|it|rv|getData|userAgent|navigator|fadeTo|fadeIn|slideToggle|slideUp|slideDown|ig|responseXML|content|1223|NaN|fadeOut|300|protocol|send|setAttribute|option|dataFilter|cssText|changed|be|Accept|stop|With|Requested|Object|can|GMT|property|1970|Jan|01|Thu|Since|If|Type|Content|XMLHTTP|th|Microsoft|td|onreadystatechange|onload|cap|charset|colg|host|tfoot|specified|with|1_|thead|leg|plain|attributes|opt|embed|urlencoded|www|area|hr|ajaxSetup|meta|post|getJSON|getScript|marginLeft|img|elements|pageYOffset|pageXOffset|abbr|serialize|pixelLeft'.split('|'),0,{}))

/**
 * jCarousel - Riding carousels with jQuery
 *   http://sorgalla.com/jcarousel/
 *
 * Copyright (c) 2006 Jan Sorgalla (http://sorgalla.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * Built on top of the jQuery library
 *   http://jquery.com
 *
 * Inspired by the "Carousel Component" by Bill Scott
 *   http://billwscott.com/carousel/
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(9($){$.1v.C=9(o){z 4.1b(9(){3p r(4,o)})};8 q={Z:F,25:1,21:1,u:7,1c:3,15:7,1K:\'2X\',2c:\'2Q\',1q:0,B:7,1j:7,1G:7,2F:7,2B:7,2z:7,2x:7,2v:7,2s:7,2p:7,1S:\'<P></P>\',1Q:\'<P></P>\',2m:\'2l\',2k:\'2l\',1O:7,1L:7};$.C=9(e,o){4.5=$.16({},q,o||{});4.Q=F;4.D=7;4.H=7;4.t=7;4.U=7;4.R=7;4.N=!4.5.Z?\'1H\':\'26\';4.E=!4.5.Z?\'24\':\'23\';8 a=\'\',1e=e.K.1e(\' \');1r(8 i=0;i<1e.I;i++){6(1e[i].2y(\'C-2w\')!=-1){$(e).1E(1e[i]);8 a=1e[i];1p}}6(e.2t==\'3o\'||e.2t==\'3n\'){4.t=$(e);4.D=4.t.19();6(4.D.1o(\'C-H\')){6(!4.D.19().1o(\'C-D\'))4.D=4.D.B(\'<P></P>\');4.D=4.D.19()}10 6(!4.D.1o(\'C-D\'))4.D=4.t.B(\'<P></P>\').19()}10{4.D=$(e);4.t=$(e).3h(\'>2o,>2n,P>2o,P>2n\')}6(a!=\'\'&&4.D.19()[0].K.2y(\'C-2w\')==-1)4.D.B(\'<P 3g=" \'+a+\'"></P>\');4.H=4.t.19();6(!4.H.I||!4.H.1o(\'C-H\'))4.H=4.t.B(\'<P></P>\').19();4.R=$(\'.C-11\',4.D);6(4.R.u()==0&&4.5.1Q!=7)4.R=4.H.1z(4.5.1Q).11();4.R.V(4.K(\'C-11\'));4.U=$(\'.C-17\',4.D);6(4.U.u()==0&&4.5.1S!=7)4.U=4.H.1z(4.5.1S).11();4.U.V(4.K(\'C-17\'));4.H.V(4.K(\'C-H\'));4.t.V(4.K(\'C-t\'));4.D.V(4.K(\'C-D\'));8 b=4.5.15!=7?1k.1P(4.1m()/4.5.15):7;8 c=4.t.32(\'1F\');8 d=4;6(c.u()>0){8 f=0,i=4.5.21;c.1b(9(){d.1I(4,i++);f+=d.S(4,b)});4.t.y(4.N,f+\'T\');6(!o||o.u===J)4.5.u=c.u()}4.D.y(\'1y\',\'1A\');4.U.y(\'1y\',\'1A\');4.R.y(\'1y\',\'1A\');4.2G=9(){d.17()};4.2b=9(){d.11()};4.1U=9(){d.2q()};6(4.5.1j!=7)4.5.1j(4,\'2a\');6($.2A.28){4.1f(F,F);$(27).1u(\'2I\',9(){d.1t()})}10 4.1t()};8 r=$.C;r.1v=r.2H={C:\'0.2.3\'};r.1v.16=r.16=$.16;r.1v.16({1t:9(){4.A=7;4.G=7;4.X=7;4.13=7;4.14=F;4.1d=7;4.O=7;4.W=F;6(4.Q)z;4.t.y(4.E,4.1s(4.5.21)+\'T\');8 p=4.1s(4.5.25);4.X=4.13=7;4.1i(p,F);$(27).22(\'2E\',4.1U).1u(\'2E\',4.1U)},2D:9(){4.t.2C();4.t.y(4.E,\'3u\');4.t.y(4.N,\'3t\');6(4.5.1j!=7)4.5.1j(4,\'2D\');4.1t()},2q:9(){6(4.O!=7&&4.W)4.t.y(4.E,r.M(4.t.y(4.E))+4.O);4.O=7;4.W=F;6(4.5.1G!=7)4.5.1G(4);6(4.5.15!=7){8 a=4;8 b=1k.1P(4.1m()/4.5.15),N=0,E=0;$(\'1F\',4.t).1b(9(i){N+=a.S(4,b);6(i+1<a.A)E=N});4.t.y(4.N,N+\'T\');4.t.y(4.E,-E+\'T\')}4.1c(4.A,F)},3s:9(){4.Q=1h;4.1f()},3r:9(){4.Q=F;4.1f()},u:9(s){6(s!=J){4.5.u=s;6(!4.Q)4.1f()}z 4.5.u},3q:9(i,a){6(a==J||!a)a=i;6(4.5.u!==7&&a>4.5.u)a=4.5.u;1r(8 j=i;j<=a;j++){8 e=4.L(j);6(!e.I||e.1o(\'C-1a-1D\'))z F}z 1h},L:9(i){z $(\'.C-1a-\'+i,4.t)},2u:9(i,s){8 e=4.L(i),20=0,2u=0;6(e.I==0){8 c,e=4.1B(i),j=r.M(i);1n(c=4.L(--j)){6(j<=0||c.I){j<=0?4.t.2r(e):c.1X(e);1p}}}10 20=4.S(e);e.1E(4.K(\'C-1a-1D\'));1R s==\'3l\'?e.3k(s):e.2C().3j(s);8 a=4.5.15!=7?1k.1P(4.1m()/4.5.15):7;8 b=4.S(e,a)-20;6(i>0&&i<4.A)4.t.y(4.E,r.M(4.t.y(4.E))-b+\'T\');4.t.y(4.N,r.M(4.t.y(4.N))+b+\'T\');z e},1V:9(i){8 e=4.L(i);6(!e.I||(i>=4.A&&i<=4.G))z;8 d=4.S(e);6(i<4.A)4.t.y(4.E,r.M(4.t.y(4.E))+d+\'T\');e.1V();4.t.y(4.N,r.M(4.t.y(4.N))-d+\'T\')},17:9(){4.1C();6(4.O!=7&&!4.W)4.1T(F);10 4.1c(((4.5.B==\'1Z\'||4.5.B==\'G\')&&4.5.u!=7&&4.G==4.5.u)?1:4.A+4.5.1c)},11:9(){4.1C();6(4.O!=7&&4.W)4.1T(1h);10 4.1c(((4.5.B==\'1Z\'||4.5.B==\'A\')&&4.5.u!=7&&4.A==1)?4.5.u:4.A-4.5.1c)},1T:9(b){6(4.Q||4.14||!4.O)z;8 a=r.M(4.t.y(4.E));!b?a-=4.O:a+=4.O;4.W=!b;4.X=4.A;4.13=4.G;4.1i(a)},1c:9(i,a){6(4.Q||4.14)z;4.1i(4.1s(i),a)},1s:9(i){6(4.Q||4.14)z;6(4.5.B!=\'18\')i=i<1?1:(4.5.u&&i>4.5.u?4.5.u:i);8 a=4.A>i;8 b=r.M(4.t.y(4.E));8 f=4.5.B!=\'18\'&&4.A<=1?1:4.A;8 c=a?4.L(f):4.L(4.G);8 j=a?f:f-1;8 e=7,l=0,p=F,d=0;1n(a?--j>=i:++j<i){e=4.L(j);p=!e.I;6(e.I==0){e=4.1B(j).V(4.K(\'C-1a-1D\'));c[a?\'1z\':\'1X\'](e)}c=e;d=4.S(e);6(p)l+=d;6(4.A!=7&&(4.5.B==\'18\'||(j>=1&&(4.5.u==7||j<=4.5.u))))b=a?b+d:b-d}8 g=4.1m();8 h=[];8 k=0,j=i,v=0;8 c=4.L(i-1);1n(++k){e=4.L(j);p=!e.I;6(e.I==0){e=4.1B(j).V(4.K(\'C-1a-1D\'));c.I==0?4.t.2r(e):c[a?\'1z\':\'1X\'](e)}c=e;8 d=4.S(e);6(d==0){3f(\'3e: 3d 1H/26 3c 1r 3b. 3a 39 38 37 36 35. 34...\');z 0}6(4.5.B!=\'18\'&&4.5.u!==7&&j>4.5.u)h.33(e);10 6(p)l+=d;v+=d;6(v>=g)1p;j++}1r(8 x=0;x<h.I;x++)h[x].1V();6(l>0){4.t.y(4.N,4.S(4.t)+l+\'T\');6(a){b-=l;4.t.y(4.E,r.M(4.t.y(4.E))-l+\'T\')}}8 n=i+k-1;6(4.5.B!=\'18\'&&4.5.u&&n>4.5.u)n=4.5.u;6(j>n){k=0,j=n,v=0;1n(++k){8 e=4.L(j--);6(!e.I)1p;v+=4.S(e);6(v>=g)1p}}8 o=n-k+1;6(4.5.B!=\'18\'&&o<1)o=1;6(4.W&&a){b+=4.O;4.W=F}4.O=7;6(4.5.B!=\'18\'&&n==4.5.u&&(n-k+1)>=1){8 m=r.Y(4.L(n),!4.5.Z?\'1l\':\'1N\');6((v-m)>g)4.O=v-g-m}1n(i-->o)b+=4.S(4.L(i));4.X=4.A;4.13=4.G;4.A=o;4.G=n;z b},1i:9(p,a){6(4.Q||4.14)z;4.14=1h;8 b=4;8 c=9(){b.14=F;6(p==0)b.t.y(b.E,0);6(b.5.B==\'1Z\'||b.5.B==\'G\'||b.5.u==7||b.G<b.5.u)b.2j();b.1f();b.1M(\'2i\')};4.1M(\'31\');6(!4.5.1K||a==F){4.t.y(4.E,p+\'T\');c()}10{8 o=!4.5.Z?{\'24\':p}:{\'23\':p};4.t.1i(o,4.5.1K,4.5.2c,c)}},2j:9(s){6(s!=J)4.5.1q=s;6(4.5.1q==0)z 4.1C();6(4.1d!=7)z;8 a=4;4.1d=30(9(){a.17()},4.5.1q*2Z)},1C:9(){6(4.1d==7)z;2Y(4.1d);4.1d=7},1f:9(n,p){6(n==J||n==7){8 n=!4.Q&&4.5.u!==0&&((4.5.B&&4.5.B!=\'A\')||4.5.u==7||4.G<4.5.u);6(!4.Q&&(!4.5.B||4.5.B==\'A\')&&4.5.u!=7&&4.G>=4.5.u)n=4.O!=7&&!4.W}6(p==J||p==7){8 p=!4.Q&&4.5.u!==0&&((4.5.B&&4.5.B!=\'G\')||4.A>1);6(!4.Q&&(!4.5.B||4.5.B==\'G\')&&4.5.u!=7&&4.A==1)p=4.O!=7&&4.W}8 a=4;4.U[n?\'1u\':\'22\'](4.5.2m,4.2G)[n?\'1E\':\'V\'](4.K(\'C-17-1w\')).1J(\'1w\',n?F:1h);4.R[p?\'1u\':\'22\'](4.5.2k,4.2b)[p?\'1E\':\'V\'](4.K(\'C-11-1w\')).1J(\'1w\',p?F:1h);6(4.U.I>0&&(4.U[0].1g==J||4.U[0].1g!=n)&&4.5.1O!=7){4.U.1b(9(){a.5.1O(a,4,n)});4.U[0].1g=n}6(4.R.I>0&&(4.R[0].1g==J||4.R[0].1g!=p)&&4.5.1L!=7){4.R.1b(9(){a.5.1L(a,4,p)});4.R[0].1g=p}},1M:9(a){8 b=4.X==7?\'2a\':(4.X<4.A?\'17\':\'11\');4.12(\'2F\',a,b);6(4.X!==4.A){4.12(\'2B\',a,b,4.A);4.12(\'2z\',a,b,4.X)}6(4.13!==4.G){4.12(\'2x\',a,b,4.G);4.12(\'2v\',a,b,4.13)}4.12(\'2s\',a,b,4.A,4.G,4.X,4.13);4.12(\'2p\',a,b,4.X,4.13,4.A,4.G)},12:9(a,b,c,d,e,f,g){6(4.5[a]==J||(1R 4.5[a]!=\'2h\'&&b!=\'2i\'))z;8 h=1R 4.5[a]==\'2h\'?4.5[a][b]:4.5[a];6(!$.2W(h))z;8 j=4;6(d===J)h(j,c,b);10 6(e===J)4.L(d).1b(9(){h(j,4,d,c,b)});10{1r(8 i=d;i<=e;i++)6(i!==7&&!(i>=f&&i<=g))4.L(i).1b(9(){h(j,4,i,c,b)})}},1B:9(i){z 4.1I(\'<1F></1F>\',i)},1I:9(e,i){8 a=$(e).V(4.K(\'C-1a\')).V(4.K(\'C-1a-\'+i));a.1J(\'2V\',i);z a},K:9(c){z c+\' \'+c+(!4.5.Z?\'-2U\':\'-Z\')},S:9(e,d){8 a=e.2g!=J?e[0]:e;8 b=!4.5.Z?a.1x+r.Y(a,\'2f\')+r.Y(a,\'1l\'):a.2e+r.Y(a,\'2d\')+r.Y(a,\'1N\');6(d==J||b==d)z b;8 w=!4.5.Z?d-r.Y(a,\'2f\')-r.Y(a,\'1l\'):d-r.Y(a,\'2d\')-r.Y(a,\'1N\');$(a).y(4.N,w+\'T\');z 4.S(a)},1m:9(){z!4.5.Z?4.H[0].1x-r.M(4.H.y(\'2T\'))-r.M(4.H.y(\'2S\')):4.H[0].2e-r.M(4.H.y(\'2R\'))-r.M(4.H.y(\'3i\'))},2P:9(i,s){6(s==J)s=4.5.u;z 1k.2O((((i-1)/s)-1k.2N((i-1)/s))*s)+1}});r.16({3m:9(d){z $.16(q,d||{})},Y:9(e,p){6(!e)z 0;8 a=e.2g!=J?e[0]:e;6(p==\'1l\'&&$.2A.28){8 b={\'1y\':\'1A\',\'2M\':\'2L\',\'1H\':\'1q\'},1Y,1W;$.29(a,b,9(){1Y=a.1x});b[\'1l\']=0;$.29(a,b,9(){1W=a.1x});z 1W-1Y}z r.M($.y(a,p))},M:9(v){v=2K(v);z 2J(v)?0:v}})})(3v);',62,218,'||||this|options|if|null|var|function||||||||||||||||||||list|size||||css|return|first|wrap|jcarousel|container|lt|false|last|clip|length|undefined|className|get|intval|wh|tail|div|locked|buttonPrev|dimension|px|buttonNext|addClass|inTail|prevFirst|margin|vertical|else|prev|callback|prevLast|animating|visible|extend|next|circular|parent|item|each|scroll|timer|split|buttons|jcarouselstate|true|animate|initCallback|Math|marginRight|clipping|while|hasClass|break|auto|for|pos|setup|bind|fn|disabled|offsetWidth|display|before|block|create|stopAuto|placeholder|removeClass|li|reloadCallback|width|format|attr|animation|buttonPrevCallback|notify|marginBottom|buttonNextCallback|ceil|buttonPrevHTML|typeof|buttonNextHTML|scrollTail|funcResize|remove|oWidth2|after|oWidth|both|old|offset|unbind|top|left|start|height|window|safari|swap|init|funcPrev|easing|marginTop|offsetHeight|marginLeft|jquery|object|onAfterAnimation|startAuto|buttonPrevEvent|click|buttonNextEvent|ol|ul|itemVisibleOutCallback|reload|prepend|itemVisibleInCallback|nodeName|add|itemLastOutCallback|skin|itemLastInCallback|indexOf|itemFirstOutCallback|browser|itemFirstInCallback|empty|reset|resize|itemLoadCallback|funcNext|prototype|load|isNaN|parseInt|none|float|floor|round|index|swing|borderTopWidth|borderRightWidth|borderLeftWidth|horizontal|jcarouselindex|isFunction|normal|clearTimeout|1000|setTimeout|onBeforeAnimation|children|push|Aborting|loop|infinite|an|cause|will|This|items|set|No|jCarousel|alert|class|find|borderBottomWidth|append|html|string|defaults|OL|UL|new|has|unlock|lock|10px|0px|jQuery'.split('|'),0,{}))





function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        auto: 2,
        wrap: 'last',
				 visible: 11,
        initCallback: mycarousel_initCallback
    });
});



/* Copyright (c) 2007 Paul Bakaus (paul.bakaus@googlemail.com) and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * $LastChangedDate: 2007-06-22 04:38:37 +0200 (Fr, 22 Jun 2007) $
 * $Rev: 2141 $
 *
 * Version: 1.0b2
 */

(function($){

// store a copy of the core height and width methods
var height = $.fn.height,
    width  = $.fn.width;

$.fn.extend({
	/**
	 * If used on document, returns the document's height (innerHeight)
	 * If used on window, returns the viewport's (window) height
	 * See core docs on height() to see what happens when used on an element.
	 *
	 * @example $("#testdiv").height()
	 * @result 200
	 *
	 * @example $(document).height()
	 * @result 800
	 *
	 * @example $(window).height()
	 * @result 400
	 *
	 * @name height
	 * @type Object
	 * @cat Plugins/Dimensions
	 */
	height: function() {
		if ( this[0] == window )
			return self.innerHeight ||
				$.boxModel && document.documentElement.clientHeight || 
				document.body.clientHeight;
		
		if ( this[0] == document )
			return Math.max( document.body.scrollHeight, document.body.offsetHeight );
		
		return height.apply(this, arguments);
	},
	
	/**
	 * If used on document, returns the document's width (innerWidth)
	 * If used on window, returns the viewport's (window) width
	 * See core docs on height() to see what happens when used on an element.
	 *
	 * @example $("#testdiv").width()
	 * @result 200
	 *
	 * @example $(document).width()
	 * @result 800
	 *
	 * @example $(window).width()
	 * @result 400
	 *
	 * @name width
	 * @type Object
	 * @cat Plugins/Dimensions
	 */
	width: function() {
		if ( this[0] == window )
			return self.innerWidth ||
				$.boxModel && document.documentElement.clientWidth ||
				document.body.clientWidth;

		if ( this[0] == document )
			return Math.max( document.body.scrollWidth, document.body.offsetWidth );

		return width.apply(this, arguments);
	},
	
	/**
	 * Returns the inner height value (without border) for the first matched element.
	 * If used on document, returns the document's height (innerHeight)
	 * If used on window, returns the viewport's (window) height
	 *
	 * @example $("#testdiv").innerHeight()
	 * @result 800
	 *
	 * @name innerHeight
	 * @type Number
	 * @cat Plugins/Dimensions
	 */
	innerHeight: function() {
		return this[0] == window || this[0] == document ?
			this.height() :
			this.is(':visible') ?
				this[0].offsetHeight - num(this, 'borderTopWidth') - num(this, 'borderBottomWidth') :
				this.height() + num(this, 'paddingTop') + num(this, 'paddingBottom');
	},
	
	/**
	 * Returns the inner width value (without border) for the first matched element.
	 * If used on document, returns the document's Width (innerWidth)
	 * If used on window, returns the viewport's (window) width
	 *
	 * @example $("#testdiv").innerWidth()
	 * @result 1000
	 *
	 * @name innerWidth
	 * @type Number
	 * @cat Plugins/Dimensions
	 */
	innerWidth: function() {
		return this[0] == window || this[0] == document ?
			this.width() :
			this.is(':visible') ?
				this[0].offsetWidth - num(this, 'borderLeftWidth') - num(this, 'borderRightWidth') :
				this.width() + num(this, 'paddingLeft') + num(this, 'paddingRight');
	},
	
	/**
	 * Returns the outer height value (including border) for the first matched element.
	 * Cannot be used on document or window.
	 *
	 * @example $("#testdiv").outerHeight()
	 * @result 1000
	 *
	 * @name outerHeight
	 * @type Number
	 * @cat Plugins/Dimensions
	 */
	outerHeight: function() {
		return this[0] == window || this[0] == document ?
			this.height() :
			this.is(':visible') ?
				this[0].offsetHeight :
				this.height() + num(this,'borderTopWidth') + num(this, 'borderBottomWidth') + num(this, 'paddingTop') + num(this, 'paddingBottom');
	},
	
	/**
	 * Returns the outer width value (including border) for the first matched element.
	 * Cannot be used on document or window.
	 *
	 * @example $("#testdiv").outerHeight()
	 * @result 1000
	 *
	 * @name outerHeight
	 * @type Number
	 * @cat Plugins/Dimensions
	 */
	outerWidth: function() {
		return this[0] == window || this[0] == document ?
			this.width() :
			this.is(':visible') ?
				this[0].offsetWidth :
				this.width() + num(this, 'borderLeftWidth') + num(this, 'borderRightWidth') + num(this, 'paddingLeft') + num(this, 'paddingRight');
	},
	
	/**
	 * Returns how many pixels the user has scrolled to the right (scrollLeft).
	 * Works on containers with overflow: auto and window/document.
	 *
	 * @example $("#testdiv").scrollLeft()
	 * @result 100
	 *
	 * @name scrollLeft
	 * @type Number
	 * @cat Plugins/Dimensions
	 */
	/**
	 * Sets the scrollLeft property and continues the chain.
	 * Works on containers with overflow: auto and window/document.
	 *
	 * @example $("#testdiv").scrollLeft(10).scrollLeft()
	 * @result 10
	 *
	 * @name scrollLeft
	 * @param Number value A positive number representing the desired scrollLeft.
	 * @type jQuery
	 * @cat Plugins/Dimensions
	 */
	scrollLeft: function(val) {
		if ( val != undefined )
			// set the scroll left
			return this.each(function() {
				if (this == window || this == document)
					window.scrollTo( val, $(window).scrollTop() );
				else
					this.scrollLeft = val;
			});
		
		// return the scroll left offest in pixels
		if ( this[0] == window || this[0] == document )
			return self.pageXOffset ||
				$.boxModel && document.documentElement.scrollLeft ||
				document.body.scrollLeft;
				
		return this[0].scrollLeft;
	},
	
	/**
	 * Returns how many pixels the user has scrolled to the bottom (scrollTop).
	 * Works on containers with overflow: auto and window/document.
	 *
	 * @example $("#testdiv").scrollTop()
	 * @result 100
	 *
	 * @name scrollTop
	 * @type Number
	 * @cat Plugins/Dimensions
	 */
	/**
	 * Sets the scrollTop property and continues the chain.
	 * Works on containers with overflow: auto and window/document.
	 *
	 * @example $("#testdiv").scrollTop(10).scrollTop()
	 * @result 10
	 *
	 * @name scrollTop
	 * @param Number value A positive number representing the desired scrollTop.
	 * @type jQuery
	 * @cat Plugins/Dimensions
	 */
	scrollTop: function(val) {
		if ( val != undefined )
			// set the scroll top
			return this.each(function() {
				if (this == window || this == document)
					window.scrollTo( $(window).scrollLeft(), val );
				else
					this.scrollTop = val;
			});
		
		// return the scroll top offset in pixels
		if ( this[0] == window || this[0] == document )
			return self.pageYOffset ||
				$.boxModel && document.documentElement.scrollTop ||
				document.body.scrollTop;

		return this[0].scrollTop;
	},
	
	/** 
	 * Returns the top and left positioned offset in pixels.
	 * The positioned offset is the offset between a positioned
	 * parent and the element itself.
	 *
	 * @example $("#testdiv").position()
	 * @result { top: 100, left: 100 }
	 * 
	 * @name position
	 * @param Map options Optional settings to configure the way the offset is calculated.
	 * @option Boolean margin Should the margin of the element be included in the calculations? False by default.
	 * @option Boolean border Should the border of the element be included in the calculations? False by default.
	 * @option Boolean padding Should the padding of the element be included in the calculations? False by default.
	 * @param Object returnObject An object to store the return value in, so as not to break the chain. If passed in the
	 *                            chain will not be broken and the result will be assigned to this object.
	 * @type Object
	 * @cat Plugins/Dimensions
	 */
	position: function(options, returnObject) {
		var elem = this[0], parent = elem.parentNode, op = elem.offsetParent,
		    options = $.extend({ margin: false, border: false, padding: false, scroll: false }, options || {}),
			x = elem.offsetLeft,
			y = elem.offsetTop, 
			sl = elem.scrollLeft, 
			st = elem.scrollTop;
			
		// Mozilla and IE do not add the border
		if ($.browser.mozilla || $.browser.msie) {
			// add borders to offset
			x += num(elem, 'borderLeftWidth');
			y += num(elem, 'borderTopWidth');
		}

		if ($.browser.mozilla) {
			do {
				// Mozilla does not add the border for a parent that has overflow set to anything but visible
				if ($.browser.mozilla && parent != elem && $.css(parent, 'overflow') != 'visible') {
					x += num(parent, 'borderLeftWidth');
					y += num(parent, 'borderTopWidth');
				}

				if (parent == op) break; // break if we are already at the offestParent
			} while ((parent = parent.parentNode) && (parent.tagName.toLowerCase() != 'body' || parent.tagName.toLowerCase() != 'html'));
		}
		
		var returnValue = handleOffsetReturn(elem, options, x, y, sl, st);
		
		if (returnObject) { $.extend(returnObject, returnValue); return this; }
		else              { return returnValue; }
	},
	
	/**
	 * Returns the location of the element in pixels from the top left corner of the viewport.
	 *
	 * For accurate readings make sure to use pixel values for margins, borders and padding.
	 * 
	 * Known issues:
	 *  - Issue: A div positioned relative or static without any content before it and its parent will report an offsetTop of 0 in Safari
	 *    Workaround: Place content before the relative div ... and set height and width to 0 and overflow to hidden
	 *
	 * @example $("#testdiv").offset()
	 * @result { top: 100, left: 100, scrollTop: 10, scrollLeft: 10 }
	 *
	 * @example $("#testdiv").offset({ scroll: false })
	 * @result { top: 90, left: 90 }
	 *
	 * @example var offset = {}
	 * $("#testdiv").offset({ scroll: false }, offset)
	 * @result offset = { top: 90, left: 90 }
	 *
	 * @name offset
	 * @param Map options Optional settings to configure the way the offset is calculated.
	 * @option Boolean margin Should the margin of the element be included in the calculations? True by default.
	 * @option Boolean border Should the border of the element be included in the calculations? False by default.
	 * @option Boolean padding Should the padding of the element be included in the calculations? False by default.
	 * @option Boolean scroll Should the scroll offsets of the parent elements be included in the calculations? True by default.
	 *                        When true it adds the totla scroll offets of all parents to the total offset and also adds two properties
	 *                        to the returned object, scrollTop and scrollLeft. 
	 * @options Boolean lite Will use offsetLite instead of offset when set to true. False by default.
	 * @param Object returnObject An object to store the return value in, so as not to break the chain. If passed in the
	 *                            chain will not be broken and the result will be assigned to this object.
	 * @type Object
	 * @cat Plugins/Dimensions
	 */
	offset: function(options, returnObject) {
		var x = 0, y = 0, sl = 0, st = 0,
		    elem = this[0], parent = this[0], op, parPos, elemPos = $.css(elem, 'position'),
		    mo = $.browser.mozilla, ie = $.browser.msie, sf = $.browser.safari, oa = $.browser.opera,
		    absparent = false, relparent = false, 
		    options = $.extend({ margin: true, border: false, padding: false, scroll: true, lite: false }, options || {});
		
		// Use offsetLite if lite option is true
		if (options.lite) return this.offsetLite(options, returnObject);
		
		if (elem.tagName.toLowerCase() == 'body') {
			// Safari is the only one to get offsetLeft and offsetTop properties of the body "correct"
			// Except they all mess up when the body is positioned absolute or relative
			x = elem.offsetLeft;
			y = elem.offsetTop;
			// Mozilla ignores margin and subtracts border from body element
			if (mo) {
				x += num(elem, 'marginLeft') + (num(elem, 'borderLeftWidth')*2);
				y += num(elem, 'marginTop')  + (num(elem, 'borderTopWidth') *2);
			} else
			// Opera ignores margin
			if (oa) {
				x += num(elem, 'marginLeft');
				y += num(elem, 'marginTop');
			} else
			// IE does not add the border in Standards Mode
			if (ie && jQuery.boxModel) {
				x += num(elem, 'borderLeftWidth');
				y += num(elem, 'borderTopWidth');
			}
		} else {
			do {
				parPos = $.css(parent, 'position');
			
				x += parent.offsetLeft;
				y += parent.offsetTop;

				// Mozilla and IE do not add the border
				if (mo || ie) {
					// add borders to offset
					x += num(parent, 'borderLeftWidth');
					y += num(parent, 'borderTopWidth');

					// Mozilla does not include the border on body if an element isn't positioned absolute and is without an absolute parent
					if (mo && parPos == 'absolute') absparent = true;
					// IE does not include the border on the body if an element is position static and without an absolute or relative parent
					if (ie && parPos == 'relative') relparent = true;
				}

				op = parent.offsetParent;
				if (options.scroll || mo) {
					do {
						if (options.scroll) {
							// get scroll offsets
							sl += parent.scrollLeft;
							st += parent.scrollTop;
						}
				
						// Mozilla does not add the border for a parent that has overflow set to anything but visible
						if (mo && parent != elem && $.css(parent, 'overflow') != 'visible') {
							x += num(parent, 'borderLeftWidth');
							y += num(parent, 'borderTopWidth');
						}
				
						parent = parent.parentNode;
					} while (parent != op);
				}
				parent = op;

				if (parent.tagName.toLowerCase() == 'body' || parent.tagName.toLowerCase() == 'html') {
					// Safari and IE Standards Mode doesn't add the body margin for elments positioned with static or relative
					if ((sf || (ie && $.boxModel)) && elemPos != 'absolute' && elemPos != 'fixed') {
						x += num(parent, 'marginLeft');
						y += num(parent, 'marginTop');
					}
					// Mozilla does not include the border on body if an element isn't positioned absolute and is without an absolute parent
					// IE does not include the border on the body if an element is positioned static and without an absolute or relative parent
					if ( (mo && !absparent && elemPos != 'fixed') || 
					     (ie && elemPos == 'static' && !relparent) ) {
						x += num(parent, 'borderLeftWidth');
						y += num(parent, 'borderTopWidth');
					}
					break; // Exit the loop
				}
			} while (parent);
		}

		var returnValue = handleOffsetReturn(elem, options, x, y, sl, st);

		if (returnObject) { $.extend(returnObject, returnValue); return this; }
		else              { return returnValue; }
	},
	
	/**
	 * Returns the location of the element in pixels from the top left corner of the viewport.
	 * This method is much faster than offset but not as accurate. This method can be invoked
	 * by setting the lite option to true in the offset method.
	 *
	 * @name offsetLite
	 * @param Map options Optional settings to configure the way the offset is calculated.
	 * @option Boolean margin Should the margin of the element be included in the calculations? True by default.
	 * @option Boolean border Should the border of the element be included in the calculations? False by default.
	 * @option Boolean padding Should the padding of the element be included in the calculations? False by default.
	 * @option Boolean scroll Should the scroll offsets of the parent elements be included in the calculations? True by default.
	 *                        When true it adds the totla scroll offets of all parents to the total offset and also adds two properties
	 *                        to the returned object, scrollTop and scrollLeft. 
	 * @param Object returnObject An object to store the return value in, so as not to break the chain. If passed in the
	 *                            chain will not be broken and the result will be assigned to this object.
	 * @type Object
	 * @cat Plugins/Dimensions
	 */
	offsetLite: function(options, returnObject) {
		var x = 0, y = 0, sl = 0, st = 0, parent = this[0], op, 
		    options = $.extend({ margin: true, border: false, padding: false, scroll: true }, options || {});
				
		do {
			x += parent.offsetLeft;
			y += parent.offsetTop;

			op = parent.offsetParent;
			if (options.scroll) {
				// get scroll offsets
				do {
					sl += parent.scrollLeft;
					st += parent.scrollTop;
					parent = parent.parentNode;
				} while(parent != op);
			}
			parent = op;
		} while (parent && parent.tagName.toLowerCase() != 'body' && parent.tagName.toLowerCase() != 'html');

		var returnValue = handleOffsetReturn(this[0], options, x, y, sl, st);

		if (returnObject) { $.extend(returnObject, returnValue); return this; }
		else              { return returnValue; }
	}
});

/**
 * Handles converting a CSS Style into an Integer.
 * @private
 */
var num = function(el, prop) {
	return parseInt($.css(el.jquery?el[0]:el,prop))||0;
};

/**
 * Handles the return value of the offset and offsetLite methods.
 * @private
 */
var handleOffsetReturn = function(elem, options, x, y, sl, st) {
	if ( !options.margin ) {
		x -= num(elem, 'marginLeft');
		y -= num(elem, 'marginTop');
	}

	// Safari and Opera do not add the border for the element
	if ( options.border && ($.browser.safari || $.browser.opera) ) {
		x += num(elem, 'borderLeftWidth');
		y += num(elem, 'borderTopWidth');
	} else if ( !options.border && !($.browser.safari || $.browser.opera) ) {
		x -= num(elem, 'borderLeftWidth');
		y -= num(elem, 'borderTopWidth');
	}

	if ( options.padding ) {
		x += num(elem, 'paddingLeft');
		y += num(elem, 'paddingTop');
	}
	
	// do not include scroll offset on the element
	if ( options.scroll ) {
		sl -= elem.scrollLeft;
		st -= elem.scrollTop;
	}

	return options.scroll ? { top: y - st, left: x - sl, scrollTop:  st, scrollLeft: sl }
	                      : { top: y, left: x };
};

})(jQuery);

/*
 * jQuery Tooltip plugin 1.3
 *
 * http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
 * http://docs.jquery.com/Plugins/Tooltip
 *
 * Copyright (c) 2006 - 2008 JÃ¶rn Zaefferer
 *
 * $Id: jquery.tooltip.js 5741 2008-06-21 15:22:16Z joern.zaefferer $
 * 
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
 
;(function($) {
	
		// the tooltip element
	var helper = {},
		// the current tooltipped element
		current,
		// the title of the current element, used for restoring
		title,
		// timeout id for delayed tooltips
		tID,
		// IE 5.5 or 6
		IE = $.browser.msie && /MSIE\s(5\.5|6\.)/.test(navigator.userAgent),
		// flag for mouse tracking
		track = false;
	
	$.tooltip = {
		blocked: false,
		defaults: {
			delay: 200,
			fade: false,
			showURL: true,
			extraClass: "",
			top: 15,
			left: 15,
			id: "tooltip"
		},
		block: function() {
			$.tooltip.blocked = !$.tooltip.blocked;
		}
	};
	
	$.fn.extend({
		tooltip: function(settings) {
			settings = $.extend({}, $.tooltip.defaults, settings);
			createHelper(settings);
			return this.each(function() {
					$.data(this, "tooltip", settings);
					this.tOpacity = helper.parent.css("opacity");
					// copy tooltip into its own expando and remove the title
					this.tooltipText = this.title;
					$(this).removeAttr("title");
					// also remove alt attribute to prevent default tooltip in IE
					this.alt = "";
				})
				.mouseover(save)
				.mouseout(hide)
				.click(hide);
		},
		fixPNG: IE ? function() {
			return this.each(function () {
				var image = $(this).css('backgroundImage');
				if (image.match(/^url\(["']?(.*\.png)["']?\)$/i)) {
					image = RegExp.$1;
					$(this).css({
						'backgroundImage': 'none',
						'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='" + image + "')"
					}).each(function () {
						var position = $(this).css('position');
						if (position != 'absolute' && position != 'relative')
							$(this).css('position', 'relative');
					});
				}
			});
		} : function() { return this; },
		unfixPNG: IE ? function() {
			return this.each(function () {
				$(this).css({'filter': '', backgroundImage: ''});
			});
		} : function() { return this; },
		hideWhenEmpty: function() {
			return this.each(function() {
				$(this)[ $(this).html() ? "show" : "hide" ]();
			});
		},
		url: function() {
			return this.attr('href') || this.attr('src');
		}
	});
	
	function createHelper(settings) {
		// there can be only one tooltip helper
		if( helper.parent )
			return;
		// create the helper, h3 for title, div for url
		helper.parent = $('<div id="' + settings.id + '"><div class="bg1"></div><div class="bg2"><dl><dt class="ttitle"></dt><dd class="ttext"></dd></dl><p class="turl"></p></div><div class=\"bg3\"></div></div>')
			// add to document
			.appendTo(document.body)
			// hide it at first
			.hide();
			
		// apply bgiframe if available
		if ( $.fn.bgiframe )
			helper.parent.bgiframe();
		
		// save references to title and url elements
		helper.title = $('dt.ttitle', helper.parent);
		helper.body = $('dd.ttext', helper.parent);
		helper.url = $('p.turl', helper.parent);
	}
	
	function settings(element) {
		return $.data(element, "tooltip");
	}
	
	// main event handler to start showing tooltips
	function handle(event) {
		// show helper, either with timeout or on instant
		if( settings(this).delay )
			tID = setTimeout(show, settings(this).delay);
		else
			show();
		
		// if selected, update the helper position when the mouse moves
		track = !!settings(this).track;
		$(document.body).bind('mousemove', update);
			
		// update at least once
		update(event);
	}
	
	// save elements title before the tooltip is displayed
	function save() {
		// if this is the current source, or it has no title (occurs with click event), stop
		if ( $.tooltip.blocked || this == current || (!this.tooltipText && !settings(this).bodyHandler) )
			return;

		// save current
		current = this;
		title = this.tooltipText;
		
		if ( settings(this).bodyHandler ) {
			helper.title.hide();
			var bodyContent = settings(this).bodyHandler.call(this);
			if (bodyContent.nodeType || bodyContent.jquery) {
				helper.body.empty().append(bodyContent)
			} else {
				helper.body.html( bodyContent );
			}
			helper.body.show();
		} else if ( settings(this).showBody ) {
			var parts = title.split(settings(this).showBody);
			helper.title.html(parts.shift()).show();
			helper.body.empty();
			for(var i = 0, part; (part = parts[i]); i++) {
				if(i > 0)
					helper.body.append("<br/>");
				helper.body.append(part);
			}
			helper.body.hideWhenEmpty();
		} else {
			helper.title.html(title).show();
			helper.body.hide();
		}
		
		// if element has href or src, add and show it, otherwise hide it
		if( settings(this).showURL && $(this).url() )
			helper.url.html( $(this).url().replace('http://', '') ).show();
		else 
			helper.url.hide();
		
		// add an optional class for this tip
		helper.parent.addClass(settings(this).extraClass);

		// fix PNG background for IE
		if (settings(this).fixPNG )
			helper.parent.fixPNG();
			
		handle.apply(this, arguments);
	}
	
	// delete timeout and show helper
	function show() {
		tID = null;
		if ((!IE || !$.fn.bgiframe) && settings(current).fade) {
			if (helper.parent.is(":animated"))
				helper.parent.stop().show().fadeTo(settings(current).fade, current.tOpacity);
			else
				helper.parent.is(':visible') ? helper.parent.fadeTo(settings(current).fade, current.tOpacity) : helper.parent.fadeIn(settings(current).fade);
		} else {
			helper.parent.show();
		}
		update();
	}
	
	/**
	 * callback for mousemove
	 * updates the helper position
	 * removes itself when no current element
	 */
	function update(event)	{
		if($.tooltip.blocked)
			return;
		
		if (event && event.target.tagName == "OPTION") {
			return;
		}
		
		// stop updating when tracking is disabled and the tooltip is visible
		if ( !track && helper.parent.is(":visible")) {
			$(document.body).unbind('mousemove', update)
		}
		
		// if no current element is available, remove this listener
		if( current == null ) {
			$(document.body).unbind('mousemove', update);
			return;	
		}
		
		// remove position helper classes
		helper.parent.removeClass("viewport-right").removeClass("viewport-bottom");
		
		var left = helper.parent[0].offsetLeft;
		var top = helper.parent[0].offsetTop;
		if (event) {
			// position the helper 15 pixel to bottom right, starting from mouse position
			left = event.pageX + settings(current).left;
			top = event.pageY + settings(current).top;
			var right='auto';
			if (settings(current).positionLeft) {
				right = $(window).width() - left;
				left = 'auto';
			}
			helper.parent.css({
				left: left,
				right: right,
				top: top
			});
		}
		
		var v = viewport(),
			h = helper.parent[0];
		// check horizontal position
		if (v.x + v.cx < h.offsetLeft + h.offsetWidth) {
			left -= h.offsetWidth + 20 + settings(current).left;
			helper.parent.css({left: left + 'px'}).addClass("viewport-right");
		}
		// check vertical position
		if (v.y + v.cy < h.offsetTop + h.offsetHeight) {
			top -= h.offsetHeight + 20 + settings(current).top;
			helper.parent.css({top: top + 'px'}).addClass("viewport-bottom");
		}
	}
	
	function viewport() {
		return {
			x: $(window).scrollLeft(),
			y: $(window).scrollTop(),
			cx: $(window).width(),
			cy: $(window).height()
		};
	}
	
	// hide helper and restore added classes and the title
	function hide(event) {
		if($.tooltip.blocked)
			return;
		// clear timeout if possible
		if(tID)
			clearTimeout(tID);
		// no more current element
		current = null;
		
		var tsettings = settings(this);
		function complete() {
			helper.parent.removeClass( tsettings.extraClass ).hide().css("opacity", "");
		}
		if ((!IE || !$.fn.bgiframe) && tsettings.fade) {
			if (helper.parent.is(':animated'))
				helper.parent.stop().fadeTo(tsettings.fade, 0, complete);
			else
				helper.parent.stop().fadeOut(tsettings.fade, complete);
		} else
			complete();
		
		if( settings(this).fixPNG )
			helper.parent.unfixPNG();
	}
	
})(jQuery);




$(function() {

$('.title1').tooltip({
	track: true,
	delay: 0,
	showURL: false,
	showBody: "|",
	extraClass: "tooltip1",
	fixPNG: true,
	left: -20
});


$('.title2').tooltip({
	track: true,
	delay: 0,
	showURL: false,
	extraClass: "tooltip2",
	fixPNG: true,
	left: -20
});


});


function upclose() {
	$("#up .nav a").removeClass("s");
	$("#up div.w:visible").hide();
}

$().ready(function() {

	$("#up .nav a").click(function()	{
		$("#up .nav a").removeClass("s");
		$(this).addClass("s");

		var link = $(this).attr("href");

		$("#up div.w:visible").hide();
		$("#up div.w"+link).show();

		return false;
	});


	$('#up .w').each(function() {
		$('.c:last', $(this)).addClass('last').prev('.c').addClass('last');

		if($('.c', $(this)).length>12) {
			$('.cw', this).removeClass('cw').addClass('cws');
		};


		$('.c:last .b1 .i1', $(this)).hover(
			function() {
				$('#up4, #up5').css({padding: '0 0 23px'});
			},
			function() {
				$('#up4, #up5').css({padding: '0 0 3px'});
			}
		);
	});


	$('#up .w .c .b1 .i1').hover(
		function() {
			$(this).addClass('hover');
			$('em', this).show();
		},
		function() {
			$(this).removeClass('hover');
			$('em', this).hide();
		}
	);


	$('#up .w .c .b2 ul').hide();
	$('#up .w .c .b2').hover(
		function() {
			$(this).addClass('hover');
			$('ul', this).show();
		},
		function() {
			$(this).removeClass('hover');
			$('ul', this).hide();
		}
	);

	$('#noTravel').click(function(){
		var parent = $(this).parent().parent();
		parent.nextAll().slideToggle();
		parent.parent().parent().next().slideToggle();
	});

	$('#doesntApply').click(function(){
		$(this).parent().parent().nextAll().slideToggle();
	});

});


(function(a){a.fn.autoResize=function(j){var b=a.extend({onResize:function(){},animate:true,animateDuration:150,animateCallback:function(){},extraSpace:20,limit:1000},j);this.filter('textarea').each(function(){var c=a(this).css({resize:'none','overflow-y':'hidden'}),k=c.height(),f=(function(){var l=['height','width','lineHeight','textDecoration','letterSpacing'],h={};a.each(l,function(d,e){h[e]=c.css(e)});return c.clone().removeAttr('id').removeAttr('name').css({position:'absolute',top:0,left:-9999}).css(h).attr('tabIndex','-1').insertBefore(c)})(),i=null,g=function(){f.height(0).val(a(this).val()).scrollTop(10000);var d=Math.max(f.scrollTop(),k)+b.extraSpace,e=a(this).add(f);if(i===d){return}i=d;if(d>=b.limit){a(this).css('overflow-y','');return}b.onResize.call(this);b.animate&&c.css('display')==='block'?e.stop().animate({height:d},b.animateDuration,b.animateCallback):e.height(d)};c.unbind('.dynSiz').bind('keyup.dynSiz',g).bind('keydown.dynSiz',g).bind('change.dynSiz',g)});return this}})(jQuery);

function createRequestObject() { 
    var ro; 
    var browser = navigator.appName; 
    if(browser == "Microsoft Internet Explorer"){ 
        ro = new ActiveXObject("Microsoft.XMLHTTP"); 
    }else{ 
        ro = new XMLHttpRequest(); 
		//ro = XMLHttcodequest();
    } 
    return ro; 
} 

var http = createRequestObject(); 
var http1 = createRequestObject(); 
var http2 = createRequestObject(); 
var http3= createRequestObject(); 

function startUpload(id) {    
	document.getElementById('dispPreloader'+id).style.display = 'block';    
	return true;
}

function stopUpload(id, success, error) {      
	if (error == "") {
		document.getElementById('dispPreloader'+id).style.display = 'none';
		document.getElementById('dispFormId'+id).style.display = 'none';
		document.getElementById('dispPhotoId'+id).innerHTML = success;
		document.getElementById('dispPhotoId'+id).style.display = 'block';		
	} else {
		document.getElementById('dispPreloader'+id).style.display = 'none';
		var mess = error.split('|');
		var str = "";
		for (var i =0; i < mess.length; i++)
			str = str + mess[i] + '\n';
		
		alert(str);
	}
	return true;   
}

function startUploadAvatar(id) {    
	document.getElementById('dispPreloader'+id).style.display = 'block';    
	return true;
}

function stopUploadAvatar(id, success, error) {      
	if (error == "") {
		document.getElementById('dispPreloader'+id).style.display = 'none';
		document.getElementById('dispPhotoId'+id).innerHTML = success;
		document.getElementById('dispPhotoId'+id).style.display = 'block';		
	} else {
		document.getElementById('dispPreloader'+id).style.display = 'none';
		var mess = error.split('|');
		var str = "";
		for (var i =0; i < mess.length; i++)
			str = str + mess[i] + '\n';
		
		alert(str);
	}
	return true;   
}

function startUploadRelation(id) {    
	document.getElementById('dispPreloader'+id).style.display = 'block';    
	return true;
}

function stopUploadRelation(id, success, error) {      
	if (error == "") {
		document.getElementById('dispPreloader'+id).style.display = 'none';
		document.getElementById('dispFormId'+id).style.display = 'none';
		document.getElementById('uploaded').innerHTML = document.getElementById('uploaded').innerHTML + success;
	} else {
		document.getElementById('dispPreloader'+id).style.display = 'none';
		var mess = error.split('|');
		var str = "";
		for (var i =0; i < mess.length; i++)
			str = str + mess[i] + '\n';
		
		alert(str);
	}
	return true;   
}


function ajaxPhotoDelete(pid) {
  if (confirm("Napewno chcesz usunÄ…Ä‡ zdjÄ™cie?")) {
	  http.abort();
	  http.open("GET", "ajaxPhotoDelete.php?pid=" + pid, true);
	  http.onreadystatechange=function() {
		if(http.readyState == 4) {
		   if (http.responseText == "ok") {
				location.reload(true);
		  } 
		} 
	  }
	  http.send(null);	  
  }
}

function ajaxVideoDelete(vid) {
  if (confirm("Napewno chcesz usunÄ…Ä‡ film?")) {
	  http.abort();
	  http.open("GET", "ajaxVideoDelete.php?vid=" + vid, true);
	  http.onreadystatechange=function() {
		if(http.readyState == 4) {
		   if (http.responseText == "ok") {
				location.reload(true);
		  } 
		} 
	  }
	  http.send(null);	  
  }
}

function ajaxRelationDelete(rid) {
  if (confirm("Napewno chcesz usunÄ…Ä‡ relacjÄ™?")) {
	  http.abort();
	  http.open("GET", "ajaxRelationDelete.php?rid=" + rid, true);
	  http.onreadystatechange=function() {
		if(http.readyState == 4) {
		   if (http.responseText == "ok") {
				location.reload(true);
		  } 
		} 
	  }
	  http.send(null);	  
  }
}

function ajaxProfilComment(p, uid) {
  var field = document.getElementById('ajaxProfilCommentField');

  http.abort();
  http.open("GET", "ajaxProfilComment.php?uid=" + uid + "&p=" + p, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			field.innerHTML = http.responseText;
	  } 
	} 
  }
  http.send(null);
}

function ajaxProfilCommentAdd(uid) {
  var content = document.commentForm.profil_comment.value;

if (content == '') 
  	alert("Wpisz treÅ›Ä‡ kometnarza");
 else if (logged == false)
 	alert("Dodawanie komentarzy wymaga zalogowania");
 else {
	  http.abort();
	  http.open("GET", "ajaxProfilCommentAdd.php?uid=" + uid + "&comment=" + escape(content), true);
	  http.onreadystatechange=function() {
		if(http.readyState == 4) {
			ajaxProfilComment("0", uid);
		} 
	  }
	  http.send(null);	 
 }
}

function ajaxRelationDelComment(cid, rid) {
  http.abort();
  http.open("GET", "ajaxRelationDelComment.php?cid=" + cid, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			if (http.responseText == "ok") {
				ajaxRelationComments(rid, "0");
				//document.getElementById('s' + cid).innerHTML = "";
			}
	  } 
	} 
  }
  http.send(null);
}

function ajaxRelationFriend(stat, fid) {
  http.abort();
  http.open("GET", "ajaxRelationFriend.php?stat=" + stat + "&fid=" + fid, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			alert(http.responseText);
	  } 
	} 
  }
  http.send(null);
}

function ajaxRelationFriend2(stat, fid) {
  http.abort();
  http.open("GET", "ajaxRelationFriend2.php?stat=" + stat + "&fid=" + fid, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			if (http.responseText == "ok")
				document.getElementById('s' + fid).innerHTML = "";
	  } 
	} 
  }
  http.send(null);
}

function ajaxInvite(stat, fid) {
  http.abort();
  http.open("GET", "ajaxInvite.php?stat=" + stat + "&fid=" + fid, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			alert(http.responseText);
	  } 
	} 
  }
  http.send(null);
}

function ajaxVideoDelComment(cid, vid) {
  http.abort();
  http.open("GET", "ajaxVideoDelComment.php?cid=" + cid, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			if (http.responseText == "ok") {
				ajaxVideoComments(vid, "0");
				//document.getElementById('s' + cid).innerHTML = "";
			}
	  } 
	} 
  }
  http.send(null);
}

function ajaxPhotoDelComment(cid, pid) {
  http.abort();
  http.open("GET", "ajaxPhotoDelComment.php?cid=" + cid, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			if (http.responseText == "ok") {
				ajaxPhotoComments(pid, "0");
				//document.getElementById('s' + cid).innerHTML = "";
			}
	  } 
	} 
  }
  http.send(null);
}

function ajaxGetAktualnosci(p) {
  var field = document.getElementById('ajaxAktualnosciField');

  http.abort();
  http.open("GET", "ajaxGetAktualnosci.php?p=" + p, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			field.innerHTML = http.responseText;
	  } 
	} 
  }
  http.send(null);
}

function ajaxGetPomoc(p) {
  var field = document.getElementById('ajaxPomocField');

  http.abort();
  http.open("GET", "ajaxGetPomoc.php?p=" + p, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			field.innerHTML = http.responseText;
	  } 
	} 
  }
  http.send(null);
}

function ajaxAddFriend(uid) {
  var field = document.getElementById('ajaxAddFriendField');

  http.abort();
  http.open("GET", "ajaxAddFriend.php?uid=" + uid, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			field.innerHTML = http.responseText;
	  } 
	} 
  }
  http.send(null);
}

function ajaxAddRelationFriend(rid) {

	http.abort();
  http.open("GET", "ajaxAddRelationFriend.php?rid=" + rid, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			alert(http.responseText);
	  } 
	} 
  }
  http.send(null);
}

function ajaxGetOffice(id) {
	var field = document.getElementById('bid');	
	field.options.length = 0;
	
	field.options[field.options.length] = new Option('Ladowanie...','0');
	
  http.abort();
  http.open("GET", "ajaxGetOffice.php?id=" + id, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			var myArray = eval(http.responseText);
			
			field.options[0] = new Option("- wybierz -", "0");
			
			for (i=1;i<myArray.length;i++) {
				var tmp1 = myArray[i];
				i++;
				var tmp2 = myArray[i];
				field.options[field.options.length] = new Option(tmp2, tmp1);
			}
	  } 
	} 
  }
  http.send(null);	
}

function checkOfficeForm() {
	
	var form = document.forms['officeForm'];
	
	if (form.name.value == '' || form.street.value == '' || form.city.value == '' || form.phone.value == '') {
		alert("Wypelnij wszystkie wymagane pola (oznaczone '*')");
	} else {
		  http.abort();
		  http.open("GET", "ajaxOfficeAdd.php?name=" + form.name.value + "&street=" + form.street.value + "&city=" + form.city.value + "&phone=" + form.phone.value + "&fax=" + form.fax.value + "&email=" + form.email.value + "&www=" + form.www.value + "&logo_url=" + form.logo_url.value, true);
		  http.onreadystatechange=function() {
			if(http.readyState == 4) {
			   if (http.responseText != "") {
				   var string=http.responseText.split("|"); 				
				   
				   var ctemp = false;
				   
				   for (i=0; i < document.getElementById('b_city').length; i++) {
				   		if 	(document.getElementById('b_city').options[i].value == string[0]) {
							ctemp = true;
							document.getElementById('b_city').options[i].selected = true;
							ajaxGetOffice(string[0]);
						}
				   }
				   if (ctemp == false) {
						document.getElementById('b_city').options[document.getElementById('b_city').length] = new Option(form.city.value, string[0]);
						document.getElementById('b_city').options[document.getElementById('b_city').length - 1].selected = true;
						document.getElementById('bid').options.length = 0;
				   }
				   
				   
				   if (ctemp == false)
					   document.getElementById('bid').options[document.getElementById('bid').length] = new Option(form.name.value, string[1]);
					else					   
					   for (var i=0; i < document.getElementById('bid').length; i++) {
							if 	(document.getElementById('bid').options[i].text == form.name.value) {
								document.getElementById('bid').options[i].selected = true;
							}
					   }					   
			  } 
			} 
		  }
		  http.send(null);		
		  
		  tb_remove();
	}	
	
	return false;
}


function checkOfficeForm2() {
	
	var form = document.forms['officeForm'];
	
	if (form.name.value == '' || form.street.value == '' || form.city.value == '' || form.phone.value == '') {
		alert("Wypelnij wszystkie wymagane pola (oznaczone '*')");
	} else {
		  http.abort();
		  http.open("GET", "ajaxOfficeAdd2.php?name=" + form.name.value + "&street=" + form.street.value + "&city=" + form.city.value + "&phone=" + form.phone.value + "&fax=" + form.fax.value + "&email=" + form.email.value + "&www=" + form.www.value + "&logo_url=" + form.logo_url.value, true);
		  http.onreadystatechange=function() {
			if(http.readyState == 4) {
			   if (http.responseText == "ok") {
					alert("Nowe biuro zostaÅ‚o dodane");
			   } 
			} 
		  }
		  http.send(null);		
		  
		  tb_remove();
	}	
	
	return false;
}

function ajaxDelFriend(id) {
	
  http.abort();
  http.open("GET", "ajaxDelFriend.php?id=" + id, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText == "ok") {
			document.getElementById('f'+id).style.display='none'; 	
	  } 
	} 
  }
  http.send(null);	
}

function ajaxChangeSkin(sid) {
  http.abort();
  http.open("GET", "ajaxChangeSkin.php?sid=" + sid, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			if ( http.responseText == "ok")	
				location.reload(true);
	  } 
	} 
  }
  http.send(null);
}


function ajaxGetCountry(id) {
	var field = document.getElementById('country');	
	field.options.length = 0;
	//ajaxGetCity2(0);
	//ajaxGetHotel2(0);
	
	field.options[field.options.length] = new Option('Ladowanie...','0');
	
  http.abort();
  http.open("GET", "ajaxGetCountry.php?id=" + id, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			var myArray = eval(http.responseText);
			
			field.options[0] = new Option("- wybierz -", "0");
			
			for (i=1;i<myArray.length;i++) {
				var tmp1 = myArray[i];
				i++;
				var tmp2 = myArray[i];
				
				field.options[field.options.length] = new Option(tmp2, tmp1);
			}
	  } 
	} 
  }
  http.send(null);	
}

function ajaxGetCity(id) {
	var field = document.getElementById('city');	
	field.options.length = 0;
	ajaxGetHotel2(0);
		
	field.options[field.options.length] = new Option('Ladowanie...','0');
	
  http.abort();
  http.open("GET", "ajaxGetCity.php?id=" + id, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			var myArray = eval(http.responseText);
			
			field.options[0] = null;
			field.options[field.options.length] = new Option("- wybierz -", "0");
			
			for (i=1;i<myArray.length;i++) {
				var tmp1 = myArray[i];
				i++;
				var tmp2 = myArray[i];
				
				field.options[field.options.length] = new Option(tmp2, tmp1);
			}
	  } 
	} 
  }
  http.send(null);	
}

function ajaxGetHotel(id) {
	var field = document.getElementById('hotel');	
	field.options.length = 0;
		
	field.options[field.options.length] = new Option('Ladowanie...','0');
	
  http.abort();
  http.open("GET", "ajaxGetHotel.php?id=" + id, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			var myArray = eval(http.responseText);
			
			field.options[0] = null;
			field.options[field.options.length] = new Option("- wybierz -", "0");
			
			for (i=1;i<myArray.length;i++) {
				var tmp1 = myArray[i];
				i++;
				var tmp2 = myArray[i];
				
				field.options[field.options.length] = new Option(tmp2, tmp1);
			}
	  } 
	} 
  }
  http.send(null);	
}


function ajaxGetOffice2(id, cid) {
	var field = document.getElementById('bid');	
	field.options.length = 0;
	
	field.options[field.options.length] = new Option('Ladowanie...','0');
	
  http.abort();
  http.open("GET", "ajaxGetOffice.php?id=" + id, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			var myArray = eval(http.responseText);
			var cur = 0;
			
			field.options[0] = null;
			field.options[field.options.length] = new Option("- wybierz -", "0");
			
			for (i=1;i<myArray.length;i++) {
				var tmp1 = myArray[i];
				i++;
				var tmp2 = myArray[i];
				
				field.options[field.options.length] = new Option(tmp2, tmp1);
				
				if (tmp1 == cid)
					cur = tmp1;
			}
			
			field.selectedIndex = cur;
	  } 
	} 
  }
  http.send(null);	
}



function ajaxGetCountry2(id, cid) {
	var field = document.getElementById('country');	
	field.options.length = 0;
		
	field.options[field.options.length] = new Option('Ladowanie...','0');
	
  http1.abort();
  http1.open("GET", "ajaxGetCountry.php?id=" + id, true);
  http1.onreadystatechange=function() {
    if(http1.readyState == 4) {
	   if (http1.responseText != "") {
			var myArray = eval(http1.responseText);
			var cur = 0;
			var t = 0;

			field.options[0] = null;
			field.options[field.options.length] = new Option("- wybierz -", "0");
			
			for (i=1;i<myArray.length;i++) {
				var tmp1 = myArray[i];
				i++;
				var tmp2 = myArray[i];
				
				field.options[field.options.length] = new Option(tmp2, tmp1);
				
				t++;
				
				if (tmp1 == cid)
					cur = t;
			}
			
			field.selectedIndex = cur;
	  } 
	} 
  }
  http1.send(null);	
}

function ajaxGetCity2(id, cid) {
	var field = document.getElementById('city');	
	field.options.length = 0;
		
	field.options[field.options.length] = new Option('Ladowanie...','0');
	
  http2.abort();
  http2.open("GET", "ajaxGetCity.php?id=" + id, true);
  http2.onreadystatechange=function() {
    if(http2.readyState == 4) {
	   if (http2.responseText != "") {
			var myArray = eval(http2.responseText);
			var cur = 0;
			var t = 0;
			
			field.options[0] = null;
			field.options[field.options.length] = new Option("- wybierz -", "0");
			
			for (i=1;i<=myArray.length;i++) {
				var tmp1 = myArray[i];
				i++;
				var tmp2 = myArray[i];
				if (tmp1 != "" && tmp2 != "")
				field.options[field.options.length] = new Option(tmp2, tmp1);
				
				t++;
				
				if (tmp1 == cid)
					cur = t;
			}
			
			field.selectedIndex = cur;
	  } 
	} 
  }
  http2.send(null);	
}

function ajaxGetHotel2(id, cid) {
	var field = document.getElementById('hotel');	
	field.options.length = 0;
		
	field.options[field.options.length] = new Option('Ladowanie...','0');
	
  http3.abort();
  http3.open("GET", "ajaxGetHotel.php?id=" + id, true);
  http3.onreadystatechange=function() {
    if(http3.readyState == 4) {
	   if (http3.responseText != "") {
			var myArray = eval(http3.responseText);
			var cur = 0;
			
			field.options[0] = null;
			field.options[field.options.length] = new Option("- wybierz -", "0");
			
			for (i=1;i<myArray.length;i++) {
				var tmp1 = myArray[i];
				i++;
				var tmp2 = myArray[i];
				if (tmp1 != "" && tmp2 != "")
				field.options[field.options.length] = new Option(tmp2, tmp1);
			
			if (tmp1 == cid)
					cur = tmp1;
			}
			
			field.selectedIndex = cur;
	  } 
	} 
  }
  http3.send(null);	
}

function ajaxGetCountry3(id) {
	var field = document.getElementById('country');	
	field.options.length = 0;
	ajaxGetCity2(0);
	
	field.options[field.options.length] = new Option('Ladowanie...','0');
	
  http.abort();
  http.open("GET", "ajaxGetCountry.php?id=" + id, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			var myArray = eval(http.responseText);
			
			field.options[0] = new Option("- wybierz -", "0");
			
			for (i=1;i<myArray.length;i++) {
				var tmp1 = myArray[i];
				i++;
				var tmp2 = myArray[i];
				
				field.options[field.options.length] = new Option(tmp2, tmp1);
			}
	  } 
	} 
  }
  http.send(null);	
}

function ajaxGetCity3(id) {
	var field = document.getElementById('city');	
	field.options.length = 0;
		
	field.options[field.options.length] = new Option('Ladowanie...','0');
	
  http.abort();
  http.open("GET", "ajaxGetCity.php?id=" + id, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			var myArray = eval(http.responseText);
			
			field.options[0] = null;
			field.options[field.options.length] = new Option("- wybierz -", "0");
			
			for (i=1;i<myArray.length;i++) {
				var tmp1 = myArray[i];
				i++;
				var tmp2 = myArray[i];
				
				field.options[field.options.length] = new Option(tmp2, tmp1);
			}
	  } 
	} 
  }
  http.send(null);	
}

function ajaxRelationOcena(rid, oid) {
  http.abort();
  http.open("GET", "ajaxRelationOcena.php?rid=" + rid + "&oid=" + oid, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
		   alert(http.responseText);
	  } 
	} 
  }
  http.send(null);	
}

function ajaxVideoOcena(vid, oid) {
  http.abort();
  http.open("GET", "ajaxVideoOcena.php?vid=" + vid + "&oid=" + oid, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
		   alert(http.responseText);
	  } 
	} 
  }
  http.send(null);	
}

function ajaxRelationPhotos(rid, p) {
  var field = document.getElementById('relation_photos');

  http.abort();
  http.open("GET", "ajaxRelationPhotos.php?rid=" + rid + "&p=" + p, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
		   //alert(http.responseText);
			field.innerHTML = http.responseText;
	  } 
	} 
  }
  http.send(null);
}

function ajaxRelationVideos(rid, p) {
  var field = document.getElementById('relation_photos');

  http.abort();
  http.open("GET", "ajaxRelationVideos.php?rid=" + rid + "&p=" + p, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			field.innerHTML = http.responseText;
	  } 
	} 
  }
  http.send(null);
}

function ajaxRelationComments(rid, p) {
  var field = document.getElementById('relation_comments');

  http.abort();
  http.open("GET", "ajaxRelationComments.php?rid=" + rid + "&p=" + p, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			field.innerHTML = http.responseText;
	  } 
	} 
  }
  http.send(null);
}

function ajaxRelationCommentAdd(rid) {
  var content = document.commentForm.relation_comment.value;

if (content == '') 
  	alert("Wpisz treÅ›Ä‡ kometnarza");
 else if (logged == false)
 	alert("Dodawanie komentarzy wymaga zalogowania");
 else {
	  http.abort();
	  http.open("GET", "ajaxRelationCommentAdd.php?rid=" + rid + "&comment=" + escape(content), true);
	  http.onreadystatechange=function() {
		if(http.readyState == 4) {
		
			ajaxRelationComments(rid, 0);
		} 
	  }
	  http.send(null);	 
 }
}

function ajaxVideoCommentAdd(vid) {
  var content = document.commentForm.video_comment.value;

if (content == '') 
  	alert("Wpisz treÅ›Ä‡ kometnarza");
 else if (logged == false)
 	alert("Dodawanie komentarzy wymaga zalogowania");
 else {
	  http.abort();
	  http.open("GET", "ajaxVideoCommentAdd.php?vid=" + vid + "&comment=" + escape(content), true);
	  http.onreadystatechange=function() {
		if(http.readyState == 4) {
			ajaxVideoComments(vid, "0");
		} 
	  }
	  http.send(null);	 
 }
}

function ajaxVideoComments(vid, p) {
  var field = document.getElementById('video_comments');

  http.abort();
  http.open("GET", "ajaxVideoComments.php?vid=" + vid + "&p=" + p, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			field.innerHTML = http.responseText;
	  } 
	} 
  }
  http.send(null);
}

function ajaxPhotoComments(pid, p) {
  var field = document.getElementById('photo_comments');

  http.abort();
  http.open("GET", "ajaxPhotoComments.php?pid=" + pid + "&p=" + p, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			//alert(http.responseText);
			field.innerHTML = http.responseText;
	  } 
	} 
  }
  http.send(null);
}

function ajaxPhotoCommentAdd(pid) {
  var content = document.commentForm.comment.value;

if (content == '') 
  	alert("Wpisz treÅ›Ä‡ kometnarza");
 else if (logged == false)
 	alert("Dodawanie komentarzy wymaga zalogowania");
 else {
	  
	  http.abort();
	  http.open("GET", "ajaxPhotoCommentAdd.php?pid=" + pid + "&comment=" + escape(content), true);
	  http.onreadystatechange=function() {
		if(http.readyState == 4) {
			ajaxPhotoComments(pid, "0");
		} 
	  }
	  http.send(null);	 
 }
}

function ajaxOfficeOpinion(bid, p) {
  var field = document.getElementById('office_opinion');

  http.abort();
  http.open("GET", "ajaxOfficeOpinion.php?bid=" + bid + "&p=" + p, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			field.innerHTML = http.responseText;
	  } 
	} 
  }
  http.send(null);
}

function ajaxOfficeComments(bid, p) {
  var field = document.getElementById('office_comments');

  http.abort();
  http.open("GET", "ajaxOfficeComments.php?bid=" + bid + "&p=" + p, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			field.innerHTML = http.responseText;
	  } 
	} 
  }
  http.send(null);
}

function ajaxOfficeCommentAdd(bid) {
  var content = document.commentForm.office_comment.value;

if (content == '') 
  	alert("Wpisz treÅ›Ä‡ kometnarza");
 else {
	  http.abort();
	  http.open("GET", "ajaxOfficeCommentAdd.php?bid=" + bid + "&comment=" + escape(content), true);
	  http.onreadystatechange=function() {
		if(http.readyState == 4) {
			alert("Kometnarz zostaÅ‚ dodany");
		} 
	  }
	  http.send(null);	 
 }
}


function delProfilComment(cid) {
  var thing = document.getElementById('ajaxProfilCommentField_' + cid);
    
  http3.abort();
  http3.open("GET", "ajaxDelProfilComment.php?cid=" + cid, true);
  http3.onreadystatechange=function() {
	if(http3.readyState == 4) {
		thing.innerHTML = '';
	} 
  }
}


///////////////// NON AJAX /////////////////////////
function formSearchUserForm() {
	for (var i=0; i < document.sortType.order.length; i++) {
	   {
	   if (document.sortType.order[i].checked)
		  {
		  var o = document.sortType.order[i].value;
		  }
	   }
	}
	
	if (o != 'd' && o != 'l')
		o = 'd';
	
	for (var i=0; i < document.sortType.sortv.length; i++) {
	   {
	   if (document.sortType.sortv[i].checked)
		  {
		  var s = document.sortType.sortv[i].value;
		  }
	   }
	}	
	
	if (s != 'a' && s != 'd')
		s = 'a';

	var d = document.sortType.domena.value;	
	var u = document.getElementById('name').value;	

	var p = document.getElementById('p').value;		
	if (p == '')
		p = 0;

	window.location = 'http://'+d+'/wyszukiwarka/uzytkownik/'+u+','+p+','+o+','+s;
}


function formSearchUserForm() {
	var n = document.userForm.name.value;
	var d = document.userForm.domena.value;	

	window.location = 'http://'+d+'/wyszukiwarka/uzytkownik/'+n;
}

function formSearchRelationForm() {
	for (var i=0; i < document.relationForm.rodzaj.length; i++) {
	   {
	   if (document.relationForm.rodzaj[i].checked)
		  {
		  var k = document.relationForm.rodzaj[i].value;
		  }
	   }
	}	
		
	var con = document.relationForm.continent.value;
	var cou = document.relationForm.country.value;	
	var cit = document.relationForm.city.value;	
	var d = document.relationForm.domena.value;	
	var f = document.relationForm.fraza.value;	

	window.location = 'http://'+d+'/wyszukiwarka/media/'+f+','+con+','+cou+','+cit+','+k;
}

function ajaxNaduzycieVideo(vid) {
  http.abort();
  http.open("GET", "ajaxNaduzycieVideo.php?vid=" + vid, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			alert("ZgÅ‚oszenie zostaÅ‚o przyjÄ™te");
	  } 
	} 
  }
  http.send(null);
}

function ajaxNaduzyciePhoto(pid) {
  http.abort();
  http.open("GET", "ajaxNaduzyciePhoto.php?pid=" + pid, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			alert("ZgÅ‚oszenie zostaÅ‚o przyjÄ™te");
	  } 
	} 
  }
  http.send(null);
}

function ajaxNaduzycieRelation(rid) {
  http.abort();
  http.open("GET", "ajaxNaduzycieRelation.php?rid=" + rid, true);
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
	   if (http.responseText != "") {
			alert("ZgÅ‚oszenie zostaÅ‚o przyjÄ™te");
	  } 
	} 
  }
  http.send(null);
}






var dispFormId = 1;
var dispFormIdV = 11;

function dispForm() {
	dispFormId++;
	if (dispFormId > 10)
		alert ("Maksymalnie moÅ¼na dodawaÄ‡ 10 plikÃ³w jednoczeÅ›nie");
	else
		document.getElementById('dispFormId'+dispFormId).style.display="block";
}

function dispFormV() {
	dispFormIdV++;
	if (dispFormIdV > 20)
		alert ("Maksymalnie moÅ¼na dodawaÄ‡ 10 filmÃ³w jednoczeÅ›nie");
	else
		document.getElementById('dispFormId'+dispFormIdV).style.display="block";
}

function shCity() {
	if (document.getElementById('city_another').checked == true) {
		 document.getElementById('shCityField').style.display="block";
	} else {
		 document.getElementById('shCityField').style.display="none";
	}
}

function shHotel() {
	if (document.getElementById('hotel_another').checked == true) {
		 document.getElementById('shHotelField1').style.display="block";
		 document.getElementById('shHotelField2').style.display="block";
	} else {
		 document.getElementById('shHotelField1').style.display="none";
		 document.getElementById('shHotelField2').style.display="none";
	}
}

function shOffice() {
	if (document.getElementById('bezbiura').checked == false) {
		 document.getElementById('shOfficeField1').style.display="block";
		 document.getElementById('shOfficeField2').style.display="block";
	} else {
		 document.getElementById('shOfficeField1').style.display="none";
		 document.getElementById('shOfficeField2').style.display="none";
	}
}

function sortuj(page) {
	if (document.getElementById('sort1').checked == true)
		var s = document.getElementById('sort1').value;
	else
		var s = document.getElementById('sort2').value;
		
	if (document.getElementById('order1').checked == true)
		var o = document.getElementById('order1').value;
	else
		var o = document.getElementById('order2').value;		

	window.location = '/' + page + '/0,' + s + ',' + o;
}

function checkFormPhoto(id) {
	var describe = document.getElementById('describe_'+id).value;
	
	if (describe == "") {
		alert("Wpisz tytuÅ‚ zdjÄ™cia");
		return false;
	}
	else {
		document.getElementById('buttonPhoto'+id).innerHTML = '';
		eval("UP"+id+".start('"+id+"')");	
		return true;
	}
	
}

function checkFormVideo(id) {
	var title = document.getElementById('title_'+id).value;
	var describe = document.getElementById('describe_'+id).value;
	
	if (describe == "" || title == "") {
		alert("Wpisz tytuÅ‚ i opis filmu");
		return false;
	}
	else {
		document.getElementById('buttonVideo'+id).innerHTML = '';
		eval("UP"+id+".start('"+id+"')");	
		return true;
	}
	
}

function checkOfficeCommentForm() {
	if (logged != true) {
		alert ("Musisz byÄ‡ zalogowany aby mÃ³c komentowac");
		return false;
	}
	else if (document.officeComment.content.value == "") {
		alert ("Wpisz treÅ›Ä‡ komentarza");
		return false;
	}
	else
		return true;
}


/***********************************************
DROPDOWNMENU
***********************************************/

//Contents for menu 2, and so on
var menu1=new Array()
menu1[0]='<a href="#" onClick="javascript:ajaxChangeSkin(1);">PlaÅ¼a</a>'
menu1[1]='<a href="#" onClick="javascript:ajaxChangeSkin(2);">GÃ³ry</a>'
menu1[2]='<a href="#" onClick="javascript:ajaxChangeSkin(3);">Safari</a>'
menu1[3]='<a href="#" onClick="javascript:ajaxChangeSkin(4);">Zima</a>'
		
var menuwidth='165px' //default menu width
var menubgcolor='lightyellow'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)

dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

////////////// DROP DOWN MENU END ///////////////////



////////////// SUBMIT FUNCTION ////////////////
function subsRelation() {
	var cont = document.formRelation.continent.value;	
	var country = document.formRelation.country.value;	
	var city = document.formRelation.city.value;
	var order = '';
	var sortby = '';
	
    for (i=0; i<document.formRelation.order.length; i++) 
       if (document.formRelation.order[i].checked == true)
         var order = document.formRelation.order[i].value;
	if (order == '')
		order = 'a';
		 
    for (i=0; i<document.formRelation.sortby.length; i++) 
       if (document.formRelation.sortby[i].checked == true)
         var sortby = document.formRelation.sortby[i].value;	
		 
	if (sortby == '')
		sortby = 'd';		 
	
	if (cont == "") cont = "0";
	if (country == "") country = "0";
	if (city == "") city = "0";
	
	window.location = '/relacje/'+cont+','+country+','+city+','+sortby+','+order+ '';
	
}

function sortOffice() {
	var city = document.formOffice.b_city.value;	
	var order = '';
	var sortby = '';
	
    for (i=0; i<document.formOffice.order.length; i++) 
       if (document.formOffice.order[i].checked == true)
         var order = document.formOffice.order[i].value;
	if (order == '')
		order = 'n';
		 
    for (i=0; i<document.formOffice.sortby.length; i++) 
       if (document.formOffice.sortby[i].checked == true)
         var sortby = document.formOffice.sortby[i].value;	
		 
	if (sortby == '')
		sortby = 'd';		 
	
	if (city == "") cont = "0";

	window.location = '/biura/'+city+','+order+','+sortby+ '';
	
}

function subsRelationMain() {
	var cont = document.formRelationMain.continent.value;	
	var country = document.formRelationMain.country.value;	
	var city = document.formRelationMain.city.value;
		 
	window.location = '/relacje/'+cont+','+country+','+city + '';
}

function sortSearchUserForm(login) {
	var order = '';
	var sortby = '';
	
    for (i=0; i<document.formSearchUserForm.order.length; i++) 
       if (document.formSearchUserForm.order[i].checked == true)
         var order = document.formSearchUserForm.order[i].value;
	if (order == '')
		order = 'a';
		 
    for (i=0; i<document.formSearchUserForm.sortby.length; i++) 
       if (document.formSearchUserForm.sortby[i].checked == true)
         var sortby = document.formSearchUserForm.sortby[i].value;	
		 
	if (sortby == '')
		sortby = 'd';	
		
	window.location = '/wyszukiwarka/uzytkownik/'+login+','+order+','+sortby+ '';
}

function sortSearchMediaForm(fraza, continent, country, city, kind) {
	var order = '';
	var sortby = '';
	
    for (i=0; i<document.formSearchMediaForm.order.length; i++) 
       if (document.formSearchMediaForm.order[i].checked == true)
         var order = document.formSearchMediaForm.order[i].value;
	if (order == '')
		order = 'a';
		 
    for (i=0; i<document.formSearchMediaForm.sortby.length; i++) 
       if (document.formSearchMediaForm.sortby[i].checked == true)
         var sortby = document.formSearchMediaForm.sortby[i].value;	
		 
	if (sortby == '')
		sortby = 'd';	
		
	window.location = '/wyszukiwarka/media/'+fraza+','+continent+','+country+','+city+','+order+','+sortby+','+kind+ '';
}

function searchMediaSubmit(val) {
	if (val == '1') {
		var fraza = document.search1.searchvalue.value;
		var searchmedia = 'r';
	} else if (val == '2') {
		var fraza = document.search2.searchvalue.value;
		var searchmedia = 'f';		
	} else if (val == '3') {
		var fraza = document.search3.searchvalue.value;
		var searchmedia = 'v';		
	}
			
	window.location = '/wyszukiwarka/media/'+fraza+',0,0,0,'+searchmedia+ '';
}
///////////////////////////////////////////////



/**
 * jQuery.placeholder - Placeholder plugin for input fields
 * Written by Blair Mitchelmore (blair DOT mitchelmore AT gmail DOT com)
 * Licensed under the WTFPL (http://sam.zoy.org/wtfpl/).
 * Date: 2008/10/14
 *
 * @author Blair Mitchelmore
 * @version 1.0.1
 *
 **/
new function($) {
	$.fn.placeholder = function(settings) {
		settings = settings || {};
		var key = settings.dataKey || "placeholderValue";
		var attr = settings.attr || "placeholder";
		var className = settings.className || "placeholder";
		var values = settings.values || [];
		var block = settings.blockSubmit || false;
		var blank = settings.blankSubmit || false;
		var submit = settings.onSubmit || false;
		var value = settings.value || "";
		var position = settings.cursor_position || 0;


		return this.filter(":input").each(function(index) { 
			$.data(this, key, values[index] || $(this).attr(attr)); 
		}).each(function() {
			if ($.trim($(this).val()) === "")
				$(this).addClass(className).val($.data(this, key));
		}).focus(function() {
			if ($.trim($(this).val()) === $.data(this, key)) 
				$(this).removeClass(className).val(value)
				if ($.fn.setCursorPosition) {
				  $(this).setCursorPosition(position);
				}
		}).blur(function() {
			if ($.trim($(this).val()) === value)
				$(this).addClass(className).val($.data(this, key));
		}).each(function(index, elem) {
			if (block)
				new function(e) {
					$(e.form).submit(function() {
						return $.trim($(e).val()) != $.data(e, key)
					});
				}(elem);
			else if (blank)
				new function(e) {
					$(e.form).submit(function() {
						if ($.trim($(e).val()) == $.data(e, key)) 
							$(e).removeClass(className).val("");
						return true;
					});
				}(elem);
			else if (submit)
				new function(e) { $(e.form).submit(submit); }(elem);
		});
	};
}(jQuery);

/*                                                                                                                                                                              
	ClearBox JS by pyro
	
	script home:		http://www.clearbox.hu
	developer's e-mail:	pyrex(at)chello(dot)hu
	developer's msn:	pyro(at)radiomax(dot)hu
	support forum:		http://www.sg.hu/listazas.php3?id=1172325655

	LICESE:

	Using of the script is free for any non-commercial webpages without any commercial activities,
	without advertising or selling anything. If you want to use it on a commercial page, please contact the developer.
	The source code of the script (except of user variable settings) can be changed only with the developer's written permission.

*/


//
// 	User variable settings:
//

var

	CB_HideColor='#000', 
	CB_WinPadd=10,
	CB_RoundPix=12,
	CB_Animation='double',
	CB_ImgBorder=0,
	CB_ImgBorderColor='#000',
	CB_Padd=4,
	CB_ShowImgURL='on',
	CB_ImgNum='on',
	CB_ImgNumBracket='()',
	CB_SlShowTime=3,
	CB_TextH=40,
	CB_Font='Verdana',
	CB_FontSize=12,
	CB_FontColor='#777',
	CB_FontWeight='normal',
	CB_Font2='arial',
	CB_FontSize2=11,
	CB_FontColor2='#999',
	CB_FontWeight2='normal',
	CB_PicDir='pic',
	CB_BodyMarginLeft=0,
	CB_BodyMarginRight=0,
	CB_BodyMarginTop=0,
	CB_BodyMarginBottom=0,
	CB_Preload='on',
	CB_TextNav='on',
	CB_NavTextPrv='previous',
	CB_NavTextNxt='next',
	CB_NavTextFull='original size and download',
	CB_NavTextDL='download',
	CB_NavTextClose='close',
	CB_NavTextStart='start SlideShow',
	CB_NavTextStop='stop SlideShow',
	CB_NavTextImgPrv='on',
	CB_NavTextImgNxt='on',
	CB_NavTextImgFull='on',
	CB_NavTextImgDL='on',
	CB_PictureStart='start.png',
	CB_PicturePause='pause.png',
	CB_PictureClose='close.png',
	CB_PictureLoading='loading.gif',
	CB_PictureNext='next.png',
	CB_PicturePrev='prev.png',

//
//	NEW in ClearBox since 2.5:
//

	CB_HideOpacitySpeed=400,
	CB_ImgOpacitySpeed=450,
	CB_TextOpacitySpeed=350,
	CB_HideOpacity=.85,
	CB_AnimSpeed=600,
	CB_ImgTextFade='on',
	CB_FlashHide='off',
	CB_SelectsHide='on',
	CB_NoThumbnails='off', 
	CB_SimpleDesign='off',
	CB_ImgMinWidth=200,
	CB_ImgMinHeight=160,
	CB_CloseOnH='on',
	CB_ShowGalName='on',
	CB_AllowedToRun='on',
	CB_AllowExtFunct='off',
	CB_FullSize='on'

;

//
//	Do not change the following code!
//

eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2 $6(){d(4.j==1)3 7$6(4[0]);5 b=[];$c(4).h(2(a){b.x(7$6(a))});3 b;2 7$6(a){d(s a==\'r\')a=p.n(a);3 a}};m.l.k=2(a){5 b=8;3 2(){3 b.e(a,4)}};i=2(a,b){o(9 q b)a[9]=b[9];3 a};d(!g.f)5 f=u t();5 v={w:2(){3 2(){8.y.e(8,4)}}};',35,35,'||function|return|arguments|var|CB|get|this|kifejezes||||if|apply|CBEE|window|each|Kiterjeszt|length|lancol|prototype|Function|getElementById|for|document|in|string|typeof|Object|new|Osztaly|letrehoz|push|azonnallefut'.split('|'),0,{}));eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('s i=t 1i();i.F=3(){};i.F.1z={1r:3(a){1.7=14({z:3(){},y:3(){},Y:i.1v.1p,n:1h,N:\'k\',S:18,E:C},a||{})},B:3(){s a=t A().T();4(a<1.m+1.7.n){4(1.8.f(\'d\')==\'1t\'&&1o==\'1n\'){1.9=1.j;1.g();6}4((1.8.f(\'d\')==\'u\'||1.8.f(\'d\')==\'1g\'||1.8.f(\'d\')==\'1e\')&&1b==\'1a\'){1.g();6}1.H=a-1.m;1.V()}r{D(1.7.y.w(1,1.8),10);1.g();1.9=1.j}1.O()},V:3(){1.9=1.P(1.Q,1.j)},P:3(a,b){s c=b-a;6 1.7.Y(1.H,a,c,1.7.n)},g:3(){13(1.l);1.l=12;6 1},x:3(a,b){4(!1.7.S)1.g();4(1.l)6;D(1.7.z.w(1,1.8),10);1.Q=a;1.j=b;1.m=t A().T();1.l=11(1.B.w(1),Z.1y(1x/1.7.E));6 1},1w:3(a,b){6 1.x(a,b)},X:3(a){1.9=a;1.O();6 1},1u:3(){6 1.X(0)},1s:3(e,p,v){4(1.8.f(\'d\')==\'u\'&&p==\'R\'){I=M(1l-(1k+1.9+1j+(2*(L+o+K)))/2);J.5.1f=(I-(1m/2))+\'k\';1d.5.R=1.9+(2*o)+\'k\'}4(1.8.f(\'d\')==\'u\'&&p==\'1c\'){U=M(1q-(1.9+(2*(L+o+K)))/2);J.5.19=U+\'k\'}4(p==\'q\'){4(v==0&&e.5.h!="W")e.5.h="W";r 4(e.5.h!="G")e.5.h="G";4(17.16)e.5.15="1A(q="+v*C+")";e.5.q=v}r e.5[p]=v+1.7.N}};',62,99,'|this||function|if|style|return|params|CBe|most||||id||getAttribute|clearTimer|visibility|CB_effektek|hova|px|timer|time|idotartam|CB_ImgBorder||opacity|else|var|new|CB_Image||lancol|_start|halefutott|haelindul|Date|effekt_lepes|100|setTimeout|fps|alap|visible|cTime|CB_MarginT|CB_Win|CB_Padd|CB_RoundPix|parseInt|egyseg|noveles|compute|honnan|height|varakozas|getTime|CB_MarginL|setNow|hidden|set|effekt|Math||setInterval|null|clearInterval|Kiterjeszt|filter|ActiveXObject|window|true|marginLeft|on|CB_Break|width|CB_ImgCont|CB_iFrame|marginTop|CB_TL|500|Object|CB_TextH|CB_ieRPBug|DocScrY|FF_ScrollbarBug|off|CB_SSTimer|evlassitva|DocScrX|parameterek|setStyle|CB_SlideShowBar|elrejt|Effektek|sajat|1000|round|prototype|alpha'.split('|'),0,{}));eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('7.z=r.j();7.z.i=f(w 7.n(),{m:5(a,b){3.4=$u(a);3.g(b);3.4.E.D=\'B\'},l:5(){k(3.4.A>0)6 3.8(3.4.A,0);h 6 3.8(0,3.4.x)},q:5(){6 3.e(3.4.x)},s:5(){3.v(3.4,\'M\',3.9)}});7.F=r.j();7.F.i=f(w 7.n(),{m:5(a,b){3.4=$u(a);3.g(b);3.4.E.D=\'B\';3.p=3.4.o},l:5(){k(3.4.o>0)6 3.8(3.4.o,0);h 6 3.8(0,3.p)},q:5(){6 3.e(3.p)},s:5(){3.v(3.4,\'L\',3.9)}});7.C=r.j();7.C.i=f(w 7.n(),{m:5(a,b){3.4=$u(a);3.g(b);3.9=1},l:5(){k(3.9>0)6 3.8(1,0);h 6 3.8(0,1)},q:5(){6 3.e(1)},s:5(){3.v(3.4,\'K\',3.9)}});7.J={I:5(t,b,c,d){6 c*t/d+b},H:5(t,b,c,d){6-c/2*(y.G(y.N*t/d)-1)+b}};',50,50,'|||this|CBe|function|return|CB_effektek|sajat|most|||||set|Kiterjeszt|parameterek|else|prototype|letrehoz|if|toggle|azonnallefut|alap|offsetWidth|iniWidth|show|Osztaly|noveles||CB|setStyle|new|scrollHeight|Math|magassag|offsetHeight|hidden|Atlatszosag|overflow|style|szelesseg|cos|evlassitva|egyenletes|Effektek|opacity|width|height|PI'.split('|'),0,{}));eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('F 7E=\'2.6\',3i=1;2a=-50,1R=5,3G=\'G\';l(1B==\'G\'){1B=\'46\';29=1}p 6O(a){F b;l(!a)F a=Q.4K;F b=(a.6h)?a.6h:a.7B;F c=7u.7o(b);l(2d==\'o\'){l(x>1&&(c=="%"||b==37||b==52)){l(1l==\'o\'){1y()}1n(x-1);v M}l(x<u.C-1&&(c=="\'"||b==39||b==54)){l(1l==\'o\'){1y()}1n(x+1);v M}l((c==" "||b==32)&&2P==0){l(u.C<3){v M}l(2g==\'2M\'){4A();v M}t{58();v M}}l(c==""||b==27){42();v M}l(b==13){v M}}t{l(2P==1&&(c==" "||b==32||b==13)){v M}}}p 4A(){1O.k.y=\'K\';1W.k.y=\'16\';2g=\'4L\';1M.k.y=\'16\';5e()}p 58(){1W.k.y=\'K\';1O.k.y=\'16\';5g()}3u=P(3u);l(3u<0){3u=0}3r=P(3r);l(3r<0){3r=0}3q=P(3q);l(3q<0){3q=0}3p=P(3p);l(3p<0){3p=0}l(2V<0||2V>1){2V=0.75}2n=P(2n);l(2n<1||2n>57){2n=56}2k=P(2k);l(2k<1||2k>57){2k=6R}2R=P(2R);l(2R<1||2R>57){2R=83}1F=P(1F);l(1F<0){1F=1}l(1B!=\'G\'&&1B!=\'6I\'&&1B!=\'46\'&&1B!=\'3Q\'){1B=\'46\'}J=P(J);l(J<0){J=1}1o=P(1o);l(1o<0){1o=2}l(3h!=\'o\'&&3h!=\'G\'){3h=\'G\'}1R=P(1R);l(1R<0){1R=0}V=P(V);l(V<0){V=12}1j=P(1j);l(1j<25){1j=25}l(3d==\'o\'){1j=0;1R=0}2N=P(2N);l(2N<6){2N=12}3c=P(3c);l(3c<6){3c=11}l(3b!=\'o\'&&3b!=\'G\'){3b=\'o\'}2K=P(2K);l(2K<1){2K=5}2K*=6j;l(3G!=\'o\'&&3G!=\'G\'){3G=\'G\'}l(38!=\'o\'&&38!=\'G\'){38=\'o\'}l(2e!=\'o\'&&2e!=\'G\'){2e=\'o\'}l(2I!=\'o\'&&2I!=\'G\'){2I=\'G\'}l(2Q!=\'o\'&&2Q!=\'G\'){2Q=\'o\'}l(3O!=\'o\'&&3O!=\'G\'){3O=\'G\'}l(3d!=\'o\'&&3d!=\'G\'){3d=\'G\'}l(3F!=\'o\'&&3F!=\'G\'){3F=\'o\'}l(3j!=\'o\'&&3j!=\'G\'){3j=\'o\'}l(2x!=\'o\'&&2x!=\'G\'){2x=\'o\'}l(34!=\'o\'&&34!=\'G\'){34=\'G\'}l(3Y!=\'o\'&&3Y!=\'G\'){3Y=\'o\'}l(45!=\'o\'&&45!=\'G\'){45=\'o\'}l(48!=\'o\'&&48!=\'G\'){48=\'o\'}l(3v!=\'o\'&&3v!=\'G\'){3v=\'o\'}l(3w!=\'o\'&&3w!=\'G\'){3w=\'o\'}29=P(29);l(29<1){29=6R}2E=P(2E);l(2E<50){2E=50}2F=P(2F);l(2F<50){2F=50}F 3A,2G=3B,5V=2a,3C,7j,3f,3I=\'\',7g=0,2f,7c,2P,2q,2X,4T=0,4Z=\'\',2d,3Z=3u+3r,47=3q+3p,44,N,43=0,1l,2g=\'2M\',20,5f,5d,71,A,H,41,2w,1N,D,1S,1U,2h,2m,x,u,3X,2T,3V,3n,3m,2y,2z;O+=\'/\';F 4X=m.82?3B:M;l(!4X)m.81(80.7Z);l(3Y==\'o\'){F 1H=4R;4R=\'<1w 1u="3P" B="\'+O+\'6E.1b" 1f="\'+1H+\'" 1D="\'+1H+\'" />\'}l(45==\'o\'){F 1H=4P;4P=\'<1w 1u="3P" B="\'+O+\'6w.1b" 1f="\'+1H+\'" 1D="\'+1H+\'" />\'}l(48==\'o\'){F 1H=3N;3N=\'<1w 1u="3P" B="\'+O+\'6v.1b" 1f="\'+1H+\'" 1D="\'+1H+\'" />\'}l(3v==\'o\'){F 1H=4N;4N=\'<1w 1u="3P" B="\'+O+\'6t.1b" 1f="\'+1H+\'" 1D="\'+1H+\'" />\'}p 6r(a,b){l(3g Q.2O!=\'3e\'){Q.2O(a,b,M)}t l(3g m.2O!=\'3e\'){m.2O(a,b,M)}t l(3g Q.6o!=\'3e\'){Q.6o("o"+a,b)}}6r(\'7V\',6m);p 6m(){m.7Q=6O;m.X.k.7O="7M";F a=\'<I 1u="7I" k="E: \'+V+\'q; R: \'+V+\'q;"></I>\';l(14.17.Z("2H")!=-1){3I=\'<1w z="4O" 1f="" B="\'+O+\'2s.1b" />\'}t{3I=\'<I z="4O"></I>\'}l(!m.r(\'4w\')&&3i!=0){F b=m.2b("X").7z(0);F c=m.4Q("I");c.68(\'z\',\'67\');b.1v(c);F d=m.4Q("I");d.68(\'z\',\'4w\');b.1v(d)}m.r(\'4w\').T=\'<I z="64"></I><I z="63"></I><60 7w="0" 7v="0" z="5Y"><2D z="3n"><1c z="4a">\'+a+\'</1c><1c z="4n"></1c><1c z="4d">\'+a+\'</1c></2D><2D z="7s"><1c z="2y"></1c><1c z="71" 7r="33" 7p="2c"><I z="5M"><I z="5L"><1w z="4j" 1f="\'+5K+\'" 1D="\'+5K+\'" B="\'+O+5J+\'" /><I z="5R"></I>\'+3I+\'<I z="4r"><I z="5H"></I></I><1w z="6c" 1f="7i" B="\'+O+5F+\'" /><1w z="5E" 1f="" B="\'+O+\'2s.1b" /><I z="3H"><1w z="4g" 1f="" B="\'+O+5B+\'" /><1w z="4f" 1f="" B="\'+O+6k+\'" /><I z="5y"></I><1w z="4e" 1f="\'+5x+\'" 1D="\'+5x+\'" B="\'+O+5w+\'" /><1w z="4c" 1f="\'+5v+\'" 1D="\'+5v+\'" B="\'+O+5u+\'" /><a z="5t"></a><a z="5r"></a></I></I><I z="5p"><I z="6P"></I><I z="5n"></I><I z="6Y"></I></I></I></1c><1c z="2z"></1c></2D><2D z="3m"><1c z="5l">\'+a+\'</1c><1c z="5j"></1c><1c z="5i">\'+a+\'</1c></2D></60>\';l(14.17.Z("2H 6")!=-1&&V==0){4Z=1}l(14.17.Z("2H")!=-1&&V<2){4T=6}m.r(\'5M\').k.8d=1o+\'q\';2Y=m.r(\'4O\');1p=m.r(\'5y\');1p.k.73=\'#8c\';1p.k.1g=0.75;1p.k.1d=\'2o(1g=75)\';2w=m.r(\'5Y\');2C=m.r(\'4r\');3t=m.r(\'5H\');l(3O==\'o\'){2Y.k.y=\'K\'}1a=m.r(\'64\');1a.k.73=8b;1a.k.1g=0;1a.k.1d=\'2o(1g=0)\';5c=U 1I.2B(1a,{1G:2n,1V:p(){5b(\'3o\')}});5c.2W();5a=U 1I.2B(1a,{1G:2n,1V:p(){1n()}});5a.2W();59=U 1I.2B(1a,{1G:2n,1V:p(){1a.k.E=\'1k\';1a.k.R=\'1k\';20.k.w=\'S\'}});59.2W();D=m.r(\'5E\');20=m.r(\'6c\');2U=m.r(\'5L\');D.k.8a=J+\'q 89 \'+88;2A=m.r(\'4j\');2A.1r=p(){42()};1O=m.r(\'4c\');1W=m.r(\'4e\');1O.1r=p(){4A();v M};1W.1r=p(){58();v M};1M=m.r(\'63\');1M.k.1g=0.5;1M.k.1d=\'2o(1g=50)\';2j=m.r(\'4g\');2j.28=p(){2j.k.w=\'19\'};2j.1r=p(){l(1l==\'o\'){1y()}1n(x-1);v M};2l=m.r(\'4f\');2l.28=p(){2l.k.w=\'19\'};2l.1r=p(){l(1l==\'o\'){1y()}1n(x+1);v M};1S=m.r(\'5t\');1S.k.1T=\'6W(\'+O+\'2s.1b)\';1S.28=p(){2j.k.w=\'19\'};1S.6V=p(){2j.k.w=\'S\'};1U=m.r(\'5r\');1U.k.1T=\'6W(\'+O+\'2s.1b)\';1U.28=p(){2l.k.w=\'19\'};1U.6V=p(){2l.k.w=\'S\'};1t=m.r(\'6Y\');1N=m.r(\'5p\');1N.k.R=(1j-1R)+\'q\';1t.k.33=\'-\'+(1j-1R)+\'q\';1t.k.R=(1j-1R+3)+\'q\';1N.k.6U=1R+\'q\';l(3d==\'o\'){1N.k.y=\'K\';1j=0}t{1N.k.y=\'16\'}W=m.r(\'6P\');W.k.53=6T;W.k.51=6S;W.k.6Q=87;W.k.4Y=2N+\'q\';1i=m.r(\'67\');1i.k.53=6T;1i.k.51=6S;1i.k.4Y=2N+\'q\';1h=m.r(\'5n\');1h.k.53=86;1h.k.51=85;1h.k.6Q=84;1h.k.4Y=3c+\'q\';3n=m.r(\'3n\').k;3n.R=V+\'q\';3m=m.r(\'3m\').k;3m.R=V+\'q\';2y=m.r(\'2y\').k;2y.E=V+4Z+\'q\';2z=m.r(\'2z\').k;2z.E=V+\'q\';4W=m.r(\'5R\');l(2e==\'o\'){4V=U 1I.2B(1t,{1G:2R,1V:p(){3s()}});5h=U 1I.2B(D,{1G:2k,1V:p(){3T()}});5h.2W();6M=U 1I.2B(D,{1G:2k});6M.2W()}5k=m.r(\'3H\').k;2Y.28=p(){6K();v};1p.28=p(){3S();v};1N.28=p(){3S();v};1a.28=p(){3S();v};l(14.17.Z("3k")!=-1){3Z=0;47=0}l(14.17.Z("3R")!=-1){47=0}m.r(\'4r\').7Y=6H;F e=0;F f=0;F g=U 2v("2s.1b","6G.1b","6F.1e","6D.1e","6C.1e","6B.1e","6A.1e","6z.1e","6y.1e","6x.1e","7X.1b",5u,5w,5J,5F,6k,5B,"6E.1b","6w.1b","6v.1b","6t.1b");F h=U 2v();N=m.2b(\'a\');1x(i=0;i<N.C;i++){L=N[i].1A;7W=N[i].15(\'2i\');l(L.6u(\'1s\')!=1Y&&3i!=0){l(L==\'1s\'){N[i].1r=p(){l(2x==\'o\'){4M(Y.1A+\'+\\\\+\'+Y.15(\'2i\')+\'+\\\\+\'+Y.15(\'1D\'));v M}}}t{l(L.1E(0,8)==\'1s\'&&L.3M(8)==\'[\'&&L.3M(L.C-1)==\']\'){l(N[i].1A.1E(9,N[i].1A.C-1).21(\',,\')[0]!=\'1s\'){N[i].1r=p(){l(2x==\'o\'){4M(Y.1A.1E(9,Y.1A.C-1)+\'+\\\\+\'+Y.15(\'2i\')+\'+\\\\+\'+Y.15(\'1D\'));v M}}}t{6q(\'6p 6n#1:\\n\\7U 7T 7S 7R 7P "1s[1s]"!\\n(6l: m, \'+i+\'. <a>.)\')}l(N[i].15(\'2t\')!=1Y&&N[i].15(\'2t\')!=\'1Y\'){g.1Z(N[i].15(\'2t\'));F j=m.4Q(\'1w\');j.B=N[i].15(\'2t\');j.1f=\'\';j.7N=\'7L\';N[i].1v(j)}}t l(L.1E(0,8)==\'1s\'&&L.3M(8)==\'(\'&&L.3M(L.C-1)==\')\'){l(L.1E(9,L.C-1).21(\',,\')[2]==\'7K\'){N[i].1r=p(){l(2x==\'o\'){4J(Y.1A.1E(9,Y.1A.C-1)+\'+\\\\+\'+Y.15(\'2i\')+\'+\\\\+\'+Y.15(\'1D\'));v M}}}t{N[i].28=p(){l(2x==\'o\'){4J(Y.1A.1E(9,Y.1A.C-1)+\'+\\\\+\'+Y.15(\'2i\')+\'+\\\\+\'+Y.15(\'1D\'));v M}}}}t{6q(\'6p 6n#2:\\n\\n: 7J 7H 7G: "\'+N[i].1A+\'"!\\n(6l: m, \'+i+\'. <a>.)\')}}}}1x(i=0;i<g.C;i++){h[i]=U 2J();h[i].B=O+g[i]}2h=A=56;2m=H=56-1j;l(14.17.Z("2H")!=-1&&14.17.Z("7F")!=-1&&14.17.Z("2H 7")==-1){6i()}}p 4M(a){l(3i==0){v M}2G=M;3A=\'G\';1m=a.21(\'+\\\\+\');L=1m[0].21(\',,\');l(L[1]>0){4H=P(L[1])*6j}t{4H=2K}l(L[2]==\'2M\'){2g=\'4L\'}l(u&&L[0]==u[0][0]&&u[0][0]!=\'1s\'){}t{u=U 2v;u.1Z(U 2v(L[0],L[1],L[2]));l(1m[0]==\'1s\'){u.1Z(U 2v(1m[1],1m[2]))}t{1x(i=0;i<N.C;i++){l(N[i].1A.1E(9,N[i].1A.C-1).21(\',,\')[0]==u[0][0]){3f=O+\'6G.1b\';l(N[i].15(\'2t\')==1Y||N[i].15(\'2t\')==\'1Y\'){1x(j=0;j<N[i].4G.C;j++){l(N[i].4G[j].B!=3e){3f=N[i].4G[j].B}}}t{3f=N[i].15(\'2t\')}u.1Z(U 2v(N[i].15(\'2i\'),N[i].15(\'1D\'),3f))}}}}x=0;7C(u[x][0]!=1m[1]){x++}4F();l(2Q==\'o\'){4E()}l(2I==\'o\'){4D()}4C()}p 4F(){6g();6f();6e();l(1q>1Q){1Q=1q}l((14.17.Z("6d")!=-1||14.17.Z("3R")!=-1)&&1z!=1P){44=Q.4z+Q.4y-1Q}t{44=0}4x();l(3Z==0){l(1P>7A.E){1a.k.E=1P+\'q\'}t{1a.k.E=\'35%\'}}t{1a.k.E=1P+3Z+\'q\'}1a.k.R=1q+2u+\'q\';1a.k.w=\'19\';v}p 4J(a){l(3i==0){v M}3A=\'G\';4W.T=\'<6a 7y="0" z="69" B=""></6a>\';1L=m.r(\'69\');1L.k.1g=0;1L.k.1d=\'2o(1g=0)\';l(2e==\'o\'){4v=U 1I.2B(1L,{1G:2k,1V:p(){2A.k.y=\'16\';D.k.w=\'S\';4V.1C(1,0)}});4v.2W()}2G=M;1N.k.E=\'1k\';1t.k.E=\'1k\';49();2d=\'G\';1m=a.21(\'+\\\\+\');1L.B=1m[1];5k.y=\'K\';L=1m[0].21(\',,\');4F();A=P(L[0]);H=P(L[1]);l(A>1z-(2*(V+J+1o+1F))){A=1z-(2*(V+J+1o+1F))}l(H>1q-(2*(V+J+1o+1F))-1j){H=1q-(2*(V+J+1o+1F))-1j}D.k.E=2h+\'q\';D.k.R=2m+\'q\';D.k.y=\'16\';D.k.w=\'S\';2w.k.w=\'19\';2A.k.y=\'K\';1O.k.y=\'K\';1W.k.y=\'K\';l(2Q==\'o\'){4E()}l(2I==\'o\'){4D()}4C(\'3o\')}p 4C(a){l(a==\'3o\'){20.k.w=\'19\';5c.1C(0,2V)}t{66();5a.1C(0,2V)}1a.k.R=1Q+47+\'q\'}p 66(){4u();D.k.E=2h+\'q\';D.k.R=2m+\'q\';D.k.y=\'16\';D.k.w=\'S\';2w.k.w=\'19\'}p 4u(){1O.k.y=\'K\';1W.k.y=\'K\';2A.k.y=\'K\';1S.k.y=\'K\';1U.k.y=\'K\'}p 1n(a){2d=\'G\';4t();4u();2j.k.w=\'S\';2l.k.w=\'S\';1N.k.E=\'1k\';1t.k.E=\'1k\';2C.k.E=\'1k\';1p.k.E=\'1k\';1p.k.R=\'1k\';2Y.k.w=\'S\';2C.k.y=\'K\';1p.k.w=\'S\';49();l(a){l(A>2q){D.k.E=A+\'q\'}l(H>2X){D.k.R=H+\'q\'}}l(a){x=P(a)}l(1B!=\'3Q\'){D.k.w=\'S\';20.k.w=\'19\'}W.T=\'\';1h.T=\'\';3X=0;2T=U 2J();2T.B=u[x][0];3V=M;3s();4s()}p 4s(){l(3X==1){4S();3V=3B;4q(3U);65();v}l(3V==M&&2T.7x){3X++}3U=62("4s()",5);v}p 65(){A=2T.E;H=2T.R;2q=A;2X=H;41=A/H;l(A<2E){A=2E}l(H<2F){H=2F}61();D.B=u[x][0];5b();v}p 5b(a){2P=1;l(1B==\'46\'){55(a)}t l(1B==\'3Q\'){l(!a){20.k.w=\'S\';D.k.w=\'19\';D.k.1g=1;D.k.1d=\'2o(1g=35)\'}55(a)}t l(1B==\'G\'){4x();2U.k.R=H+(2*J)+\'q\';D.k.E=A+\'q\';D.k.R=H+\'q\'}t l(1B==\'6I\'){6X(a)}v}p 6X(a){3D=U 1I.4p(D,{1G:29,1V:p(){5Z(a)}});3D.1C(2h,A)}p 5Z(a){40=U 1I.5X(D,{1G:29,1V:p(){l(a==\'3o\'){4B()}t{4l()}}});40.1C(2m,H)}p 55(a){3D=U 1I.4p(D,{1G:29,1V:p(){l(a==\'3o\'){4B()}t{4l()}}});3D.1C(2h,A);40=U 1I.5X(D,{1G:29});40.1C(2m,H)}p 4B(){5W()}p 5W(){l(34==\'o\'){5U()}u=\'\';4o();D.k.w=\'19\';D.k.1g=1;D.k.1d=\'2o(1g=35)\';20.k.w=\'S\';1L.k.33=J+\'q\';1L.k.2c=J+\'q\';1L.k.E=A+\'q\';1L.k.R=H+\'q\';W.k.5T=\'7t\';l(1m[2]&&1m[2]!=\'1Y\'&&1m[2]!=1Y){1i.T=\'\';1i.1v(m.1K(1m[2]));l(1i.2Z>A+(2*J)){4m(1m[2])}t{W.1v(m.1K(1m[2]))}}t{l(3h==\'o\'){W.T=1m[1]}}2d=\'o\';2P=0;l(2e==\'o\'){4v.1C(0,1)}t{1t.k.w=\'S\';1L.k.1g=1;1L.k.1d=\'2o(1g=35)\';2A.k.y=\'16\';3s()}v}p 3s(){l(3F==\'o\'){1a.1r=p(){42();v M}}}p 4S(){1a.1r=\'\'}p 4l(){l(A>2q){2U.k.E=A+(2*J)+\'q\';D.k.E=2q+\'q\'}l(H>2X){2U.k.R=H+(2*J)+\'q\';D.k.R=2X+\'q\'}l(1B!=\'3Q\'){W.T=\'\';1h.T=\'\';20.k.w=\'S\';D.B=u[x][0];l(2e==\'o\'){5S()}t{D.k.w=\'19\';3T()}}t{3T()}}p 3T(){l(34==\'o\'){5U()}W.k.5T=\'2c\';4o();l(u.C<3){1O.k.y=\'K\';1W.k.y=\'K\'}t{l(2g==\'2M\'){1O.k.y=\'16\';1W.k.y=\'K\'}t{1W.k.y=\'16\';1O.k.y=\'K\'}}5k.y=\'16\';2A.k.y=\'16\';1S.k.R=H+\'q\';1U.k.R=H+\'q\';l(u[x][1]&&u[x][1]!=\'1Y\'&&u[x][1]!=1Y){1i.T=\'\';1i.1v(m.1K(u[x][1]));l(1i.2Z>A+(2*J)){4m(u[x][1])}t{W.1v(m.1K(u[x][1]))}}t{l(3h==\'o\'){W.1v(m.1K((u[x][0].21(\'/\'))[(u[x][0].21(\'/\').C)-1]))}}l(3j==\'o\'&&L[0]!="1s"){1h.1v(m.1K(L[0]))}l(3b==\'o\'&&u.C>2){1h.1v(m.1K(\' \'+5Q.1E(0,1)+x+\'/\'+(u.C-1)+5Q.1E(1,2)+\' \'))}l(3w==\'o\'){l((3j==\'o\'||3b==\'o\')&&L[0]!="1s"){1h.T+=\'<2p 1u="3y"> | </2p>\'}F a=4N;l(2q>A||2X>H){a=3N}l(u[x][0].1E(u[x][0].C-4,u[x][0].C)==\'7q\'){a=3N;1h.T+=\'<a 1u="2r" 5P="5O" 2i="\'+u[x][0].1E(0,u[x][0].C-4)+\'">\'+a+\'</a>\'}t{1h.T+=\'<a 1u="2r" 5P="5O" 2i="\'+u[x][0]+\'">\'+a+\'</a>\'}}l(2r==\'o\'&&L[0]!="1s"){1h.T+=\'<2p 1u="3y"> | </2p>\'}3H();l(u.C>0){l(A>2q){2U.k.E=\'\'}2h=A;2m=H}l(u.C>2){l(2g==\'4L\'){1W.k.y=\'16\';1M.k.y=\'16\';5e()}t{1O.k.y=\'16\'}}t{2g=\'2M\'}2d=\'o\';2P=0;1p.k.E=A+(2*J)+\'q\';1p.k.R=H+(2*J)+\'q\';5N();l(2e==\'o\'){4V.1C(1,0)}t{1t.k.w=\'S\';3s()}v}p 4m(a){1i.T=\'\';1i.1v(m.1K(a));1i.T+=\' | \';1i.1v(m.1K(a));1i.T+=\' | \';W.T=\'\';W.1v(m.1K(a));W.T+=\'<2p 1u="3y"> | </2p>\';W.1v(m.1K(a));W.T+=\'<2p 1u="3y"> | </2p>\';4k()}p 4k(){l(2a<0){2a++}t{l(2a<1i.2Z/2){W.k.2c=-2a+\'q\';2a++}t{W.k.2c=\'1k\';2a=0}}3C=62("4k()",30)}p 5N(){l(L[0]!="1s"){2Y.k.w=\'19\';2C.k.E=A+(2*J)+\'q\';2C.k.33=H-70+\'q\';F a=\'\';F b=10;F c=0;F d=0;2f=0;3z=U 2J();3K=U 2J();1x(i=1;i<u.C;i++){3z.B=u[i][2];c=3W.3x(3z.E/3z.R*50);l(c>0){}t{c=50}2f+=c}2f+=(u.C-2)*b;1x(i=1;i<u.C;i++){3K.B=u[i][2];a+=\'<a 1r="l(1l==\\\'o\\\'){1y();}1n(\'+i+\')"><1w k="2c: \'+d+\'q;" B="\'+u[i][2]+\'" R="50" 1u="7n" 1f="" /></a>\';d+=3W.3x(3K.E/3K.R*50)+b}3t.k.E=2f+\'q\';3t.T=a;3t.k.4i=(A-2f)/2+\'q\'}v}p 4o(){1t.k.E=A+(2*J)+\'q\';1N.k.E=A+(2*J)+\'q\'}p 49(){1t.k.1g=1;1t.k.1d=\'2o(1g=35)\';1t.k.y=\'16\';1t.k.w=\'19\'}p 5S(){5h.1C(0,1)}p 6K(){1p.k.w=\'19\';2C.k.y=\'16\';v}p 3S(){1p.k.w=\'S\';2C.k.y=\'K\';v}p 6H(e){l(2f>A){l(4X){31=4K.7m}t{31=e.7l}l(31<0){31=0}3t.k.4i=((1z-A)/2-31)/(A/(2f-A-(2*J)))+\'q\'}}p 4t(){l(3C){4q(3C)}W.k.2c=\'1k\';2a=5V}p 5g(){1l=\'G\';2g=\'2M\';1y()}p 1y(){1M.k.E=\'1k\';1l=\'G\';43=0;1M.k.y=\'K\'}p 5e(){1l=\'o\';1M.k.2c=(P((1z-A)/2)+18+2S-J)+\'q\';1M.k.33=(P((1q-H-1j)/2)+4+2u-J)+\'q\';5I=U 1I.4p(1M,{1G:4H,1V:p(){43=0;1M.k.E=43+\'q\';l(1l==\'o\'){l(x==u.C-1){1n(1)}t{1n(x+1)}}}});5I.1C(0,A+(2*J)-36)}p 61(){l(A>1z-(2*(V+J+1o+1F))){A=1z-(2*(V+J+1o+1F));H=3W.3x(A/41)}l(H>1q-(2*(V+J+1o+1F))-1j){H=1q-(2*(V+J+1o+1F))-1j;A=3W.3x(41*H)}v}p 4x(){5f=P(2S-(A+(2*(V+J+1o)))/2);5d=P(2u-(4T+H+1j+(2*(V+J+1o)))/2);2w.k.4i=5f+\'q\';2w.k.6U=(5d-(44/2))+\'q\';v}p 3H(){l(x>1){l(38==\'o\'){5G=U 2J();5G.B=u[x-1][0]}l(2r==\'o\'){1h.T+=\'<a 1u="2r" 1r="l(1l==\\\'o\\\'){1y();}1n(\'+(x-1)+\')" 1f="&7k;">\'+4R+\'</a>\'}1S.k.y=\'16\';1S.1r=p(){l(1l==\'o\'){1y()}1n(x-1);v M}}l(x<u.C-1){l(38==\'o\'){6b=U 2J();6b.B=u[x+1][0]}l(2r==\'o\'){1h.T+=\'<a 1u="2r" 1r="l(1l==\\\'o\\\'){1y();}1n(\'+(x+1)+\')" 1f="&7D;">\'+4P+\'</a>\'}1U.k.y=\'16\';1U.1r=p(){l(1l==\'o\'){1y()}1n(x+1);v M}}v}p 42(){l(L[0]==\'1s\'||u.C>2){l(3U){4q(3U)}}3A=\'o\';2G=3B;4t();1N.k.E=\'1k\';1t.k.E=\'1k\';1p.k.E=\'1k\';1p.k.R=\'1k\';1p.k.w=\'S\';2Y.k.w=\'S\';5g();W.T=\'\';1h.T=\'\';D.B=O+\'2s.1b\';2h=A;2m=H;2U.k.R=H+(2*J)+\'q\';D.k.y=\'K\';2w.k.w=\'S\';4W.T=\'\';49();74();2j.k.w=\'S\';2l.k.w=\'S\';1S.k.y=\'K\';1U.k.y=\'K\';20.k.w=\'S\';4S();v}p 74(){59.1C(2V,0);2d=\'G\';l(2Q==\'o\'){6J()}l(2I==\'o\'){5D()}v}p 6f(){Y.1P=0;Y.1Q=0;l(Q.3J&&Q.4h){1P=Q.3J+Q.4h;1Q=Q.4y+Q.4z}t l(m.X.4I>m.X.2Z){1P=m.X.4I;1Q=m.X.5C}t{1P=m.X.2Z;1Q=m.X.7h}l(14.17.Z("2H")!=-1||14.17.Z("3k")!=-1){1P=m.X.4I;1Q=m.X.5C}l(14.17.Z("3R")!=-1||14.17.Z("6d")!=-1){1P=1z+Q.4h;1Q=1q+Q.4z}v}p 6g(){Y.1z=0;Y.1q=0;l(m.1J&&(m.1J.3a||m.1J.2L)){1z=m.1J.3a;1q=m.1J.2L}t l(3g(Q.3J)==\'5A\'){1z=Q.3J;1q=Q.4y}t l(m.X&&(m.X.3a||m.X.2L)){1z=m.X.3a;1q=m.X.2L;v}l(14.17.Z("3k")!=-1){1z=m.1J.3a;1q=m.1J.2L}l(m.5z!=3e){l(m.5z.6u(\'7f\')&&(14.17.Z("3R")!=-1||14.17.Z("3k")!=-1||14.17.Z("7e")!=-1)){1q=m.X.2L}}v}p 6e(){Y.2S=0;Y.2u=0;l(3g(Q.6s)==\'5A\'){2u=Q.6s;2S=Q.7d}t l(m.X&&(m.X.3L||m.X.3E)){2u=m.X.3E;2S=m.X.3L}t l(m.1J&&(m.1J.3L||m.1J.3E)){2u=m.1J.3E;2S=m.1J.3L}v}p 6i(){F s,i,j;F a=U 2v();a.1Z(m.r(\'4j\'));a.1Z(m.r(\'4c\'));a.1Z(m.r(\'4e\'));a.1Z(m.r(\'4g\'));a.1Z(m.r(\'4f\'));1x(i=0;i<a.C;i++){s=a[i].15(\'B\');l(s.7b().Z(".1e")!=-1){a[i].B=O+\'2s.1b\';a[i].k.1d+="1X:23.22.24(B=\'"+s+"\', 26=7a);"}}m.r(\'4n\').k.1d="1X:23.22.24(B=\'"+O+"/6z.1e\', 26=\'4b\');";m.r(\'4a\').k.1d="1X:23.22.24(B=\'"+O+"/6y.1e\', 26=\'3l\');";m.r(\'4d\').k.1d="1X:23.22.24(B=\'"+O+"/6x.1e\', 26=\'3l\');";m.r(\'2z\').k.1d="1X:23.22.24(B=\'"+O+"/6A.1e\', 26=\'4b\');";m.r(\'2y\').k.1d="1X:23.22.24(B=\'"+O+"/6B.1e\', 26=\'4b\');";m.r(\'5j\').k.1d="1X:23.22.24(B=\'"+O+"/6F.1e\', 26=\'3l\');";m.r(\'5l\').k.1d="1X:23.22.24(B=\'"+O+"/6D.1e\', 26=\'3l\');";m.r(\'5i\').k.1d="1X:23.22.24(B=\'"+O+"/6C.1e\', 26=\'3l\');";m.r(\'4n\').k.1T="K";m.r(\'4a\').k.1T="K";m.r(\'4d\').k.1T="K";m.r(\'2z\').k.1T="K";m.r(\'2y\').k.1T="K";m.r(\'5j\').k.1T="K";m.r(\'5l\').k.1T="K";m.r(\'5i\').k.1T="K"}p 4E(){F a=m.2b("5s");1x(i=0;i!=a.C;i++){a[i].k.w="S"}}p 6J(){F a=m.2b("5s");1x(i=0;i!=a.C;i++){a[i].k.w="19"}}p 4D(){F a=m.2b("5q");1x(i=0;i<a.C;i++){a[i].k.w="S"}F b=m.2b("6L");1x(i=0;i<b.C;i++){b[i].k.w="S"}}p 5D(){F a=m.2b("5q");1x(i=0;i<a.C;i++){a[i].k.w="19"}F b=m.2b("6L");1x(i=0;i<b.C;i++){b[i].k.w="19"}}p 6N(a){l(14.17.Z("3k")!=-1){a=-a}l(u.C>2){l(a>0&&x>1){l(1l==\'o\'){1y()}1n(x-1)}l(a<0&&x<u.C-1){l(1l==\'o\'){1y()}1n(x+1)}}}p 4U(a){F b=2d=="o";F c=0;l(!a)a=Q.4K;l(a.5o){c=a.5o/79;l(Q.78)c=-c}t l(a.6Z){c=-a.6Z/3}l(c&&b)6N(c);l(a.5m&&!2G)a.5m();a.77=2G}l(Q.2O)Q.2O(\'76\',4U,M);Q.72=m.72=4U;',62,510,'||||||||||||||||||||style|if|document||on|function|px|getElementById||else|CB_Gallery|return|visibility|CB_ActImgId|display|id|CB_ImgWidth|src|length|CB_Img|width|var|off|CB_ImgHeight|div|CB_ImgBorder|none|CB_Rel|false|CB_Links|CB_PicDir|parseInt|window|height|hidden|innerHTML|new|CB_RoundPix|CB_Txt1|body|this|indexOf|||||navigator|getAttribute|block|userAgent||visible|CB_HideContent|gif|td|filter|png|alt|opacity|CB_Txt2|CB_HTxt|CB_TextH|0px|CB_SSTimer|CB_Clicked|CB_LoadImage|CB_Padd|CB_ImgHd|BrSizeY|onclick|clearbox|CB_TxtL|class|appendChild|img|for|CB_SlideShowJump|BrSizeX|rel|CB_Animation|sajat|title|substring|CB_WinPadd|idotartam|temp|CB_effektek|documentElement|createTextNode|CB_iFr|CB_SlideB|CB_Txt|CB_SlideS|DocSizeX|DocSizeY|CB_PadT|CB_Prv|backgroundImage|CB_Nxt|halefutott|CB_SlideP|progid|null|push|CB_LoadingImg|split|Microsoft|DXImageTransform|AlphaImageLoader||sizingMethod||onmouseover|CB_AnimSpeed|CB_STi|getElementsByTagName|left|CB_ClearBox|CB_ImgTextFade|CB_AllThumbsWidth|CB_SS|CB_ImgWidthOld|href|CB_NavP|CB_ImgOpacitySpeed|CB_NavN|CB_ImgHeightOld|CB_HideOpacitySpeed|alpha|span|CB_ImgWidthOrig|CB_TextNav|blank|tnhref|DocScrY|Array|CB_Win|CB_AllowedToRun|CB_Left|CB_Right|CB_Cls|Atlatszosag|CB_Thm|tr|CB_ImgMinWidth|CB_ImgMinHeight|CB_ScrollEnabled|MSIE|CB_FlashHide|Image|CB_SlShowTime|clientHeight|start|CB_FontSize|addEventListener|CB_IsAnimating|CB_SelectsHide|CB_TextOpacitySpeed|DocScrX|CB_preImages|CB_ImgCont|CB_HideOpacity|elrejt|CB_ImgHeightOrig|CB_ShTh|offsetWidth||tempX||top|CB_AllowExtFunct|100|||CB_Preload||clientWidth|CB_ImgNum|CB_FontSize2|CB_SimpleDesign|undefined|CB_ActThumbSrc|typeof|CB_ShowImgURL|CB_Show|CB_ShowGalName|Opera|crop|CB_Footer|CB_Header|HTML|CB_BodyMarginBottom|CB_BodyMarginTop|CB_BodyMarginRight|CB_CloseOnHON|CB_Thm2|CB_BodyMarginLeft|CB_NavTextImgDL|CB_FullSize|round|CB_Sep|CB_preThumbs|CB_Break|true|CB_ScrollTimer|CB_animWidth|scrollTop|CB_CloseOnH|CB_CheckDuplicates|CB_PrevNext|CB_IEShowBug|innerWidth|CB_preThumbs2|scrollLeft|charAt|CB_NavTextFull|CB_NoThumbnails|CB_BtmNav|warp|Firefox|CB_HideThumbs|CB_ShowImage|CB_ImgLoadTimer|CB_Loaded|Math|CB_Count|CB_NavTextImgPrv|CB_BodyMarginX|CB_animHeight|CB_ImgRate|CB_Close|CB_SlideBW|FF_ScrollbarBug|CB_NavTextImgNxt|double|CB_BodyMarginY|CB_NavTextImgFull|CB_TxtLShow|CB_TopLeft|scale|CB_SlideShowS|CB_TopRight|CB_SlideShowP|CB_NavNext|CB_NavPrev|scrollMaxX|marginLeft|CB_CloseWindow|CB_ScrollText|CB_ImageFade|CB_ScrollT|CB_Top|CB_TxtLPos|szelesseg|clearTimeout|CB_Thumbs|CB_CheckLoaded|CB_ScrollTextStop|CB_NewAndLoad|iFrFadeEffect|CB_All|CB_SetMargins|innerHeight|scrollMaxY|CB_SSStart|CB_AfterResizeHTML|CB_HideDocument|CB_HideFlash|CB_HideSelect|CB_SetAllPositions|childNodes|CB_SlShowTimer|scrollWidth|CB_ClickURL|event|pause|CB_ClickIMG|CB_NavTextDL|CB_ShowTh|CB_NavTextNxt|createElement|CB_NavTextPrv|CB_CloseOnHOFF|CB_ieRPBug|scroll_wheel|TxtFadeEffect|CB_iFrC|IE|fontSize|CB_ie6RPBug||fontWeight||fontFamily||CB_WindowResizeXY|300|10000|CB_SSPause|HideDocumentFadeEffect2|HideDocumentFadeEffect|CB_AnimatePlease|HideDocumentFadeEffectiFr|CB_MarginT|CB_SlideShow|CB_MarginL|CB_SlideShowStop|ImgFadeEffect|CB_BtmRight|CB_Btm|CB_PrvNxt|CB_BtmLeft|preventDefault|CB_T2|wheelDelta|CB_Text|object|CB_Next|select|CB_Prev|CB_PictureStart|CB_NavTextStart|CB_PicturePause|CB_NavTextStop|CB_ImgHide|compatMode|number|CB_PicturePrev|scrollHeight|CB_ShowFlash|CB_Image|CB_PictureLoading|PreloadPrv|CB_Thumbs2|CB_ssbarWidth|CB_PictureClose|CB_NavTextClose|CB_ImgContainer|CB_Padding|CB_CheckThumbs|_blank|target|CB_ImgNumBracket|CB_iFrCont|CB_ImgFadeIn|textAlign|CB_ExternalFunction|CB_STii|CB_AfterLoadedHTML|magassag|CB_Window|CB_WindowResizeY|table|CB_FitToBrowser|setTimeout|CB_SlideShowBar|CB_ContentHide|CB_GetImageSize|CB_NewWindow|CB_HiddenText|setAttribute|CB_iFrame|iframe|PreloadNxt|CB_LoadingImage|Netscape|getScrollPosition|getDocumentSize|getBrowserSize|which|CB_pngFixIE|1000|CB_PictureNext|in|CB_Init|ERROR|attachEvent|ClearBox|alert|OnLoad|pageYOffset|btm_dl|match|btm_max|btm_next|s_topright|s_topleft|s_top|s_right|s_left|s_btmright|s_btmleft|btm_prev|s_btm|noprv|getMouseXY|normal|CB_ShowSelect|CB_ShowThumbs|embed|ImgFadeEffect2|scroll_handle|CB_KeyPress|CB_T1|color|600|CB_FontWeight|CB_Font|marginTop|onmouseout|url|CB_WindowResizeX|CB_TL|detail||CB_Content|onmousewheel|backgroundColor|CB_ShowDocument||DOMMouseScroll|returnValue|opera|120|image|toLowerCase|CB_ResizeTimer|pageXOffset|Safari|Back|CB_pngie|offsetHeight|loading|CB_ImgFadeNum|lt|pageX|clientX|CB_ThumbsImg|fromCharCode|align|_box|valign|CB_Body|center|String|cellpadding|cellspacing|complete|frameborder|item|screen|keyCode|while|gt|CB_version|Windows|attribute|REL|CB_RoundPixBugFix|Bad|click|CB_TnThumbs|static|className|position|be|onkeypress|cannot|name|gallery|nClearBox|load|CB_URL|white|onmousemove|MOUSEMOVE|Event|captureEvents|all|250|CB_FontColor2|CB_FontWeight2|CB_Font2|CB_FontColor|CB_ImgBorderColor|solid|border|CB_HideColor|fff|padding'.split('|'),0,{}));

	var UP1 = function() {
		
    /* private variables */
	
	var ffid = 1;
    
    var ifr = null;
    
    var startTime = null;
    
    var infoUpdated = 0;
    
    var writeStatus = function(text) {
		var ffid = 1;
        var statDiv = document.getElementById("status_" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }
	
    var writeStatus2 = function(text) {
		var ffid = 1;
        var statDiv = document.getElementById("dispPhotoId" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }	
	
    return {
        start: function(ffid) {
           ifr = document.getElementById("ifr_" + ffid);
		   
		   var ffid2 = parseInt(ffid) + 1;
		   
		   document.getElementById('dispPhotoId' + ffid).style.display="block";
		   document.getElementById('dispFormId' + ffid).style.display="none";
		   document.getElementById('dispFormId' + ffid2).style.display="block";
		   //dispForm();
           startTime = new Date();
           infoUpdated = 0;
		   //alert("start: " + ffid);
           this.requestInfo(ffid);
        },
        stop: function(files, result) {
		   var ffid = 1;
           if (typeof files == 'undefined' || files) {
                var secs = (new Date() - startTime)/1000;
                //var statusText = "Upload succeeded, it took " + secs + " seconds. <br/> ";
				//alert('result: ' + result);
                if (infoUpdated > 0) {
                    writeStatus2(result); 
                } else {
					writeStatus2(result);	
				}/*else {
                    statusText += "BUT there were no progress meter updates<br/> ";
                    if (secs < 5) {
                      writeStatus(statusText + "Your upload was maybe too short, try with a bigger file or a slower connection",2);
                    } else {
                      writeStatus(statusText + "Your upload should have taken long enough to have an progress update. Maybe it really does not work...",3);
                    }*/                    
               // } 
           } //else {
             //  writeStatus('PHP did not report any uploaded file, maybe it was too large, try a smaller one (max. 128M)',3);
           //}
           startTime = null;
        },
        requestInfo: function() {
			var ffid = 1;
			//alert("requstInfo: " + ffid);
            ifr.src="info.php?fid=1&ID=" + hex_md5("1") + "&"+new Date();
        },
        
        updateInfo: function(up_uploaded, up_filesize) {
			var ffid = 1;
			//alert("updateInfo 1:" + ffid);
            if (startTime) {
                if (up_uploaded) {
					var up_bar = Math.round(up_uploaded / up_filesize * 129);
                    infoUpdated++;
					//alert("updateInfo: " + ffid);
                    writeStatus("<div class='i0'><img src='images/middle_x5.gif' width='" + up_bar + "' height='24' alt='' /></div><p class='i2'><strong>" + up_uploaded + "KB</strong> / " + up_filesize + "KB</p>"); 
                }// else {
                 //   writeStatus("Download started since " + (new Date() - startTime)/1000 + " seconds. No progress info yet");
                //}
                window.setTimeout("UP1.requestInfo()",500);
            }
        }

    }

}()


///////////////// --- 2 --- //////////////////

	var UP2 = function() {
		
    /* private variables */
	
	var ffid = 2;
    
    var ifr = null;
    
    var startTime = null;
    
    var infoUpdated = 0;
    
    var writeStatus = function(text) {
		var ffid = 2;
        var statDiv = document.getElementById("status_" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }
	
    var writeStatus2 = function(text) {
		var ffid = 2;
        var statDiv = document.getElementById("dispPhotoId" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }		
    
    
    return {
        start: function(ffid) {
           ifr = document.getElementById("ifr_" + ffid);
		   
		   var ffid2 = parseInt(ffid) + 1;
		   
		   document.getElementById('dispPhotoId' + ffid).style.display="block";
		   document.getElementById('dispFormId' + ffid).style.display="none";
		   document.getElementById('dispFormId' + ffid2).style.display="block";
		   //dispForm();
           startTime = new Date();
           infoUpdated = 0;
		   //alert("start: " + ffid);
           this.requestInfo(ffid);
        },
        stop: function(files, result) {
		   var ffid = 2;
           if (typeof files == 'undefined' || files) {
                var secs = (new Date() - startTime)/1000;
                //var statusText = "Upload succeeded, it took " + secs + " seconds. <br/> ";
                if (infoUpdated > 0) {
                    writeStatus2(result); 
                } else {
					writeStatus2(result);	
				} /*else {
                    statusText += "BUT there were no progress meter updates<br/> ";
                    if (secs < 5) {
                      writeStatus(statusText + "Your upload was maybe too short, try with a bigger file or a slower connection",2);
                    } else {
                      writeStatus(statusText + "Your upload should have taken long enough to have an progress update. Maybe it really does not work...",3);
                    }*/                    
               // } 
           } //else {
             //  writeStatus('PHP did not report any uploaded file, maybe it was too large, try a smaller one (max. 128M)',3);
           //}
           startTime = null;
        },
        requestInfo: function() {
			var ffid = 2;
			//alert("requstInfo: " + ffid);
            ifr.src="info.php?fid=2&ID=" + hex_md5("2") + "&"+new Date();
        },
        
        updateInfo: function(up_uploaded, up_filesize) {
			var ffid = 2;
			//alert("updateInfo 1:" + ffid);
            if (startTime) {
                if (up_uploaded) {
					var up_bar = Math.round(up_uploaded / up_filesize * 129);
                    infoUpdated++;
					//alert("updateInfo: " + ffid);
                    writeStatus("<div class='i0'><img src='images/middle_x5.gif' width='" + up_bar + "' height='24' alt='' /></div><p class='i2'><strong>" + up_uploaded + "KB</strong> / " + up_filesize + "KB</p>"); 
                }// else {
                 //   writeStatus("Download started since " + (new Date() - startTime)/1000 + " seconds. No progress info yet");
                //}
                window.setTimeout("UP2.requestInfo()",500);
            }
        }

    }

}()


///////////////// --- 3 --- //////////////////

	var UP3 = function() {
		
    /* private variables */
	
	var ffid = 3;
    
    var ifr = null;
    
    var startTime = null;
    
    var infoUpdated = 0;
    
    var writeStatus = function(text) {
		var ffid = 3;
        var statDiv = document.getElementById("status_" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }
	
    var writeStatus2 = function(text) {
		var ffid = 3;
        var statDiv = document.getElementById("dispPhotoId" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }		
    
    
    return {
        start: function(ffid) {
           ifr = document.getElementById("ifr_" + ffid);		   
		   
		   var ffid2 = parseInt(ffid) + 1;
		   
		   document.getElementById('dispPhotoId' + ffid).style.display="block";
		   document.getElementById('dispFormId' + ffid).style.display="none";
		   document.getElementById('dispFormId' + ffid2).style.display="block";
		   //dispForm();
           startTime = new Date();
           infoUpdated = 0;
		   //alert("start: " + ffid);
           this.requestInfo(ffid);
        },
        stop: function(files, result) {
		   var ffid = 3;
           if (typeof files == 'undefined' || files) {
                var secs = (new Date() - startTime)/1000;
                //var statusText = "Upload succeeded, it took " + secs + " seconds. <br/> ";
                if (infoUpdated > 0) {
                    writeStatus2(result); 
                } else {
					writeStatus2(result);	
				} /*else {
                    statusText += "BUT there were no progress meter updates<br/> ";
                    if (secs < 5) {
                      writeStatus(statusText + "Your upload was maybe too short, try with a bigger file or a slower connection",2);
                    } else {
                      writeStatus(statusText + "Your upload should have taken long enough to have an progress update. Maybe it really does not work...",3);
                    }*/                    
               // } 
           } //else {
             //  writeStatus('PHP did not report any uploaded file, maybe it was too large, try a smaller one (max. 128M)',3);
           //}
           startTime = null;
        },
        requestInfo: function() {
			var ffid = 3;
			//alert("requstInfo: " + ffid);
            ifr.src="info.php?fid=3&ID=" + hex_md5("3") + "&"+new Date();
        },
        
        updateInfo: function(up_uploaded, up_filesize) {
			var ffid = 3;
			//alert("updateInfo 1:" + ffid);
            if (startTime) {
                if (up_uploaded) {
					var up_bar = Math.round(up_uploaded / up_filesize * 129);
                    infoUpdated++;
					//alert("updateInfo: " + ffid);
                    writeStatus("<div class='i0'><img src='images/middle_x5.gif' width='" + up_bar + "' height='24' alt='' /></div><p class='i2'><strong>" + up_uploaded + "KB</strong> / " + up_filesize + "KB</p>"); 
                }// else {
                 //   writeStatus("Download started since " + (new Date() - startTime)/1000 + " seconds. No progress info yet");
                //}
                window.setTimeout("UP3.requestInfo()",500);
            }
        }

    }

}()


///////////////// --- 4 --- //////////////////

	var UP4 = function() {
		
    /* private variables */
	
	var ffid = 4;
    
    var ifr = null;
    
    var startTime = null;
    
    var infoUpdated = 0;
    
    var writeStatus = function(text) {
		var ffid = 4;
        var statDiv = document.getElementById("status_" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }
	
    var writeStatus2 = function(text) {
		var ffid = 4;
        var statDiv = document.getElementById("dispPhotoId" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }		
    
    
    return {
        start: function(ffid) {
           ifr = document.getElementById("ifr_" + ffid);		   
		   
		   var ffid2 = parseInt(ffid) + 1;
		   
		   document.getElementById('dispPhotoId' + ffid).style.display="block";
		   document.getElementById('dispFormId' + ffid).style.display="none";
		   document.getElementById('dispFormId' + ffid2).style.display="block";
		   //dispForm();
           startTime = new Date();
           infoUpdated = 0;
		   //alert("start: " + ffid);
           this.requestInfo(ffid);
        },
        stop: function(files, result) {
		   var ffid = 4;
           if (typeof files == 'undefined' || files) {
                var secs = (new Date() - startTime)/1000;
                //var statusText = "Upload succeeded, it took " + secs + " seconds. <br/> ";
                if (infoUpdated > 0) {
                    writeStatus2(result); 
                } else {
					writeStatus2(result);	
				} /*else {
                    statusText += "BUT there were no progress meter updates<br/> ";
                    if (secs < 5) {
                      writeStatus(statusText + "Your upload was maybe too short, try with a bigger file or a slower connection",2);
                    } else {
                      writeStatus(statusText + "Your upload should have taken long enough to have an progress update. Maybe it really does not work...",3);
                    }*/                    
               // } 
           } //else {
             //  writeStatus('PHP did not report any uploaded file, maybe it was too large, try a smaller one (max. 128M)',3);
           //}
           startTime = null;
        },
        requestInfo: function() {
			var ffid = 4;
			//alert("requstInfo: " + ffid);
            ifr.src="info.php?fid=4&ID=" + hex_md5("4") + "&"+new Date();
        },
        
        updateInfo: function(up_uploaded, up_filesize) {
			var ffid = 4;
			//alert("updateInfo 1:" + ffid);
            if (startTime) {
                if (up_uploaded) {
					var up_bar = Math.round(up_uploaded / up_filesize * 129);
                    infoUpdated++;
					//alert("updateInfo: " + ffid);
                    writeStatus("<div class='i0'><img src='images/middle_x5.gif' width='" + up_bar + "' height='24' alt='' /></div><p class='i2'><strong>" + up_uploaded + "KB</strong> / " + up_filesize + "KB</p>"); 
                }// else {
                 //   writeStatus("Download started since " + (new Date() - startTime)/1000 + " seconds. No progress info yet");
                //}
                window.setTimeout("UP4.requestInfo()",500);
            }
        }

    }

}()


///////////////// --- 5 --- //////////////////

	var UP5 = function() {
		
    /* private variables */
	
	var ffid = 5;
    
    var ifr = null;
    
    var startTime = null;
    
    var infoUpdated = 0;
    
    var writeStatus = function(text) {
		var ffid = 5;
        var statDiv = document.getElementById("status_" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }
	
    var writeStatus2 = function(text) {
		var ffid = 5;
        var statDiv = document.getElementById("dispPhotoId" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }		
    
    
    return {
        start: function(ffid) {
           ifr = document.getElementById("ifr_" + ffid);		   
		   
		   var ffid2 = parseInt(ffid) + 1;
		   
		   document.getElementById('dispPhotoId' + ffid).style.display="block";
		   document.getElementById('dispFormId' + ffid).style.display="none";
		   document.getElementById('dispFormId' + ffid2).style.display="block";
		   //dispForm();
           startTime = new Date();
           infoUpdated = 0;
		   //alert("start: " + ffid);
           this.requestInfo(ffid);
        },
        stop: function(files, result) {
		   var ffid = 5;
           if (typeof files == 'undefined' || files) {
                var secs = (new Date() - startTime)/1000;
                //var statusText = "Upload succeeded, it took " + secs + " seconds. <br/> ";
                if (infoUpdated > 0) {
                    writeStatus2(result); 
                } else {
					writeStatus2(result);	
				} /*else {
                    statusText += "BUT there were no progress meter updates<br/> ";
                    if (secs < 5) {
                      writeStatus(statusText + "Your upload was maybe too short, try with a bigger file or a slower connection",2);
                    } else {
                      writeStatus(statusText + "Your upload should have taken long enough to have an progress update. Maybe it really does not work...",3);
                    }*/                    
               // } 
           } //else {
             //  writeStatus('PHP did not report any uploaded file, maybe it was too large, try a smaller one (max. 128M)',3);
           //}
           startTime = null;
        },
        requestInfo: function() {
			var ffid = 5;
			//alert("requstInfo: " + ffid);
            ifr.src="info.php?fid=5&ID=" + hex_md5("5") + "&"+new Date();
        },
        
        updateInfo: function(up_uploaded, up_filesize) {
			var ffid = 5;
			//alert("updateInfo 1:" + ffid);
            if (startTime) {
                if (up_uploaded) {
					var up_bar = Math.round(up_uploaded / up_filesize * 129);
                    infoUpdated++;
					//alert("updateInfo: " + ffid);
                    writeStatus("<div class='i0'><img src='images/middle_x5.gif' width='" + up_bar + "' height='24' alt='' /></div><p class='i2'><strong>" + up_uploaded + "KB</strong> / " + up_filesize + "KB</p>"); 
                }// else {
                 //   writeStatus("Download started since " + (new Date() - startTime)/1000 + " seconds. No progress info yet");
                //}
                window.setTimeout("UP5.requestInfo()",500);
            }
        }

    }

}()


///////////////// --- 6 --- //////////////////

	var UP6 = function() {
		
    /* private variables */
	
	var ffid = 6;
    
    var ifr = null;
    
    var startTime = null;
    
    var infoUpdated = 0;
    
    var writeStatus = function(text) {
		var ffid = 6;
        var statDiv = document.getElementById("status_" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }
	
    var writeStatus2 = function(text) {
		var ffid = 6;
        var statDiv = document.getElementById("dispPhotoId" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }		
    
    
    return {
        start: function(ffid) {
           ifr = document.getElementById("ifr_" + ffid);		   
		   
		   var ffid2 = parseInt(ffid) + 1;
		   
		   document.getElementById('dispPhotoId' + ffid).style.display="block";
		   document.getElementById('dispFormId' + ffid).style.display="none";
		   document.getElementById('dispFormId' + ffid2).style.display="block";
		   //dispForm();
           startTime = new Date();
           infoUpdated = 0;
		   //alert("start: " + ffid);
           this.requestInfo(ffid);
        },
        stop: function(files, result) {
		   var ffid = 6;
           if (typeof files == 'undefined' || files) {
                var secs = (new Date() - startTime)/1000;
                //var statusText = "Upload succeeded, it took " + secs + " seconds. <br/> ";
                if (infoUpdated > 0) {
                    writeStatus2(result); 
                } else {
					writeStatus2(result);	
				} /*else {
                    statusText += "BUT there were no progress meter updates<br/> ";
                    if (secs < 5) {
                      writeStatus(statusText + "Your upload was maybe too short, try with a bigger file or a slower connection",2);
                    } else {
                      writeStatus(statusText + "Your upload should have taken long enough to have an progress update. Maybe it really does not work...",3);
                    }*/                    
               // } 
           } //else {
             //  writeStatus('PHP did not report any uploaded file, maybe it was too large, try a smaller one (max. 128M)',3);
           //}
           startTime = null;
        },
        requestInfo: function() {
			var ffid = 6;
			//alert("requstInfo: " + ffid);
            ifr.src="info.php?fid=6&ID=" + hex_md5("6") + "&"+new Date();
        },
        
        updateInfo: function(up_uploaded, up_filesize) {
			var ffid = 6;
			//alert("updateInfo 1:" + ffid);
            if (startTime) {
                if (up_uploaded) {
					var up_bar = Math.round(up_uploaded / up_filesize * 129);
                    infoUpdated++;
					//alert("updateInfo: " + ffid);
                    writeStatus("<div class='i0'><img src='images/middle_x5.gif' width='" + up_bar + "' height='24' alt='' /></div><p class='i2'><strong>" + up_uploaded + "KB</strong> / " + up_filesize + "KB</p>"); 
                }// else {
                 //   writeStatus("Download started since " + (new Date() - startTime)/1000 + " seconds. No progress info yet");
                //}
                window.setTimeout("UP6.requestInfo()",500);
            }
        }

    }

}()


///////////////// --- 7 --- //////////////////

	var UP7 = function() {
		
    /* private variables */
	
	var ffid = 7;
    
    var ifr = null;
    
    var startTime = null;
    
    var infoUpdated = 0;
    
    var writeStatus = function(text) {
		var ffid = 7;
        var statDiv = document.getElementById("status_" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }
	
    var writeStatus2 = function(text) {
		var ffid = 7;
        var statDiv = document.getElementById("dispPhotoId" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }		
    
    
    return {
        start: function(ffid) {
           ifr = document.getElementById("ifr_" + ffid);		   
		   
		   var ffid2 = parseInt(ffid) + 1;
		   
		   document.getElementById('dispPhotoId' + ffid).style.display="block";
		   document.getElementById('dispFormId' + ffid).style.display="none";
		   document.getElementById('dispFormId' + ffid2).style.display="block";
		   //dispForm();
           startTime = new Date();
           infoUpdated = 0;
		   //alert("start: " + ffid);
           this.requestInfo(ffid);
        },
        stop: function(files, result) {
		   var ffid = 7;
           if (typeof files == 'undefined' || files) {
                var secs = (new Date() - startTime)/1000;
                //var statusText = "Upload succeeded, it took " + secs + " seconds. <br/> ";
                if (infoUpdated > 0) {
                    writeStatus2(result); 
                } else {
					writeStatus2(result);	
				} /*else {
                    statusText += "BUT there were no progress meter updates<br/> ";
                    if (secs < 5) {
                      writeStatus(statusText + "Your upload was maybe too short, try with a bigger file or a slower connection",2);
                    } else {
                      writeStatus(statusText + "Your upload should have taken long enough to have an progress update. Maybe it really does not work...",3);
                    }*/                    
               // } 
           } //else {
             //  writeStatus('PHP did not report any uploaded file, maybe it was too large, try a smaller one (max. 128M)',3);
           //}
           startTime = null;
        },
        requestInfo: function() {
			var ffid = 7;
			//alert("requstInfo: " + ffid);
            ifr.src="info.php?fid=7&ID=" + hex_md5("7") + "&"+new Date();
        },
        
        updateInfo: function(up_uploaded, up_filesize) {
			var ffid = 7;
			//alert("updateInfo 1:" + ffid);
            if (startTime) {
                if (up_uploaded) {
					var up_bar = Math.round(up_uploaded / up_filesize * 129);
                    infoUpdated++;
					//alert("updateInfo: " + ffid);
                    writeStatus("<div class='i0'><img src='images/middle_x5.gif' width='" + up_bar + "' height='24' alt='' /></div><p class='i2'><strong>" + up_uploaded + "KB</strong> / " + up_filesize + "KB</p>"); 
                }// else {
                 //   writeStatus("Download started since " + (new Date() - startTime)/1000 + " seconds. No progress info yet");
                //}
                window.setTimeout("UP7.requestInfo()",500);
            }
        }

    }

}()


///////////////// --- 8 --- //////////////////

	var UP8 = function() {
		
    /* private variables */
	
	var ffid = 8;
    
    var ifr = null;
    
    var startTime = null;
    
    var infoUpdated = 0;
    
    var writeStatus = function(text) {
		var ffid = 8;
        var statDiv = document.getElementById("status_" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }
	
    var writeStatus2 = function(text) {
		var ffid = 8;
        var statDiv = document.getElementById("dispPhotoId" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }		
    
    
    return {
        start: function(ffid) {
           ifr = document.getElementById("ifr_" + ffid);		   
		   
		   var ffid2 = parseInt(ffid) + 1;
		   
		   document.getElementById('dispPhotoId' + ffid).style.display="block";
		   document.getElementById('dispFormId' + ffid).style.display="none";
		   document.getElementById('dispFormId' + ffid2).style.display="block";
		   //dispForm();
           startTime = new Date();
           infoUpdated = 0;
		   //alert("start: " + ffid);
           this.requestInfo(ffid);
        },
        stop: function(files, result) {
		   var ffid = 8;
           if (typeof files == 'undefined' || files) {
                var secs = (new Date() - startTime)/1000;
                //var statusText = "Upload succeeded, it took " + secs + " seconds. <br/> ";
                if (infoUpdated > 0) {
                    writeStatus2(result); 
                } else {
					writeStatus2(result);	
				} /*else {
                    statusText += "BUT there were no progress meter updates<br/> ";
                    if (secs < 5) {
                      writeStatus(statusText + "Your upload was maybe too short, try with a bigger file or a slower connection",2);
                    } else {
                      writeStatus(statusText + "Your upload should have taken long enough to have an progress update. Maybe it really does not work...",3);
                    }*/                    
               // } 
           } //else {
             //  writeStatus('PHP did not report any uploaded file, maybe it was too large, try a smaller one (max. 128M)',3);
           //}
           startTime = null;
        },
        requestInfo: function() {
			var ffid = 8;
			//alert("requstInfo: " + ffid);
            ifr.src="info.php?fid=8&ID=" + hex_md5("8") + "&"+new Date();
        },
        
        updateInfo: function(up_uploaded, up_filesize) {
			var ffid = 8;
			//alert("updateInfo 1:" + ffid);
            if (startTime) {
                if (up_uploaded) {
					var up_bar = Math.round(up_uploaded / up_filesize * 129);
                    infoUpdated++;
					//alert("updateInfo: " + ffid);
                    writeStatus("<div class='i0'><img src='images/middle_x5.gif' width='" + up_bar + "' height='24' alt='' /></div><p class='i2'><strong>" + up_uploaded + "KB</strong> / " + up_filesize + "KB</p>"); 
                }// else {
                 //   writeStatus("Download started since " + (new Date() - startTime)/1000 + " seconds. No progress info yet");
                //}
                window.setTimeout("UP8.requestInfo()",500);
            }
        }

    }

}()


///////////////// --- 9 --- //////////////////

	var UP9 = function() {
		
    /* private variables */
	
	var ffid = 9;
    
    var ifr = null;
    
    var startTime = null;
    
    var infoUpdated = 0;
    
    var writeStatus = function(text) {
		var ffid = 9;
        var statDiv = document.getElementById("status_" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }
	
    var writeStatus2 = function(text) {
		var ffid = 9;
        var statDiv = document.getElementById("dispPhotoId" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }		
    
    
    return {
        start: function(ffid) {
           ifr = document.getElementById("ifr_" + ffid);		   
		   
		   var ffid2 = parseInt(ffid) + 1;
		   
		   document.getElementById('dispPhotoId' + ffid).style.display="block";
		   document.getElementById('dispFormId' + ffid).style.display="none";
		   document.getElementById('dispFormId' + ffid2).style.display="block";
		   //dispForm();
           startTime = new Date();
           infoUpdated = 0;
		   //alert("start: " + ffid);
           this.requestInfo(ffid);
        },
        stop: function(files, result) {
		   var ffid = 9;
           if (typeof files == 'undefined' || files) {
                var secs = (new Date() - startTime)/1000;
                //var statusText = "Upload succeeded, it took " + secs + " seconds. <br/> ";
                if (infoUpdated > 0) {
                    writeStatus2(result); 
                } else {
					writeStatus2(result);	
				} /*else {
                    statusText += "BUT there were no progress meter updates<br/> ";
                    if (secs < 5) {
                      writeStatus(statusText + "Your upload was maybe too short, try with a bigger file or a slower connection",2);
                    } else {
                      writeStatus(statusText + "Your upload should have taken long enough to have an progress update. Maybe it really does not work...",3);
                    }*/                    
               // } 
           } //else {
             //  writeStatus('PHP did not report any uploaded file, maybe it was too large, try a smaller one (max. 128M)',3);
           //}
           startTime = null;
        },
        requestInfo: function() {
			var ffid = 29;
			//alert("requstInfo: " + ffid);
            ifr.src="info.php?fid=9&ID=" + hex_md5("9") + "&"+new Date();
        },
        
        updateInfo: function(up_uploaded, up_filesize) {
			var ffid = 9;
			//alert("updateInfo 1:" + ffid);
            if (startTime) {
                if (up_uploaded) {
					var up_bar = Math.round(up_uploaded / up_filesize * 129);
                    infoUpdated++;
					//alert("updateInfo: " + ffid);
                    writeStatus("<div class='i0'><img src='images/middle_x5.gif' width='" + up_bar + "' height='24' alt='' /></div><p class='i2'><strong>" + up_uploaded + "KB</strong> / " + up_filesize + "KB</p>"); 
                }// else {
                 //   writeStatus("Download started since " + (new Date() - startTime)/1000 + " seconds. No progress info yet");
                //}
                window.setTimeout("UP9.requestInfo()",500);
            }
        }

    }

}()


///////////////// --- 10 --- //////////////////

	var UP10 = function() {
		
    /* private variables */
	
	var ffid = 10;
    
    var ifr = null;
    
    var startTime = null;
    
    var infoUpdated = 0;
    
    var writeStatus = function(text) {
		var ffid = 10;
        var statDiv = document.getElementById("status_" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }
	
    var writeStatus2 = function(text) {
		var ffid = 10;
        var statDiv = document.getElementById("dispPhotoId" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }		
    
    
    return {
        start: function(ffid) {
           ifr = document.getElementById("ifr_" + ffid);		  
		   
		   var ffid2 = parseInt(ffid) + 1;
		   
		   document.getElementById('dispPhotoId' + ffid).style.display="block";
		   document.getElementById('dispFormId' + ffid).style.display="none";
		   //document.getElementById('dispFormId' + ffid2).style.display="block";
		   //dispForm();
           startTime = new Date();
           infoUpdated = 0;
		   //alert("start: " + ffid);
           this.requestInfo(ffid);
        },
        stop: function(files, result) {
		   var ffid = 10;
           if (typeof files == 'undefined' || files) {
                var secs = (new Date() - startTime)/1000;
                //var statusText = "Upload succeeded, it took " + secs + " seconds. <br/> ";
                if (infoUpdated > 0) {
                    writeStatus2(result); 
                } else {
					writeStatus2(result);	
				} /*else {
                    statusText += "BUT there were no progress meter updates<br/> ";
                    if (secs < 5) {
                      writeStatus(statusText + "Your upload was maybe too short, try with a bigger file or a slower connection",2);
                    } else {
                      writeStatus(statusText + "Your upload should have taken long enough to have an progress update. Maybe it really does not work...",3);
                    }*/                    
               // } 
           } //else {
             //  writeStatus('PHP did not report any uploaded file, maybe it was too large, try a smaller one (max. 128M)',3);
           //}
           startTime = null;
        },
        requestInfo: function() {
			var ffid = 10;
			//alert("requstInfo: " + ffid);
            ifr.src="info.php?fid=10&ID=" + hex_md5("10") + "&"+new Date();
        },
        
        updateInfo: function(up_uploaded, up_filesize) {
			var ffid = 10;
			//alert("updateInfo 1:" + ffid);
            if (startTime) {
                if (up_uploaded) {
					var up_bar = Math.round(up_uploaded / up_filesize * 129);
                    infoUpdated++;
					//alert("updateInfo: " + ffid);
                    writeStatus("<div class='i0'><img src='images/middle_x5.gif' width='" + up_bar + "' height='24' alt='' /></div><p class='i2'><strong>" + up_uploaded + "KB</strong> / " + up_filesize + "KB</p>"); 
                }// else {
                 //   writeStatus("Download started since " + (new Date() - startTime)/1000 + " seconds. No progress info yet");
                //}
                window.setTimeout("UP10.requestInfo()",500);
            }
        }

    }

}()


	var UP11 = function() {
		
    /* private variables */
	
	var ffid = 11;
    
    var ifr = null;
    
    var startTime = null;
    
    var infoUpdated = 0;
    
    var writeStatus = function(text) {
		var ffid = 11;
        var statDiv = document.getElementById("status_" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }
	
    var writeStatus2 = function(text) {
		var ffid = 11;
        var statDiv = document.getElementById("dispPhotoId" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }	
	
    return {
        start: function(ffid) {
           ifr = document.getElementById("ifr_" + ffid);
		   
		   document.getElementById('dispPhotoId' + ffid).style.display="block";
		   document.getElementById('fieldset_' + ffid).style.display="none";
		   dispFormV(); 
           startTime = new Date();
           infoUpdated = 0;
		   //alert("start: " + ffid);
           this.requestInfo(ffid);
        },
        stop: function(files, result) {
		   var ffid = 11;
           if (typeof files == 'undefined' || files) {
                var secs = (new Date() - startTime)/1000;
                //var statusText = "Upload succeeded, it took " + secs + " seconds. <br/> ";
				//alert('result: ' + result);
                if (infoUpdated > 0) {
                    writeStatus2(result); 
                } else {
					writeStatus2(result);	
				}/*else {
                    statusText += "BUT there were no progress meter updates<br/> ";
                    if (secs < 5) {
                      writeStatus(statusText + "Your upload was maybe too short, try with a bigger file or a slower connection",2);
                    } else {
                      writeStatus(statusText + "Your upload should have taken long enough to have an progress update. Maybe it really does not work...",3);
                    }*/                    
               // } 
           } //else {
             //  writeStatus('PHP did not report any uploaded file, maybe it was too large, try a smaller one (max. 128M)',3);
           //}
           startTime = null;
        },
        requestInfo: function() {
			var ffid = 11;
			//alert("requstInfo: " + ffid);
            ifr.src="info.php?fid=11&ID=" + hex_md5("11") + "&"+new Date();
        },
        
        updateInfo: function(up_uploaded, up_filesize) {
			var ffid = 11;
			//alert("updateInfo 1:" + ffid);
            if (startTime) {
                if (up_uploaded) {
					var up_bar = Math.round(up_uploaded / up_filesize * 129);
                    infoUpdated++;
					//alert("updateInfo: " + ffid);
                    writeStatus("<div class='i0'><img src='images/middle_x5.gif' width='" + up_bar + "' height='24' alt='' /></div><p class='i2'><strong>" + up_uploaded + "KB</strong> / " + up_filesize + "KB</p>"); 
                }// else {
                 //   writeStatus("Download started since " + (new Date() - startTime)/1000 + " seconds. No progress info yet");
                //}
                window.setTimeout("UP11.requestInfo()",500);
            }
        }

    }

}()


///////////////// --- 12 --- //////////////////

	var UP12 = function() {
		
    /* private variables */
	
	var ffid = 12;
    
    var ifr = null;
    
    var startTime = null;
    
    var infoUpdated = 0;
    
    var writeStatus = function(text) {
		var ffid = 12;
        var statDiv = document.getElementById("status_" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }
	
    var writeStatus2 = function(text) {
		var ffid = 12;
        var statDiv = document.getElementById("dispPhotoId" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }		
    
    
    return {
        start: function(ffid) {
           ifr = document.getElementById("ifr_" + ffid);
		   
		   document.getElementById('dispPhotoId' + ffid).style.display="block";
		   document.getElementById('fieldset_' + ffid).style.display="none";
		   dispFormV(); 
           startTime = new Date();
           infoUpdated = 0;
		   //alert("start: " + ffid);
           this.requestInfo(ffid);
        },
        stop: function(files, result) {
		   var ffid = 12;
           if (typeof files == 'undefined' || files) {
                var secs = (new Date() - startTime)/1000;
                //var statusText = "Upload succeeded, it took " + secs + " seconds. <br/> ";
                if (infoUpdated > 0) {
                    writeStatus2(result); 
                } else {
					writeStatus2(result);	
				} /*else {
                    statusText += "BUT there were no progress meter updates<br/> ";
                    if (secs < 5) {
                      writeStatus(statusText + "Your upload was maybe too short, try with a bigger file or a slower connection",2);
                    } else {
                      writeStatus(statusText + "Your upload should have taken long enough to have an progress update. Maybe it really does not work...",3);
                    }*/                    
               // } 
           } //else {
             //  writeStatus('PHP did not report any uploaded file, maybe it was too large, try a smaller one (max. 128M)',3);
           //}
           startTime = null;
        },
        requestInfo: function() {
			var ffid = 12;
			//alert("requstInfo: " + ffid);
            ifr.src="info.php?fid=12&ID=" + hex_md5("12") + "&"+new Date();
        },
        
        updateInfo: function(up_uploaded, up_filesize) {
			var ffid = 12;
			//alert("updateInfo 1:" + ffid);
            if (startTime) {
                if (up_uploaded) {
					var up_bar = Math.round(up_uploaded / up_filesize * 129);
                    infoUpdated++;
					//alert("updateInfo: " + ffid);
                    writeStatus("<div class='i0'><img src='images/middle_x5.gif' width='" + up_bar + "' height='24' alt='' /></div><p class='i2'><strong>" + up_uploaded + "KB</strong> / " + up_filesize + "KB</p>"); 
                }// else {
                 //   writeStatus("Download started since " + (new Date() - startTime)/1000 + " seconds. No progress info yet");
                //}
                window.setTimeout("UP12.requestInfo()",500);
            }
        }

    }

}()


///////////////// --- 13 --- //////////////////

	var UP13 = function() {
		
    /* private variables */
	
	var ffid = 13;
    
    var ifr = null;
    
    var startTime = null;
    
    var infoUpdated = 0;
    
    var writeStatus = function(text) {
		var ffid = 13;
        var statDiv = document.getElementById("status_" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }
	
    var writeStatus2 = function(text) {
		var ffid = 13;
        var statDiv = document.getElementById("dispPhotoId" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }		
    
    
    return {
        start: function(ffid) {
           ifr = document.getElementById("ifr_" + ffid);
		   
		   document.getElementById('dispPhotoId' + ffid).style.display="block";
		   document.getElementById('fieldset_' + ffid).style.display="none";
		   dispFormV(); 
           startTime = new Date();
           infoUpdated = 0;
		   //alert("start: " + ffid);
           this.requestInfo(ffid);
        },
        stop: function(files, result) {
		   var ffid = 13;
           if (typeof files == 'undefined' || files) {
                var secs = (new Date() - startTime)/1000;
                //var statusText = "Upload succeeded, it took " + secs + " seconds. <br/> ";
                if (infoUpdated > 0) {
                    writeStatus2(result); 
                } else {
					writeStatus2(result);	
				} /*else {
                    statusText += "BUT there were no progress meter updates<br/> ";
                    if (secs < 5) {
                      writeStatus(statusText + "Your upload was maybe too short, try with a bigger file or a slower connection",2);
                    } else {
                      writeStatus(statusText + "Your upload should have taken long enough to have an progress update. Maybe it really does not work...",3);
                    }*/                    
               // } 
           } //else {
             //  writeStatus('PHP did not report any uploaded file, maybe it was too large, try a smaller one (max. 128M)',3);
           //}
           startTime = null;
        },
        requestInfo: function() {
			var ffid = 13;
			//alert("requstInfo: " + ffid);
            ifr.src="info.php?fid=13&ID=" + hex_md5("13") + "&"+new Date();
        },
        
        updateInfo: function(up_uploaded, up_filesize) {
			var ffid = 13;
			//alert("updateInfo 1:" + ffid);
            if (startTime) {
                if (up_uploaded) {
					var up_bar = Math.round(up_uploaded / up_filesize * 129);
                    infoUpdated++;
					//alert("updateInfo: " + ffid);
                    writeStatus("<div class='i0'><img src='images/middle_x5.gif' width='" + up_bar + "' height='24' alt='' /></div><p class='i2'><strong>" + up_uploaded + "KB</strong> / " + up_filesize + "KB</p>"); 
                }// else {
                 //   writeStatus("Download started since " + (new Date() - startTime)/1000 + " seconds. No progress info yet");
                //}
                window.setTimeout("UP13.requestInfo()",500);
            }
        }

    }

}()


///////////////// --- 14 --- //////////////////

	var UP14 = function() {
		
    /* private variables */
	
	var ffid = 14;
    
    var ifr = null;
    
    var startTime = null;
    
    var infoUpdated = 0;
    
    var writeStatus = function(text) {
		var ffid = 14;
        var statDiv = document.getElementById("status_" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }
	
    var writeStatus2 = function(text) {
		var ffid = 14;
        var statDiv = document.getElementById("dispPhotoId" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }		
    
    
    return {
        start: function(ffid) {
           ifr = document.getElementById("ifr_" + ffid);
		   
		   document.getElementById('dispPhotoId' + ffid).style.display="block";
		   document.getElementById('fieldset_' + ffid).style.display="none";
		   dispFormV(); 
           startTime = new Date();
           infoUpdated = 0;
		   //alert("start: " + ffid);
           this.requestInfo(ffid);
        },
        stop: function(files, result) {
		   var ffid = 14;
           if (typeof files == 'undefined' || files) {
                var secs = (new Date() - startTime)/1000;
                //var statusText = "Upload succeeded, it took " + secs + " seconds. <br/> ";
                if (infoUpdated > 0) {
                    writeStatus2(result); 
                } else {
					writeStatus2(result);	
				} /*else {
                    statusText += "BUT there were no progress meter updates<br/> ";
                    if (secs < 5) {
                      writeStatus(statusText + "Your upload was maybe too short, try with a bigger file or a slower connection",2);
                    } else {
                      writeStatus(statusText + "Your upload should have taken long enough to have an progress update. Maybe it really does not work...",3);
                    }*/                    
               // } 
           } //else {
             //  writeStatus('PHP did not report any uploaded file, maybe it was too large, try a smaller one (max. 128M)',3);
           //}
           startTime = null;
        },
        requestInfo: function() {
			var ffid = 14;
			//alert("requstInfo: " + ffid);
            ifr.src="info.php?fid=14&ID=" + hex_md5("14") + "&"+new Date();
        },
        
        updateInfo: function(up_uploaded, up_filesize) {
			var ffid = 14;
			//alert("updateInfo 1:" + ffid);
            if (startTime) {
                if (up_uploaded) {
					var up_bar = Math.round(up_uploaded / up_filesize * 129);
                    infoUpdated++;
					//alert("updateInfo: " + ffid);
                    writeStatus("<div class='i0'><img src='images/middle_x5.gif' width='" + up_bar + "' height='24' alt='' /></div><p class='i2'><strong>" + up_uploaded + "KB</strong> / " + up_filesize + "KB</p>"); 
                }// else {
                 //   writeStatus("Download started since " + (new Date() - startTime)/1000 + " seconds. No progress info yet");
                //}
                window.setTimeout("UP14.requestInfo()",500);
            }
        }

    }

}()


///////////////// --- 15 --- //////////////////

	var UP15 = function() {
		
    /* private variables */
	
	var ffid = 15;
    
    var ifr = null;
    
    var startTime = null;
    
    var infoUpdated = 0;
    
    var writeStatus = function(text) {
		var ffid = 15;
        var statDiv = document.getElementById("status_" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }
	
    var writeStatus2 = function(text) {
		var ffid = 15;
        var statDiv = document.getElementById("dispPhotoId" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }		
    
    
    return {
        start: function(ffid) {
           ifr = document.getElementById("ifr_" + ffid);
		   
		   document.getElementById('dispPhotoId' + ffid).style.display="block";
		   document.getElementById('fieldset_' + ffid).style.display="none";
		   dispFormV(); 
           startTime = new Date();
           infoUpdated = 0;
		   //alert("start: " + ffid);
           this.requestInfo(ffid);
        },
        stop: function(files, result) {
		   var ffid = 15;
           if (typeof files == 'undefined' || files) {
                var secs = (new Date() - startTime)/1000;
                //var statusText = "Upload succeeded, it took " + secs + " seconds. <br/> ";
                if (infoUpdated > 0) {
                    writeStatus2(result); 
                } else {
					writeStatus2(result);	
				} /*else {
                    statusText += "BUT there were no progress meter updates<br/> ";
                    if (secs < 5) {
                      writeStatus(statusText + "Your upload was maybe too short, try with a bigger file or a slower connection",2);
                    } else {
                      writeStatus(statusText + "Your upload should have taken long enough to have an progress update. Maybe it really does not work...",3);
                    }*/                    
               // } 
           } //else {
             //  writeStatus('PHP did not report any uploaded file, maybe it was too large, try a smaller one (max. 128M)',3);
           //}
           startTime = null;
        },
        requestInfo: function() {
			var ffid = 15;
			//alert("requstInfo: " + ffid);
            ifr.src="info.php?fid=15&ID=" + hex_md5("15") + "&"+new Date();
        },
        
        updateInfo: function(up_uploaded, up_filesize) {
			var ffid = 15;
			//alert("updateInfo 1:" + ffid);
            if (startTime) {
                if (up_uploaded) {
					var up_bar = Math.round(up_uploaded / up_filesize * 129);
                    infoUpdated++;
					//alert("updateInfo: " + ffid);
                    writeStatus("<div class='i0'><img src='images/middle_x5.gif' width='" + up_bar + "' height='24' alt='' /></div><p class='i2'><strong>" + up_uploaded + "KB</strong> / " + up_filesize + "KB</p>"); 
                }// else {
                 //   writeStatus("Download started since " + (new Date() - startTime)/1000 + " seconds. No progress info yet");
                //}
                window.setTimeout("UP15.requestInfo()",500);
            }
        }

    }

}()


///////////////// --- 16 --- //////////////////

	var UP16 = function() {
		
    /* private variables */
	
	var ffid = 16;
    
    var ifr = null;
    
    var startTime = null;
    
    var infoUpdated = 0;
    
    var writeStatus = function(text) {
		var ffid = 16;
        var statDiv = document.getElementById("status_" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }
	
    var writeStatus2 = function(text) {
		var ffid = 16;
        var statDiv = document.getElementById("dispPhotoId" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }		
    
    
    return {
        start: function(ffid) {
           ifr = document.getElementById("ifr_" + ffid);
		   
		   document.getElementById('dispPhotoId' + ffid).style.display="block";
		   document.getElementById('fieldset_' + ffid).style.display="none";
		   dispFormV(); 
           startTime = new Date();
           infoUpdated = 0;
		   //alert("start: " + ffid);
           this.requestInfo(ffid);
        },
        stop: function(files, result) {
		   var ffid = 16;
           if (typeof files == 'undefined' || files) {
                var secs = (new Date() - startTime)/1000;
                //var statusText = "Upload succeeded, it took " + secs + " seconds. <br/> ";
                if (infoUpdated > 0) {
                    writeStatus2(result); 
                } else {
					writeStatus2(result);	
				} /*else {
                    statusText += "BUT there were no progress meter updates<br/> ";
                    if (secs < 5) {
                      writeStatus(statusText + "Your upload was maybe too short, try with a bigger file or a slower connection",2);
                    } else {
                      writeStatus(statusText + "Your upload should have taken long enough to have an progress update. Maybe it really does not work...",3);
                    }*/                    
               // } 
           } //else {
             //  writeStatus('PHP did not report any uploaded file, maybe it was too large, try a smaller one (max. 128M)',3);
           //}
           startTime = null;
        },
        requestInfo: function() {
			var ffid = 16;
			//alert("requstInfo: " + ffid);
            ifr.src="info.php?fid=16&ID=" + hex_md5("16") + "&"+new Date();
        },
        
        updateInfo: function(up_uploaded, up_filesize) {
			var ffid = 16;
			//alert("updateInfo 1:" + ffid);
            if (startTime) {
                if (up_uploaded) {
					var up_bar = Math.round(up_uploaded / up_filesize * 129);
                    infoUpdated++;
					//alert("updateInfo: " + ffid);
                    writeStatus("<div class='i0'><img src='images/middle_x5.gif' width='" + up_bar + "' height='24' alt='' /></div><p class='i2'><strong>" + up_uploaded + "KB</strong> / " + up_filesize + "KB</p>"); 
                }// else {
                 //   writeStatus("Download started since " + (new Date() - startTime)/1000 + " seconds. No progress info yet");
                //}
                window.setTimeout("UP16.requestInfo()",500);
            }
        }

    }

}()


///////////////// --- 17 --- //////////////////

	var UP17 = function() {
		
    /* private variables */
	
	var ffid = 17;
    
    var ifr = null;
    
    var startTime = null;
    
    var infoUpdated = 0;
    
    var writeStatus = function(text) {
		var ffid = 17;
        var statDiv = document.getElementById("status_" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }
	
    var writeStatus2 = function(text) {
		var ffid = 17;
        var statDiv = document.getElementById("dispPhotoId" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }		
    
    
    return {
        start: function(ffid) {
           ifr = document.getElementById("ifr_" + ffid);
		   
		   document.getElementById('dispPhotoId' + ffid).style.display="block";
		   document.getElementById('fieldset_' + ffid).style.display="none";
		   dispFormV(); 
           startTime = new Date();
           infoUpdated = 0;
		   //alert("start: " + ffid);
           this.requestInfo(ffid);
        },
        stop: function(files, result) {
		   var ffid = 17;
           if (typeof files == 'undefined' || files) {
                var secs = (new Date() - startTime)/1000;
                //var statusText = "Upload succeeded, it took " + secs + " seconds. <br/> ";
                if (infoUpdated > 0) {
                    writeStatus2(result); 
                } else {
					writeStatus2(result);	
				} /*else {
                    statusText += "BUT there were no progress meter updates<br/> ";
                    if (secs < 5) {
                      writeStatus(statusText + "Your upload was maybe too short, try with a bigger file or a slower connection",2);
                    } else {
                      writeStatus(statusText + "Your upload should have taken long enough to have an progress update. Maybe it really does not work...",3);
                    }*/                    
               // } 
           } //else {
             //  writeStatus('PHP did not report any uploaded file, maybe it was too large, try a smaller one (max. 128M)',3);
           //}
           startTime = null;
        },
        requestInfo: function() {
			var ffid = 17;
			//alert("requstInfo: " + ffid);
            ifr.src="info.php?fid=17&ID=" + hex_md5("17") + "&"+new Date();
        },
        
        updateInfo: function(up_uploaded, up_filesize) {
			var ffid = 17;
			//alert("updateInfo 1:" + ffid);
            if (startTime) {
                if (up_uploaded) {
					var up_bar = Math.round(up_uploaded / up_filesize * 129);
                    infoUpdated++;
					//alert("updateInfo: " + ffid);
                    writeStatus("<div class='i0'><img src='images/middle_x5.gif' width='" + up_bar + "' height='24' alt='' /></div><p class='i2'><strong>" + up_uploaded + "KB</strong> / " + up_filesize + "KB</p>"); 
                }// else {
                 //   writeStatus("Download started since " + (new Date() - startTime)/1000 + " seconds. No progress info yet");
                //}
                window.setTimeout("UP17.requestInfo()",500);
            }
        }

    }

}()


///////////////// --- 18 --- //////////////////

	var UP18 = function() {
		
    /* private variables */
	
	var ffid = 18;
    
    var ifr = null;
    
    var startTime = null;
    
    var infoUpdated = 0;
    
    var writeStatus = function(text) {
		var ffid = 18;
        var statDiv = document.getElementById("status_" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }
	
    var writeStatus2 = function(text) {
		var ffid = 18;
        var statDiv = document.getElementById("dispPhotoId" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }		
    
    
    return {
        start: function(ffid) {
           ifr = document.getElementById("ifr_" + ffid);
		   
		   document.getElementById('dispPhotoId' + ffid).style.display="block";
		   document.getElementById('fieldset_' + ffid).style.display="none";
		   dispFormV(); 
           startTime = new Date();
           infoUpdated = 0;
		   //alert("start: " + ffid);
           this.requestInfo(ffid);
        },
        stop: function(files, result) {
		   var ffid = 18;
           if (typeof files == 'undefined' || files) {
                var secs = (new Date() - startTime)/1000;
                //var statusText = "Upload succeeded, it took " + secs + " seconds. <br/> ";
                if (infoUpdated > 0) {
                    writeStatus2(result); 
                } else {
					writeStatus2(result);	
				} /*else {
                    statusText += "BUT there were no progress meter updates<br/> ";
                    if (secs < 5) {
                      writeStatus(statusText + "Your upload was maybe too short, try with a bigger file or a slower connection",2);
                    } else {
                      writeStatus(statusText + "Your upload should have taken long enough to have an progress update. Maybe it really does not work...",3);
                    }*/                    
               // } 
           } //else {
             //  writeStatus('PHP did not report any uploaded file, maybe it was too large, try a smaller one (max. 128M)',3);
           //}
           startTime = null;
        },
        requestInfo: function() {
			var ffid = 18;
			//alert("requstInfo: " + ffid);
            ifr.src="info.php?fid=18&ID=" + hex_md5("18") + "&"+new Date();
        },
        
        updateInfo: function(up_uploaded, up_filesize) {
			var ffid = 18;
			//alert("updateInfo 1:" + ffid);
            if (startTime) {
                if (up_uploaded) {
					var up_bar = Math.round(up_uploaded / up_filesize * 129);
                    infoUpdated++;
					//alert("updateInfo: " + ffid);
                    writeStatus("<div class='i0'><img src='images/middle_x5.gif' width='" + up_bar + "' height='24' alt='' /></div><p class='i2'><strong>" + up_uploaded + "KB</strong> / " + up_filesize + "KB</p>"); 
                }// else {
                 //   writeStatus("Download started since " + (new Date() - startTime)/1000 + " seconds. No progress info yet");
                //}
                window.setTimeout("UP18.requestInfo()",500);
            }
        }

    }

}()


///////////////// --- 19 --- //////////////////

	var UP19 = function() {
		
    /* private variables */
	
	var ffid = 19;
    
    var ifr = null;
    
    var startTime = null;
    
    var infoUpdated = 0;
    
    var writeStatus = function(text) {
		var ffid = 19;
        var statDiv = document.getElementById("status_" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }
	
    var writeStatus2 = function(text) {
		var ffid = 19;
        var statDiv = document.getElementById("dispPhotoId" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }		
    
    
    return {
        start: function(ffid) {
           ifr = document.getElementById("ifr_" + ffid);
		   
		   document.getElementById('dispPhotoId' + ffid).style.display="block";
		   document.getElementById('fieldset_' + ffid).style.display="none";
		   dispFormV(); 
           startTime = new Date();
           infoUpdated = 0;
		   //alert("start: " + ffid);
           this.requestInfo(ffid);
        },
        stop: function(files, result) {
		   var ffid = 19;
           if (typeof files == 'undefined' || files) {
                var secs = (new Date() - startTime)/1000;
                //var statusText = "Upload succeeded, it took " + secs + " seconds. <br/> ";
                if (infoUpdated > 0) {
                    writeStatus2(result); 
                } else {
					writeStatus2(result);	
				} /*else {
                    statusText += "BUT there were no progress meter updates<br/> ";
                    if (secs < 5) {
                      writeStatus(statusText + "Your upload was maybe too short, try with a bigger file or a slower connection",2);
                    } else {
                      writeStatus(statusText + "Your upload should have taken long enough to have an progress update. Maybe it really does not work...",3);
                    }*/                    
               // } 
           } //else {
             //  writeStatus('PHP did not report any uploaded file, maybe it was too large, try a smaller one (max. 128M)',3);
           //}
           startTime = null;
        },
        requestInfo: function() {
			var ffid = 19;
			//alert("requstInfo: " + ffid);
            ifr.src="info.php?fid=19&ID=" + hex_md5("19") + "&"+new Date();
        },
        
        updateInfo: function(up_uploaded, up_filesize) {
			var ffid = 19;
			//alert("updateInfo 1:" + ffid);
            if (startTime) {
                if (up_uploaded) {
					var up_bar = Math.round(up_uploaded / up_filesize * 129);
                    infoUpdated++;
					//alert("updateInfo: " + ffid);
                    writeStatus("<div class='i0'><img src='images/middle_x5.gif' width='" + up_bar + "' height='24' alt='' /></div><p class='i2'><strong>" + up_uploaded + "KB</strong> / " + up_filesize + "KB</p>"); 
                }// else {
                 //   writeStatus("Download started since " + (new Date() - startTime)/1000 + " seconds. No progress info yet");
                //}
                window.setTimeout("UP19.requestInfo()",500);
            }
        }

    }

}()


///////////////// --- 20 --- //////////////////

	var UP20 = function() {
		
    /* private variables */
	
	var ffid = 20;
    
    var ifr = null;
    
    var startTime = null;
    
    var infoUpdated = 0;
    
    var writeStatus = function(text) {
		var ffid = 20;
        var statDiv = document.getElementById("status_" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }
	
    var writeStatus2 = function(text) {
		var ffid = 20;
        var statDiv = document.getElementById("dispPhotoId" + ffid);
		//alert("writeStatus: " + ffid);
        statDiv.innerHTML = '' + text;
    }		
    
    
    return {
        start: function(ffid) {
           ifr = document.getElementById("ifr_" + ffid);
		   
		   document.getElementById('dispPhotoId' + ffid).style.display="block";
		   document.getElementById('fieldset_' + ffid).style.display="none";
		   dispFormV(); 
           startTime = new Date();
           infoUpdated = 0;
		   //alert("start: " + ffid);
           this.requestInfo(ffid);
        },
        stop: function(files, result) {
		   var ffid = 20;
           if (typeof files == 'undefined' || files) {
                var secs = (new Date() - startTime)/1000;
                //var statusText = "Upload succeeded, it took " + secs + " seconds. <br/> ";
                if (infoUpdated > 0) {
                    writeStatus2(result); 
                } else {
					writeStatus2(result);	
				} /*else {
                    statusText += "BUT there were no progress meter updates<br/> ";
                    if (secs < 5) {
                      writeStatus(statusText + "Your upload was maybe too short, try with a bigger file or a slower connection",2);
                    } else {
                      writeStatus(statusText + "Your upload should have taken long enough to have an progress update. Maybe it really does not work...",3);
                    }*/                    
               // } 
           } //else {
             //  writeStatus('PHP did not report any uploaded file, maybe it was too large, try a smaller one (max. 128M)',3);
           //}
           startTime = null;
        },
        requestInfo: function() {
			var ffid = 20;
			//alert("requstInfo: " + ffid);
            ifr.src="info.php?fid=20&ID=" + hex_md5("20") + "&"+new Date();
        },
        
        updateInfo: function(up_uploaded, up_filesize) {
			var ffid = 20;
			//alert("updateInfo 1:" + ffid);
            if (startTime) {
                if (up_uploaded) {
					var up_bar = Math.round(up_uploaded / up_filesize * 129);
                    infoUpdated++;
					//alert("updateInfo: " + ffid);
                    writeStatus("<div class='i0'><img src='images/middle_x5.gif' width='" + up_bar + "' height='24' alt='' /></div><p class='i2'><strong>" + up_uploaded + "KB</strong> / " + up_filesize + "KB</p>"); 
                }// else {
                 //   writeStatus("Download started since " + (new Date() - startTime)/1000 + " seconds. No progress info yet");
                //}
                window.setTimeout("UP20.requestInfo()",500);
            }
        }

    }

}()

/*
 * Thickbox 3.1 - One Box To Rule Them All.
 * By Cody Lindley (http://www.codylindley.com)
 * Copyright (c) 2007 cody lindley
 * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/
		  
var tb_pathToImage = "images/loadingAnimation.gif";

/*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/

//on page load call tb_init
$(document).ready(function(){   
	tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
	imgLoader = new Image();// preload image
	imgLoader.src = tb_pathToImage;
});

//add thickbox to href & area elements that have a class of .thickbox
function tb_init(domChunk){
	$(domChunk).click(function(){
	var t = this.title || this.name || null;
	var a = this.href || this.alt;
	var g = this.rel || false;
	tb_show(t,a,g);
	this.blur();
	return false;
	});
}

function tb_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link

	try {
		if (typeof document.body.style.maxHeight === "undefined") {//if IE 6
			$("body","html").css({height: "100%", width: "100%"});
			$("html").css("overflow","hidden");
			if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6
				$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
				$("#TB_overlay").click(tb_remove);
			}
		}else{//all others
			if(document.getElementById("TB_overlay") === null){
				$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");
				$("#TB_overlay").click(tb_remove);
			}
		}
		
		if(tb_detectMacXFF()){
			$("#TB_overlay").addClass("TB_overlayMacFFBGHack");//use png overlay so hide flash
		}else{
			$("#TB_overlay").addClass("TB_overlayBG");//use background and opacity
		}
		
		if(caption===null){caption="";}
		$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");//add loader to the page
		$('#TB_load').show();//show loader
		
		var baseURL;
	   if(url.indexOf("?")!==-1){ //ff there is a query string involved
			baseURL = url.substr(0, url.indexOf("?"));
	   }else{ 
	   		baseURL = url;
	   }
	   
	   var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;
	   var urlType = baseURL.toLowerCase().match(urlString);

		if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images
				
			TB_PrevCaption = "";
			TB_PrevURL = "";
			TB_PrevHTML = "";
			TB_NextCaption = "";
			TB_NextURL = "";
			TB_NextHTML = "";
			TB_imageCount = "";
			TB_FoundURL = false;
			if(imageGroup){
				TB_TempArray = $("a[@rel="+imageGroup+"]").get();
				for (TB_Counter = 0; ((TB_Counter < TB_TempArray.length) && (TB_NextHTML === "")); TB_Counter++) {
					var urlTypeTemp = TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);
						if (!(TB_TempArray[TB_Counter].href == url)) {						
							if (TB_FoundURL) {
								TB_NextCaption = TB_TempArray[TB_Counter].title;
								TB_NextURL = TB_TempArray[TB_Counter].href;
								TB_NextHTML = "<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>";
							} else {
								TB_PrevCaption = TB_TempArray[TB_Counter].title;
								TB_PrevURL = TB_TempArray[TB_Counter].href;
								TB_PrevHTML = "<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>";
							}
						} else {
							TB_FoundURL = true;
							TB_imageCount = "Image " + (TB_Counter + 1) +" of "+ (TB_TempArray.length);											
						}
				}
			}

			imgPreloader = new Image();
			imgPreloader.onload = function(){		
			imgPreloader.onload = null;
				
			// Resizing large images - orginal by Christian Montoya edited by me.
			var pagesize = tb_getPageSize();
			var x = pagesize[0] - 150;
			var y = pagesize[1] - 150;
			var imageWidth = imgPreloader.width;
			var imageHeight = imgPreloader.height;
			if (imageWidth > x) {
				imageHeight = imageHeight * (x / imageWidth); 
				imageWidth = x; 
				if (imageHeight > y) { 
					imageWidth = imageWidth * (y / imageHeight); 
					imageHeight = y; 
				}
			} else if (imageHeight > y) { 
				imageWidth = imageWidth * (y / imageHeight); 
				imageHeight = y; 
				if (imageWidth > x) { 
					imageHeight = imageHeight * (x / imageWidth); 
					imageWidth = x;
				}
			}
			// End Resizing
			
			TB_WIDTH = imageWidth + 30;
			TB_HEIGHT = imageHeight + 60;
			$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>"); 		
			
			$("#TB_closeWindowButton").click(tb_remove);
			
			if (!(TB_PrevHTML === "")) {
				function goPrev(){
					if($(document).unbind("click",goPrev)){$(document).unbind("click",goPrev);}
					$("#TB_window").remove();
					$("body").append("<div id='TB_window'></div>");
					tb_show(TB_PrevCaption, TB_PrevURL, imageGroup);
					return false;	
				}
				$("#TB_prev").click(goPrev);
			}
			
			if (!(TB_NextHTML === "")) {		
				function goNext(){
					$("#TB_window").remove();
					$("body").append("<div id='TB_window'></div>");
					tb_show(TB_NextCaption, TB_NextURL, imageGroup);				
					return false;	
				}
				$("#TB_next").click(goNext);
				
			}

			document.onkeydown = function(e){ 	
				if (e == null) { // ie
					keycode = event.keyCode;
				} else { // mozilla
					keycode = e.which;
				}
				if(keycode == 27){ // close
					tb_remove();
				} else if(keycode == 190){ // display previous image
					if(!(TB_NextHTML == "")){
						document.onkeydown = "";
						goNext();
					}
				} else if(keycode == 188){ // display next image
					if(!(TB_PrevHTML == "")){
						document.onkeydown = "";
						goPrev();
					}
				}	
			};
			
			tb_position();
			$("#TB_load").remove();
			$("#TB_ImageOff").click(tb_remove);
			$("#TB_window").css({display:"block"}); //for safari using css instead of show
			};
			
			imgPreloader.src = url;
		}else{//code to show html
			
			var queryString = url.replace(/^[^\?]+\??/,'');
			var params = tb_parseQuery( queryString );

			TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no paramaters were added to URL
			TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no paramaters were added to URL
			ajaxContentW = TB_WIDTH - 30;
			ajaxContentH = TB_HEIGHT - 45;
			
			if(url.indexOf('TB_iframe') != -1){// either iframe or ajax window		
					urlNoQuery = url.split('TB_');
					$("#TB_iframeContent").remove();
					if(params['modal'] != "true"){//iframe no modal
						$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' > </iframe>");
					}else{//iframe modal
					$("#TB_overlay").unbind();
						$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;'> </iframe>");
					}
			}else{// not an iframe, ajax
					if($("#TB_window").css("display") != "block"){
						if(params['modal'] != "true"){//ajax no modal
						$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");
						}else{//ajax modal
						$("#TB_overlay").unbind();
						$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");	
						}
					}else{//this means the window is already up, we are just loading new content via ajax
						$("#TB_ajaxContent")[0].style.width = ajaxContentW +"px";
						$("#TB_ajaxContent")[0].style.height = ajaxContentH +"px";
						$("#TB_ajaxContent")[0].scrollTop = 0;
						$("#TB_ajaxWindowTitle").html(caption);
					}
			}
					
			$("#TB_closeWindowButton").click(tb_remove);
			
				if(url.indexOf('TB_inline') != -1){	
					$("#TB_ajaxContent").append($('#' + params['inlineId']).children());
					$("#TB_window").unload(function () {
						$('#' + params['inlineId']).append( $("#TB_ajaxContent").children() ); // move elements back when you're finished
					});
					tb_position();
					$("#TB_load").remove();
					$("#TB_window").css({display:"block"}); 
				}else if(url.indexOf('TB_iframe') != -1){
					tb_position();
					if($.browser.safari){//safari needs help because it will not fire iframe onload
						$("#TB_load").remove();
						$("#TB_window").css({display:"block"});
					}
				}else{
					$("#TB_ajaxContent").load(url += "&random=" + (new Date().getTime()),function(){//to do a post change this load method
						tb_position();
						$("#TB_load").remove();
						tb_init("#TB_ajaxContent a.thickbox");
						$("#TB_window").css({display:"block"});
					});
				}
			
		}

		if(!params['modal']){
			document.onkeyup = function(e){ 	
				if (e == null) { // ie
					keycode = event.keyCode;
				} else { // mozilla
					keycode = e.which;
				}
				if(keycode == 27){ // close
					tb_remove();
				}	
			};
		}
		
	} catch(e) {
		//nothing here
	}
}

//helper functions below
function tb_showIframe(){
	$("#TB_load").remove();
	$("#TB_window").css({display:"block"});
}

function tb_remove() {
 	$("#TB_imageOff").unbind("click");
	$("#TB_closeWindowButton").unbind("click");
	$("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});
	$("#TB_load").remove();
	if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
		$("body","html").css({height: "auto", width: "auto"});
		$("html").css("overflow","");
	}
	document.onkeydown = "";
	document.onkeyup = "";
	return false;
}

function tb_position() {
$("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'});
	if ( !(jQuery.browser.msie && jQuery.browser.version < 7)) { // take away IE6
		$("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'});
	}
}

function tb_parseQuery ( query ) {
   var Params = {};
   if ( ! query ) {return Params;}// return empty object
   var Pairs = query.split(/[;&]/);
   for ( var i = 0; i < Pairs.length; i++ ) {
      var KeyVal = Pairs[i].split('=');
      if ( ! KeyVal || KeyVal.length != 2 ) {continue;}
      var key = unescape( KeyVal[0] );
      var val = unescape( KeyVal[1] );
      val = val.replace(/\+/g, ' ');
      Params[key] = val;
   }
   return Params;
}

function tb_getPageSize(){
	var de = document.documentElement;
	var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
	var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
	arrayPageSize = [w,h];
	return arrayPageSize;
}

function tb_detectMacXFF() {
  var userAgent = navigator.userAgent.toLowerCase();
  if (userAgent.indexOf('mac') != -1 && userAgent.indexOf('firefox')!=-1) {
    return true;
  }
}




$().ready(function() { 
		$('.caddmedia dl dd.file .fileContainer input').css({opacity: 0});		

		var inputOver = document.createElement('div');
		inputOver.className = 'fileOver';
		inputOver.appendChild(document.createElement('input'));
		var href = document.createElement('div');
		href.className = 'proced';
		//href.innerHTML = 'przeglÄ…daj';
		inputOver.appendChild(href);
		var el = document.getElementsByTagName('input');
		for (var i=0;i<el.length;i++) {
				if (el[i].type != 'file') continue;
				if (el[i].parentNode.className != 'file') continue;
				el[i].className = 'file hidden';
				var clone = inputOver.cloneNode(true);
				el[i].parentNode.appendChild(clone);
				el[i].relatedElement = clone.getElementsByTagName('input')[0];
				el[i].onchange = el[i].onmouseout = function () {
						this.relatedElement.value = this.value;
				}
		}
});	

$().ready(function() { 
		$('.caddmedia dl dd.file .fileContainer input').css({opacity: 0});		

		var inputOver = document.createElement('div');
		inputOver.className = 'fileOver';
		inputOver.appendChild(document.createElement('input'));
		var href = document.createElement('div');
		href.className = 'proced';
		//href.innerHTML = 'przeglÄ…daj';
		inputOver.appendChild(href);
		var el = document.getElementsByTagName('input');
		for (var i=0;i<el.length;i++) {
				if (el[i].type != 'file') continue;
				if (el[i].parentNode.className != 'file') continue;
				el[i].className = 'file hidden';
				var clone = inputOver.cloneNode(true);
				el[i].parentNode.appendChild(clone);
				el[i].relatedElement = clone.getElementsByTagName('input')[0];
				el[i].onchange = el[i].onmouseout = function () {
						this.relatedElement.value = this.value;
				}
		}
});	

/* ------------------------------------------------------------------------
	Class: prettyPhoto
	Use: Lightbox clone for jQuery
	Author: Stephane Caron (http://www.no-margin-for-errors.com)
	Version: 2.4.3
------------------------------------------------------------------------- */

var $pp_pic_holder;var $ppt;(function(A){A.fn.prettyPhoto=function(W){var E=true;var K=false;var O=[];var D=0;var R;var S;var V;var Y;var F="image";var Z;var M=G();A(window).scroll(function(){M=G();C()});A(window).resize(function(){C();U()});A(document).keypress(function(c){switch(c.keyCode){case 37:if(D==1){return }N("previous");break;case 39:if(D==setCount){return }N("next");break;case 27:L();break}});W=jQuery.extend({animationSpeed:"normal",padding:40,opacity:0.8,showTitle:true,allowresize:true,counter_separator_label:"/",theme:"light_rounded",callback:function(){}},W);if(A.browser.msie&&A.browser.version==6){W.theme="light_square"}A(this).each(function(){var e=false;var d=false;var f=0;var c=0;O[O.length]=this;A(this).bind("click",function(){J(this);return false})});function J(c){Z=A(c);theRel=Z.attr("rel");galleryRegExp=/\[(?:.*)\]/;theGallery=galleryRegExp.exec(theRel);isSet=false;setCount=0;b();for(i=0;i<O.length;i++){if(A(O[i]).attr("rel").indexOf(theGallery)!=-1){setCount++;if(setCount>1){isSet=true}if(A(O[i]).attr("href")==Z.attr("href")){D=setCount;arrayPosition=i}}}X();$pp_pic_holder.find("p.currentTextHolder").text(D+W.counter_separator_label+setCount);C();A("#pp_full_res").hide();$pp_pic_holder.find(".pp_loaderIcon").show()}showimage=function(f,c,j,h,g,d,e){A(".pp_loaderIcon").hide();if(A.browser.opera){windowHeight=window.innerHeight;windowWidth=window.innerWidth}else{windowHeight=A(window).height();windowWidth=A(window).width()}$pp_pic_holder.find(".pp_content").animate({height:g},W.animationSpeed);projectedTop=M.scrollTop+((windowHeight/2)-(h/2));if(projectedTop<0){projectedTop=0+$pp_pic_holder.find(".ppt").height()}$pp_pic_holder.animate({top:projectedTop,left:((windowWidth/2)-(j/2)),width:j},W.animationSpeed,function(){$pp_pic_holder.width(j);$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(c).width(f);$pp_pic_holder.find("#pp_full_res").fadeIn(W.animationSpeed,function(){A(this).find("object,embed").css("visibility","visible")});I();if(e){A("a.pp_expand,a.pp_contract").fadeIn(W.animationSpeed)}})};function I(){if(isSet&&F=="image"){$pp_pic_holder.find(".pp_hoverContainer").fadeIn(W.animationSpeed)}else{$pp_pic_holder.find(".pp_hoverContainer").hide()}$pp_pic_holder.find(".pp_details").fadeIn(W.animationSpeed);if(W.showTitle&&hasTitle){$ppt.css({top:$pp_pic_holder.offset().top-22,left:$pp_pic_holder.offset().left+(W.padding/2),display:"none"});$ppt.fadeIn(W.animationSpeed)}}function Q(){$pp_pic_holder.find(".pp_hoverContainer,.pp_details").fadeOut(W.animationSpeed);$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden");$pp_pic_holder.find("#pp_full_res").fadeOut(W.animationSpeed,function(){A(".pp_loaderIcon").show();a()});$ppt.fadeOut(W.animationSpeed)}function N(c){if(c=="previous"){arrayPosition--;D--}else{arrayPosition++;D++}if(!E){E=true}Q();A("a.pp_expand,a.pp_contract").fadeOut(W.animationSpeed,function(){A(this).removeClass("pp_contract").addClass("pp_expand")})}function L(){$pp_pic_holder.find("object,embed").css("visibility","hidden");A("div.pp_pic_holder,div.ppt").fadeOut(W.animationSpeed);A("div.pp_overlay").fadeOut(W.animationSpeed,function(){A("div.pp_overlay,div.pp_pic_holder,div.ppt").remove();if(A.browser.msie&&A.browser.version==6){A("select").css("visibility","visible")}W.callback()});E=true}function H(){if(D==setCount){$pp_pic_holder.find("a.pp_next").css("visibility","hidden");$pp_pic_holder.find("a.pp_arrow_next").addClass("disabled").unbind("click")}else{$pp_pic_holder.find("a.pp_next").css("visibility","visible");$pp_pic_holder.find("a.pp_arrow_next.disabled").removeClass("disabled").bind("click",function(){N("next");return false})}if(D==1){$pp_pic_holder.find("a.pp_previous").css("visibility","hidden");$pp_pic_holder.find("a.pp_arrow_previous").addClass("disabled").unbind("click")}else{$pp_pic_holder.find("a.pp_previous").css("visibility","visible");$pp_pic_holder.find("a.pp_arrow_previous.disabled").removeClass("disabled").bind("click",function(){N("previous");return false})}$pp_pic_holder.find("p.currentTextHolder").text(D+W.counter_separator_label+setCount);Z=(isSet)?A(O[arrayPosition]):Z;b();if(Z.attr("title")){$pp_pic_holder.find(".pp_description").show().html(unescape(Z.attr("title")))}else{$pp_pic_holder.find(".pp_description").hide().text("")}if(Z.find("img").attr("alt")&&W.showTitle){hasTitle=true;$ppt.html(unescape(Z.find("img").attr("alt")))}else{hasTitle=false}}function P(d,c){hasBeenResized=false;T(d,c);imageWidth=d;imageHeight=c;windowHeight=A(window).height();windowWidth=A(window).width();if(((Y>windowWidth)||(V>windowHeight))&&E&&W.allowresize&&!K){hasBeenResized=true;notFitting=true;while(notFitting){if((Y>windowWidth)){imageWidth=(windowWidth-200);imageHeight=(c/d)*imageWidth}else{if((V>windowHeight)){imageHeight=(windowHeight-200);imageWidth=(d/c)*imageHeight}else{notFitting=false}}V=imageHeight;Y=imageWidth}T(imageWidth,imageHeight)}return{width:imageWidth,height:imageHeight,containerHeight:V,containerWidth:Y,contentHeight:R,contentWidth:S,resized:hasBeenResized}}function T(d,c){$pp_pic_holder.find(".pp_details").width(d).find(".pp_description").width(d-parseFloat($pp_pic_holder.find("a.pp_close").css("width")));R=c+$pp_pic_holder.find(".pp_details").height()+parseFloat($pp_pic_holder.find(".pp_details").css("marginTop"))+parseFloat($pp_pic_holder.find(".pp_details").css("marginBottom"));S=d;V=R+$pp_pic_holder.find(".ppt").height()+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height();Y=d+W.padding}function b(){if(Z.attr("href").match(/youtube\.com\/watch/i)){F="youtube"}else{if(Z.attr("href").indexOf(".mov")!=-1){F="quicktime"}else{if(Z.attr("href").indexOf(".swf")!=-1){F="flash"}else{if(Z.attr("href").indexOf("iframe")!=-1){F="iframe"}else{F="image"}}}}}function C(){if($pp_pic_holder){if($pp_pic_holder.size()==0){return }}else{return }if(A.browser.opera){windowHeight=window.innerHeight;windowWidth=window.innerWidth}else{windowHeight=A(window).height();windowWidth=A(window).width()}if(E){$pHeight=$pp_pic_holder.height();$pWidth=$pp_pic_holder.width();$tHeight=$ppt.height();projectedTop=(windowHeight/2)+M.scrollTop-($pHeight/2);if(projectedTop<0){projectedTop=0+$tHeight}$pp_pic_holder.css({top:projectedTop,left:(windowWidth/2)+M.scrollLeft-($pWidth/2)});$ppt.css({top:projectedTop-$tHeight,left:(windowWidth/2)+M.scrollLeft-($pWidth/2)+(W.padding/2)})}}function a(){H();if(F=="image"){imgPreloader=new Image();nextImage=new Image();if(isSet&&D>setCount){nextImage.src=A(O[arrayPosition+1]).attr("href")}prevImage=new Image();if(isSet&&O[arrayPosition-1]){prevImage.src=A(O[arrayPosition-1]).attr("href")}pp_typeMarkup='<img id="fullResImage" src="" />';$pp_pic_holder.find("#pp_full_res")[0].innerHTML=pp_typeMarkup;$pp_pic_holder.find(".pp_content").css("overflow","hidden");$pp_pic_holder.find("#fullResImage").attr("src",Z.attr("href"));imgPreloader.onload=function(){var c=P(imgPreloader.width,imgPreloader.height);imgPreloader.width=c.width;imgPreloader.height=c.height;showimage(imgPreloader.width,imgPreloader.height,c.containerWidth,c.containerHeight,c.contentHeight,c.contentWidth,c.resized)};imgPreloader.src=Z.attr("href")}else{movie_width=(parseFloat(B("width",Z.attr("href"))))?B("width",Z.attr("href")):"425";movie_height=(parseFloat(B("height",Z.attr("href"))))?B("height",Z.attr("href")):"344";if(movie_width.indexOf("%")!=-1||movie_height.indexOf("%")!=-1){movie_height=(A(window).height()*parseFloat(movie_height)/100)-100;movie_width=(A(window).width()*parseFloat(movie_width)/100)-100;parsentBased=true}else{movie_height=parseFloat(movie_height);movie_width=parseFloat(movie_width)}if(F=="quicktime"){movie_height+=13}correctSizes=P(movie_width,movie_height);if(F=="youtube"){pp_typeMarkup='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+correctSizes.width+'" height="'+correctSizes.height+'"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.youtube.com/v/'+B("v",Z.attr("href"))+'" /><embed src="http://www.youtube.com/v/'+B("v",Z.attr("href"))+'" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="'+correctSizes.width+'" height="'+correctSizes.height+'"></embed></object>'}else{if(F=="quicktime"){pp_typeMarkup='<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="'+correctSizes.height+'" width="'+correctSizes.width+'"><param name="src" value="'+Z.attr("href")+'"><param name="autoplay" value="true"><param name="type" value="video/quicktime"><embed src="'+Z.attr("href")+'" height="'+correctSizes.height+'" width="'+correctSizes.width+'" autoplay="true" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>'}else{if(F=="flash"){flash_vars=Z.attr("href");flash_vars=flash_vars.substring(Z.attr("href").indexOf("flashvars")+10,Z.attr("href").length);filename=Z.attr("href");filename=filename.substring(0,filename.indexOf("?"));pp_typeMarkup='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+correctSizes.width+'" height="'+correctSizes.height+'"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="'+filename+"?"+flash_vars+'" /><embed src="'+filename+"?"+flash_vars+'" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="'+correctSizes.width+'" height="'+correctSizes.height+'"></embed></object>'}else{if(F=="iframe"){movie_url=Z.attr("href");movie_url=movie_url.substr(0,movie_url.indexOf("iframe")-1);pp_typeMarkup='<iframe src ="'+movie_url+'" width="'+(correctSizes.width-10)+'" height="'+(correctSizes.height-10)+'" frameborder="no"></iframe>'}}}}$pp_pic_holder.find("#pp_full_res")[0].innerHTML=pp_typeMarkup;showimage(correctSizes.width,correctSizes.height,correctSizes.containerWidth,correctSizes.containerHeight,correctSizes.contentHeight,correctSizes.contentWidth,correctSizes.resized)}}function G(){if(self.pageYOffset){scrollTop=self.pageYOffset;scrollLeft=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){scrollTop=document.documentElement.scrollTop;scrollLeft=document.documentElement.scrollLeft}else{if(document.body){scrollTop=document.body.scrollTop;scrollLeft=document.body.scrollLeft}}}return{scrollTop:scrollTop,scrollLeft:scrollLeft}}function U(){A("div.pp_overlay").css({height:A(document).height(),width:A(window).width()})}function X(){toInject="";toInject+="<div class='pp_overlay'></div>";if(F=="image"){pp_typeMarkup='<img id="fullResImage" src="" />'}else{pp_typeMarkup=""}toInject+='<div class="pp_pic_holder"><div class="pp_top"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div><div class="pp_content"><a href="#" class="pp_expand" title="Expand the image">Expand</a><div class="pp_loaderIcon"></div><div class="pp_hoverContainer"><a class="pp_next" href="#">next</a><a class="pp_previous" href="#">previous</a></div><div id="pp_full_res">'+pp_typeMarkup+'</div><div class="pp_details clearfix"><a class="pp_close" href="#">Close</a><p class="pp_description"></p><div class="pp_nav"><a href="#" class="pp_arrow_previous">Previous</a><p class="currentTextHolder">0'+W.counter_separator_label+'0</p><a href="#" class="pp_arrow_next">Next</a></div></div></div><div class="pp_bottom"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div></div>';toInject+='<div class="ppt"></div>';A("body").append(toInject);$pp_pic_holder=A(".pp_pic_holder");$ppt=A(".ppt");A("div.pp_overlay").css("height",A(document).height()).bind("click",function(){L()});$pp_pic_holder.css({opacity:0}).addClass(W.theme);A("a.pp_close").bind("click",function(){L();return false});A("a.pp_expand").bind("click",function(){$this=A(this);if($this.hasClass("pp_expand")){$this.removeClass("pp_expand").addClass("pp_contract");E=false}else{$this.removeClass("pp_contract").addClass("pp_expand");E=true}Q();$pp_pic_holder.find(".pp_hoverContainer, #pp_full_res, .pp_details").fadeOut(W.animationSpeed,function(){a()});return false});$pp_pic_holder.find(".pp_previous, .pp_arrow_previous").bind("click",function(){N("previous");return false});$pp_pic_holder.find(".pp_next, .pp_arrow_next").bind("click",function(){N("next");return false});$pp_pic_holder.find(".pp_hoverContainer").css({"margin-left":W.padding/2});if(!isSet){$pp_pic_holder.find(".pp_hoverContainer,.pp_nav").hide()}if(A.browser.msie&&A.browser.version==6){A("body").addClass("ie6");A("select").css("visibility","hidden")}A("div.pp_overlay").css("opacity",0).fadeTo(W.animationSpeed,W.opacity,function(){$pp_pic_holder.css("opacity",0).fadeIn(W.animationSpeed,function(){$pp_pic_holder.attr("style","left:"+$pp_pic_holder.css("left")+";top:"+$pp_pic_holder.css("top")+";");a()})})}};function B(E,D){E=E.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var C="[\\?&]"+E+"=([^&#]*)";var G=new RegExp(C);var F=G.exec(D);if(F==null){return""}else{return F[1]}}})(jQuery);


/*	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/
var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();

/*
Uploadify v2.0.3
Release Date: August 3, 2009

Copyright (c) 2009 Ronnie Garcia, Travis Nickels

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

if(jQuery){(function(a){a.extend(a.fn,{uploadify:function(b){a(this).each(function(){settings=a.extend({id:a(this).attr("id"),uploader:"uploadify.swf",script:"uploadify.php",expressInstall:null,folder:"",height:30,width:110,cancelImg:"cancel.png",wmode:"opaque",scriptAccess:"sameDomain",fileDataName:"Filedata",method:"POST",queueSizeLimit:999,simUploadLimit:1,queueID:false,displayData:"percentage",onInit:function(){},onSelect:function(){},onQueueFull:function(){},onCheck:function(){},onCancel:function(){},onError:function(){},onProgress:function(){},onComplete:function(){},onAllComplete:function(){}},b);var e=location.pathname;e=e.split("/");e.pop();e=e.join("/")+"/";var f={};f.uploadifyID=settings.id;f.pagepath=e;if(settings.buttonImg){f.buttonImg=escape(settings.buttonImg)}if(settings.buttonText){f.buttonText=escape(settings.buttonText)}if(settings.rollover){f.rollover=true}f.script=settings.script;f.folder=escape(settings.folder);if(settings.scriptData){var g="";for(var d in settings.scriptData){g+="&"+d+"="+settings.scriptData[d]}f.scriptData=escape(g.substr(1))}f.width=settings.width;f.height=settings.height;f.wmode=settings.wmode;f.method=settings.method;f.queueSizeLimit=settings.queueSizeLimit;f.simUploadLimit=settings.simUploadLimit;if(settings.hideButton){f.hideButton=true}if(settings.fileDesc){f.fileDesc=settings.fileDesc}if(settings.fileExt){f.fileExt=settings.fileExt}if(settings.multi){f.multi=true}if(settings.auto){f.auto=true}if(settings.sizeLimit){f.sizeLimit=settings.sizeLimit}if(settings.checkScript){f.checkScript=settings.checkScript}if(settings.fileDataName){f.fileDataName=settings.fileDataName}if(settings.queueID){f.queueID=settings.queueID}if(settings.onInit()!==false){a(this).css("display","none");a(this).after('<div id="'+a(this).attr("id")+'Uploader"></div>');swfobject.embedSWF(settings.uploader,settings.id+"Uploader",settings.width,settings.height,"9.0.24",settings.expressInstall,f,{quality:"high",wmode:settings.wmode,allowScriptAccess:settings.scriptAccess});if(settings.queueID==false){a("#"+a(this).attr("id")+"Uploader").after('<div id="'+a(this).attr("id")+'Queue" class="uploadifyQueue"></div>')}}a(this).bind("uploadifySelect",{action:settings.onSelect,queueID:settings.queueID},function(j,h,i){if(j.data.action(j,h,i)!==false){var k=Math.round(i.size/1024*100)*0.01;var l="KB";if(k>1000){k=Math.round(k*0.001*100)*0.01;l="MB"}var m=k.toString().split(".");if(m.length>1){k=m[0]+"."+m[1].substr(0,2)}else{k=m[0]}if(i.name.length>20){fileName=i.name.substr(0,20)+"..."}else{fileName=i.name}queue="#"+a(this).attr("id")+"Queue";if(j.data.queueID){queue="#"+j.data.queueID}a(queue).append('<div id="'+a(this).attr("id")+h+'" class="uploadifyQueueItem"><div class="cancel"><a href="javascript:jQuery(\'#'+a(this).attr("id")+"').uploadifyCancel('"+h+'\')"><img src="'+settings.cancelImg+'" border="0" /></a></div><span class="fileName">'+fileName+" ("+k+l+')</span><span class="percentage"></span><div class="uploadifyProgress"><div id="'+a(this).attr("id")+h+'ProgressBar" class="uploadifyProgressBar"><!--Progress Bar--></div></div></div>')}});if(typeof(settings.onSelectOnce)=="function"){a(this).bind("uploadifySelectOnce",settings.onSelectOnce)}a(this).bind("uploadifyQueueFull",{action:settings.onQueueFull},function(h,i){if(h.data.action(h,i)!==false){alert("The queue is full.  The max size is "+i+".")}});a(this).bind("uploadifyCheckExist",{action:settings.onCheck},function(m,l,k,j,o){var i=new Object();i=k;i.folder=e+j;if(o){for(var h in k){var n=h}}a.post(l,i,function(r){for(var p in r){if(m.data.action(m,l,k,j,o)!==false){var q=confirm("Do you want to replace the file "+r[p]+"?");if(!q){document.getElementById(a(m.target).attr("id")+"Uploader").cancelFileUpload(p,true,true)}}}if(o){document.getElementById(a(m.target).attr("id")+"Uploader").startFileUpload(n,true)}else{document.getElementById(a(m.target).attr("id")+"Uploader").startFileUpload(null,true)}},"json")});a(this).bind("uploadifyCancel",{action:settings.onCancel},function(l,h,k,m,j){if(l.data.action(l,h,k,m,j)!==false){var i=(j==true)?0:250;a("#"+a(this).attr("id")+h).fadeOut(i,function(){a(this).remove()})}});if(typeof(settings.onClearQueue)=="function"){a(this).bind("uploadifyClearQueue",settings.onClearQueue)}var c=[];a(this).bind("uploadifyError",{action:settings.onError},function(l,h,k,j){if(l.data.action(l,h,k,j)!==false){var i=new Array(h,k,j);c.push(i);a("#"+a(this).attr("id")+h+" .percentage").text(" - "+j.type+" Error");a("#"+a(this).attr("id")+h).addClass("uploadifyError")}});a(this).bind("uploadifyProgress",{action:settings.onProgress,toDisplay:settings.displayData},function(j,h,i,k){if(j.data.action(j,h,i,k)!==false){a("#"+a(this).attr("id")+h+"ProgressBar").css("width",k.percentage+"%");if(j.data.toDisplay=="percentage"){displayData=" - "+k.percentage+"%"}if(j.data.toDisplay=="speed"){displayData=" - "+k.speed+"KB/s"}if(j.data.toDisplay==null){displayData=" "}a("#"+a(this).attr("id")+h+" .percentage").text(displayData)}});a(this).bind("uploadifyComplete",{action:settings.onComplete},function(k,h,j,i,l){if(k.data.action(k,h,j,unescape(i),l)!==false){a("#"+a(this).attr("id")+h+" .percentage").text(" - Completed");a("#"+a(this).attr("id")+h).fadeOut(250,function(){a(this).remove()})}});if(typeof(settings.onAllComplete)=="function"){a(this).bind("uploadifyAllComplete",{action:settings.onAllComplete},function(h,i){if(h.data.action(h,i)!==false){c=[]}})}})},uploadifySettings:function(f,j,c){var g=false;a(this).each(function(){if(f=="scriptData"&&j!=null){if(c){var i=j}else{var i=a.extend(settings.scriptData,j)}var l="";for(var k in i){l+="&"+k+"="+escape(i[k])}j=l.substr(1)}g=document.getElementById(a(this).attr("id")+"Uploader").updateSettings(f,j)});if(j==null){if(f=="scriptData"){var b=unescape(g).split("&");var e=new Object();for(var d=0;d<b.length;d++){var h=b[d].split("=");e[h[0]]=h[1]}g=e}return g}},uploadifyUpload:function(b){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").startFileUpload(b,false)})},uploadifyCancel:function(b){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").cancelFileUpload(b,true,false)})},uploadifyClearQueue:function(){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").clearFileUploadQueue(false)})}})})(jQuery)};

