//**************************************************************************************************************/
//	SuperDialog v1.00
//
//	 Author: Markus F. Hay, inspired by the work of Lokesh Dhakar on Lightbox JS (http://www.huddletogether.com)
//	   Date: August 14, 2006
//	License: Creative Commons Attribution 2.5 License (http://creativecommons.org/licenses/by/2.5/)
//**************************************************************************************************************/
function _(a,b,c){this.setDialog(a,b,c);this._4();this._h=Math.round(500/100);this._i=80;this._j=this._k=this._l=this._m=this._n=null;this._o=null;
	/*@cc_on
		/*@if(@_jscript)
			this._p=(document.all)?true:false;
		/*@else @*/
			this._p=false;
		/*@end
	@*/
this._q=(this._p&&!document.getElementById);this._r=(this._p&&!document.createAttribute);this._s=(this._p&&document.createAttribute&&!window.XMLHttpRequest);this._t=(this._p&&window.XMLHttpRequest);if(this._u){this._v=(document.compatMode)?parent.document.compatMode:'';}else{this._v=(document.compatMode)?document.compatMode:'';}this._w=window.opera?true:false;var images=new Array("images/bg_confirm.png","images/bg_error.png","images/bg_info.png","images/bg_login.png","images/bg_prompt.png","images/bg_warning.png","images/cancel.png","images/cancel_on.png","images/close.png","images/close_on.png","images/footer.png","images/header_bg_scale.png","images/header_confirm.png","images/header_error.png","images/header_info.png","images/header_prompt.png","images/header_warning.png","images/header_login.png","images/login.png","images/login_on.png","images/header_right.png","images/no.png","images/no_on.png","images/okay.png","images/okay_on.png","images/yes.png","images/yes_on.png","images/progress.gif");var _ii=new Array();

/*** ADJUST URL TO CORRECT PATH ON YOUR SERVER ***/
this.url='http://www.abaf.com.au/template_images/';
/*** ADJUST URL TO CORRECT PATH ON YOUR SERVER ***/

for(var i=0;i<images.length;i++){_ii[i]=new Image();_ii[i].src=this.url+images[i];}_pw=(((this._s||this._t)&&this._v!='BackCompat')||!this._p||this._w)?346:350;this._x='height:26px;width:350px;overflow:hidden;margin:0 auto;padding:0;border:0;';this._y='height:26px;width:27px;float:left;margin:0 auto;padding:0;border:0;';this._z='height:26px;width:284px;float:left;color:#fff;font:bold 10px Verdana,Arial,Helvetica,sans-serif;text-align:left;background:url('+this.url+'images/header_bg_scale.png) repeat-x;padding:0.7em 0 0 0;margin:0 auto;border:0;';this._aa='height:26px;width:25px;float:left;background:url('+this.url+'images/header_bg_scale.png) repeat-x;margin:0 auto;padding:0;border:0;';this._ab='height:26px;width:14px;float:left;margin:0 auto;padding:0;border:0;';this._ac='min-height:78px;width:'+_pw+'px;text-align:left;border-left:2px solid #6A6F72;border-right:2px solid #6A6F72;border-top:0;border-bottom:0;margin:0 auto;padding:0;';this._ad='display:block;margin:0 auto;padding:10px;font:10px Verdana,Arial,Helvetica,sans-serif;color:#000;border:0;';this._ae='font:10px Verdana,Arial,Helvetica,sans-serif;color:black;border:2px solid #696E71;background-color:#EEEEEE;margin:0 auto;padding:2px;';this._af='height:21px;width:'+_pw+'px;background:#fff;border-top:0;border-bottom:0;border-left:2px solid #6A6F72;border-right:2px solid #6A6F72;overflow:hidden;margin:0 auto;text-align:center;padding:0;';this._ag='height:15px;width:350px;background:url('+this.url+'images/footer.png) no-repeat;margin:0 auto;padding:0;border:0;';}_.prototype.start=function(){var _ob=this._u?parent.document.getElementsByTagName("body").item(0):document.getElementsByTagName("body").item(0);if(document.getElementById("superDialog")){_ob.removeChild(document.getElementById("superDialog"));}else if(parent.document.getElementById("superDialog")){_ob.removeChild(parent.document.getElementById("superDialog"));}var _oo=this._u?parent.document.createElement("div"):document.createElement("div");_oo.setAttribute('id','superOverlay');_oo.style.display='none';_oo.style.width='100%';_oo.style.height='100%';_oo.style.position='absolute';_oo.style.top='0';_oo.style.left='0';_oo.style.zIndex='90';_oo.style.backgroundColor='#000';_oo.style.filter='alpha(opacity=0)';_oo.style.MozOpacity='0';_oo.style.opacity='0';_ob.appendChild(_oo);var _od=this._u?parent.document.createElement("div"):document.createElement("div");_od.setAttribute('id','superDialog');_od.style.display='none';_od.style.position='absolute';_od.style.top='40px';_od.style.left='0';_od.style.width='100%';_od.style.zIndex='100';_od.style.textAlign='center';var ieSux1='';var ieSux2='';var ieSux3='';var ie5Sux='';if(this._p){if(!this._t){ieSux1='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+this.url+'images/header_'+this._7()+'.png\')';ieSux2='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+this.url+'images/header_right.png\')';ie5Sux=(!this._r)?"filter:Alpha(opacity=0)":"";}ieSux3=((this._t&&this._v!='BackCompat')||this._w)?'min-height:78px':'height:78px';}var _fp='';if(this._7()=="PROMPT"){_fp='<br /><br /><form name="superDialogForm"><input style="'+this._ae+'" type="text" name="userInput" size="60"></form>';}var _fl='';if(this._7()=="LOGIN"){_fl='<br /><div align="center"><span id="superErrorMessage" style="color:red;"></span></div>';}_od.innerHTML='<div style="'+this._x+'"><div style="'+this._y+ieSux1+'"><img src="'+this.url+'images/header_'+this._7()+'.png" style="'+ie5Sux+';" /></div><div style="'+this._z+'">'+this._8()+'</div><div style="'+this._aa+'"><img id="superCloseButton" src="'+this.url+'images/close.png" onclick="'+this._ah+'._2();'+this._ah+'._a(\'cancel\');" style="cursor:pointer;" onmouseover="this.src=\''+this.url+'images/close_on.png\';" onmouseout="this.src=\''+this.url+'images/close.png\';" /></div><div style="'+this._ab+ieSux2+'"><img src="'+this.url+'images/header_right.png" style="'+ie5Sux+';" /></div></div><div style="'+this._ac+'background:#fff url('+this.url+'images/bg_'+this._7()+'.png) top right no-repeat;'+ieSux3+';"><span style="'+this._ad+'"><a id="_focus"></a>'+this._9()+_fp+_fl+'</span></div><div style="'+this._af+'">'+this._b()+'</div><div style="'+this._ag+'"></div>';_ob.appendChild(_od);var pageSize=this._c();if((this._s||this._t)&&this._v!='BackCompat'){_ob.style.height='100%';_oo.style.height='100%';}else{_oo.style.height=pageSize[0]+"px";}if(!this._w){ this._6('hide');}this._e('superOverlay',this._h,this._i);_od.style.top=(this._d()+(pageSize[1]/8))+"px";_od.style.display='';myDialog._o=setInterval("myDialog._3()",300);if(this._u){if(document.addEventListener){parent.document.addEventListener("keydown",this._1,false);}else if(document.attachEvent){parent.document.attachEvent("onkeydown",this._1);}else{parent.document.onkeydown=this._1;}parent.document.getElementById("_focus").focus();}else{if(document.addEventListener){document.addEventListener("keydown",this._1,false);}else if(document.attachEvent){document.attachEvent("onkeydown",this._1);}else{document.onkeydown=this._1;}document.getElementById("_focus").focus();}};_.prototype._1=function(e){if(!e){var e=window.event;}var a=(e.keyCode)?e.keyCode:e.which;var b=(this._u)?window.parent[window.name].myDialog._7():myDialog._7();var c=(this._u)?"window.parent[window.name].myDialog":"myDialog";switch(b){case "INFO":case "ERROR":if(a==13||a==27){setTimeout(c+"._a('okay')",1);setTimeout(c+"._2()",100);}break;case "WARNING":case "PROMPT":if(a==13){setTimeout(c+"._a('okay')",1);setTimeout(c+"._2()",10);}else if(a==27){setTimeout(c+"._a('cancel')",1);setTimeout(c+"._2()",10);}break;case "CONFIRM":if(a==13){setTimeout(c+"._a('yes')",1);setTimeout(c+"._2()",10);}else if(a==27){setTimeout(c+"._a('no')",1);setTimeout(c+"._2()",10);}break;case "LOGIN":if(a==13){setTimeout(c+"._a('login')",1);this.action();this._a("");}else if(a==27){setTimeout(c+"._a('cancel')",1);this.action();this._a("");}}return false;};_.prototype._2=function(){if(this._u){if(document.removeEventListener){parent.document.removeEventListener("keydown",this._1,false);}else if(document.detachEvent){parent.document.detachEvent("onkeydown",this._1);}else{parent.document.onkeydown='';}}else{if(document.removeEventListener){document.removeEventListener("keydown",this._1,false);}else if(document.detachEvent){document.detachEvent("onkeydown",this._1);}else{document.onkeydown='';}}if(this._7()=="PROMPT"&&this.getButtonClicked()=="okay"){this._0(this._u?parent.document.forms["superDialogForm"].userInput.value:document.forms["superDialogForm"].userInput.value);}if(!this._u){document.getElementById("superDialog").style.display='none';}else{parent.document.getElementById("superDialog").style.display='none';}this._f('superOverlay',this._h,this._i);if(!this._w){ this._6('show');}var blah=setTimeout("myDialog._5()",1000);};_.prototype._3=function(){if(this.getButtonClicked()==""){return;}else if(this._7()=="LOGIN"){if(this.getButtonClicked()=="login"||this.getButtonClicked()=="cancel"){this.action();this._a("");}}else{clearInterval(myDialog._o);this.action();this._a("");}};_.prototype._4=function(){if(window.parent.frames[window.name]&&(parent.document.getElementsByTagName('frameset').length<=0)){this._u=true;this._ah="window.parent."+window.name+".myDialog";}else{this._u=false;this._ah="myDialog";}};_.prototype.action=function(){};_.prototype._5=function(){ this.action=function(){};};_.prototype._6=function(a){var i,b;if(this._p&&!this._t){if(this._u){var b=parent.document.getElementsByTagName("select");for(i=0;i<b.length;i++ ){b[i].style.visibility=(a=="hide")?'hidden':'visible';}for(i=0;i<parent.frames.length;i++){b=parent.frames[i].window.document.getElementsByTagName("select");for(var j=0;j<b.length;j++){b[j].style.visibility=(a=="hide")?'hidden':'visible';}}}else{var b=document.getElementsByTagName("select");for(i=0;i!=b.length;i++){b[i].style.visibility=(a=="hide")?'hidden':'visible';}}}if(this._u){if(this._r){for(i=0;i<parent.frames.length;i++){parent.document.all[parent.frames[i].window.name].style.visibility=(a=="hide")?'hidden':'visible';}}if((this._s||this._t)&&this._v!='BackCompat'){parent.document.getElementsByTagName('html')[0].style.overflow=(a=="hide")?"hidden":'';}else{parent.document.body.style.overflow=(a=="hide")?"hidden":'';}}else{if((this._s||this._t)&&this._v!='BackCompat'){document.getElementsByTagName('html')[0].style.overflow=(a=="hide")?"hidden":'';}else{document.body.style.overflow=(a=="hide")?"hidden":'';}}};_.prototype.setDialog=function(a,b,c){this.setType(a);this.setTitle(b);this.setDetails(c);this._a("");};_.prototype.setType=function(a){this._ai=a.toUpperCase();switch(this._ai){case "INFO":case "CONFIRM":case "WARNING":case "ERROR":case "PROMPT":case "LOGIN":break;default:this._ai="INFO";}};_.prototype._7=function(){return this._ai;};_.prototype.setTitle=function(a){if(a&&a.length > 30){this._aj=a.substring(0,29)+"...";}else if(!a){this._aj='';}else{this._aj=a;}};_.prototype._8=function(){return this._aj;};_.prototype.setDetails=function(details){this._ak=details?details:"";};_.prototype._9=function(){return this._ak;};_.prototype._0=function(input){this._al=input?input:"";};_.prototype.getPromptInput=function(){return this._al;};_.prototype._a=function(button){this._am=button;};_.prototype.getButtonClicked=function(){return this._am;};_.prototype._b=function(){switch(this._7()){case "INFO":case "ERROR":return '<img src="'+this.url+'images/okay.png" onclick="'+this._ah+'._a(\'okay\');'+this._ah+'._2();" style="cursor:pointer;" onmouseover="this.src=\''+this.url+'images/okay_on.png\';" onmouseout="this.src=\''+this.url+'images/okay.png\';" />';break;case "CONFIRM":return '<img src="'+this.url+'images/yes.png" onclick="'+this._ah+'._a(\'yes\');'+this._ah+'._2();" style="cursor:pointer;" onmouseover="this.src=\''+this.url+'images/yes_on.png\';" onmouseout="this.src=\''+this.url+'images/yes.png\';" />&nbsp;&nbsp;&nbsp;&nbsp;<img src="'+this.url+'images/no.png" onclick="'+this._ah+'._a(\'no\');'+this._ah+'._2();" style="cursor:pointer;"  onmouseover="this.src=\''+this.url+'images/no_on.png\';" onmouseout="this.src=\''+this.url+'images/no.png\';" />';break;case "PROMPT":return '<img src="'+this.url+'images/okay.png" onclick="'+this._ah+'._a(\'okay\');'+this._ah+'._2();" style="cursor:pointer;" onmouseover="this.src=\''+this.url+'images/okay_on.png\';" onmouseout="this.src=\''+this.url+'images/okay.png\';" />&nbsp;&nbsp;&nbsp;&nbsp;<img src="'+this.url+'images/cancel.png" onclick="'+this._ah+'._a(\'cancel\');'+this._ah+'._2();" style="cursor:pointer;" onmouseover="this.src=\''+this.url+'images/cancel_on.png\';" onmouseout="this.src=\''+this.url+'images/cancel.png\';" />';break;case "WARNING":return '<img src="'+this.url+'images/okay.png" onclick="'+this._ah+'._a(\'okay\');'+this._ah+'._2();" style="cursor:pointer;" onmouseover="this.src=\''+this.url+'images/okay_on.png\';" onmouseout="this.src=\''+this.url+'images/okay.png\';" />&nbsp;&nbsp;&nbsp;&nbsp;<img src="'+this.url+'images/cancel.png" onclick="'+this._ah+'._a(\'cancel\');'+this._ah+'._2();" style="cursor:pointer;" onmouseover="this.src=\''+this.url+'images/cancel_on.png\';" onmouseout="this.src=\''+this.url+'images/cancel.png\';" />';break;case "LOGIN":return '<img id="superLoginButton" src="'+this.url+'images/login.png" onclick="'+this._ah+'._a(\'login\');" style="cursor:pointer;" onmouseover="this.src=\''+this.url+'images/login_on.png\';" onmouseout="this.src=\''+this.url+'images/login.png\';" />&nbsp;&nbsp;&nbsp;&nbsp;<img id="superCancelButton" src="'+this.url+'images/cancel.png" onclick="'+this._ah+'._a(\'cancel\');'+this._ah+'._2();" style="cursor:pointer;" onmouseover="this.src=\''+this.url+'images/cancel_on.png\';" onmouseout="this.src=\''+this.url+'images/cancel.png\';" />';break;}};_.prototype.getInputStyle=function(){return this._ae };_.prototype.doAJAX=function(a,b,c){if(!a||!b){alert("Oooops... the developer didn't read the documentation!");return;}this._k=encodeURI(a);this._l=b;this._n=(c=="text"||c=="xml")?c:"text";this._j=".";if(!this._j){return;}this.setError('<img src="'+this.url+'images/progress.gif" />');this._an=document.getElementById("superCloseButton");this._ao=document.getElementById("superLoginButton");this._ap=document.getElementById("superCancelButton");this._aq=new Array(this._an.onclick,this._an.onmouseover,this._an.onmouseout);this._ar=new Array(this._ao.onclick,this._ao.onmouseover,this._ao.onmouseout,this._ao.src.replace("_on",""));this._as=new Array(this._ap.onclick,this._ap.onmouseover,this._ap.onmouseout,this._ap.src);this._an.onclick="";this._an.onmouseover="";this._an.onmouseout="";this._an.style.cursor="";this._ao.onclick="";this._ao.onmouseover="";this._ao.onmouseout="";this._ao.src=this.url+'images/login_off.png';this._ao.style.cursor="";this._ap.onclick="";this._ap.onmouseover="";this._ap.onmouseout="";this._ap.src=this.url+'images/cancel_off.png';this._ap.style.cursor="";this._m=(window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP"));if(this._m){this._m.onreadystatechange=function(){var d=myDialog;if(d._m.readyState==4){if(d._m.status==200){d._a("");if(d._l(d._n=="text"?d._m.responseText:d._m.responseXML)){clearInterval(d._o);d._j=d._n=d._k=d._l=null;d._2();}d._an.onclick=d._aq[0];d._an.onmouseover=d._aq[1];d._an.onmouseout=d._aq[2];d._an.style.cursor="pointer";d._ao.onclick=d._ar[0];d._ao.onmouseover=d._ar[1];d._ao.onmouseout=d._ar[2];d._ao.src=d._ar[3];d._ao.style.cursor="pointer";d._ap.onclick=d._as[0];d._ap.onmouseover=d._as[1];d._ap.onmouseout=d._as[2];d._ap.src=d._as[3];d._ap.style.cursor="pointer";}else{d._l(d._m.statusText);}d._m=null;}};this._m.open("GET",this._k,true);this._m.setRequestHeader('content-type','text/xml');this._m.send(null);}else{this._l("Could not create the request object.");}};_.prototype.setError=function(msg){document.getElementById("superErrorMessage").innerHTML=msg;};_.prototype._c=function(){var a,b;if(window.innerHeight&&window.scrollMaxY){a=this._u?(parent.window.innerHeight+parent.window.scrollMaxY):(window.innerHeight+window.scrollMaxY);}else if(document.body.scrollHeight>document.body.offsetHeight){a=this._u?parent.document.body.scrollHeight:document.body.scrollHeight;}else{a=this._u?parent.document.body.offsetHeight:document.body.offsetHeight;}var c;if(self.innerHeight){c=this._u?parent.innerHeight:self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){c=this._u?parent.document.documentElement.clientHeight:document.documentElement.clientHeight;}else if(document.body){c=this._u?parent.document.body.clientHeight:document.body.clientHeight;}b=(a<c)?c:a;var d=new Array(b,c);return d;};_.prototype._d=function(){if(self.pageYOffset){return this._u?parent.pageYOffset:self.pageYOffset;}else if(document.documentElement&&document.documentElement.scrollTop){return this._u?parent.document.documentElement.scrollTop:document.documentElement.scrollTop;}else if(document.body){return this._u?parent.document.body.scrollTop:document.body.scrollTop;}};_.prototype._e=function(a,b,c){if(!this._u){document.getElementById(a).style.display='';}else{parent.document.getElementById(a).style.display='';}var d=0;for(var i=1;i<=c;i++){setTimeout("myDialog._g("+i+",'"+a+"')",(d*b));d++;}};_.prototype._f=function(a,b,c){var d=0;for(var i=c;i>=0;i--){setTimeout("myDialog._g("+i+",'"+a+"')",(d*b));d++;}};_.prototype._g=function(a,b){var object=this._u?parent.document.getElementById(b).style:document.getElementById(b).style;object.opacity=(a/100);object.MozOpacity=(a/100);object.KhtmlOpacity=(a/100);object.filter="alpha(opacity="+a+")";if(a==0){if(!this._u){document.getElementById(b).style.display='none';}else{parent.document.getElementById(b).style.display='none';}}};if(window.addEventListener){window.addEventListener("load",initSuperDialog,false);}else if(window.attachEvent){window.attachEvent("onload",initSuperDialog);}else{window.onload=function(){initSuperDialog();}}function initSuperDialog(){myDialog=new _('info');}