function toggle_div(id){var the_target=document.getElementById(id);if(the_target.style.display=='none'){the_target.style.display='block';}else{the_target.style.display='none';}}function swap_divs(id1,id2){var id1=document.getElementById(id1);var id2=document.getElementById(id2);if(id1.style.display=='none'){id1.style.display='block';}else{id1.style.display='none';}if(id2.style.display=='none'){id2.style.display='block';}else{id2.style.display='none';}}function show_div(id){var the_target=document.getElementById(id);the_target.style.display='block';}function hide_div(id){var the_target=document.getElementById(id);the_target.style.display='none';}function createCookie(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}else var expires="";document.cookie=name+"="+value+expires+"; path=/";}function readCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);}return null;}function eraseCookie(name){createCookie(name,"",-1);}function news_bubble(choice){var trigger=document.getElementById('trigger');var news_bubble=document.getElementById('news_bubble');var news_bubble_btn=document.getElementById('news_bubble_btn');var n_3_link=document.getElementById('n_3_link');if(choice=='on'){trigger.style.display='block';news_bubble.style.display='block';news_bubble_btn.style.display='block';n_3_link.style.backgroundPosition='-251px';}else{trigger.style.display='none';news_bubble.style.display='none';news_bubble_btn.style.display='none';n_3_link.style.backgroundPosition='0';}}var news_bubble_timer;function news_bubble_start(){news_bubble_timer=setTimeout("news_bubble('on')",400);}function news_bubble_stop(){clearTimeout(news_bubble_timer);}function jump(choice){var the_url=choice.options[choice.selectedIndex].value;if(the_url){location.href=the_url;}}function launch_rep_form(){Shadowbox.open({type:'iframe',content:'rep_form.php',height:623,width:570});}function get_client(id){$('loading').style.display='block';new Ajax.Updater('profile','clients.php?get_id='+id,{method:'get',onSuccess:function(transport){transport.responseText||"no response text";function fade_loading(){new Effect.Fade('loading');clearInterval(fade_loading_id);}var fade_loading_id=setInterval(fade_loading,500);},onFailure:function(){alert('We are unable to retrieve this clients profile at this time.');}});}