/* rpvCxS->AJAx.Library(v0.1a); */
/* Don't Copy This Code, is copyright-protected. */
var rjx='/rpvJX.php?s=';var rjl='<img src="/IMG/_l.gif" alt="loading...">';
function rpvCF(i){return confirm(i);}
function rpvBT(){var i=navigator.userAgent;if(i.indexOf('MSIE')>-1){return true;}else{return false;}}
function rpvDO(i){rpvOW('/rpvDO.php?s='+i,600,400);}
function rpvJP(i){if(i!=''&&i!='#'){window.location=i;}}
function rpvOT(i,m){if(confirm(m)){window.location=i;}}
function rpvPF(i){if(confirm(i)){document.rpv.submit();}}
function rpvRE(i,e){document.getElementById(i).innerHTML=e;}
function rpvRC(i,e){if(rpvBT()){var d=document.getElementById(i);var t=document.getElementById(i+'c');if(t!=null){t.innerHTML='';d.removeChild(t);}
		t=document.createElement('div');t.innerHTML=e;rpvRE(i,'');d.appendChild(t);}else{rpvRE(i,e);}
}function rpvVH(i){if(i!=''){var r=document.getElementById(i);if(r.style.display=='none'){r.style.display='block';}else{r.style.display='none';}}
}function rpvIT(i,v,z){var z=z||'';var t=document.forms['rpv'].elements[i];if(document.selection){t.focus();s=document.selection.createRange();s.text=(z!='')?v+s.text+z:v;
	}else if(t.selectionStart||t.selectionStart=='0'){var pS=t.selectionStart;var pE=t.selectionEnd;if(z!=''){t.value=t.value.substring(0,pS)+v+t.value.substring(pS,pE)+z+t.value.substring(pE,t.value.length);
	}else{t.value=t.value.substring(0,pS)+v+t.value.substring(pE,t.value.length);}}else{t.value+=v+z;}
}function rpvFE(i,s){var z=new Array();if(i.indexOf(',')>-1){z=i.split(',');}else{z=Array(i);}for(var x=0;x<z.length;x++){
	var c=document.forms['rpv'].elements[z[x]].disabled=(s==1)?false:true;}
}var vJX=new Array('','');function rpvJX(rEXE,rERX){var x=rJX();
	this.rINI=function(){vJX=Array('','');}
	this.rRES=function(){var s='';var i=0;if(x.readyState==4){s=x.responseText;if(s.length>2){vJX[0]=s.substr(0,1);vJX[1]=s.substr(2,s.length-2);if(vJX[0]=='4'){
			if(typeof rEXE=='function'){rEXE();}}else{i=vJX[0];i=(i>=0&&i<30)?i:0;rERR(i);}}else{rERR(i);}s='';}}
	this.rGET=function(i){this.rINI();try{x.open('GET',i);x.onreadystatechange=this.rRES;x.send(null);}catch(e){rERR(6);}}
	this.rPOST=function(i,v){this.rINI();try{x.open('POST',i);x.onreadystatechange=this.rRES;x.setRequestHeader('Content-type','application/x-www-form-urlencoded');
			x.send(v);}catch(e){rERR(6);}}
	function rJX(){var x=null;if(window.XMLHttpRequest){try{x=new XMLHttpRequest();}catch(e){}}else if(window.ActiveXObject){
		try{x=new ActiveXObject('Msxml2.XMLHTTP');}catch(e){try{x=new ActiveXObject('Microsoft.XMLHTTP');}catch(e){}}}return x;}
	function rERR(i){var i=(i==0)?'Bad Reply!':vJX[1];this.rINI;window.alert(i);if(typeof rERX=='function'){rERX();}}
	function rKill(){if(x.readyState!=4 && x.readyState!=0){this.rINI();x.onreadystatechange=function(){};x.abort();rERR(5);}}
}var iW=-1;
function rpvLO(e,i,w,h){var w=w||0;var h=h||0;if(document.getElementById('rLO')==null){m=document.createElement('div');m.id='rLO';document.body.appendChild(m);
	p=document.createElement('div');p.id='rLT';document.body.appendChild(p);document.onmousemove=rpvLOm;if(w>0){p.style.width=w+'px';m.style.width=w+'px';}
	if(h>0){p.style.height=h+'px';m.style.height=h+'px';}iW=p.scrollWidth;rpvLOm(e);rpvLOt(i);}
}function rpvLOt(i){var m=document.getElementById('rLO');var p=document.getElementById('rLT');if(m!=null&&p!=null){m.style.width=0+'px';m.style.height=0+'px';
	p.innerHTML=i;m.style.width=p.clientWidth+'px';m.style.height=p.clientHeight+'px';}
}function rpvLOm(e){var x=-1;var y=-1;if(rpvBT()){x=event.clientX;y=event.clientY;x+=document.documentElement.scrollLeft;y+=document.documentElement.scrollTop;
	}else{x=e.pageX;y=e.pageY;}x+=10;y+=10;if(iW>0&&document.documentElement.clientWidth>0&&x>document.documentElement.clientWidth*0.6){x=x-iW-2*10;}
	document.getElementById('rLT').style.left=x+'px';document.getElementById('rLT').style.top=y+'px';x+=3;y+=3;
	document.getElementById('rLO').style.left=x+'px';document.getElementById('rLO').style.top=y+'px';
}function rpvLOk(){if(document.getElementById('rLO')!=null){document.onmousemove=null;document.getElementById('rLT').innerHTML='';
	document.body.removeChild(document.getElementById('rLT'));document.body.removeChild(document.getElementById('rLO'));}
}var pti=new Array();function rpvOW(i,w,h){
	b=document.getElementsByTagName('BODY')[0];m=document.createElement('div');m.id='pm';p=document.createElement('div');p.id='pc';
	p.innerHTML='<div id=ttl onclick="rpvOWk();"><img src="/IMG/p_g_e.gif"></div><iframe src="about:blank" style="margin:0px;width:100%;height:100%;'+
	'position:relative;z-index:202;" scrolling=auto frameborder=0 id=pf name=pf width=100% height=100%></iframe>';
	b.appendChild(m);b.appendChild(p);rpvOWi(0);document.getElementById('pf').src=i;var th=parseInt(document.getElementById('ttl').offsetHeight,10);
	b.style.overflow='hidden';var scTop=parseInt(b.scrollTop,10);var scLeft=parseInt(b.scrollLeft,10);m.style.top=scTop+'px';
	m.style.left=scLeft+'px';m.style.height=b.scrollHeight+'px';m.style.width=b.scrollWidth+'px';p.style.top=(scTop+((rpvOWh()-(h+th))/2))+'px';
	p.style.left=(scLeft+((rpvOWw()-w)/2))+'px';p.style.width=w+'px';p.style.height=(h+th)+'px';
	document.getElementById('pf').style.width=parseInt(document.getElementById('ttl').offsetWidth,10)+'px';
	document.getElementById('pf').style.height=h+'px';rpvOWs(0);rpvOWd(0);
}function rpvOWk(){document.getElementById('pf').src='about:blank';var b=document.getElementsByTagName('body')[0];b.style.overflow='';rpvOWi(1);
	document.getElementById('pc').innerHTML='';b.removeChild(document.getElementById('pm'));b.removeChild(document.getElementById('pc'));rpvOWs(1);rpvOWd(1);
}function rpvOWd(i){var d=document.getElementsByTagName('DIV');for(x=0;x<d.length;x++){if(d[x].id.indexOf('ads')==0){
	if(i=1){d[x].style.visibility='visible';}else{d[x].style.visibility='hidden';}}}
}function rpvOWs(i){if(parseInt(window.navigator.appVersion.charAt(0),10)<=6 && window.navigator.userAgent.indexOf("MSIE")>-1){
	for(var x=0;x<document.forms.length;x++){for(var e=0;e<document.forms[x].length;e++){
	if(document.forms[x].elements[e].tagName=='SELECT'){if(i=1){document.forms[x].elements[e].style.visibility='visible';
	}else{document.forms[x].elements[e].style.visibility='hidden';}}}}}
}function rpvOWi(i){var ptt=new Array('A','BUTTON','TEXTAREA','INPUT','SELECT','IFRAME');
	if(document.all){var x=0;for(var j=0;j<ptt.length;j++){var tE=document.getElementsByTagName(ptt[j]);
	for(var k=0;k<tE.length;k++){if(i=1){tE[k].tabIndex=pti[x];tE[k].tabEnabled=true;}else{
	pti[x]=tE[k].tabIndex;tE[k].tabIndex="-1";}x++;}}}
}function rpvOWh(){if(window.innerHeight!=window.undefined){return window.innerHeight;}
	if(document.compatMode=='CSS1Compat'){return document.documentElement.clientHeight;}
	if(document.body){return document.body.clientHeight;}return window.undefined;
}function rpvOWw(){if(window.innerWidth!=window.undefined){return window.innerWidth;}
	if(document.compatMode=='CSS1Compat'){return document.documentElement.clientWidth;}
	if(document.body){return document.body.clientWidth;}return window.undefined;}
function rpvESC(i){var a=new Array('@','+','/');var b=new Array('%40','%2B','%2F');i=escape(i);for(var x=0;x<a.length;x++){while(i.indexOf(a[x])>-1){i=i.replace(a[x],b[x]);}}return i;}
function rpvPOSTc(i){var z=new Array();if(i.indexOf(',')>-1){z=i.split(',');}else{z=Array(i);}for(var x=0;x<z.length;x++){var c=document.forms['rpv'].elements[z[x]];	
	if(typeof(c)!='undefined'){if(typeof(c[0])!='undefined'&&c.type!='select-one'){for(var t=0;t<c.length;t++){if(c[t].type=='checkbox'){c[t].checked='';
	}else if(c[t].type=='radio'){c[t].selected='';}else{c[t].value='';}}}else if(c.type=='checkbox'){c.checked='';}else if(c.type=='select-one'){c.selectedIndex=0;
	}else{c.value='';}}}
}function rpvPOSTx(i){var c=document.forms['rpv'].elements[i];var z='';if(typeof(c)!='undefined'){if(typeof(c[0])!='undefined'&&c.type!='select-one'){
	for(var t=0;t<c.length;t++){if(c[t].type=='checkbox'){if(c[t].checked){z+=c[t].name+'='+rpvESC(c[t].value)+'&';}}else if(c[t].type=='radio'){
	if(c[t].selected){z+=c[t].name+'='+rpvESC(c[t].value)+'&';}}else{z+=c[t].name+'='+rpvESC(c[t].value)+'&';}}}else if(c.type=='checkbox'){
	if(c.checked){z+=c.name+'='+rpvESC(c.value)+'&';}}else if(c.type=='select-one'){z+=i+'='+rpvESC(c.value)+'&';}else{z+=c.name+'='+rpvESC(c.value)+'&';}}return z;
}function rpvPOST(i,v,f,y,w){var x=new rpvJX(function(){rpvRC(v,vJX[1]);if(typeof y=='function'){y();}},w);var z='';var t=new Array();rpvRC(v,rjl);
	if(f.indexOf(',')>-1){t=f.split(',');for(var c=0;c<t.length;c++){z+=rpvPOSTx(t[c]);}}else{z=rpvPOSTx(f);}x.rPOST(rjx+i,z);
}function rpvGET(i,v,w){var x=new rpvJX(function(){rpvRC(v,vJX[1]);},w);rpvRC(v,rjl);x.rGET(rjx+i);}
