var DL_bNS4=(document.layers);
var DL_bNS6 = (navigator.vendor == ("Netscape6") || navigator.product == ("Gecko"));
var DL_bDOM=(document.getElementById);
var DL_bIE=(document.all);
var DL_bIE4=(DL_bIE && !DL_bDOM);
var DL_bMac = (navigator.appVersion.indexOf("Mac") != -1);
var DL_bIEMac=(DL_bIE && DL_bMac);
var DL_bIE4Mac=(DL_bIE4 && DL_bMac);
var DL_bNS =(DL_bNS4 || DL_bNS6);
var esxwin = '';

function windowWidth() {
	if (window.innerWidth != null){ return window.innerWidth; }
	if (document.body.clientWidth != null) { return document.body.clientWidth;  }
	return (0);
}

function windowHeight() {
	if (window.innerHeight != null){ return window.innerHeight; }
	if (document.body.clientHeight != null) { return document.body.clientHeight;  }
	return (0);
}

function confirmSubmit()
{
var agree=confirm("Are you sure?");
if (agree)
	return true ;
else
	return false ;
}

function DoNav(theUrl)
{
  parent.cont.location.href = theUrl;
}

var gMessage = "";
	// Validate the form data
	
function validate(f) {

	var result =  true;
	var e = f.elements;
	var alt = "";

    

	for( var i=0; i < e.length; i++ ) {

	    alt =  e[i].getAttribute('alt');

	    if( undefined != alt && "" != alt){

        if( e[i].name.toLowerCase() == "email" || e[i].name.toLowerCase() == "e-mail") {
  				if( doError(checkEmail(e[i]), e[i]) ) result = false;
  			}
            else if (e[i].tagName.toLowerCase() == 'select'){

                var li = e[i].selectedIndex;
                var v = e[i].options[li].value;
                if (v == '0') v=0;

        		if( doError(v, e[i]) ) result = false;
        	}
            else {

                var v = e[i].value.length;
                if (e[i].type == 'checkbox')
                    if (!e[i].checked) v=0;
                if( doError(v, e[i]) ) result = false;

            }

	    }
	}

	if( !result )
	    alert(VALIDMSG_INCOMPLETE + "\n" + gMessage);

	gMessage = "";

	return(result);
}

function doError(ok, item) {
	var name = item.getAttribute('alt');
	if( !ok ) {
		gMessage += "* " + name + "\n";
	}
	return( !ok );
}

function checkEmail(item) {
	var str = item.value;
	if( window.RegExp ) {
		var reg1str = "(@.*@)|(\\.\\.)|(@\\.)|(\\.@)|(^\\.)";
    	var reg2str = "^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$";
    	var reg1 = new RegExp(reg1str);
    	var reg2 = new RegExp(reg2str);
    	if( !reg1.test(str) && reg2.test(str) ) {
      		return true;
    	}
		return false;
	}
	else {
		if( str.indexOf("@") >= 0 )
			return true;
    return false;
	}
}

function wpopup( url, w, h ) {

  var winl = parseInt(screen.width -w)/2;
  var wint = parseInt(screen.height-h)/2;
  var title = "MALAMATINA";

  settings='height=' + h + ',width=' + w + ',top=' + wint + ',left=' + winl + ',scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no,dependent=no';

  if (typeof(esxwin) != "undefined" && esxwin.closed == false) {

    esxwin.close();

  }

  esxwin=window.open(url,title,settings);
  if(parseInt(navigator.appVersion) >= 4){esxwin.window.focus();}

}

function showmsg(ferrors){

	for( var i=0; i < ferrors.length; i++ ) {

	    gMessage += ferrors[i] + "\n";

	}

	alert(VALIDMSG_INCOMPLETE + "\n" + gMessage);
    gMessage = "";
}

function SymError()
{
  return true;
}

window.onerror = SymError;

function stoperror(){
return true
}
window.onerror=stoperror

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

var color = '';

function over(a,b,c,d,id,cc) {

    MM_swapImage(a,b,c,d);

    if (document.getElementById) {
        color = document.getElementById(id).style.backgroundColor;
        document.getElementById(id).style.backgroundColor = cc;

    }

}

function out(id) {

    MM_swapImgRestore();

    if (document.getElementById)
        document.getElementById(id).style.backgroundColor  = color;



}

function subCancel (subID,col){

  var sub = document.getElementById(subID);
  sub.style.background = col;
}

function subHover (subID,col){

  var sub = document.getElementById(subID);
  sub.style.background = col;

}

function rate(rt,f) {

  for (i = 1; i <= rt; i++) {

    r = i/2;
    temp = r.toString();


    if (temp.length > 1) {

      side = 1;

    }
    else {

      side = 2;

    }


    MM_swapImage("rate"+i,"","images/"+f+"rate_"+side+".gif",1);

  }

}

var xMouseOffset = 20;
var yMouseOffset = 20;
var timeoutID;

// function triggered by glossary term mouseover events does the core
// work of positioning the definition "window" for the particular browser
// in use and enables its visibility
function showHint( domId, eventObj,title,txt)
{
    var theWidth = 0
    var theHeight = 0

    if(eventObj) {

    	hideHint(domId);

        // move popup div to current cursor position
	    // (add scrollTop to account for scrolling for IE)
	    var left = mouseX(eventObj) + xMouseOffset + "px";
	    var top = mouseY(eventObj) + yMouseOffset + "px";

	    setIdProperty( domId, "left", left )
	    setIdProperty( domId, "top", top )

        document.getElementById( domId +"_title" ).innerHTML = title;
        document.getElementById( domId +"_txt").innerHTML = txt;

	    // timeout delay
	    timeoutID = window.setTimeout( 'setIdProperty( "'+ domId + '", "visibility", "visible" );', 100 );

    }
}

function hideHint( domId )
{
     //alert('ok');
    // cancel the dely on the show code
    window.clearTimeout(timeoutID);
    setIdProperty( domId, "visibility", "hidden" );
    document.getElementById( domId +"_title" ).innerHTML = "";
    document.getElementById( domId +"_txt" ).innerHTML = "";

}


// function for poking a new property value into a DOM element;
// used here to toggle the visibility of the floating definition "window"
function setIdProperty( id, property, value )
{
    var styleObject = document.getElementById( id );
    if (styleObject != null)
    {
        styleObject = styleObject.style;
        styleObject[ property ] = value;
    }
}

function mouseX(evt) {
if (evt.pageX) return evt.pageX;
else if (evt.clientX)
   return evt.clientX + (document.documentElement.scrollLeft ?
   document.documentElement.scrollLeft :
   document.body.scrollLeft);
else return null;
}

function mouseY(evt) {
if (evt.pageY) return evt.pageY;
else if (evt.clientY)
   return evt.clientY + (document.documentElement.scrollTop ?
   document.documentElement.scrollTop :
   document.body.scrollTop);
else return null;
}

function toggleLink(id, lbldn, lblup){

    var togleTxt = document.getElementById( id+'_txt' );
    var togleImg = document.getElementById( id+'_img' );

    if (togleTxt.innerHTML == lbldn){

        togleTxt.innerHTML = lblup
        togleImg.src = "images/cat_sml_up_arr.gif"

    } else {

        togleTxt.innerHTML = lbldn
        togleImg.src = "images/cat_sml_dn_arr.gif"

    }

}

function showBios(id){

    var oldId = 1;

    if (document.getElementById( 'bio_'+id ).style.display == 'none')
        enableToggleButtons(0);

    for (i = 1; i <= 4; i++) {

        if ((document.getElementById( 'bio_' + i ).style.display != 'none') && i != id ) {

            oldId = i;
            Effect.toggle('bio_'+ i,'slide');

        }

    }


    if (document.getElementById( 'bio_'+id ).style.display == 'none'){
        window.setTimeout( 'sToggle('+oldId+','+id+');', 1200 );

    }


}

function sToggle(oldId, id){

document.getElementById( 'bios_sel_' + oldId ).style.backgroundColor = "";
document.getElementById( 'bios_sel_' + oldId + '_a' ).style.color = "#ffdc00";
document.getElementById( 'bios_sel_' + oldId + '_b' ).style.color = "#ffffff";
document.getElementById( 'bios_line_' + oldId ).style.display = "none";
document.getElementById( 'bios_link_' + oldId ).className  = "bio_img_btn";

document.getElementById( 'bios_sel_' + id ).style.backgroundColor = "#a4c517";
document.getElementById( 'bios_sel_' + id + '_a' ).style.color = "#2f4d02";
document.getElementById( 'bios_sel_' + id + '_b' ).style.color = "#2f4d02";
document.getElementById( 'bios_line_' + id ).style.display = "block";
document.getElementById( 'bios_link_' + id ).className  = "bio_img_btn_a";
Effect.toggle('bio_'+ id,'slide');

window.setTimeout( 'enableToggleButtons(1);', 1200 );

}

function enableToggleButtons(flag){

    for (i = 1; i <= 4; i++) {

        if (flag == 1)
            document.getElementById( 'bios_link_' + i ).href = "javascript:showBios("+i+");";
        else
            document.getElementById( 'bios_link_' + i ).href = "javascript:return;";

    }

}

function openZoom(id,txt,img){

    document.getElementById( id+'_txt' ).innerHTML = "";
    document.getElementById( id+'_img' ).src = "images/spacer.gif";

    document.getElementById( id+'_txt' ).innerHTML = txt;
    document.getElementById( id+'_img' ).src = "images/"+img+"_lrg.jpg";
    document.getElementById( id ).style.display = "block";

}

function closeZoom(id) {
    document.getElementById( id ).style.display = "none";
}


function openZoom1(id,img){

    document.getElementById( id+'_img' ).src = "images/spacer.gif";

    document.getElementById( id+'_img' ).src = "downloads/lrg_"+img;
    document.getElementById( id ).style.display = "block";

}

function openZoom2(id,img){

    document.getElementById( id+'_img' ).src = "images/spacer.gif";

    document.getElementById( id+'_img' ).src = "images/"+img;
    document.getElementById( id ).style.display = "block";

}


function openWine (id,img) {

document.getElementById( 'packaging' ).style.display = "block";
openZoom (id,'',img)
}

function closeWine(id) {
closeZoom('packaging');
closeZoom(id);
}

var last_pane = "";

function showPane(id){

    if (last_pane != "")
        if (document.getElementById( last_pane ).style.display == 'block' && id != last_pane)
            document.getElementById( last_pane ).style.display = 'none';

    document.getElementById( id ).style.display = 'block';
    last_pane = id;



}

function hidePane(id) {

    document.getElementById( id ).style.display = 'none';

}

function developPhoto(id){

	var t = document.getElementById( id );

    if (t.style['opacity'] != "" && t.style['opacity'] != undefined){
        v = (t.style['opacity']*100);
    }else if(t.filters){
        if(t.filters.alpha['opacity'] != "" && t.filters.alpha['opacity'] != undefined)
            v = t.filters.alpha['opacity'];
    }else {
        v = 15;
    }
    changeAlpha (id,v);

}

function changeAlpha(id, v){

	var t = document.getElementById( id );


    if (v < 100) {

      v +=1;

      t.style['opacity'] = v / 100;
      t.style['-moz-opacity'] = v / 100;
      if(t.filters) t.filters.alpha['opacity'] = v;

      window.setTimeout( 'changeAlpha("'+id+'",'+v+');', 10 );

    }

}


function more( url ) {

  var winl = parseInt(screen.width -600)/2;
  var wint = parseInt(screen.height-450)/2;
  var title = "MALAMATINA";

  settings='height=450,width=600,top=' + wint + ',left=' + winl + ',scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=no,dependent=no';
	win=window.open(url,title,settings);

	if(parseInt(navigator.appVersion) >= 4){win.window.focus();}

}

function checkIntKey(objText)
{
	if (isNaN(objText.value) || objText.value.substring(objText.value.length - 1, objText.value.length) == "," || objText.value.substring(objText.value.length - 1, objText.value.length) == ".")
		{
			objText.value = objText.value.substring(0, objText.value.length - 1);
		}
}

function submitenter(field,e)
{
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;

if (keycode == 13)
   {
   field.form.submit();
   return false;
   }
else
   return true;
}

function showSubMemMenu (){


}

function ShowTab(sel,tabs,flag){

    for(var i=1; i <= tabs;i++) {
        if(flag == 0){
        document.getElementById('tab_'+i).className = "normTab";
        }
        document.getElementById('tabpane_'+i).style["display"] = "none";

    }

    document.getElementById('tabpane_3').style["display"] = "none";

    if(flag == 0){
    document.getElementById('tab_'+sel).className = "curTab";
    }
    document.getElementById('tabpane_'+sel).style["display"] = "block";

}

function GetHeight() {
	if (window.pageYOffset != null) { /* moz and safari */
		pos = window.pageYOffset;
		ph = document.documentElement.scrollHeight;
		pw = document.documentElement.scrollWidth;
		if (document.body.scrollHeight > document.documentElement.scrollHeight) {
			ph = document.body.scrollHeight;
			pw = document.body.scrollWidth;
		}
	} else if (document.documentElement.scrollTop > document.body.scrollTop) { /* ie, catch if Standards compliance mode */
		pos = document.documentElement.scrollTop;
		ph = document.documentElement.scrollHeight;
		pw = document.documentElement.scrollWidth;
		if (document.documentElement.clientHeight > document.documentElement.scrollHeight) {
			ph = document.documentElement.clientHeight;
		}
	} else if (document.body != null) { /* if IE 5.5 */
		pos = document.body.scrollTop;
		ph = document.body.scrollHeight;
		pw = document.body.scrollWidth;
		if (document.documentElement.scrollHeight > document.body.scrollHeight) {
			ph = document.documentElement.scrollHeight;
		}
		ph = ph + pos; /* fix box model */
	}

    return ph;
}


function GetViewportHeight(){

 var viewportwidth;
 var viewportheight;

 // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight

 if (typeof window.innerWidth != 'undefined') {
      viewportwidth = window.innerWidth
      viewportheight = window.innerHeight
 } else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0) {
       viewportwidth = document.documentElement.clientWidth
       viewportheight = document.documentElement.clientHeight
 } else {
       viewportwidth = document.getElementsByTagName('body')[0].clientWidth
       viewportheight = document.getElementsByTagName('body')[0].clientHeight
 }

 return viewportheight;

}

var xmlHttp = GetXmlHttpObject();
var dstObj;
var srcObj;
var e;

function GetXmlHttpObject(handler)
{
	if (window.XMLHttpRequest) {
		return new XMLHttpRequest();
	} else if(window.ActiveXObject) {
		return new ActiveXObject("Microsoft.XMLHTTP");
	} else {
		alert("Your browser does not support this feature.  Please upgrade or use a different browser. Older (pre-v2.8) versions of Order Editor do not have this restriction.");
	}
}


function none() {}

function SetPopupPane(qStr)
{

   url = "115_years.php";

   if (xmlHttp==null)
   {
       alert ("Browser does not support HTTP Request");
       return;
   }

   url=url+"?"+qStr;
   url=url+"&sid="+Math.random();


   xmlHttp.onreadystatechange=function() {
  // in case of network errors this might not give reliable results
        if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
        {

           showPopupPane();

           document.getElementById("content").innerHTML = xmlHttp.responseText;

           document.getElementById("popupPane").style.display = "block";
           if(IE6) setVisibilityOfAllSelectFields('hidden');

        }
  }

   xmlHttp.open("GET",url,true);
   xmlHttp.send(null);
}

var curW = 682;
var curH = 482;

function showPopupPane()
{

    var winW = curW = 682;
    var winH = curH = 482;

    var docH = maxH = GetHeight();
    var viewH = GetViewportHeight();
    if (viewH < 482) viewH = 482;

    if (maxH < curH) {

      maxW = (100 / (curH / maxH)) * 0.01;
      winW = curW =(curW * maxW);
      winH = curH = maxH;

    }

    if (winW < 682) winW = 682;
    if (winH < 482) winH = 482;

    if (viewH < winH){
        document.getElementById("popupPane").style.overflow = "auto";
    } else {
        document.getElementById("popupPane").style.overflow = "hidden";
    }

    var margTop = Math.round(viewH/2) + (posTop() - Math.round(curH/2));

    document.getElementById("popupPane").style.height = docH +"px"
    document.getElementById("popupBackground").style.height = docH +"px";
    document.getElementById("popupContent").style.width = (winW+2)+"px";
    document.getElementById("popupContent").style.height = (winH+2)+"px";
    document.getElementById("popupContent").style.marginLeft = -((winW/2)-5)+"px";
    document.getElementById("popupContent").style.marginTop = "30px";//margTop+"px";

}

function hidePopupPane()
{
    document.getElementById("content").innerHTML = "";
	document.getElementById("popupPane").style.display = "none";
    if(IE6) setVisibilityOfAllSelectFields('visible');

}

//window.onscroll = movePopups;

function movePopups() {

    if(document.getElementById("popupContent")) {
        var viewH = GetViewportHeight();
        if (viewH < 482) viewH = 482;
        var margTop = Math.round(viewH/2) + (posTop() - Math.round(curH/2));
        document.getElementById("popupContent").style.marginTop = margTop + 'px'; ;

    }
}

function posTop() {return typeof window.pageYOffset != 'undefined' ?  window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ? document.body.scrollTop : 0;}
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}('6 B=7(){6 1j="2.0.2ruzee";6 $23=/\\s*,\\s*/;6 B=7($9,$$a){6 $c=[];6 $1h=o.2q.1Q&&!$$a;6 $1k=($$a)?($$a.2g==1t)?$$a:[$$a]:[z];6 $$u=14($9).1w($23),i;m(i=0;i<$$u.p;i++){$9=1q($$u[i]);b(P&&$9.Z(0,3).1R("")==" *#"){$9=$9.Z(2);$$a=24([],$1k,$9[1])}1s $$a=$1k;6 j=0,$I,$x,$o,$M="";H(j<$9.p){$I=$9[j++];$x=$9[j++];$M+=$I+$x;$o="";b($9[j]=="("){H($9[j++]!=")"&&j<$9.p){$o+=$9[j]}$o=$o.Z(0,-1);$M+="("+$o+")"}$$a=($1h&&O[$M])?O[$M]:1u($$a,$I,$x,$o);b($1h)O[$M]=$$a}$c=$c.2i($$a)}1S B.2k;8 $c};B.1B=7(){8"7 B() {\\n  [1j "+1j+"]\\n}"};6 O={};B.1Q=R;B.2l=7($9){b($9){$9=1q($9).1R("");1S O[$9]}1s O={}};6 28={};6 1g=R;B.2m=7($J,$15){b(1g)1f("$15="+21($15));28[$J]=17 $15()};B.2n=7($F){8 $F?1f($F):l};6 u={};6 L={};6 t={c:/\\[([\\w-]+(\\|[\\w-]+)?)\\s*(\\W?=)?\\s*([^\\]]*)\\]/};6 E=[];u[" "]=7($f,$a,$k,$h){6 $5,i,j;m(i=0;i<$a.p;i++){6 $10=T($a[i],$k,$h);m(j=0;($5=$10[j]);j++){b(D($5)&&16($5,$h))$f.q($5)}}};u["#"]=7($f,$a,$v){6 $5,j;m(j=0;($5=$a[j]);j++)b($5.v==$v)$f.q($5)};u["."]=7($f,$a,$N){$N=17 1M("(^|\\\\s)"+$N+"(\\\\s|$)");6 $5,i;m(i=0;($5=$a[i]);i++)b($N.d($5.N))$f.q($5)};u[":"]=7($f,$a,$1V,$o){6 $d=L[$1V],$5,i;b($d)m(i=0;($5=$a[i]);i++)b($d($5,$o))$f.q($5)};L["2p"]=7($5){6 $z=X($5);b($z.1m)m(6 i=0;i<$z.1m.p;i++){b($z.1m[i]==$5)8 18}};L["2B"]=7($5){};6 D=7($5){8($5&&$5.1v==1&&$5.k!="!")?$5:1T};6 1d=7($5){H($5&&($5=$5.2s)&&!D($5))1W;8 $5};6 12=7($5){H($5&&($5=$5.2t)&&!D($5))1W;8 $5};6 1Z=7($5){8 D($5.1Y)||12($5.1Y)};6 2v=7($5){8 D($5.1X)||1d($5.1X)};6 U=7($5){6 $U=[];$5=1Z($5);H($5){$U.q($5);$5=12($5)}8 $U};6 P=18;6 1o=7($5){6 $z=X($5);8(2y $z.20=="2A")?/\\.26$/i.d($z.2C):2D($z.20=="2F 2G")};6 X=7($5){8 $5.2H||$5.z};6 T=7($5,$k){8($k=="*"&&$5.1l)?$5.1l:$5.T($k)};6 1b=7($5,$k,$h){b($k=="*")8 D($5);b(!16($5,$h))8 R;b(!1o($5))$k=$k.2J();8 $5.k==$k};6 16=7($5,$h){8!$h||($h=="*")||($5.2K==$h)};6 1J=7($5){8 $5.1K};7 24($f,$a,v){6 $c,i,j;m(i=0;i<$a.p;i++){b($c=$a[i].1l.2L(v)){b($c.v==v)$f.q($c);1s b($c.p!=1T){m(j=0;j<$c.p;j++){b($c[j].v==v)$f.q($c[j])}}}}8 $f};b(![].q)1t.29.q=7(){m(6 i=0;i<o.p;i++){l[l.p]=o[i]}8 l.p};6 $19=/\\|/;7 1u($$a,$I,$x,$o){b($19.d($x)){$x=$x.1w($19);$o=$x[0];$x=$x[1]}6 $f=[];b(u[$I]){u[$I]($f,$$a,$x,$o)}8 $f};6 $1y=/^[^\\s>+~]/;6 $$1z=/[\\s#.:>+~()@]|[^\\s#.:>+~()@]+/g;7 1q($9){b($1y.d($9))$9=" "+$9;8 $9.c($$1z)||[]};6 $1A=/\\s*([\\s>+~(),]|^|$)\\s*/g;6 $22=/([\\s>+~,]|[^(]\\+|^)([#.:@])/g;6 14=7($9){8 $9.C($1A,"$1").C($22,"$1*$2")};6 1p={1B:7(){8"\'"},c:/^(\'[^\']*\')|("[^"]*")$/,d:7($y){8 l.c.d($y)},1D:7($y){8 l.d($y)?$y:l+$y+l},1C:7($y){8 l.d($y)?$y.Z(1,-1):$y}};6 1U=7($1F){8 1p.1C($1F)};6 $1G=/([\\/()[\\]?{}|*+-])/g;7 1a($y){8 $y.C($1G,"\\\\$1")};u[">"]=7($f,$a,$k,$h){6 $5,i,j;m(i=0;i<$a.p;i++){6 $10=U($a[i]);m(j=0;($5=$10[j]);j++)b(1b($5,$k,$h))$f.q($5)}};u["+"]=7($f,$a,$k,$h){m(6 i=0;i<$a.p;i++){6 $5=12($a[i]);b($5&&1b($5,$k,$h))$f.q($5)}};u["@"]=7($f,$a,$1H){6 $d=E[$1H].d;6 $5,i;m(i=0;($5=$a[i]);i++)b($d($5))$f.q($5)};L["2c-2d"]=7($5){8!1d($5)};L["1e"]=7($5,$F){$F=17 1M("^"+$F,"i");H($5&&!$5.Q("1e"))$5=$5.2e;8 $5&&$F.d($5.Q("1e"))};t.1O=/\\\\:/g;t.1i="@";t.K={};t.C=7($c,$r,$h,$1N,$A){6 $13=l.1i+$c;b(!E[$13]){$r=l.1P($r,$1N||"",$A||"");E[$13]=$r;E.q($r)}8 E[$13].v};t.1L=7($9){$9=$9.C(l.1O,"|");6 $c;H($c=$9.c(l.c)){6 $C=l.C($c[0],$c[1],$c[2],$c[3],$c[4]);$9=$9.C(l.c,$C)}8 $9};t.1P=7($1n,$d,$A){6 $S={};$S.v=l.1i+E.p;$S.J=$1n;$d=l.K[$d];$d=$d?$d(l.Q($1n),1U($A)):R;$S.d=17 2r("e","8 "+$d);8 $S};t.Q=7($J){27($J.2u()){G"v":8"e.v";G"2z":8"e.N";G"m":8"e.2E";G"25":b(P){8"21((e.2I.c(/25=\\\\1r?([^\\\\s\\\\1r]*)\\\\1r?/)||[])[1]||\'\')"}}8"e.Q(\'"+$J.C($19,":")+"\')"};t.K[""]=7($r){8 $r};t.K["="]=7($r,$A){8 $r+"=="+1p.1D($A)};t.K["~="]=7($r,$A){8"/(^| )"+1a($A)+"( |$)/.d("+$r+")"};t.K["|="]=7($r,$A){8"/^"+1a($A)+"(-|$)/.d("+$r+")"};6 1I=14;14=7($9){8 1I(t.1L($9))};P=1f("R;/*@2f@b(@\\2h)P=18@2j@*/");b(!P){T=7($5,$k,$h){8 $h?$5.2o("*",$k):$5.T($k)};16=7($5,$h){8!$h||($h=="*")||($5.2w==$h)};1o=z.1x?7($5){8/26/i.d(X($5).1x)}:7($5){8 X($5).2a.k!="2b"};1J=7($5){8 $5.Y||$5.1K||1c($5)};7 1c($5){6 $Y="",$V,i;m(i=0;($V=$5.2x[i]);i++){27($V.1v){G 11:G 1:$Y+=1c($V);1E;G 3:$Y+=$V.2M;1E}}8 $Y}}1g=18;8 B}();',62,173,'|||||element|var|function|return|selector|from|if|match|test||results||namespace|||tagName|this|for||arguments|length|push|attribute||AttributeSelector|selectors|id||filter|string|document|value|cssQuery|replace|thisElement|attributeSelectors|code|case|while|token|name|tests|pseudoClasses|cacheSelector|className|cache|isMSIE|getAttribute|false|attributeSelector|getElementsByTagName|childElements|node||getDocument|textContent|slice|subset||nextElementSibling|key|parseSelector|script|compareNamespace|new|true|NAMESPACE|regEscape|compareTagName|_getTextContent|previousElementSibling|lang|eval|loaded|useCache|PREFIX|version|base|all|links|propertyName|isXML|Quote|_toStream|x22|else|Array|select|nodeType|split|contentType|STANDARD_SELECT|STREAM|WHITESPACE|toString|remove|add|break|text|ESCAPE|attributeSelectorID|_parseSelector|getTextContent|innerText|parse|RegExp|compare|NS_IE|create|caching|join|delete|null|getText|pseudoClass|continue|lastChild|firstChild|firstElementChild|mimeType|String|IMPLIED_ALL|COMMA|_msie_selectById|href|xml|switch|modules|prototype|documentElement|HTML|first|child|parentNode|cc_on|constructor|x5fwin32|concat|end|error|clearCache|addModule|valueOf|getElementsByTagNameNS|link|callee|Function|previousSibling|nextSibling|toLowerCase|lastElementChild|prefix|childNodes|typeof|class|unknown|visited|URL|Boolean|htmlFor|XML|Document|ownerDocument|outerHTML|toUpperCase|scopeName|item|nodeValue'.split('|'),0,{}))
