
window.addEvent('domready',function(){var ext=$$('a.external');ext.each(function(e){e.addEvent('click',function(ev){ev=new Event(ev).stop();window.open(e.getProperty('href'),'_blank');});});var print=$$('a.print');if(print.length>0)
{print.each(function(p)
{p.addEvent('click',function(e){e=new Event(e).stop();window.print();});});}
var szNormal=49,szSmall=49;var szFull=new Array(97,64,99,169);var snnctitle=$$("#snnctitle .snnctitle");var sofx=new Fx.Elements(snnctitle,{wait:false,duration:200,transition:Fx.Transitions.Expo.easeOut});snnctitle.each(function(kwick,i){kwick.addEvent("mouseenter",function(event){var o={};o[i]={width:[kwick.getStyle("width").toInt(),szFull[i]]}
snnctitle.each(function(other,j){if(i!=j){var w=other.getStyle("width").toInt();if(w!=szSmall)o[j]={width:[w,szSmall]};}});sofx.start(o);});});$("snnctitle").addEvent("mouseleave",function(event){var o={};snnctitle.each(function(kwick,i){o[i]={width:[kwick.getStyle("width").toInt(),szNormal]}});sofx.start(o);})
$("snnctitle").addEvent("click",function(){window.open('/about/sononaco/','_self');});$("sononaco_logo").addEvent("click",function(){window.open('/','_self');});var svctips=$$('img.svcike');if(svctips.length>0)
{svctips.each(function(e,idx){var tipClass=e.getProperty('class').split(' ');switch(tipClass[0])
{case"bbedit":$(e).store('tip:title','BBEdit');$(e).store('tip:text','Elements of this site were hand-coded using BBEdit.');break;case"custom":$(e).store('tip:title','Custom Application');$(e).store('tip:text','This site is powered by a completely custom open source application framework.');break;case"drupal":$(e).store('tip:title','Drupal Hosting/Development');$(e).store('tip:text','This site was built using the Drupal Content Management System');break;case"flash":$(e).store('tip:title','Flash');$(e).store('tip:text','Flash used in the development of the site.');break;case"hosting":$(e).store('tip:title','Hosting');$(e).store('tip:text','Sononaco is proud to host this site.');break;case"joomla":$(e).store('tip:title','Joomla Hosting/Development');$(e).store('tip:text','This site was built using the Joomla Content Management System');break;case"moo":$(e).store('tip:title','Mootools Integration');$(e).store('tip:text','This site incorporates uses Mootools!');break;case"psd":$(e).store('tip:title','Adobe Photoshop Design');$(e).store('tip:text','We used PhotoShop in the design/slicing of the site.');break;case"s9y":$(e).store('tip:title','Serendipity Web Blog');$(e).store('tip:text','This site\'s blog is powered by the <a href="http://www.s9y.org/" target="_blank">Serendipity</a>');break;case"video":$(e).store('tip:title','Video Production/Editing');$(e).store('tip:text','Sononaco provides video filming and/or production for this client.');break;case"visa":$(e).store('tip:title','Secure Online Transactions');$(e).store('tip:text','Online payment/donation/contribution services are integrated directly into the site.');break;case"zend":$(e).store('tip:title','Zend Framework');$(e).store('tip:text','This site was built using the Zend Framework.');break;case"zimbra":$(e).store('tip:title','Zimbra');$(e).store('tip:text','This client communicates effectively with the Zimbra Collaboration Suite.');break;}});var tips=new Tips('.svcike',{className:'svciketip',fixed:true,hideDelay:50,showDelay:50});}
if($chk($('fieldset-recurringDetails')))
{var rd=$('fieldset-recurringDetails');var rdfx=new Fx.Tween(rd);if($('occurrences').get('value')=="once")
{rd.set('opacity','0');}
$('occurrences').addEvent('change',function(){if($('occurrences').get('value')=="once")
{rdfx.start('opacity','0')}else{rdfx.start('opacity','1');}});};if($chk($('cardno')))
{$('cardno').addEvent('keyup',function(e)
{e=new Event(e).stop();if($('cardno').get('value').length>3)
{setCard($('cardno').get('value').substr(0,1).toInt());}});if($('cardno').get('value').length>0)
{setCard($('cardno').get('value').substr(0,1).toInt());}}
function setCard(c)
{var img=$('card_types');switch(c)
{case 3:img.setProperty('src','/images/etc/cards_amex.gif')
break;case 4:img.setProperty('src','/images/etc/cards_visa.gif')
break;case 5:img.setProperty('src','/images/etc/cards_mc.gif')
break;case 6:img.setProperty('src','/images/etc/cards_discover.gif')
break;default:img.setProperty('src','/images/etc/cards.gif');break;}}
if($chk($('makeCorrections')))
{$('makeCorrections').addEvent('click',function(){window.open('/pay/','_self');})}
if($chk($('makeCorrections')))
{$('processPayment').addEvent('click',function(){window.open('/pay/process/','_self');})}});