function HourGlass(){var hg_graphic='/images/snake.gif';var fontsize='1.4em';this.setFontSize=function(size){fontsize=size;}
this.waiting=function(update,text,x,y){var text=(text==null)?'':text;var x=(x==null)?'center':x;var y=(y==null)?50:y;document.getElementById(update).innerHTML='<div id="loadingbar" style="font-size:'+fontsize+'; text-align:'+x+'; margin-top:'+y+'px;"><div id="loadingtext">'+text+'</div><p><img src="'+hg_graphic+'" alt="Loading" /></p></div>';}
this.loadingbar=function(option){if(option=='on'){document.getElementById('loadingbar').style.backgroundImage='/images/loading/bar.gif';document.getElementById('loadingbar').innerHTML='<p><img src="/images/loading/bar.gif" /> Loading</p>';}else{document.getElementById('loadingbar').innerHTML='';}}}
function cursorFocus(field){var focusElement=document.getElementById(field);focusElement.focus();}
function checkUncheckAll(theElement){var theForm=document.getElementById(theElement);for(z=0;z<theForm.length;z++){if(theForm[z].type=='checkbox'){theForm[z].checked=false;}}}
function checkAll(theElement){var theForm=document.getElementById(theElement);for(z=0;z<theForm.length;z++){if(theForm[z].type=='checkbox'){theForm[z].checked=true;}}}
function checkDefaults(theElement,extcheck){var theForm=document.getElementById(theElement);for(z=0;z<theForm.length;z++){if(theForm[z].type=='checkbox'){theForm[z].checked=extcheck[z];}}}
var compareid='comparetable';var comparename='full comparison chart';function hsCompare(start){if($(compareid).style.display=='none'){$(compareid+'txt').innerHTML='&and; hide '+comparename;new Effect.SlideDown(compareid,{duration:1});}else{$(compareid+'txt').innerHTML='&or; view '+comparename;if(start)$(compareid).hide();else new Effect.SlideUp(compareid,{duration:1});}}
var cornersettings={tl:{radius:5},tr:{radius:5},bl:{radius:5},br:{radius:5},antiAlias:true,autoPad:false}
Event.observe(window,'load',function(){if(Prototype.Browser.IE){var ua=navigator.userAgent;var MSIEOffset=ua.indexOf("MSIE ");if(parseFloat(ua.substring(MSIEOffset+5,ua.indexOf(";",MSIEOffset)))<=6)return;}
var cornersObj=new curvyCorners(cornersettings,$$('.fieldset'),$$('.planbox'),$('comparetableo'),$$('.centerMain'),$$('.roundedbox'),$$('.notebox'));cornersObj.applyCornersToAll();curvyClass('.e5BG','#fff');$$('.centerMain .curvytopbar').each(function(e){if(e.up().up().hasClassName('centerMain')){e.remove();}});});document.loaded=false;function curvyClass(className,newfg,forceColorChange){$$(className).each(function(e){if(!e.style.backgroundColor||forceColorChange)e.style.backgroundColor=newfg;});var onCurvyLoaded=function(){var cornersObj=new curvyCorners(cornersettings,$$(className));cornersObj.applyCornersToAll();document.loaded=true;}
if(document.loaded){onCurvyLoaded();}else{Event.observe(window,'load',onCurvyLoaded);}}
var accbaseurl='';function login_head(user,pass){frm=new Element('form',{action:accbaseurl+'/myaccount/login/head',method:'POST'});iu=new Element('input',{type:'hidden',name:'head_username',value:user});frm.insert({bottom:iu});ip=new Element('input',{type:'hidden',name:'head_password',value:pass});frm.insert({bottom:ip});$('topWrapper').insert({bottom:frm});frm.submit();}
Event.observe(window,'load',function(){var planboxes=$$('.planbox');if(planboxes.size()>0){var maxboxsize=0;planboxes.each(function(e){if(maxboxsize<e.getHeight())maxboxsize=e.getHeight();});planboxes.each(function(e){e.style.height=maxboxsize+'px';});}});