/* 
 * Zentrale JavaScript-Datei für den ContiTech Internet Auftritt
 * 
 */
 
 function setMenuePath()
 {
    //Menueklassen setzen:
     var path = $("input[@name=pagePath]").val();
     var folder = path.split("\\");
     var lang = $("input[@name=languageSelector]").val();
   
     
     
     for( var i = 0; i < folder.length; i++)
     {
        if((folder[i] == "pages") || (folder[i] == "templates"))
        {
            if(lang == "german")
            {
                $("#dynamic_breadcrump").append("<li id='breadcrump_firstentry'><a href='/index_de.html'  title='Startseite Phoenix Xtra Blankets'>Home</a></li>");
             }
			else if(lang == "english")
			{
				$("#dynamic_breadcrump").append("<li id='breadcrump_firstentry'><a href='/index_en.html'  title='Phoenix Xtra Blankets Home'>Home</a></li>");
			}
            else
            {
                $("#dynamic_breadcrump").append("<li id='breadcrump_firstentry'><a href='/index_ru.html'  title='Phoenix Xtra Blankets Home '>&#1043;&#1083;&#1072;&#1074;&#1085;&#1072;&#1103 </a></li>");
            }   
            
            var x = folder.length - i;
            if(x >= 5 && (folder[i + 1] == "presse"))  //"Sonderfall Presseordner"
            {
                    var element = document.getElementById(folder[i + 1]); 
                    var element1 = document.getElementById(folder[i + 1]); 
                    var elname;
                    element.className+=" active";
                    elname = element.getAttribute("id");
                   
                     if(lang == "german")
                    {
                        $("#dynamic_breadcrump").append("<li><a href='/pages/" + elname + "/" + elname + "_de.html'>" + $(("//li[@id='" + elname + "']/a")).html() + "</a></li>");
                    }
					else if(lang == "english")
					{
						$("#dynamic_breadcrump").append("<li><a href='/pages/" + elname + "/" + elname + "_en.html'>" + $(("//li[@id='" + elname + "']/a")).html() + "</a></li>");
					}
                    else
                    {
                        $("#dynamic_breadcrump").append("<li><a href='/pages/" + elname + "/" + elname + "_ru.html'>" + $(("//li[@id='" + elname + "']/a")).html() + "</a></li>"); 
                    }
                    //alert(folder[i + 1]);
                    
                   
             
                     

            }
			else if(x >= 5)  //"Fall 3"
            {
                    var element = document.getElementById(folder[i + 1]); 
                    var element1 = document.getElementById(folder[i + 1]); 
                    var elname;
                    element.className+=" activepath";
                    elname = element.getAttribute("id");
                   
                     if(lang == "german")
                    {
                        $("#dynamic_breadcrump").append("<li><a href='/pages/" + elname + "/" + elname + "_de.html'>" + $(("//li[@id='" + elname + "']/a")).html() + "</a></li>");
                    }
					else if(lang == "english")
					{
						$("#dynamic_breadcrump").append("<li><a href='/pages/" + elname + "/" + elname + "_en.html'>" + $(("//li[@id='" + elname + "']/a")).html() + "</a></li>");
					}
                    else
                    {
                        $("#dynamic_breadcrump").append("<li><a href='/pages/" + elname + "/" + elname + "_ru.html'>" + $(("//li[@id='" + elname + "']/a")).html() + "</a></li>"); 
                    }
                    //alert(folder[i + 1]);
                    
                   
                    element = document.getElementById(folder[i + 2]); 
                    element.className+=" activepath";
                    elname = element.getAttribute("id");
                    
                     if(lang == "german")
                    {
                        $("#dynamic_breadcrump").append("<li id='breadcrump_lastentry'><a href='/pages/" + element1.getAttribute("id") + "/"  + elname + "/" + elname + "_de.html'>" + $(("//li[@id='" + elname + "']/a")).html() + "</a></li>");
                    }
					else if(lang == "english")
					{
						$("#dynamic_breadcrump").append("<li id='breadcrump_lastentry'><a href='/pages/"  + element1.getAttribute("id") + "/" + elname + "/" + elname + "_en.html'>" + $(("//li[@id='" + elname + "']/a")).html() + "</a></li>");
					}
                    else
                    {
                         $("#dynamic_breadcrump").append("<li id='breadcrump_lastentry'><a href='/pages/" + element1.getAttribute("id") + "/"  + elname + "/" + elname + "_ru.html'>" + $(("//li[@id='" + elname + "']/a")).html() + "</a></li>");
                    }
                     //alert(folder[i + 2]);
                     
                     
                    try
                    {
                        element = document.getElementById(folder[i + 3]); 
                        element.className+=" active";
                        //alert(folder[i + 3]);
                    }
                    catch(ex)
                    {
                        element = document.getElementById(folder[i + 2]); 
                        element.className = " active";
                        //alert(element.className);
                    }
            }
            if(x == 4 && (folder[i + 1] != "presse"))  //"Fall 2"
            {
                var element = document.getElementById(folder[i + 1]); 
                    element.className+=" activepath";
                    elname = element.getAttribute("id");
                    
                     if(lang == "german")
                    {
                        $("#dynamic_breadcrump").append("<li id='breadcrump_lastentry'><a href='/pages/" + elname + "/" + elname + "_de.html'>" + $(("//li[@id='" + elname + "']/a")).html() + "</a></li>");
                    }
					else if(lang == "english")
					{
						$("#dynamic_breadcrump").append("<li id='breadcrump_lastentry'><a href='/pages/" + elname + "/" + elname + "_en.html'>" + $(("//li[@id='" + elname + "']/a")).html() + "</a></li>");
					}
                    else
                    {
                         $("#dynamic_breadcrump").append("<li id='breadcrump_lastentry'><a href='/pages/" + elname + "/" + elname + "_ru.html'>" + $(("//li[@id='" + elname + "']/a")).html() + "</a></li>");
                    }
                    element = document.getElementById(folder[i + 2]); 
                    element.className+=" active";
            
            }
            if(x == 3)  //"Fall 1"
            {  
                var element = document.getElementById("breadcrump_firstentry"); 
                    element.className+=" breadcrump_nomargin";
	                    
                    element = document.getElementById(folder[i + 1]); 
                    element.className+=" active";
            }
        }
     }
   }
 
 /* Funktion zum Öffnen eines Browserfensters
 * 
 * Aufruf z.B. über:
 *
 * <a href="javascript:MM_openBrWindow('http://213.164.133.28:8080/vcweb/showVCCatalog.do?Language=German','schwingmetall','scrollbars=no,resizable=no','1024','700','true')"
 */
function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) 
{ //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

function generateCode()
{
    var ct_url = "http://www.contitech.de"
    var url = document.frmSite.txtUrl.value; 
    var i = url.indexOf("/pages");
    var new_url = url.substring(i, url.length);
    
     var html = "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' \n";
    html = html + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\n";
    html = html + "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>\n";
    html = html + "<head>\n";
	html = html + "<title>ContiTech Content moved - Redirect page</title>\n";
	html = html + "<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />\n";
	html = html + "<meta name='description' content='ContiTech AG Internetwebsite'/>\n";
	html = html + "<meta name='keywords' content=''/>\n";
	html = html + "<meta name='audience' content='All'/>\n";
	html = html + "<meta name='author' content='ContiTech AG'/>\n";
	html = html + "<meta name='publisher' content='ContiTech AG'/>\n";
	html = html + "<meta name='copyright' content='ContiTech AG'/>\n";
	html = html + "<meta name='Robots' content='no index,no follow'/>\n";
	html = html + "<meta name='revisit-after' content='1 Day'/>\n";
    html = html + "<link href='/css/redirect.css' rel='stylesheet' type='text/css'/>\n";
    html = html + "<script type='text/javascript' charset='UTF-8'>\n";
	html = html + "var redirect_url = '" + (ct_url + new_url) + "';\n";
    html = html + "</script>\n";
    html = html + "</head>\n";
    html = html + "<body onload='eval(parent.location=redirect_url);'>\n";
    html = html + "<div id='wrapper'>\n";
    html = html + "<img src='/img/redirect.jpg' id='head_img' alt='ContiTech Redirect' />\n";
    html = html + "<h1>Sorry, but the requested page has moved.</h1>\n";
    html = html + "<p>If this page does not redirect automatically, then click on the link below:</p>\n";
    html = html + "<a href='javascript:location.href=redirect_url;'>Redirect to new ContiTech webpage</a>\n";
    html = html + "</div>\n";
    html = html + "</body>\n";
    html = html + "</html>";
    
    document.frmSite.txtWebsite.value = html; 
    document.frmSite.txtWebsite.focus();
    
}

function copyHTML()
{
    var Bereich = document.frmSite.txtWebsite.createTextRange();
        Bereich.execCommand("Copy");

}

/* 
 * Code für die Navigation
 * 
 */
 
 
 /* 
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * jquery.js
 * $LastChangedDate$
 * $Rev$
 */
eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}('k(1v 1t.6=="Q"){1t.Q=1t.Q;u 6=l(a,c){k(1t==7)q 1p 6(a,c);a=a||12;k(6.1k(a))q 1p 6(12)[6.C.28?"28":"2E"](a);k(1v a=="22"){u m=/^[^<]*(<(.|\\n)+>)[^>]*$/.2B(a);k(m)a=6.3W([m[1]]);H q 1p 6(c).2o(a)}q 7.4M(a.1g==2A&&a||(a.3e||a.G&&a!=1t&&!a.1V&&a[0]!=Q&&a[0].1V)&&6.3H(a)||[a])};k(1v $!="Q")6.2O$=$;u $=6;6.C=6.8o={3e:"1.1.1",8p:l(){q 7.G},G:0,2a:l(1R){q 1R==Q?6.3H(7):7[1R]},2q:l(a){u J=6(7);J.6j=7;q J.4M(a)},4M:l(a){7.G=0;[].1h.14(7,a);q 7},I:l(C,1y){q 6.I(7,C,1y)},2b:l(19){u 4I=-1;7.I(l(i){k(7==19)4I=i});q 4I},1E:l(20,N,v){u 19=20;k(20.1g==3p)k(N==Q)q 7.G&&6[v||"1E"](7[0],20)||Q;H{19={};19[20]=N}q 7.I(l(2b){O(u F 1B 19)6.1E(v?7.1q:7,F,6.F(7,19[F],v,2b,F))})},1f:l(20,N){q 7.1E(20,N,"2V")},2L:l(e){k(1v e=="22")q 7.3n().3t(12.8r(e));u t="";6.I(e||7,l(){6.I(7.38,l(){k(7.1V!=8)t+=7.1V!=1?7.60:6.C.2L([7])})});q t},2D:l(){u a=6.3W(1x);q 7.I(l(){u b=a[0].3V(T);7.V.2T(b,7);1Z(b.17)b=b.17;b.4i(7)})},3t:l(){q 7.35(1x,T,1,l(a){7.4i(a)})},5n:l(){q 7.35(1x,T,-1,l(a){7.2T(a,7.17)})},5h:l(){q 7.35(1x,Y,1,l(a){7.V.2T(a,7)})},5i:l(){q 7.35(1x,Y,-1,l(a){7.V.2T(a,7.2f)})},4E:l(){q 7.6j||6([])},2o:l(t){q 7.2q(6.2X(7,l(a){q 6.2o(t,a)}))},4w:l(4C){q 7.2q(6.2X(7,l(a){q a.3V(4C!=Q?4C:T)}))},1w:l(t){q 7.2q(6.1k(t)&&6.2k(7,l(2G,2b){q t.14(2G,[2b])})||6.3v(t,7))},2c:l(t){q 7.2q(t.1g==3p&&6.3v(t,7,T)||6.2k(7,l(a){k(t.1g==2A||t.3e)q 6.3g(t,a)<0;H q a!=t}))},1J:l(t){q 7.2q(6.2i(7.2a(),t.1g==3p?6(t).2a():t.G!=Q&&!t.1u?t:[t]))},46:l(1n){q 1n?6.1w(1n,7).r.G>0:Y},18:l(18){q 18==Q?(7.G?7[0].N:1c):7.1E("N",18)},4Q:l(18){q 18==Q?(7.G?7[0].2H:1c):7.3n().3t(18)},35:l(1y,1N,3F,C){u 4w=7.G>1;u a=6.3W(1y);k(3F<0)a.8s();q 7.I(l(){u 19=7;k(1N&&6.1u(7,"1N")&&6.1u(a[0],"3U"))19=7.5E("1T")[0]||7.4i(12.6e("1T"));6.I(a,l(){C.14(19,[4w?7.3V(T):7])})})}};6.1A=6.C.1A=l(){u 1P=1x[0],a=1;k(1x.G==1){1P=7;a=0}u F;1Z(F=1x[a++])O(u i 1B F)1P[i]=F[i];q 1P};6.1A({8v:l(){k(6.2O$)$=6.2O$;q 6},1k:l(C){q!!C&&1v C!="22"&&1v C[0]=="Q"&&/l/i.1s(C+"")},1u:l(B,W){q B.1u&&B.1u.3u()==W.3u()},I:l(19,C,1y){k(19.G==Q)O(u i 1B 19)C.14(19[i],1y||[i,19[i]]);H O(u i=0,6l=19.G;i<6l;i++)k(C.14(19[i],1y||[i,19[i]])===Y)4q;q 19},F:l(B,N,v,2b,F){k(6.1k(N))q N.3s(B,[2b]);u 6m=/z-?2b|7C-?7D|1b|64|8x-?26/i;k(N.1g==3N&&v=="2V"&&!6m.1s(F))q N+"49";q N},16:{1J:l(B,c){6.I(c.3o(/\\s+/),l(i,M){k(!6.16.2P(B.16,M))B.16+=(B.16?" ":"")+M})},2g:l(B,c){B.16=c?6.2k(B.16.3o(/\\s+/),l(M){q!6.16.2P(c,M)}).55(" "):""},2P:l(t,c){t=t.16||t;q t&&1p 4V("(^|\\\\s)"+c+"(\\\\s|$)").1s(t)}},44:l(e,o,f){O(u i 1B o){e.1q["1H"+i]=e.1q[i];e.1q[i]=o[i]}f.14(e,[]);O(u i 1B o)e.1q[i]=e.1q["1H"+i]},1f:l(e,p){k(p=="26"||p=="40"){u 1H={},41,3f,d=["7x","8z","8A","8B"];6.I(d,l(){1H["8C"+7]=0;1H["8E"+7+"8F"]=0});6.44(e,1H,l(){k(6.1f(e,"1e")!="1Y"){41=e.6E;3f=e.6v}H{e=6(e.3V(T)).2o(":4h").5j("2S").4E().1f({4g:"1C",3Z:"6q",1e:"2t",7v:"0",6r:"0"}).5f(e.V)[0];u 3c=6.1f(e.V,"3Z");k(3c==""||3c=="43")e.V.1q.3Z="6s";41=e.6t;3f=e.6u;k(3c==""||3c=="43")e.V.1q.3Z="43";e.V.39(e)}});q p=="26"?41:3f}q 6.2V(e,p)},2V:l(B,F,6k){u J;k(F=="1b"&&6.U.1m)q 6.1E(B.1q,"1b");k(F=="4L"||F=="2u")F=6.U.1m?"3l":"2u";k(!6k&&B.1q[F])J=B.1q[F];H k(12.3X&&12.3X.45){k(F=="2u"||F=="3l")F="4L";F=F.1U(/([A-Z])/g,"-$1").4P();u M=12.3X.45(B,1c);k(M)J=M.53(F);H k(F=="1e")J="1Y";H 6.44(B,{1e:"2t"},l(){u c=12.3X.45(7,"");J=c&&c.53(F)||""})}H k(B.4Z){u 54=F.1U(/\\-(\\w)/g,l(m,c){q c.3u()});J=B.4Z[F]||B.4Z[54]}q J},3W:l(a){u r=[];6.I(a,l(i,1L){k(!1L)q;k(1L.1g==3N)1L=1L.8m();k(1v 1L=="22"){u s=6.2Z(1L),1W=12.6e("1W"),2e=[];u 2D=!s.15("<1l")&&[1,"<3T>","</3T>"]||(!s.15("<6y")||!s.15("<1T")||!s.15("<6A"))&&[1,"<1N>","</1N>"]||!s.15("<3U")&&[2,"<1N><1T>","</1T></1N>"]||(!s.15("<6B")||!s.15("<6D"))&&[3,"<1N><1T><3U>","</3U></1T></1N>"]||[0,"",""];1W.2H=2D[1]+s+2D[2];1Z(2D[0]--)1W=1W.17;k(6.U.1m){k(!s.15("<1N")&&s.15("<1T")<0)2e=1W.17&&1W.17.38;H k(2D[1]=="<1N>"&&s.15("<1T")<0)2e=1W.38;O(u n=2e.G-1;n>=0;--n)k(6.1u(2e[n],"1T")&&!2e[n].38.G)2e[n].V.39(2e[n])}1L=1W.38}k(1L.G===0)q;k(1L[0]==Q)r.1h(1L);H r=6.2i(r,1L)});q r},1E:l(B,W,N){u 2m={"O":"6G","6H":"16","4L":6.U.1m?"3l":"2u",2u:6.U.1m?"3l":"2u",2H:"2H",16:"16",N:"N",2R:"2R",2S:"2S",6K:"6L",2Q:"2Q"};k(W=="1b"&&6.U.1m&&N!=Q){B.64=1;q B.1w=B.1w.1U(/4K\\([^\\)]*\\)/6M,"")+(N==1?"":"4K(1b="+N*57+")")}H k(W=="1b"&&6.U.1m)q B.1w?4f(B.1w.6N(/4K\\(1b=(.*)\\)/)[1])/57:1;k(W=="1b"&&6.U.36&&N==1)N=0.7X;k(2m[W]){k(N!=Q)B[2m[W]]=N;q B[2m[W]]}H k(N==Q&&6.U.1m&&6.1u(B,"5S")&&(W=="6Q"||W=="7V"))q B.6S(W).60;H k(B.6T){k(N!=Q)B.7R(W,N);q B.3D(W)}H{W=W.1U(/-([a-z])/6W,l(z,b){q b.3u()});k(N!=Q)B[W]=N;q B[W]}},2Z:l(t){q t.1U(/^\\s+|\\s+$/g,"")},3H:l(a){u r=[];k(a.1g!=2A)O(u i=0,2w=a.G;i<2w;i++)r.1h(a[i]);H r=a.3J(0);q r},3g:l(b,a){O(u i=0,2w=a.G;i<2w;i++)k(a[i]==b)q i;q-1},2i:l(2v,3P){u r=[].3J.3s(2v,0);O(u i=0,63=3P.G;i<63;i++)k(6.3g(3P[i],r)==-1)2v.1h(3P[i]);q 2v},2k:l(1Q,C,48){k(1v C=="22")C=1p 4D("a","i","q "+C);u 1d=[];O(u i=0,2G=1Q.G;i<2G;i++)k(!48&&C(1Q[i],i)||48&&!C(1Q[i],i))1d.1h(1Q[i]);q 1d},2X:l(1Q,C){k(1v C=="22")C=1p 4D("a","q "+C);u 1d=[],r=[];O(u i=0,2G=1Q.G;i<2G;i++){u 18=C(1Q[i],i);k(18!==1c&&18!=Q){k(18.1g!=2A)18=[18];1d=1d.70(18)}}u r=1d.G?[1d[0]]:[];5d:O(u i=1,5N=1d.G;i<5N;i++){O(u j=0;j<i;j++)k(1d[i]==r[j])5z 5d;r.1h(1d[i])}q r}});1p l(){u b=7H.72.4P();6.U={2C:/5I/.1s(b),37:/37/.1s(b),1m:/1m/.1s(b)&&!/37/.1s(b),36:/36/.1s(b)&&!/(74|5I)/.1s(b)};6.75=!6.U.1m||12.76=="7B"};6.I({5p:"a.V",4s:"6.4s(a)",78:"6.25(a,2,\'2f\')",7z:"6.25(a,2,\'5o\')",79:"6.2F(a.V.17,a)",7b:"6.2F(a.17)"},l(i,n){6.C[i]=l(a){u J=6.2X(7,n);k(a&&1v a=="22")J=6.3v(a,J);q 7.2q(J)}});6.I({5f:"3t",7d:"5n",2T:"5h",7f:"5i"},l(i,n){6.C[i]=l(){u a=1x;q 7.I(l(){O(u j=0,2w=a.G;j<2w;j++)6(a[j])[n](7)})}});6.I({5j:l(20){6.1E(7,20,"");7.7h(20)},7i:l(c){6.16.1J(7,c)},7j:l(c){6.16.2g(7,c)},7l:l(c){6.16[6.16.2P(7,c)?"2g":"1J"](7,c)},2g:l(a){k(!a||6.1w(a,[7]).r.G)7.V.39(7)},3n:l(){1Z(7.17)7.39(7.17)}},l(i,n){6.C[i]=l(){q 7.I(n,1x)}});6.I(["5m","5l","5e","5r"],l(i,n){6.C[n]=l(1R,C){q 7.1w(":"+n+"("+1R+")",C)}});6.I(["26","40"],l(i,n){6.C[n]=l(h){q h==Q?(7.G?6.1f(7[0],n):1c):7.1f(n,h.1g==3p?h:h+"49")}});6.1A({1n:{"":"m[2]==\'*\'||6.1u(a,m[2])","#":"a.3D(\'3Y\')==m[2]",":":{5l:"i<m[3]-0",5e:"i>m[3]-0",25:"m[3]-0==i",5m:"m[3]-0==i",2v:"i==0",2W:"i==r.G-1",5M:"i%2==0",5O:"i%2","25-3k":"6.25(a.V.17,m[3],\'2f\',a)==a","2v-3k":"6.25(a.V.17,1,\'2f\')==a","2W-3k":"6.25(a.V.7n,1,\'5o\')==a","7o-3k":"6.2F(a.V.17).G==1",5p:"a.17",3n:"!a.17",5r:"6.C.2L.14([a]).15(m[3])>=0",3a:\'a.v!="1C"&&6.1f(a,"1e")!="1Y"&&6.1f(a,"4g")!="1C"\',1C:\'a.v=="1C"||6.1f(a,"1e")=="1Y"||6.1f(a,"4g")=="1C"\',7q:"!a.2R",2R:"a.2R",2S:"a.2S",2Q:"a.2Q||6.1E(a,\'2Q\')",2L:"a.v==\'2L\'",4h:"a.v==\'4h\'",59:"a.v==\'59\'",42:"a.v==\'42\'",58:"a.v==\'58\'",4O:"a.v==\'4O\'",5v:"a.v==\'5v\'",5w:"a.v==\'5w\'",3h:\'a.v=="3h"||6.1u(a,"3h")\',5x:"/5x|3T|7s|3h/i.1s(a.1u)"},".":"6.16.2P(a,m[2])","@":{"=":"z==m[4]","!=":"z!=m[4]","^=":"z&&!z.15(m[4])","$=":"z&&z.2Y(z.G - m[4].G,m[4].G)==m[4]","*=":"z&&z.15(m[4])>=0","":"z",4U:l(m){q["",m[1],m[3],m[2],m[5]]},5J:"z=a[m[3]]||6.1E(a,m[3]);"},"[":"6.2o(m[2],a).G"},5G:[/^\\[ *(@)([a-2l-3y-]*) *([!*$^=]*) *(\'?"?)(.*?)\\4 *\\]/i,/^(\\[)\\s*(.*?(\\[.*?\\])?[^[]*?)\\s*\\]/,/^(:)([a-2l-3y-]*)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/i,/^([:.#]*)([a-2l-3y*-]*)/i],1O:[/^(\\/?\\.\\.)/,"a.V",/^(>|\\/)/,"6.2F(a.17)",/^(\\+)/,"6.25(a,2,\'2f\')",/^(~)/,l(a){u s=6.2F(a.V.17);q s.3J(0,6.3g(a,s))}],3v:l(1n,1Q,2c){u 1H,M=[];1Z(1n&&1n!=1H){1H=1n;u f=6.1w(1n,1Q,2c);1n=f.t.1U(/^\\s*,\\s*/,"");M=2c?1Q=f.r:6.2i(M,f.r)}q M},2o:l(t,1r){k(1v t!="22")q[t];k(1r&&!1r.1V)1r=1c;1r=1r||12;k(!t.15("//")){1r=1r.4y;t=t.2Y(2,t.G)}H k(!t.15("/")){1r=1r.4y;t=t.2Y(1,t.G);k(t.15("/")>=1)t=t.2Y(t.15("/"),t.G)}u J=[1r],29=[],2W=1c;1Z(t&&2W!=t){u r=[];2W=t;t=6.2Z(t).1U(/^\\/\\//i,"");u 3x=Y;u 1G=/^[\\/>]\\s*([a-2l-9*-]+)/i;u m=1G.2B(t);k(m){6.I(J,l(){O(u c=7.17;c;c=c.2f)k(c.1V==1&&(6.1u(c,m[1])||m[1]=="*"))r.1h(c)});J=r;t=t.1U(1G,"");k(t.15(" ")==0)5z;3x=T}H{O(u i=0;i<6.1O.G;i+=2){u 1G=6.1O[i];u m=1G.2B(t);k(m){r=J=6.2X(J,6.1k(6.1O[i+1])?6.1O[i+1]:l(a){q 3B(6.1O[i+1])});t=6.2Z(t.1U(1G,""));3x=T;4q}}}k(t&&!3x){k(!t.15(",")){k(J[0]==1r)J.4m();6.2i(29,J);r=J=[1r];t=" "+t.2Y(1,t.G)}H{u 34=/^([a-2l-3y-]+)(#)([a-2l-9\\\\*2O-]*)/i;u m=34.2B(t);k(m){m=[0,m[2],m[3],m[1]]}H{34=/^([#.]?)([a-2l-9\\\\*2O-]*)/i;m=34.2B(t)}k(m[1]=="#"&&J[J.G-1].4R){u 3z=J[J.G-1].4R(m[2]);J=r=3z&&(!m[3]||6.1u(3z,m[3]))?[3z]:[]}H{k(m[1]==".")u 4k=1p 4V("(^|\\\\s)"+m[2]+"(\\\\s|$)");6.I(J,l(){u 3C=m[1]!=""||m[0]==""?"*":m[2];k(6.1u(7,"7w")&&3C=="*")3C="2U";6.2i(r,m[1]!=""&&J.G!=1?6.4r(7,[],m[1],m[2],4k):7.5E(3C))});k(m[1]=="."&&J.G==1)r=6.2k(r,l(e){q 4k.1s(e.16)});k(m[1]=="#"&&J.G==1){u 5F=r;r=[];6.I(5F,l(){k(7.3D("3Y")==m[2]){r=[7];q Y}})}J=r}t=t.1U(34,"")}}k(t){u 18=6.1w(t,r);J=r=18.r;t=6.2Z(18.t)}}k(J&&J[0]==1r)J.4m();6.2i(29,J);q 29},1w:l(t,r,2c){1Z(t&&/^[a-z[({<*:.#]/i.1s(t)){u p=6.5G,m;6.I(p,l(i,1G){m=1G.2B(t);k(m){t=t.7y(m[0].G);k(6.1n[m[1]].4U)m=6.1n[m[1]].4U(m);q Y}});k(m[1]==":"&&m[2]=="2c")r=6.1w(m[3],r,T).r;H k(m[1]=="."){u 1G=1p 4V("(^|\\\\s)"+m[2]+"(\\\\s|$)");r=6.2k(r,l(e){q 1G.1s(e.16||"")},2c)}H{u f=6.1n[m[1]];k(1v f!="22")f=6.1n[m[1]][m[2]];3B("f = l(a,i){"+(6.1n[m[1]].5J||"")+"q "+f+"}");r=6.2k(r,f,2c)}}q{r:r,t:t}},4r:l(o,r,1O,W,1G){O(u s=o.17;s;s=s.2f)k(s.1V==1){u 1J=T;k(1O==".")1J=s.16&&1G.1s(s.16);H k(1O=="#")1J=s.3D("3Y")==W;k(1J)r.1h(s);k(1O=="#"&&r.G)4q;k(s.17)6.4r(s,r,1O,W,1G)}q r},4s:l(B){u 4N=[];u M=B.V;1Z(M&&M!=12){4N.1h(M);M=M.V}q 4N},25:l(M,1d,3F,B){1d=1d||1;u 1R=0;O(;M;M=M[3F]){k(M.1V==1)1R++;k(1R==1d||1d=="5M"&&1R%2==0&&1R>1&&M==B||1d=="5O"&&1R%2==1&&M==B)q M}},2F:l(n,B){u r=[];O(;n;n=n.2f){k(n.1V==1&&(!B||n!=B))r.1h(n)}q r}});6.E={1J:l(S,v,1j,D){k(6.U.1m&&S.4c!=Q)S=1t;k(D)1j.D=D;k(!1j.2n)1j.2n=7.2n++;k(!S.1I)S.1I={};u 32=S.1I[v];k(!32){32=S.1I[v]={};k(S["3I"+v])32[0]=S["3I"+v]}32[1j.2n]=1j;S["3I"+v]=7.5T;k(!7.1i[v])7.1i[v]=[];7.1i[v].1h(S)},2n:1,1i:{},2g:l(S,v,1j){k(S.1I)k(v&&v.v)4u S.1I[v.v][v.1j.2n];H k(v&&S.1I[v])k(1j)4u S.1I[v][1j.2n];H O(u i 1B S.1I[v])4u S.1I[v][i];H O(u j 1B S.1I)7.2g(S,j)},1M:l(v,D,S){D=6.3H(D||[]);k(!S)6.I(7.1i[v]||[],l(){6.E.1M(v,D,7)});H{u 1j=S["3I"+v],18,C=6.1k(S[v]);k(1j){D.5U(7.2m({v:v,1P:S}));k((18=1j.14(S,D))!==Y)7.4v=T}k(C&&18!==Y)S[v]();7.4v=Y}},5T:l(E){k(1v 6=="Q"||6.E.4v)q;E=6.E.2m(E||1t.E||{});u 3M;u c=7.1I[E.v];u 1y=[].3J.3s(1x,1);1y.5U(E);O(u j 1B c){1y[0].1j=c[j];1y[0].D=c[j].D;k(c[j].14(7,1y)===Y){E.2h();E.2z();3M=Y}}k(6.U.1m)E.1P=E.2h=E.2z=E.1j=E.D=1c;q 3M},2m:l(E){k(!E.1P&&E.5V)E.1P=E.5V;k(E.5W==Q&&E.5Y!=Q){u e=12.4y,b=12.7K;E.5W=E.5Y+(e.5Z||b.5Z);E.7M=E.7N+(e.61||b.61)}k(6.U.2C&&E.1P.1V==3){u 33=E;E=6.1A({},33);E.1P=33.1P.V;E.2h=l(){q 33.2h()};E.2z=l(){q 33.2z()}}k(!E.2h)E.2h=l(){7.3M=Y};k(!E.2z)E.2z=l(){7.7Q=T};q E}};6.C.1A({3R:l(v,D,C){q 7.I(l(){6.E.1J(7,v,C||D,D)})},6n:l(v,D,C){q 7.I(l(){6.E.1J(7,v,l(E){6(7).62(E);q(C||D).14(7,1x)},D)})},62:l(v,C){q 7.I(l(){6.E.2g(7,v,C)})},1M:l(v,D){q 7.I(l(){6.E.1M(v,D,7)})},3r:l(){u a=1x;q 7.69(l(e){7.4F=7.4F==0?1:0;e.2h();q a[7.4F].14(7,[e])||Y})},7T:l(f,g){l 4e(e){u p=(e.v=="3S"?e.7U:e.7Y)||e.7Z;1Z(p&&p!=7)2s{p=p.V}2y(e){p=7};k(p==7)q Y;q(e.v=="3S"?f:g).14(7,[e])}q 7.3S(4e).6b(4e)},28:l(f){k(6.3O)f.14(12,[6]);H{6.3b.1h(l(){q f.14(7,[6])})}q 7}});6.1A({3O:Y,3b:[],28:l(){k(!6.3O){6.3O=T;k(6.3b){6.I(6.3b,l(){7.14(12)});6.3b=1c}k(6.U.36||6.U.37)12.81("6g",6.28,Y)}}});1p l(){6.I(("82,83,2E,84,85,4Y,69,86,"+"87,88,89,3S,6b,8b,3T,"+"4O,8d,8f,8g,2M").3o(","),l(i,o){6.C[o]=l(f){q f?7.3R(o,f):7.1M(o)}});k(6.U.36||6.U.37)12.8h("6g",6.28,Y);H k(6.U.1m){12.8i("<8j"+"8l 3Y=6a 8q=T "+"4B=//:><\\/2d>");u 2d=12.4R("6a");k(2d)2d.2p=l(){k(7.3A!="1X")q;7.V.39(7);6.28()};2d=1c}H k(6.U.2C)6.4W=4c(l(){k(12.3A=="8t"||12.3A=="1X"){5u(6.4W);6.4W=1c;6.28()}},10);6.E.1J(1t,"2E",6.28)};k(6.U.1m)6(1t).6n("4Y",l(){u 1i=6.E.1i;O(u v 1B 1i){u 4X=1i[v],i=4X.G;k(i&&v!=\'4Y\')6p 6.E.2g(4X[i-1],v);1Z(--i)}});6.C.1A({1K:l(P,K){u 1C=7.1w(":1C");P?1C.23({26:"1K",40:"1K",1b:"1K"},P,K):1C.I(l(){7.1q.1e=7.2N?7.2N:"";k(6.1f(7,"1e")=="1Y")7.1q.1e="2t"});q 7},1D:l(P,K){u 3a=7.1w(":3a");P?3a.23({26:"1D",40:"1D",1b:"1D"},P,K):3a.I(l(){7.2N=7.2N||6.1f(7,"1e");k(7.2N=="1Y")7.2N="2t";7.1q.1e="1Y"});q 7},52:6.C.3r,3r:l(C,4S){u 1y=1x;q 6.1k(C)&&6.1k(4S)?7.52(C,4S):7.I(l(){6(7)[6(7).46(":1C")?"1K":"1D"].14(6(7),1y)})},6x:l(P,K){q 7.23({26:"1K"},P,K)},6z:l(P,K){q 7.23({26:"1D"},P,K)},6C:l(P,K){q 7.I(l(){u 56=6(7).46(":1C")?"1K":"1D";6(7).23({26:56},P,K)})},6F:l(P,K){q 7.23({1b:"1K"},P,K)},6I:l(P,K){q 7.23({1b:"1D"},P,K)},6J:l(P,3q,K){q 7.23({1b:3q},P,K)},23:l(F,P,1o,K){q 7.1F(l(){7.2r=6.1A({},F);u 1l=6.P(P,1o,K);O(u p 1B F){u e=1p 6.30(7,1l,p);k(F[p].1g==3N)e.2x(e.M(),F[p]);H e[F[p]](F)}})},1F:l(v,C){k(!C){C=v;v="30"}q 7.I(l(){k(!7.1F)7.1F={};k(!7.1F[v])7.1F[v]=[];7.1F[v].1h(C);k(7.1F[v].G==1)C.14(7)})}});6.1A({P:l(P,1o,C){u 1l=P&&P.1g==6O?P:{1X:C||!C&&1o||6.1k(P)&&P,24:P,1o:C&&1o||1o&&1o.1g!=4D&&1o};1l.24=(1l.24&&1l.24.1g==3N?1l.24:{6U:6X,6Y:51}[1l.24])||6Z;1l.1H=1l.1X;1l.1X=l(){6.5X(7,"30");k(6.1k(1l.1H))1l.1H.14(7)};q 1l},1o:{},1F:{},5X:l(B,v){v=v||"30";k(B.1F&&B.1F[v]){B.1F[v].4m();u f=B.1F[v][0];k(f)f.14(B)}},30:l(B,1a,F){u z=7;u y=B.1q;u 4j=6.1f(B,"1e");y.1e="2t";y.5y="1C";z.a=l(){k(1a.3j)1a.3j.14(B,[z.2j]);k(F=="1b")6.1E(y,"1b",z.2j);H k(5g(z.2j))y[F]=5g(z.2j)+"49"};z.5k=l(){q 4f(6.1f(B,F))};z.M=l(){u r=4f(6.2V(B,F));q r&&r>-7g?r:z.5k()};z.2x=l(4d,3q){z.4o=(1p 5s()).5t();z.2j=4d;z.a();z.47=4c(l(){z.3j(4d,3q)},13)};z.1K=l(){k(!B.1z)B.1z={};B.1z[F]=7.M();1a.1K=T;z.2x(0,B.1z[F]);k(F!="1b")y[F]="5q"};z.1D=l(){k(!B.1z)B.1z={};B.1z[F]=7.M();1a.1D=T;z.2x(B.1z[F],0)};z.3r=l(){k(!B.1z)B.1z={};B.1z[F]=7.M();k(4j=="1Y"){1a.1K=T;k(F!="1b")y[F]="5q";z.2x(0,B.1z[F])}H{1a.1D=T;z.2x(B.1z[F],0)}};z.3j=l(31,3G){u t=(1p 5s()).5t();k(t>1a.24+z.4o){5u(z.47);z.47=1c;z.2j=3G;z.a();k(B.2r)B.2r[F]=T;u 29=T;O(u i 1B B.2r)k(B.2r[i]!==T)29=Y;k(29){y.5y="";y.1e=4j;k(6.1f(B,"1e")=="1Y")y.1e="2t";k(1a.1D)y.1e="1Y";k(1a.1D||1a.1K)O(u p 1B B.2r)k(p=="1b")6.1E(y,p,B.1z[p]);H y[p]=""}k(29&&6.1k(1a.1X))1a.1X.14(B)}H{u n=t-7.4o;u p=n/1a.24;z.2j=1a.1o&&6.1o[1a.1o]?6.1o[1a.1o](p,n,31,(3G-31),1a.24):((-5L.7E(p*5L.7F)/2)+0.5)*(3G-31)+31;z.a()}}}});6.C.1A({7G:l(R,21,K){7.2E(R,21,K,1)},2E:l(R,21,K,1S){k(6.1k(R))q 7.3R("2E",R);K=K||l(){};u v="65";k(21)k(6.1k(21)){K=21;21=1c}H{21=6.2U(21);v="6f"}u 4x=7;6.3d({R:R,v:v,D:21,1S:1S,1X:l(2J,11){k(11=="2K"||!1S&&11=="5H")4x.1E("2H",2J.3L).4T().I(K,[2J.3L,11,2J]);H K.14(4x,[2J.3L,11,2J])}});q 7},7L:l(){q 6.2U(7)},4T:l(){q 7.2o("2d").I(l(){k(7.4B)6.6c(7.4B);H 6.4H(7.2L||7.7P||7.2H||"")}).4E()}});k(!1t.3w)3w=l(){q 1p 7S("7W.80")};6.I("68,5R,5Q,6h,5P,5C".3o(","),l(i,o){6.C[o]=l(f){q 7.3R(o,f)}});6.1A({2a:l(R,D,K,v,1S){k(6.1k(D)){K=D;D=1c}q 6.3d({R:R,D:D,2K:K,4t:v,1S:1S})},8a:l(R,D,K,v){q 6.2a(R,D,K,v,1)},6c:l(R,K){q 6.2a(R,1c,K,"2d")},8c:l(R,D,K){q 6.2a(R,D,K,"67")},8e:l(R,D,K,v){k(6.1k(D)){K=D;D={}}q 6.3d({v:"6f",R:R,D:D,2K:K,4t:v})},8k:l(27){6.3K.27=27},8n:l(6o){6.1A(6.3K,6o)},3K:{1i:T,v:"65",27:0,5a:"8u/x-8w-5S-8D",50:T,4G:T,D:1c},3m:{},3d:l(s){s=6.1A({},6.3K,s);k(s.D){k(s.50&&1v s.D!="22")s.D=6.2U(s.D);k(s.v.4P()=="2a")s.R+=((s.R.15("?")>-1)?"&":"?")+s.D}k(s.1i&&!6.4a++)6.E.1M("68");u 4z=Y;u L=1p 3w();L.6P(s.v,s.R,s.4G);k(s.D)L.3i("6R-6V",s.5a);k(s.1S)L.3i("71-4A-73",6.3m[s.R]||"77, 7a 7c 7e 4b:4b:4b 7k");L.3i("X-7m-7p","3w");k(L.7r)L.3i("7t","7u");k(s.5A)s.5A(L);k(s.1i)6.E.1M("5C",[L,s]);u 2p=l(4n){k(L&&(L.3A==4||4n=="27")){4z=T;u 11;2s{11=6.6i(L)&&4n!="27"?s.1S&&6.6d(L,s.R)?"5H":"2K":"2M";k(11!="2M"){u 3E;2s{3E=L.4l("66-4A")}2y(e){}k(s.1S&&3E)6.3m[s.R]=3E;u D=6.5D(L,s.4t);k(s.2K)s.2K(D,11);k(s.1i)6.E.1M("5P",[L,s])}H 6.3Q(s,L,11)}2y(e){11="2M";6.3Q(s,L,11,e)}k(s.1i)6.E.1M("5Q",[L,s]);k(s.1i&&!--6.4a)6.E.1M("5R");k(s.1X)s.1X(L,11);L.2p=l(){};L=1c}};L.2p=2p;k(s.27>0)5c(l(){k(L){L.7J();k(!4z)2p("27")}},s.27);u 4J=L;2s{4J.7O(s.D)}2y(e){6.3Q(s,L,1c,e)}k(!s.4G)2p();q 4J},3Q:l(s,L,11,e){k(s.2M)s.2M(L,11,e);k(s.1i)6.E.1M("6h",[L,s,e])},4a:0,6i:l(r){2s{q!r.11&&8y.8G=="42:"||(r.11>=51&&r.11<6w)||r.11==5b||6.U.2C&&r.11==Q}2y(e){}q Y},6d:l(L,R){2s{u 5K=L.4l("66-4A");q L.11==5b||5K==6.3m[R]||6.U.2C&&L.11==Q}2y(e){}q Y},5D:l(r,v){u 4p=r.4l("7A-v");u D=!v&&4p&&4p.15("L")>=0;D=v=="L"||D?r.7I:r.3L;k(v=="2d")6.4H(D);k(v=="67")3B("D = "+D);k(v=="4Q")6("<1W>").4Q(D).4T();q D},2U:l(a){u s=[];k(a.1g==2A||a.3e)6.I(a,l(){s.1h(2I(7.W)+"="+2I(7.N))});H O(u j 1B a)k(a[j]&&a[j].1g==2A)6.I(a[j],l(){s.1h(2I(j)+"="+2I(7))});H s.1h(2I(j)+"="+2I(a[j]));q s.55("&")},4H:l(D){k(1t.5B)1t.5B(D);H k(6.U.2C)1t.5c(D,0);H 3B.3s(1t,D)}})}',62,539,'||||||jQuery|this|||||||||||||if|function|||||return||||var|type||||||elem|fn|data|event|prop|length|else|each|ret|callback|xml|cur|value|for|speed|undefined|url|element|true|browser|parentNode|name||false|||status|document||apply|indexOf|className|firstChild|val|obj|options|opacity|null|result|display|css|constructor|push|global|handler|isFunction|opt|msie|expr|easing|new|style|context|test|window|nodeName|typeof|filter|arguments|args|orig|extend|in|hidden|hide|attr|queue|re|old|events|add|show|arg|trigger|table|token|target|elems|num|ifModified|tbody|replace|nodeType|div|complete|none|while|key|params|string|animate|duration|nth|height|timeout|ready|done|get|index|not|script|tb|nextSibling|remove|preventDefault|merge|now|grep|z0|fix|guid|find|onreadystatechange|pushStack|curAnim|try|block|cssFloat|first|al|custom|catch|stopPropagation|Array|exec|safari|wrap|load|sibling|el|innerHTML|encodeURIComponent|res|success|text|error|oldblock|_|has|selected|disabled|checked|insertBefore|param|curCSS|last|map|substr|trim|fx|firstNum|handlers|originalEvent|re2|domManip|mozilla|opera|childNodes|removeChild|visible|readyList|parPos|ajax|jquery|oWidth|inArray|button|setRequestHeader|step|child|styleFloat|lastModified|empty|split|String|to|toggle|call|append|toUpperCase|multiFilter|XMLHttpRequest|foundToken|9_|oid|readyState|eval|tag|getAttribute|modRes|dir|lastNum|makeArray|on|slice|ajaxSettings|responseText|returnValue|Number|isReady|second|handleError|bind|mouseover|select|tr|cloneNode|clean|defaultView|id|position|width|oHeight|file|static|swap|getComputedStyle|is|timer|inv|px|active|00|setInterval|from|handleHover|parseFloat|visibility|radio|appendChild|oldDisplay|rec|getResponseHeader|shift|isTimeout|startTime|ct|break|getAll|parents|dataType|delete|triggered|clone|self|documentElement|requestDone|Modified|src|deep|Function|end|lastToggle|async|globalEval|pos|xml2|alpha|float|setArray|matched|submit|toLowerCase|html|getElementById|fn2|evalScripts|_resort|RegExp|safariTimer|els|unload|currentStyle|processData|200|_toggle|getPropertyValue|newProp|join|state|100|password|checkbox|contentType|304|setTimeout|check|gt|appendTo|parseInt|before|after|removeAttr|max|lt|eq|prepend|previousSibling|parent|1px|contains|Date|getTime|clearInterval|image|reset|input|overflow|continue|beforeSend|execScript|ajaxSend|httpData|getElementsByTagName|tmp|parse|notmodified|webkit|_prefix|xmlRes|Math|even|rl|odd|ajaxSuccess|ajaxComplete|ajaxStop|form|handle|unshift|srcElement|pageX|dequeue|clientX|scrollLeft|nodeValue|scrollTop|unbind|sl|zoom|GET|Last|json|ajaxStart|click|__ie_init|mouseout|getScript|httpNotModified|createElement|POST|DOMContentLoaded|ajaxError|httpSuccess|prevObject|force|ol|exclude|one|settings|do|absolute|left|relative|clientHeight|clientWidth|offsetWidth|300|slideDown|thead|slideUp|tfoot|td|slideToggle|th|offsetHeight|fadeIn|htmlFor|class|fadeOut|fadeTo|readonly|readOnly|gi|match|Object|open|action|Content|getAttributeNode|tagName|slow|Type|ig|600|fast|400|concat|If|userAgent|Since|compatible|boxModel|compatMode|Thu|next|siblings|01|children|Jan|prependTo|1970|insertAfter|10000|removeAttribute|addClass|removeClass|GMT|toggleClass|Requested|lastChild|only|With|enabled|overrideMimeType|textarea|Connection|close|right|object|Top|substring|prev|content|CSS1Compat|font|weight|cos|PI|loadIfModified|navigator|responseXML|abort|body|serialize|pageY|clientY|send|textContent|cancelBubble|setAttribute|ActiveXObject|hover|fromElement|method|Microsoft|9999|toElement|relatedTarget|XMLHTTP|removeEventListener|blur|focus|resize|scroll|dblclick|mousedown|mouseup|mousemove|getIfModified|change|getJSON|keydown|post|keypress|keyup|addEventListener|write|scr|ajaxTimeout|ipt|toString|ajaxSetup|prototype|size|defer|createTextNode|reverse|loaded|application|noConflict|www|line|location|Bottom|Right|Left|padding|urlencoded|border|Width|protocol'.split('|'),0,{}))


/* 
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * dimensions-c.js
 * $LastChangedDate$
 * $Rev$
 */
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(c/a))+String.fromCharCode(c%a+161)};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'[\xa1-\xff]+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp(e(c),'g'),k[c])}}return p}('¢.ª.ç=¢.ª.±;¢.ª.Ø=¢.ª.¾;¢.ª.±=­(){§(¡[0]==®)¨ ½.è||¢.¿&&¦.».Ô||¦.¯.Ô;§(¡[0]==¦)¨ Ö.×(¦.¯.ñ,¦.¯.Ë);¨ ¡.ç(Ü[0])};¢.ª.¾=­(){§(¡[0]==®)¨ ½.Ð||¢.¿&&¦.».Û||¦.¯.Û;§(¡[0]==¦)¨ Ö.×(¦.¯.ô,¦.¯.Í);¨ ¡.Ø(Ü[0])};¢.ª.è=­(){¨ ¡[0]==®||¡[0]==¦?¡.±():¡.£(\'¹\')!=\'¼\'?¡[0].Ë-(¤(¡.£("´"))||0)-(¤(¡.£("Þ"))||0):¡.±()+(¤(¡.£("Ä"))||0)+(¤(¡.£("Î"))||0)};¢.ª.Ð=­(){¨ ¡[0]==®||¡[0]==¦?¡.¾():¡.£(\'¹\')!=\'¼\'?¡[0].Í-(¤(¡.£("µ"))||0)-(¤(¡.£("â"))||0):¡.±()+(¤(¡.£("Ê"))||0)+(¤(¡.£("ã"))||0)};¢.ª.õ=­(){¨ ¡[0]==®||¡[0]==¦?¡.±():¡.£(\'¹\')!=\'¼\'?¡[0].Ë:¡.±()+(¤(¡.£("´"))||0)+(¤(¡.£("Þ"))||0)+(¤(¡.£("Ä"))||0)+(¤(¡.£("Î"))||0)};¢.ª.÷=­(){¨ ¡[0]==®||¡[0]==¦?¡.¾():¡.£(\'¹\')!=\'¼\'?¡[0].Í:¡.±()+(¤(¡.£("µ"))||0)+(¤(¡.£("â"))||0)+(¤(¡.£("Ê"))||0)+(¤(¡.£("ã"))||0)};¢.ª.²=­(){§(¡[0]==®||¡[0]==¦)¨ ½.ø||¢.¿&&¦.».²||¦.¯.²;¨ ¡[0].²};¢.ª.³=­(){§(¡[0]==®||¡[0]==¦)¨ ½.ù||¢.¿&&¦.».³||¦.¯.³;¨ ¡[0].³};¢.ª.é=­(¬,È){¶ x=0,y=0,©=¡[0],¥=¡[0],·=0,¸=0,¬=¢.Ñ({ä:Ç,À:Ç,Ï:ê,º:Ç},¬||{});Õ{x+=¥.ë||0;y+=¥.ì||0;§(¢.«.Æ||¢.«.Ó){¶ Ã=¤(¢.£(¥,\'´\'))||0;¶ Â=¤(¢.£(¥,\'µ\'))||0;x+=Â;y+=Ã;§(¢.«.Æ&&¥!=©&&¢.£(¥,\'Ù\')!=\'Ý\'){x+=Â;y+=Ã}}¶ °=¥.ß;§(°&&(°.Ò==\'í\'||°.Ò==\'î\')){§((¢.«.Á||¢.«.Ó)&&¢.£(¥,\'ï\')!=\'ð\'){x+=¤(¢.£(°,\'å\'))||0;y+=¤(¢.£(°,\'æ\'))||0}ò}§(¬.º){Õ{·+=¥.²||0;¸+=¥.³||0;¥=¥.ó;§(¢.«.Æ&&¥!=©&&¥!=°&&¢.£(¥,\'Ù\')!=\'Ý\'){y+=¤(¢.£(¥,\'´\'))||0;x+=¤(¢.£(¥,\'µ\'))||0}}à(¥!=°)}Å{¥=¥.ß}}à(¥);§(!¬.ä){x-=¤(¢.£(©,\'å\'))||0;y-=¤(¢.£(©,\'æ\'))||0}§(¬.À&&(¢.«.Á||¢.«.Ì)){x+=¤(¢.£(©,\'µ\'))||0;y+=¤(¢.£(©,\'´\'))||0}Å §(!¬.À&&!(¢.«.Á||¢.«.Ì)){x-=¤(¢.£(©,\'µ\'))||0;y-=¤(¢.£(©,\'´\'))||0}§(¬.Ï){x+=¤(¢.£(©,\'Ê\'))||0;y+=¤(¢.£(©,\'Ä\'))||0}§(¬.º&&¢.«.Ì&&¢.£(©,\'¹\')==\'ö\'){·-=©.²||0;¸-=©.³||0}¶ É=¬.º?{Ú:y-¸,á:x-·,³:¸,²:·}:{Ú:y,á:x};§(È){¢.Ñ(È,É);¨ ¡}Å{¨ É}};',89,89,'this|jQuery|css|parseInt|parent|document|if|return|elem|fn|browser|options|function|window|body|op|height|scrollLeft|scrollTop|borderTopWidth|borderLeftWidth|var|sl|st|display|scroll|documentElement|none|self|width|boxModel|border|safari|bl|bt|paddingTop|else|mozilla|true|returnObject|returnValue|paddingLeft|offsetHeight|opera|offsetWidth|paddingBottom|padding|innerWidth|extend|tagName|msie|clientHeight|do|Math|max|_1|overflow|top|clientWidth|arguments|visible|borderBottomWidth|offsetParent|while|left|borderRightWidth|paddingRight|margin|marginLeft|marginTop|_0|innerHeight|offset|false|offsetLeft|offsetTop|BODY|HTML|position|absolute|scrollHeight|break|parentNode|scrollWidth|outerHeight|inline|outerWidth|pageXOffset|pageYOffset'.split('|'),0,{}))


/**
 * @projectDescription	Barrierearmes, gebrauchstaugliches Dropdownmenu
 *
 * @author 	Alexander Farkas <a.farkas@pfirsichmelba.de> // http://pfirsichmelba.de
 * 
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 * 
 * Bei guten Verbesserungen/öffentlichem Einsatz wäre ich für eine kurze Mail mit Link dankbar.
 * jq_dickerfisch_menue.js
 * @version 0.5
 * @param {String} $selektor CSS-selector of the wrapping element, id-selector = beeter performance
 * @param {options} [_settings] list of sveral options/settings
 * 
 * @option {Number|Array} [NavTimeout] delay to hide menu, if ypu use an array of two numbers, first is the delay for firstsubmenu, second for all other submenus, default is 250
 * @option {String} [ListType] listtype i.e. ol (default = ul)
 * @option {Number} [LimitLinks] 1 = (default) .active and .activepath submenus are available for keyboard users, Opera browser overrirdes this (because of spatial navigation),0 = all submenus are available for keyboard users. if you use this you should remove display:none for submenus -> better consistency for screenreader (the submenus stay hidden / are out of viewport), 2 = .active and .activepath submenus are available for keyboard users (Opera browser doesn´t override this)
 * 
 * You need CleannCSSAnimation for effects (CleanCSSAnimation removes the inline style "display: none" after animations -> good for screenreaders and keyboard-user):
 * CleannCSSAnimation Plugin: http://pfirsichmelba.de/artikel-scripts/lib/jq.cleanCSSanim.js
 * @option {Number} [Effect] needs CleannCSSAnimation plugin: 0 = no Effect (default), 1 = show and hide effect, 2 = show-effect, 3 = hide-effect
 * @option {String} [ShowEffect] Name of show effect, default=show
 * @option {String} [HideEffect] Name of hide effect, default=hide
 * @option {String|Number} [EffectSpeed] Speed of show and hide effect, default=300
 * 
 * You need Dimensions Plugin for jQuery:
 * @option {String} [Fit2ViewportClass] class-value for submenu, wich does not fit the viewport-width, default=false (= don´t check viewport width)
 * @option {Number} [FitIfViewportSmaller] only check, wether submenus fit viewport-width, if viewport is smaller than given option, default=1111 (if you want to check always set it to 9999, yopu have to set "Fit2ViewportClass")

*/

//  You sould compress/obfuscate this javascript-file....
function DickerFisch($selektor,_settings) {
	//config start
	//classnames: Styles
	// _DF_hoverclass = Hover-Class für mouseover LI und LI-Eltern von fokusierten a-Elementen
	// _DF_parent_class = Wenn zur Kategorie noch Unterkategorien gehören wird das LI-Element ausgezeichnet
	// $ofocusstyle = Opera verliert optische Markierung bei Tastaturnutzung fügt ans fokusierte a die nachfolgende id an.
	var _DF_hoverclass = 'over', _DF_parent_class = 'parent',$ofocusstyle = 'ofocus';
	//Array 0 = ancestors of active li-category | 1 = active li category
	var _DF_ActiveCatnAncestorsofIT = new Array(".activepath", ".active");
	var _jsreadyclass = 'navfxenabled';
	//_DF_hideclass = Soll versteckt werden; _waitingnavclass = Wartet darauf ausgeklappt zu werden
	var  _DF_hideclass = 'DF_hidelis', _waitingnavclass = 'DF_waitlis';
	// effect css-class: visible class value and hidden class value see/same in CleanCSSAnimation/unMakeInlineCSS, will be removed after animation
	var $nodisClass = "displaynone",$disClass = "displayblock";
	//config end
	var _DF_obj = this;
	//optional parameter
	var _settings = _settings || this;
	this.NavTimeout = _settings.NavTimeout || 0;
	this.ListType = _settings.ListType || 'ul';
	this.Effect = (_settings.Effect) ? _settings.Effect : 0;
	this.ShowEffect = _settings.ShowEffect || 'show';
	this.HideEffect = _settings.HideEffect || 'hide';
	this.EffectSpeed = _settings.EffectSpeed || 300;
	this.FitIfViewportSmaller = _settings.FitIfViewportSmaller || 1111;
	this.Fit2ViewportClass = _settings.Fit2ViewportClass || false;
	this.LimitLinks = (typeof _settings.LimitLinks == "number") ? _settings.LimitLinks : 0;
	_DF_obj.LimitLinks = ($.browser.opera && _DF_obj.LimitLinks == "1") ? 0 : _DF_obj.LimitLinks;
	this._DF_NavTimeID;
	//methods

	this._fastpullout = function(_eventobj){
		var $fastpullreturn = false;
		if(typeof $($selektor+' li.'+_DF_hoverclass).get(0) == "undefined")
			$fastpullreturn = true;
		else {
			$fastpullreturn = true;
			$(_eventobj).siblings("li").each(function(i){
				if($(this).is('.'+_DF_hoverclass)){
					$fastpullreturn = false;
					return false; //=break
				}
			});
		}
		return $fastpullreturn;
	};
	this.$oldtimer = 0;
	this.$fastpullin = function(_eventobj){
		var $aktimer = (typeof _DF_obj.NavTimeout != "number") ? _DF_obj.NavTimeout[1] : _DF_obj.NavTimeout;
		if(typeof _DF_obj.NavTimeout != "number" && $(_eventobj).parents('li').length == "0" && !$(_eventobj).children(_DF_obj.ListType).children('li').is('.'+_DF_hoverclass))
			$aktimer = _DF_obj.NavTimeout[0];
		if($(_eventobj).is('.'+_DF_hoverclass) || _DF_obj.$oldtimer != $aktimer){
			window.clearTimeout(_DF_obj._DF_NavTimeID);
			_DF_obj._DF_NavTimeID = window.setTimeout(_DF_obj._hide,$aktimer);
		}
		_DF_obj.$oldtimer = $aktimer;
	};
	this.$navstatus = function(_eventobj,$action){
		if($action == "show"){
			$(_eventobj).addClass(_waitingnavclass).removeClass(_DF_hideclass);
			if(_DF_obj._fastpullout(_eventobj))
				_DF_obj.$show();
		}else if($action == "hide")
			$(_eventobj).removeClass(_waitingnavclass).addClass(_DF_hideclass);
		_DF_obj.$fastpullin(_eventobj,'pullin');
	};	
	this.$show = function(){
		_showobj = $selektor+' li.'+_waitingnavclass;
		if(_DF_obj.Effect == 1 || _DF_obj.Effect == 2)
			$(_showobj+':not(.'+_DF_hoverclass+')>'+_DF_obj.ListType).addClass($nodisClass).CleanCSSAnimation(_DF_obj.ShowEffect,_DF_obj.EffectSpeed,function(){
   				$(this).removeClass($disClass);
 			});
		$(_showobj).removeClass(_waitingnavclass).addClass(_DF_hoverclass);
	};
	this._hide = function(){
		$hideobj = $selektor+' li.'+_DF_hideclass;
		if(_DF_obj.Effect == 1 || _DF_obj.Effect == 3)
			$($hideobj).removeClass(_DF_hideclass).children(_DF_obj.ListType).CleanCSSAnimation(_DF_obj.HideEffect,_DF_obj.EffectSpeed,function(){
   				$(this).removeClass($nodisClass).parent('li').removeClass(_DF_hoverclass);
				_DF_obj.$show();
 			});
		else{
			$($hideobj).removeClass(_DF_hoverclass+' '+_DF_hideclass);
			_DF_obj.$show();
		}
	};
	this.FitToScreen = function($liobj){
		var $subpos = $($liobj).addClass(_DF_hoverclass).children(_DF_obj.ListType).css('visibility','hidden').offset({scroll:false})['left'] + $($liobj).children(_DF_obj.ListType).outerWidth();
		if(_viewport < $subpos)
			$($liobj).children(_DF_obj.ListType).addClass(_DF_obj.Fit2ViewportClass);
	};
	if(_DF_obj.Fit2ViewportClass){
		var _viewport = $(document).innerWidth();
		_DF_obj.Fit2ViewportClass = (_viewport < _DF_obj.FitIfViewportSmaller) ? _DF_obj.Fit2ViewportClass : false;
	}
	//Init
	//Ready -> let´s go
	
	$($selektor+">"+_DF_obj.ListType).addClass(_jsreadyclass).find("li["+_DF_obj.ListType+"]").each(function(){
		//Mouse Init
		$(this).hover(function() { 
				_DF_obj.$navstatus(this,'show');
			}, function() { 
				_DF_obj.$navstatus(this,'hide');
			}
		).addClass(_DF_parent_class).find('a').focus(function() {
			$(this).addClass($ofocusstyle);
			if(_DF_obj.LimitLinks < 1)
				$(this).parents('li').addClass(_DF_hoverclass);	
			else
				$(this).parents('li').filter(_DF_ActiveCatnAncestorsofIT[0]+','+_DF_ActiveCatnAncestorsofIT[1]).addClass(_DF_hoverclass);
		} ).blur(function() { 
			$(this).removeClass($ofocusstyle).parents("li").removeClass(_DF_hoverclass);
		});	
		if(_DF_obj.Fit2ViewportClass)
			_DF_obj.FitToScreen(this);
	});
	if(_DF_obj.Fit2ViewportClass)
		$($selektor+" li["+_DF_obj.ListType+"]").removeClass(_DF_hoverclass).children(_DF_obj.ListType).css('visibility','');
};







/**
* hoverIntent is similar to jQuery's built-in "hover" function except that
* instead of firing the onMouseOver event immediately, hoverIntent checks
* to see if the user's mouse has slowed down (beneath the sensitivity
* threshold) before firing the onMouseOver event.
* 
* hoverIntent r5 // 2007.03.27 // jQuery 1.1.2
* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
* 
* hoverIntent is currently available for use in all personal or commercial 
* projects under both MIT and GPL licenses. This means that you can choose 
* the license that best suits your project, and use it accordingly.
* 
* // basic usage (just like .hover) receives onMouseOver and onMouseOut functions
* $("ul li").hoverIntent( showNav , hideNav );
* 
* // advanced usage receives configuration object only
* $("ul li").hoverIntent({
*	sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)
*	interval: 50,   // number = milliseconds of polling interval
*	over: showNav,  // function = onMouseOver callback (required)
*	timeout: 100,   // number = milliseconds delay before onMouseOut function call
*	out: hideNav    // function = onMouseOut callback (required)
* });
* 
* @param  f  onMouseOver function || An object with configuration options
* @param  g  onMouseOut function  || Nothing (use configuration options object)
* @return    The object (aka "this") that called hoverIntent, and the event object
* @author    Brian Cherne <brian@cherne.net>
*/
(function($) {
	$.fn.hoverIntent = function(f,g) {
		// default configuration options
		var cfg = {
			sensitivity: 7,
			interval: 100,
			timeout: 0,
			animation : {opacity:'show'}
		};
		// override configuration options with user supplied object
		cfg = $.extend(cfg, g ? { over: f, out: g } : f );

		// instantiate variables
		// cX, cY = current X and Y position of mouse, updated by mousemove event
		// pX, pY = previous X and Y position of mouse, set by mouseover and polling interval
		var cX, cY, pX, pY;

		// A private function for getting mouse position
		var track = function(ev) {
			cX = ev.pageX;
			cY = ev.pageY;
		};

		// A private function for comparing current and previous mouse position
		var compare = function(ev,ob) {
			ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
			// compare mouse positions to see if they've crossed the threshold
			if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) {
				$(ob).unbind("mousemove",track);
				// set hoverIntent state to true (so mouseOut can be called)
				ob.hoverIntent_s = 1;
				return cfg.over.apply(ob,[ev]);
			} else {
				// set previous coordinates for next time
				pX = cX; pY = cY;
				// use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs)
				ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval );
			}
		};

		// A private function for delaying the mouseOut function
		var delay = function(ev,ob) {
			ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
			ob.hoverIntent_s = 0;
			return cfg.out.apply(ob,[ev]);
		};

		// A private function for handling mouse 'hovering'
		var handleHover = function(e) {
			// next three lines copied from jQuery.hover, ignore children onMouseOver/onMouseOut
			var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget;
			while ( p && p != this ) { try { p = p.parentNode; } catch(e) { p = this; } }
			if ( p == this ) { return false; }

			// copy objects to be passed into t (required for event object to be passed in IE)
			var ev = jQuery.extend({},e);
			var ob = this;

			// cancel hoverIntent timer if it exists
			if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); }

			// else e.type == "onmouseover"
			if (e.type == "mouseover") {
				// set "previous" X and Y position based on initial entry point
				pX = ev.pageX; pY = ev.pageY;
				// update "current" X and Y position based on mousemove
				$(ob).bind("mousemove",track);
				// start polling interval (self-calling timeout) to compare mouse coordinates over time
				if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );}

			// else e.type == "onmouseout"
			} else {
				// unbind expensive mousemove event
				$(ob).unbind("mousemove",track);
				// if hoverIntent state is true, then call the mouseOut function after the specified delay
				if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );}
			}
		};

		// bind the function to the two event listeners
		return this.mouseover(handleHover).mouseout(handleHover);
	};
})(jQuery);




/*
*/
function initializeLanguageDropDown() {		
		
	//	makeShort();
	//	$("#languagechanger").find(".languagechangerContent").css("height","0");
		
		$("#languagechanger").find(".languagechangerContent").hide();
		
		$("#languagechanger").hoverIntent({
		   sensitivity: 1, // number = sensitivity threshold (must be 1 or higher)
		   interval: 50, // number = milliseconds for onMouseOver polling interval
		   over: makeTall, // function = onMouseOver callback (required)
		   timeout: 250, // number = milliseconds delay before onMouseOut
		   out: makeShort // function = onMouseOut callback (required)
		});
}

function makeTall(){ 
	$(this).find(".languagechangerContent").animate({
	//	height:'show',	
		opacity: 'show'
			
		}, 'slow');	
		
}

function makeShort(){ 
	$(this).find(".languagechangerContent").animate({			
			opacity: 'hide',
			height:'hide'
			
		}, 'slow');
	
	
	
}

function initializeDropDown() {	
		
	
		

		

     
	  $("#sitechanger").find(".changer_content").hide();
	   
		$("#sitechanger").find(".title").toggle(function(){
			
		
						$("#sitechanger").find(".changer_content").animate({
			height: 'show',
		opacity: 'show'
			
		}, 'slow');	
		
	
				
			}, function() {
				
				$("#sitechanger").find(".changer_content").animate({
			height: 'hide',
			opacity: 'hide'
		}, 'slow');
				




						
		});
	
		
	};



// http://cherne.net/brian/resources/jquery.hoverIntent.html nachgucken bitte




/* Copyright (c) 2006 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.
 * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
 * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
 *
 * $LastChangedDate: 2007-03-06 20:55:27 +0000 (Tue, 06 Mar 2007) $
 * $Rev: 1497 $
 */
 
 //v1.0
 //Copyright 2006 Adobe Systems, Inc. All rights reserved.
 function AC_AddExtension(src, ext)
 {
   if (src.indexOf('?') != -1)
     return src.replace(/\?/, ext+'?'); 
   else
     return src + ext;
 }
 
 function AC_Generateobj(objAttrs, params, embedAttrs) 
 { 
   var str = '<object ';
   for (var i in objAttrs)
     str += i + '="' + objAttrs[i] + '" ';
   str += '>';
   for (var i in params)
     str += '<param name="' + i + '" value="' + params[i] + '" /> ';
   str += '<embed ';
   for (var i in embedAttrs)
     str += i + '="' + embedAttrs[i] + '" ';
   str += ' ></embed></object>';
 
   document.write(str);
 }
 
 function AC_FL_RunContent(){
   var ret = 
     AC_GetArgs
     (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
      , "application/x-shockwave-flash"
     );
   AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
 }
 
 function AC_SW_RunContent(){
   var ret = 
     AC_GetArgs
     (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
      , null
     );
   AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
 }
 
 function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
   var ret = new Object();
   ret.embedAttrs = new Object();
   ret.params = new Object();
   ret.objAttrs = new Object();
   for (var i=0; i < args.length; i=i+2){
     var currArg = args[i].toLowerCase();    
 
     switch (currArg){	
       case "classid":
         break;
       case "pluginspage":
         ret.embedAttrs[args[i]] = args[i+1];
         break;
       case "src":
       case "movie":	
         args[i+1] = AC_AddExtension(args[i+1], ext);
         ret.embedAttrs["src"] = args[i+1];
         ret.params[srcParamName] = args[i+1];
         break;
       case "onafterupdate":
       case "onbeforeupdate":
       case "onblur":
       case "oncellchange":
       case "onclick":
       case "ondblClick":
       case "ondrag":
       case "ondragend":
       case "ondragenter":
       case "ondragleave":
       case "ondragover":
       case "ondrop":
       case "onfinish":
       case "onfocus":
       case "onhelp":
       case "onmousedown":
       case "onmouseup":
       case "onmouseover":
       case "onmousemove":
       case "onmouseout":
       case "onkeypress":
       case "onkeydown":
       case "onkeyup":
       case "onload":
       case "onlosecapture":
       case "onpropertychange":
       case "onreadystatechange":
       case "onrowsdelete":
       case "onrowenter":
       case "onrowexit":
       case "onrowsinserted":
       case "onstart":
       case "onscroll":
       case "onbeforeeditfocus":
       case "onactivate":
       case "onbeforedeactivate":
       case "ondeactivate":
       case "type":
       case "codebase":
         ret.objAttrs[args[i]] = args[i+1];
         break;
       case "width":
       case "height":
       case "align":
       case "vspace": 
       case "hspace":
       case "class":
       case "title":
       case "accesskey":
       case "name":
       case "id":
       case "tabindex":
         ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
         break;
       default:
         ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
     }
   }
   ret.objAttrs["classid"] = classid;
   if (mimeType) ret.embedAttrs["type"] = mimeType;
   return ret;
 }




/* Copyright (c) 2006 Kelvin Luck (kelvin AT kelvinluck DOT com || http://www.kelvinluck.com)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * 
 * See http://kelvinluck.com/assets/jquery/jScrollPane/
 * $Id: jScrollPane.js 2537 2007-07-31 21:52:08Z kelvin.luck $
 */
 
 
(function($) {

$.fn.extend({
	/**
	 * Apply the mousewheel event to the elements in the jQuery object.
	 * The handler function should be prepared to take the event object
	 * and a param called 'delta'. The 'delta' param is a number
	 * either > 0 or < 0. > 0 = up and < 0 = down.
	 *
	 * @example $("p").mousewheel(function(event, delta){
	 *   if (delta > 0)
	 *     // do something on mousewheel scroll up
	 *   else if (delta < 0)
	 *     //do something on mousewheel scroll down
	 * });
	 *
	 * @name mousewheel
	 * @type jQuery
	 * @param Function handler A function to call when onmousewheel fires. Should take two params: event and delta.
	 * @cat Plugins/Mousewheel
	 * @author Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
	 */
	mousewheel: function(f) {
		if (!f.guid) f.guid = $.event.guid++;
		if (!$.event._mwCache) $.event._mwCache = [];
		
		return this.each( function() {
			if (this._mwHandlers) return this._mwHandlers.push(f);
			else this._mwHandlers = [];
			
			this._mwHandlers.push(f);
			
			var s = this;
			
			this._mwHandler = function(e) {
				e = $.event.fix(e || window.event);
				var delta = 0, returnValue = true;
				
				if (e.wheelDelta)  delta = e.wheelDelta/120;
				if (e.detail)      delta = -e.detail/3;
				if (window.opera)  delta = -e.wheelDelta;
				
				for (var i=0; i<s._mwHandlers.length; i++)
					if (s._mwHandlers[i])
						if ( s._mwHandlers[i].call(s, e, delta) === false ) {
							returnValue = false;
							e.preventDefault();
							e.stopPropagation();
						}
				
				return returnValue;
			};
			
			if (this.addEventListener)
				if ($.browser.mozilla) this.addEventListener('DOMMouseScroll', this._mwHandler, false);
				else                   this.addEventListener('mousewheel',     this._mwHandler, false);
			else
				$.event.add(this, 'mousewheel', this._mwHandler);
			
			$.event._mwCache.push( $(this) );
		});
	},
	
	/**
	 * This method removes one or all applied mousewheel events from the elements.
	 * You can remove a single handler function by passing it as the first param.
	 * If you do not pass anything, it will remove all handlers.
	 *
	 * @name unmousewheel
	 * @param Function handler The handler function to remove from the mousewheel event.
	 * @type jQuery
	 * @cat Plugins/Mousewheel
	 * @author Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
	 */
	unmousewheel: function(f) {
		return this.each( function() {
			if ( f && this._mwHandlers ) {
				for (var i=0; i<this._mwHandlers.length; i++)
					if (this._mwHandlers[i] && this._mwHandlers[i].guid == f.guid)
						delete this._mwHandlers[i];
			} else {
				if (this.addEventListener)
					if ($.browser.mozilla) this.removeEventListener('DOMMouseScroll', this._mwHandler, false);
					else                   this.removeEventListener('mousewheel',     this._mwHandler, false);
				else
					$.event.remove(this, 'mousewheel', this._mwHandler);
					
				this._mwHandlers = this._mwHandler = null;
			}
		});
	}
});

// clean-up
$(window)
	.bind('unload', function() {
		var els = $.event._mwCache || [];
		for (var i=0; i<els.length; i++)
			els[i].unmousewheel();
	});
	
})(jQuery); 
 
 
			$(function()
			{

				$('#change-site').jScrollPane({scrollbarWidth:11, scrollbarMargin:10, showArrows:true});
                

			});
 

 jQuery.jScrollPane={active:[]};jQuery.fn.jScrollPane=function(settings){settings=jQuery.extend({scrollbarWidth:10,scrollbarMargin:5,wheelSpeed:18,showArrows:false,arrowSize:undefined,animateTo:false,dragMinHeight:1,dragMaxHeight:99999},settings);return this.each(function(){var $this=jQuery(this);if(jQuery(this).parent().is('.jScrollPaneContainer')){var $c=jQuery(this).parent();var paneWidth=$c.innerWidth();var paneHeight=$c.outerHeight();var trackHeight=paneHeight;if($c.unmousewheel){$c.unmousewheel()}jQuery('>.jScrollPaneTrack, >.jScrollArrowUp, >.jScrollArrowDown',$c).remove();$this.css({'top':0})}else{this.originalPadding=$this.css('paddingTop')+' '+$this.css('paddingRight')+' '+$this.css('paddingBottom')+' '+$this.css('paddingLeft');this.originalSidePaddingTotal=(parseInt($this.css('paddingLeft'))||0)+(parseInt($this.css('paddingRight'))||0);var paneWidth=$this.innerWidth();var paneHeight=$this.innerHeight();var trackHeight=paneHeight;$this.wrap(jQuery('<div>').attr({'className':'jScrollPaneContainer'}).css({'height':paneHeight+'px','width':paneWidth+'px'}))}var p=this.originalSidePaddingTotal;$this.css({'height':'auto','width':paneWidth-settings.scrollbarWidth-settings.scrollbarMargin-p+'px','paddingRight':settings.scrollbarMargin+'px'});var contentHeight=$this.outerHeight();var percentInView=paneHeight/contentHeight;if(percentInView<.98){var $container=$this.parent();$container.append(jQuery('<div>').attr({'className':'jScrollPaneTrack'}).css({'width':settings.scrollbarWidth+'px'}).append(jQuery('<div>').attr({'className':'jScrollPaneDrag'}).css({'width':settings.scrollbarWidth+'px'}).append(jQuery('<div>').attr({'className':'jScrollPaneDragTop'}).css({'width':settings.scrollbarWidth+'px'}),jQuery('<div>').attr({'className':'jScrollPaneDragBottom'}).css({'width':settings.scrollbarWidth+'px'}))));var $track=jQuery('>.jScrollPaneTrack',$container);var $drag=jQuery('>.jScrollPaneTrack .jScrollPaneDrag',$container);if(settings.showArrows){var currentArrowButton;var currentArrowDirection;var currentArrowInterval;var currentArrowInc;var whileArrowButtonDown=function(){if(currentArrowInc>4||currentArrowInc%4==0){positionDrag(dragPosition+currentArrowDirection*mouseWheelMultiplier)}currentArrowInc++};var onArrowMouseUp=function(event){jQuery('body').unbind('mouseup',onArrowMouseUp);currentArrowButton.removeClass('jScrollActiveArrowButton');clearInterval(currentArrowInterval)};var onArrowMouseDown=function(){jQuery('body').bind('mouseup',onArrowMouseUp);currentArrowButton.addClass('jScrollActiveArrowButton');currentArrowInc=0;whileArrowButtonDown();currentArrowInterval=setInterval(whileArrowButtonDown,100)};$container.append(jQuery('<a>').attr({'href':'javascript:;','className':'jScrollArrowUp'}).css({'width':settings.scrollbarWidth+'px'}).html('Scroll up').bind('mousedown',function(){currentArrowButton=jQuery(this);currentArrowDirection=-1;onArrowMouseDown();this.blur();return false}),jQuery('<a>').attr({'href':'javascript:;','className':'jScrollArrowDown'}).css({'width':settings.scrollbarWidth+'px'}).html('Scroll down').bind('mousedown',function(){currentArrowButton=jQuery(this);currentArrowDirection=1;onArrowMouseDown();this.blur();return false}));if(settings.arrowSize){trackHeight=paneHeight-settings.arrowSize-settings.arrowSize;$track.css({'height':trackHeight+'px',top:settings.arrowSize+'px'})}else{var topArrowHeight=jQuery('>.jScrollArrowUp',$container).height();trackHeight=paneHeight-topArrowHeight-jQuery('>.jScrollArrowDown',$container).height();$track.css({'height':trackHeight+'px',top:topArrowHeight+'px'})}}var $pane=jQuery(this).css({'position':'absolute','overflow':'visible'});var currentOffset;var maxY;var mouseWheelMultiplier;var dragPosition=0;var dragMiddle=percentInView*paneHeight/2;var getPos=function(event,c){var p=c=='X'?'Left':'Top';return event['page'+c]||(event['client'+c]+(document.documentElement['scroll'+p]||document.body['scroll'+p]))||0};var ignoreNativeDrag=function(){return false};var initDrag=function(){ceaseAnimation();currentOffset=$drag.offset(false);currentOffset.top-=dragPosition;maxY=trackHeight-$drag[0].offsetHeight;mouseWheelMultiplier=2*settings.wheelSpeed*maxY/contentHeight};var onStartDrag=function(event){initDrag();dragMiddle=getPos(event,'Y')-dragPosition-currentOffset.top;jQuery('body').bind('mouseup',onStopDrag).bind('mousemove',updateScroll);if(jQuery.browser.msie){jQuery('body').bind('dragstart',ignoreNativeDrag).bind('selectstart',ignoreNativeDrag)}return false};var onStopDrag=function(){jQuery('body').unbind('mouseup',onStopDrag).unbind('mousemove',updateScroll);dragMiddle=percentInView*paneHeight/2;if(jQuery.browser.msie){jQuery('body').unbind('dragstart',ignoreNativeDrag).unbind('selectstart',ignoreNativeDrag)}};var positionDrag=function(destY){destY=destY<0?0:(destY>maxY?maxY:destY);dragPosition=destY;$drag.css({'top':destY+'px'});var p=destY/maxY;$pane.css({'top':((paneHeight-contentHeight)*p)+'px'})};var updateScroll=function(e){positionDrag(getPos(e,'Y')-currentOffset.top-dragMiddle)};var dragH=Math.max(Math.min(percentInView*paneHeight,settings.dragMaxHeight),settings.dragMinHeight);$drag.css({'height':dragH+'px'}).bind('mousedown',onStartDrag);var trackScrollInterval;var trackScrollInc;var trackScrollMousePos;var doTrackScroll=function(){if(trackScrollInc>8||trackScrollInc%4==0){positionDrag((dragPosition-((dragPosition-trackScrollMousePos)/2)))}trackScrollInc++};var onStopTrackClick=function(){clearInterval(trackScrollInterval);jQuery('body').unbind('mouseup',onStopTrackClick).unbind('mousemove',onTrackMouseMove)};var onTrackMouseMove=function(event){trackScrollMousePos=getPos(event,'Y')-currentOffset.top-dragMiddle};var onTrackClick=function(event){initDrag();onTrackMouseMove(event);trackScrollInc=0;jQuery('body').bind('mouseup',onStopTrackClick).bind('mousemove',onTrackMouseMove);trackScrollInterval=setInterval(doTrackScroll,100);doTrackScroll()};$track.bind('mousedown',onTrackClick);if($container.mousewheel){$container.mousewheel(function(event,delta){initDrag();ceaseAnimation();var d=dragPosition;positionDrag(dragPosition-delta*mouseWheelMultiplier);var dragOccured=d!=dragPosition;return!dragOccured},false)}var _animateToPosition;var _animateToInterval;function animateToPosition(){var diff=(_animateToPosition-dragPosition)/3;if(diff>1||diff<-1){positionDrag(dragPosition+diff)}else{positionDrag(_animateToPosition);ceaseAnimation()}}var ceaseAnimation=function(){if(_animateToInterval){clearInterval(_animateToInterval);delete _animateToPosition}};var scrollTo=function(pos){ceaseAnimation();var destDragPosition=-pos/(paneHeight-contentHeight)*maxY;if(settings.animateTo){_animateToPosition=destDragPosition;_animateToInterval=setInterval(animateToPosition,100)}else{positionDrag(destDragPosition)}};$this[0].scrollTo=scrollTo;$this[0].scrollBy=function(delta){var currentPos=-parseInt($pane.css('top'))||0;scrollTo(currentPos+delta)};initDrag();jQuery.jScrollPane.active.push($this[0])}else{$this.css({'height':paneHeight+'px','width':paneWidth-this.originalSidePaddingTotal+'px','padding':this.originalPadding})}})};jQuery(window).bind('unload',function(){var els=jQuery.jScrollPane.active;for(var i=0;i<els.length;i++){els[i].scrollTo=els[i].scrollBy=null}});
 
 



/*  ================================================================================
TOC
============================================================
Set Adjustment
Page Scroller
============================================================
this script requires jQuery 1.1.3.(http://jquery.com/)
use $j not $
================================================================================  */


/*  ================================================================================
Set Adjustment
================================================================================  */
var virtualTopId = "top",
    virtualTop,
    adjTraverser,
    adjPosition;

/* example
======================================================================  */
//    virtualTop = 0;    // virtual top's left position = 0
//    virtualTop = 1;    // virtual top's left position = vertical movement
//    adjTraverser = 0;  // left position = 0
//    adjTraverser = 1;  // horizontal movement.
//    adjPosition = -26;


/*  ================================================================================
Page Scroller
================================================================================  */
eval(function(p,a,c,k,e,d){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--)d[e(c)]=k[c]||e(c);k=[function(e){return d[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 $j=10.1v();(d($j){9 r=$j.D.r,B=$j.D.B,E=$j.D.E,z=$j.D.z;$j.D.1y({B:d(){4(!8[0])G();4(8[0]==f)b 1f.1x||$j.1r&&3.v.1i||3.c.1i;4(8[0]==3)b((3.v&&3.1q=="1m")?3.v.1c:3.c.1c);b B.1p(8,X)},r:d(){4(!8[0])G();4(8[0]==f)b 1f.1w||$j.1r&&3.v.1t||3.c.1t;4(8[0]==3)b((3.v&&3.1q=="1m")?3.v.1n:3.c.1n);b r.1p(8,X)},E:d(){4(!8[0])G();9 e=3.H?3.H(8[0].s):3.15(8[0].s);9 g=13 11();g.x=e.Z;12((e=e.19)!=1a){g.x+=e.Z}4((g.x*0)==0)b(g.x);m b(8[0].s)},z:d(){4(!8[0])G();9 e=3.H?3.H(8[0].s):3.15(8[0].s);9 g=13 11();g.y=e.Y;12((e=e.19)!=1a){g.y+=e.Y}4((g.y*0)==0)b(g.y);m b(8[0].s)}})})(10);$j(d(){$j(\'a[@I*="#"]\').1K(d(){9 18=Q.1L+Q.1I;9 17=((8.I).1J(0,(((8.I).14)-((8.N).14)))).1N((8.I).1M("//")+2);4(17==18){i.1b((8.N).1H(1));b 1B}})});9 i={O:d(A){4(A=="x")b(($j(3).B())-($j(f).B()));m 4(A=="y")b(($j(3).r())-($j(f).r()))},T:d(A){4(A=="x")b(f.W||3.c.C||3.c.M.C);m 4(A=="y")b(f.1C||3.c.1o||3.c.M.1o)},K:d(k,h,t,n,o){9 u;4(u)U(u);9 1d=16;9 F=i.T(\'x\');9 J=i.T(\'y\');4(!k||k<0)k=0;4(!h||h<0)h=0;4(!t)t=$j.1l.1z?7:$j.1l.1A?5:6;4(!n)n=0+F;4(!o)o=0+J;n+=(k-F)/t;4(n<0)n=0;o+=(h-J)/t;4(o<0)o=0;9 S=w.1u(n);9 V=w.1u(o);f.1F(S,V);4((w.1s(w.1e(F-k))<1)&&(w.1s(w.1e(J-h))<1)){U(u);f.1G(k,h)}m 4((S!=k)||(V!=h))u=1D("i.K("+k+","+h+","+t+","+n+","+o+")",1d);m U(u)},1b:d(l){9 q,p;4(!!l){4(l==1E){q=(L==0)?0:(L==1)?f.W||3.c.C||3.c.M.C:$j(\'#\'+l).E();p=((L==0)||(L==1))?0:$j(\'#\'+l).z()}m{q=(1j==0)?0:(1j==1)?($j(\'#\'+l).E()):f.W||3.c.C||3.c.M.C;p=1k?($j(\'#\'+l).z())+1k:($j(\'#\'+l).z())}9 P=i.O(\'x\');9 R=i.O(\'y\');4(((q*0)==0)||((p*0)==0)){9 1h=(q<1)?0:(q>P)?P:q;9 1g=(p<1)?0:(p>R)?R:p;i.K(1h,1g)}m Q.N=l}m i.K(0,0)}};',62,112,'|||document|if||||this|var||return|body|function|obj|window|tagCoords|toY|coliss||toX|idName|else|frX|frY|anchorY|anchorX|height|id|frms|pageScrollTimer|documentElement|Math|||top|type|width|scrollLeft|fn|left|actX|error|getElementById|href|actY|pageScroll|virtualTop|parentNode|hash|getScrollRange|dMaxX|location|dMaxY|posX|getWindowOffset|clearTimeout|posY|pageXOffset|arguments|offsetTop|offsetLeft|jQuery|Object|while|new|length|all||anchorPath|usrUrl|offsetParent|null|toAnchor|scrollWidth|spd|abs|self|setY|setX|clientWidth|adjTraverser|adjPosition|browser|CSS1Compat|scrollHeight|scrollTop|apply|compatMode|boxModel|floor|clientHeight|ceil|noConflict|innerHeight|innerWidth|extend|mozilla|opera|false|pageYOffset|setTimeout|virtualTopId|scrollTo|scroll|substr|pathname|substring|click|hostname|indexOf|slice'.split('|'),0,{}))


jQuery.fn.shortkeys = jQuery.fn.keys = function (obj, settings) {		
	var el = this;
	this.settings = jQuery.extend({
			split: "+",
			moreKeys: {}			
		}, settings || {});	
	this.wackyKeys = { '.': 190, ',': 188, ';': 59,	'Space': 32	};	
	this.formElements  = new Array("input", "select", "textarea", "button");
	this.keys = new Array();	
	this.onFormElement = false;
	this.keysDown = new Array();
	this.init = function (obj) {
		for(x in this.wackyKeys) {
			this.wackyKeys[x.toUpperCase()] = this.wackyKeys[x];
		}
		for(x in obj) {
			this.keys.push(x.split(this.settings.split));
		}
		for(i in this.keys) {
			var quickArr = new Array();
			for(j in this.keys[i]) {
				quickArr.push(this.convertToNumbers(this.keys[i][j].toUpperCase()));
			}
			quickArr.sort();
			this.keys[i] = quickArr;
		}
	};	
	this.convertToNumbers = function (inp) {
		if (this.wackyKeys[inp] != undefined) {
			return this.wackyKeys[inp];
		}
		return inp.toUpperCase().charCodeAt(0);
	};	
	this.keyAdd = function(keyCode) {
		this.keysDown.push(keyCode);
		this.keysDown.sort();
	};
	this.keyRemove = function (keyCode) {
		for(i in this.keysDown) {
			if(this.keysDown[i] == keyCode) {
				this.keysDown.splice(i,1);
			}
		};	
		this.keysDown.sort();	
	};		
	this.keyTest = function (i) {
		if (this.keys[i].length != this.keysDown.length) return false;
		for(j in this.keys[i]) {
			if(this.keys[i][j] != this.keysDown[j]) {
				return false;
			}
		}	
		return true;
	};
	this.keyRemoveAll = function () {
		this.keysDown = new Array();	
	};
	this.focused = function (bool) {
		this.onFormElement = bool;
	}	
	$(document).keydown(function(e) {
		el.keyAdd(e.keyCode);
		var i = 0;
		for(x in obj) {
			if(el.keyTest(i) && !el.onFormElement) {
				obj[x]();
				return false;
				break;	
			}			
			i++;
		};	
	});	
	$(document).keyup(function (e) {
		el.keyRemove(e.keyCode);
	});	
	for(x in this.formElements) {
		$(this.formElements[x]).focus( function () {
			el.focused(true);
		});
		$(this.formElements[x]).blur( function () {
			el.focused(false);
		});
	}	
	$(document).focus( function () {
		el.keyRemoveAll();
	});
	
	this.init(obj);
	jQuery.extend(this.wackyKeys, this.settings.moreKeys);

	return this;
}


