function P7_limit(a,b){ //v1.1.2 by PVII-www.projectseven.com
 document.p7limit=a;document.p7min=b;
 if(document.getElementById&&navigator.appVersion.indexOf("MSIE")>-1&&!window.opera){
 if(window.attachEvent){window.attachEvent("onresize",P7_setMinWidth);
 window.attachEvent("onload",P7_setMinWidth);}else{onload=P7_setMinWidth;
 onresize=P7_setMinWidth;}}}P7_limit('wrapper',770);
function P7_setMinWidth(){ //v1.1.2 by PVII-www.projectseven.com
 var cw,w,pl,pr,ml,mr,br,bl,ad,theDiv=document.p7limit;
 var g=document.getElementById(theDiv);w=parseInt(document.p7min);
 if(g&&document.body&&document.body.clientWidth){gs=g.currentStyle;
 cw=parseInt(document.body.clientWidth);pl=parseInt(gs.paddingLeft);
 pr=parseInt(gs.paddingRight);ml=parseInt(gs.marginLeft);mr=parseInt(gs.marginRight);
 bl=parseInt(gs.borderLeftWidth);br=parseInt(gs.borderRightWidth);ml=ml?ml:0;
 mr=mr?mr:0;pl=pl?pl:0;pr=pr?pr:0;bl=bl?bl:0;br=br?br:0;ad=pl+pr+ml+mr+bl+br;
 if(cw<=w){w-=ad;g.style.width=w+"px";}else{g.style.width="auto";}}
}
function YY_checkform() { //v4.71
//copyright (c)1998,2002 Yaromat.com
  var a=YY_checkform.arguments,oo=true,v='',s='',err=false,r,o,at,o1,t,i,j,ma,rx,cd,cm,cy,dte,at;
  for (i=1; i<a.length;i=i+4){
    if (a[i+1].charAt(0)=='#'){r=true; a[i+1]=a[i+1].substring(1);}else{r=false}
    o=MM_findObj(a[i].replace(/\[\d+\]/ig,""));
    o1=MM_findObj(a[i+1].replace(/\[\d+\]/ig,""));
    v=o.value;t=a[i+2];
    if (o.type=='text'||o.type=='password'||o.type=='hidden'){
      if (r&&v.length==0){err=true}
      if (v.length>0)
      if (t==1){ //fromto
        ma=a[i+1].split('_');if(isNaN(v)||v<ma[0]/1||v > ma[1]/1){err=true}
      } else if (t==2){
        rx=new RegExp("^[\\w\.=-]+@[\\w\\.-]+\\.[a-zA-Z]{2,4}$");if(!rx.test(v))err=true;
      } else if (t==3){ // date
        ma=a[i+1].split("#");at=v.match(ma[0]);
        if(at){
          cd=(at[ma[1]])?at[ma[1]]:1;cm=at[ma[2]]-1;cy=at[ma[3]];
          dte=new Date(cy,cm,cd);
          if(dte.getFullYear()!=cy||dte.getDate()!=cd||dte.getMonth()!=cm){err=true};
        }else{err=true}
      } else if (t==4){ // time
        ma=a[i+1].split("#");at=v.match(ma[0]);if(!at){err=true}
      } else if (t==5){ // check this 2
            if(o1.length)o1=o1[a[i+1].replace(/(.*\[)|(\].*)/ig,"")];
            if(!o1.checked){err=true}
      } else if (t==6){ // the same
            if(v!=MM_findObj(a[i+1]).value){err=true}
      }
    } else
    if (!o.type&&o.length>0&&o[0].type=='radio'){
          at = a[i].match(/(.*)\[(\d+)\].*/i);
          o2=(o.length>1)?o[at[2]]:o;
      if (t==1&&o2&&o2.checked&&o1&&o1.value.length/1==0){err=true}
      if (t==2){
        oo=false;
        for(j=0;j<o.length;j++){oo=oo||o[j].checked}
        if(!oo){s+='* '+a[i+3]+'\n'}
      }
    } else if (o.type=='checkbox'){
      if((t==1&&o.checked==false)||(t==2&&o.checked&&o1&&o1.value.length/1==0)){err=true}
    } else if (o.type=='select-one'||o.type=='select-multiple'){
      if(t==1&&o.selectedIndex/1==0){err=true}
    }else if (o.type=='textarea'){
      if(v.length<a[i+1]){err=true}
    }
    if (err){s+='* '+a[i+3]+'\n'; err=false}
  }
  if (s!=''){alert('The required information is incomplete or contains errors:\t\t\t\t\t\n\n'+s)}
  document.MM_returnValue = (s=='');
}
function MM_findObj(n, d) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function flvFTLS8(){//v1.1
if (!Array.prototype.push){Array.prototype.push=function(){var v1=arguments;for(var v2=v1.length-1;v2>=0;v2--){this[this.length]=v1[v2];}return this.length;}}if (!Array.prototype.splice){Array.prototype.splice=function(){var v1=arguments,v3=new Array(),v4=new Array(),v5=0,v6=v1[0],v7=v1[1];for (v5=0;v5<v6;v5++){v3[v3.length]=this[v5];}for (v5=v6+v7;v5<this.length;v5++){v3[v3.length]=this[v5];}for (v5=0;v5<v7;v5++){v4[v4.length]=this[v6+v5];}this.length=0;for (v5=0;v5<v3.length;v5++){this[this.length]=v3[v5];}return v4;}}}

function flvFTLS7(){//v1.1
var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4;v3.TLS6=new Array();for (v4=0;v4<v3.TLS4.length;v4++){v3.TLS6.push(v4);}}

function flvFTLS5(){//v1.1
var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4=v1[1];if (v3&&v3.TLS4){flvFTLS4(v2);if (v4>v3.TLS4.length-1){v4=v3.TLS4.length-1;}else if (v4<0){v4=0;}v3.TLS11=v4;if (!v3.TLS9){v3.TLS5=new Image();}v3.TLS5.src=v3.TLS4[v4][0];flvFTLS3(v2,v4);}}

function flvFTLS6(){//v1.1
this.style.filter="";}

function flvFTLS4(){//v1.1
var v1=MM_findObj(arguments[0]);if (v1&&v1.TLS4&&v1.TLS2!=null){clearTimeout(v1.TLS2);}}

function flvFTLS3(){//v1.1
var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4=v1[1],v5='<div class="slideImage">',v6,v7,v8;if (!v3.TLS5.complete){v6="flvFTLS3('"+v2+"',"+v4+")";setTimeout(v6,50);return;}if (v3.TLS4[v4][1]!=""){v5+='<a href="'+v3.TLS4[v4][1]+'"';if (v3.TLS3!=""){v5+=' target="'+v3.TLS3+'"';}v5+='>';}v5+='<img src="'+v3.TLS5.src+'" border="0" alt="">';if (v3.TLS4[v4][1]!=""){v5+='</a>';}v5+='</div>';if (v3.TLS4[v4][2]!=""){v5+='<div class="slideDesc">'+unescape(v3.TLS4[v4][2])+'</div>';}v7=v3.TLS4[v4][3];if (!v3.TLS1||v7==25){if (document.layers){v3.document.open();v3.document.write(v5);v3.document.close();}else {v3.innerHTML=v5;}}else {v3.contentEditable=true;if (v3.filters[0]&&v3.filters[0].status==2){v3.filters[0].Stop();}if (v7==0){v8="blendTrans(Duration="+v3.TLS10+")";}else {v8="revealTrans(Duration="+v3.TLS10+",Transition="+(v7-1)+")";}v3.onfilterchange=flvFTLS6;v3.style.filter=v8;v3.filters[0].Apply();v3.innerHTML=v5;v3.filters[0].Play();v3.contentEditable=false;}}

function flvFTLS2(){//v1.1
var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4=v1[1],v5=v1[2],v6,v7,v8,v9;if (v3&&v3.TLS4){flvFTLS4(v2);if (v5==0||v3.TLS7==0){if (v4==1){v6=v3.TLS11+1;if (v6>v3.TLS4.length-1){v6=0;if (v3.TLS12==0){return;}}}else {v6=v3.TLS11-1;if (v6<0){v6=v3.TLS4.length-1;if (v3.TLS12==0){return;}}}}else {v6=v3.TLS11;while (v6==v3.TLS11){v8=Math.floor(Math.random()*(v3.TLS6.length));v6=v3.TLS6[v8];v9=v3.TLS6.splice(v8,1);if (v3.TLS6.length<1){flvFTLS7(v2);}}}v3.TLS11=v6;if (!v3.TLS9){v3.TLS5=new Image();}v3.TLS5.src=v3.TLS4[v6][0];flvFTLS3(v2,v6);if (v5==1){v7="flvFTLS2('"+v2+"',"+v4+","+v5+")";v3.TLS2=setTimeout(v7,v3.TLS8);}}}

function flvFTLS1(){//v1.1
// Copyright 2004, Marja Ribbers-de Vroed, FlevOOware (www.flevooware.nl/dreamweaver/)
var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4,v5,v6,v7=navigator.userAgent.toLowerCase(),v8;if (v3){flvFTLS8();v3.TLS8=v1[1];v5=v1[2];v3.TLS12=v1[3];v3.TLS3=v1[4];v3.TLS10=v1[5]/1000;v3.TLS7=v1[6];v3.TLS4=new Array();for (v6=7;v6<v1.length;v6+=4){v3.TLS4[v3.TLS4.length]=new Array(v1[v6],v1[v6+1],unescape(v1[v6+2]),parseInt(v1[v6+3]));}if (v3.TLS7==1){flvFTLS7(v2);v8=v3.TLS6.splice(0,1);}v3.TLS11=0;v3.TLS9=(v7.indexOf("netscape6")!=-1);v3.TLS5=new Image();v3.TLS5.src=v1[7];v3.TLS1=v3.filters&&(v7.indexOf("mac")<0);flvFTLS3(v2,0);if (v5){v4="flvFTLS2('"+v2+"',1,"+v5+")";v3.TLS2=setTimeout(v4,v3.TLS8);}}}