function MM_showHideLayers(){var i,p,v,obj,args=MM_showHideLayers.arguments;for(i=0;i<(args.length-2);i+=3)if((obj=MM_findObj(args[i]))!=null){v=args[i+2];if(obj.style){obj=obj.style;v=(v=='show')?'visible':(v=='hide')?'hidden':v;}
obj.visibility=v;}}
function showHideDiv(){var i,p,v,obj,args=showHideDiv.arguments;for(i=0;i<(args.length-2);i+=3)if((obj=MM_findObj(args[i]))!=null){v=args[i+2];if(obj.style){obj=obj.style;v=(v=='show')?'inline':(v=='hide')?'none':v;}
obj.display=v;}}
function stand_alone(lnk)
{winname="standalone"+Math.floor(Math.random()*(100+1))
standalone=window.open(lnk,winname,"height=650,width=800,scrollbars,resizable");standalone.focus();}
function stand_alone_small(lnk)
{winname="standalone"+Math.floor(Math.random()*(100+1))
standalone=window.open(lnk,winname,"height=450,width=650,scrollbars,resizable");standalone.focus();}
function edit_weblog(weblog,category)
{var width;var height;var screen_x=screen.width;var screen_y=screen.height;if(screen_x==800)
{width=790;height=530;}
else
{width=810;height=600;}
wind_name="cwlog"+Math.floor(Math.random()*(100+1))
this_window=window.open("/weblog/dis_public/edit_weblog.php?weblog="+weblog+"&category="+category,wind_name,"height="+height+",width="+width+",left=0,top=0,scrollbars,resizable,left=0,top=0");this_window.focus();}
function create_weblog(postid)
{create_specific_weblog(postid,'internalnews');}
function create_specific_weblog(postid,weblog)
{create_specific_weblog_category(postid,weblog,'',0);}
function create_specific_weblog_category(postid,weblog,category,displayWeblogCategory)
{var width;var height;var screen_x=screen.width;var screen_y=screen.height;if(screen_x==800)
{width=790;height=530;}
else
{width=860;height=600;}
wind_name="cwlog"+Math.floor(Math.random()*(100+1))
this_window=window.open("/weblog/dis_public/post_weblog.php?post_id="+postid+"&weblog="+weblog+"&category="+category+"&diplayWeblogCategory="+displayWeblogCategory,wind_name,"height="+height+",width="+width+",left=0,top=0,scrollbars,resizable,left=0,top=0");this_window.focus();}
function create_window(page)
{var width;var height;var screen_x=screen.width;var screen_y=screen.height;if(screen_x==800)
{width=790;height=530;}
else
{width=810;height=600;}
wind_name="cwlog"+Math.floor(Math.random()*(100+1))
this_window=window.open(page,wind_name,"height="+height+",width="+width+",left=0,top=0,scrollbars,resizable,left=0,top=0");this_window.focus();}
function gotoCategory(index){document.categories.submit()}
function gotoCategory(index,formname){formname.submit()}
function MM_reloadPage(init){if(init==true)with(navigator){if((appName=="Netscape")&&(parseInt(appVersion)==4)){document.MM_pgW=innerWidth;document.MM_pgH=innerHeight;onresize=MM_reloadPage;}}
else if(innerWidth!=document.MM_pgW||innerHeight!=document.MM_pgH)location.reload();}
function MM_openBrWindow(theURL,winName,features){window.open(theURL,winName,features);}
function MM_preloadImages(){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_swapImgRestore(){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_swapImage(){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];}}
function MM_findObj(n,d){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&&document.getElementById)x=document.getElementById(n);return x;}
function MM_validateForm(){var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;for(i=0;i<(args.length-2);i+=3){test=args[i+2];val=MM_findObj(args[i]);if(val){nm=val.name;if((val=val.value)!=""){if(test.indexOf('isEmail')!=-1){p=val.indexOf('@');if(p<1||p==(val.length-1))errors+='- '+nm+' must contain an e-mail address.\n';}else if(test!='R'){if(isNaN(val))errors+='- '+nm+' must contain a number.\n';if(test.indexOf('inRange')!=-1){p=test.indexOf(':');min=test.substring(8,p);max=test.substring(p+1);if(val<min||max<val)errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';}}}else if(test.charAt(0)=='R')errors+='- '+nm+' is required.\n';}}if(errors)alert('The following error(s) occurred:\n'+errors);document.MM_returnValue=(errors=='');}
function tmt_regExpValidator(f,re,eMsg,ru,r){var myErr="";var fv=MM_findObj(f).value;var rex=new RegExp(unescape(re));var t=eval(ru+rex.test(fv));if(r){if(fv.length<=0||!t){alert(unescape(eMsg));myErr+="eMsg";}}
else if(fv.length>0&&!t){alert(unescape(eMsg));myErr+="eMsg";}document.MM_returnValue=(myErr=="");}
var top=-26;var bot=104;var x=new Array(5);x[0]='laya';x[1]='layb';x[2]='layc';x[3]='layd';x[4]='laye';var speed=10;var delay=10;var m;var ie=(document.all)?1:0;function over(){o='on';setTimeout("o='on'",delay);}
function mop(l){t=l;o='off';setTimeout('cup()',delay);}
function goup(){for(z=0;x[z];z++){if(ie){test=document.all[x[z]].style.pixelTop>top;}
else{test=document.layers[x[z]].top>top;}
if(test){upper(x[z]);}}}
function cup(){for(z=0;x[z];z++){if(x[z]==t&&o=='off'){upper(x[z]);}}}
function downer(y){clearTimeout(m);for(z=0;x[z];z++){if(x[z]!=y){if(ie){document.all[x[z]].style.pixelTop=top;}
else{document.layers[x[z]].top=top;}}}
if(ie){test=document.all[y].style.pixelTop>=bot;}
else{test=document.layers[y].top>=bot;}
if(test){clearTimeout(m);if(ie){document.all.clear.style.visibility='visible';}
else{document.layers.clear.visibility='visible';}
if(ie){document.all.clear2.style.visibility='visible';}
else{document.layers.clear2.visibility='visible';}}else{if(ie){document.all[y].style.pixelTop+=speed;}
else{document.layers[y].top+=speed;}
m=setTimeout("downer('"+y+"')",delay);}}
function upper(y){clearTimeout(m);if(ie){test=document.all[y].style.pixelTop<=top;}
else{test=document.layers[y].top<=top;}
if(test){clearTimeout(m);if(ie){document.all.clear.style.visibility='hidden';}
else{document.layers.clear.visibility='hidden';}
if(ie){document.all.clear2.style.visibility='hidden';}
else{document.layers.clear2.visibility='hidden';}}else{if(ie){document.all[y].style.pixelTop-=speed;}
else{document.layers[y].top-=speed;}
m=setTimeout("upper('"+y+"')",delay);}}
function show(){for(z=0;x[z];z++){if(ie){document.all[x[z]].style.visibility='visible';}
else{document.layers[x[z]].visibility='visible';}}}
var quickinfo,mtpopupwin,paybycheck;function tmt_winOpen(u,id,f,df){if(eval(id)==null||eval(id+".closed")){eval(id+"=window.open('"+u+"','"+id+"','"+f+"')");eval(id+".focus()");}
else if(df){eval(id+".focus()");}
else{eval(id+"=window.open('"+u+"','"+id+"','"+f+"')");eval(id+".focus()");}}
function tmt_winManage(id,c,x,y){var d=eval(id)==null||eval(id+".closed");if(!d){eval(id+"."+c+"("+x+","+y+")");}}
function tmt_winControl(id,c){var d=eval(id)==null||eval(id+".closed");if(!d){eval(id+"."+c);}}
function MM_displayStatusMsg(msgStr){status=msgStr;document.MM_returnValue=true;}
function mt_formValue(f,p){document.form.elements[0].value=p;}
function getObj(name)
{if(document.getElementById)
{this.obj=document.getElementById(name);this.style=document.getElementById(name).style;}
else if(document.all)
{this.obj=document.all[name];this.style=document.all[name].style;}
else if(document.layers)
{this.obj=document.layers[name];this.style=document.layers[name];}
else
{this.obj=null;this.style=null;}}
function getElement(id)
{return document.getElementById?document.getElementById(id):document.all?document.all(id):null;}
function MM_showHideTierDescription(i,n,p,v)
{obj=document.all[i];if(obj!=null)
{par=document.all[n];hide=document.all['opaque'];var mainX=0;var mainY=0;var newX=findPosX(par)+19;var newY=findPosY(par)+20;v=(v=='show')?'visible':(v='hide')?'hidden':v;hide.style.width=obj.offsetWidth;hide.style.height=obj.offsetHeight;hide.style.left=newX+'px';hide.style.top=newY+'px';obj.style.left=newX+'px';obj.style.top=newY+'px';hide.style.visibility=v;obj.style.visibility=v;}}
function findPosX(obj)
{var curleft=0;if(obj.offsetParent)
{while(obj.offsetParent)
{curleft+=obj.offsetLeft
obj=obj.offsetParent;}}
else if(obj.x)
curleft+=obj.x;return curleft;}
function findPosY(obj)
{var curtop=0;if(obj.offsetParent)
{while(obj.offsetParent)
{curtop+=obj.offsetTop
obj=obj.offsetParent;}}
else if(obj.y)
curtop+=obj.y;return curtop;}
function FIND(item){if(window.mmIsOpera)return(document.getElementById(item));if(document.all)return(document.all[item]);if(document.getElementById)return(document.getElementById(item));return(false);}