/*
	EPIONE BEVERLY HILLS - www.epione.com
	JS version 1.0.2
	last updated: 06/21/2010
*/
var COOKIE_NAME='epioneChatBox';var ADDITIONAL_COOKIE_NAME='additional';var pathname=window.location.pathname;var options={path:'/',expires:1};var botox=$("#disclaimerepione");function illegalChar(value){if(value==null||!value.toString().match(/[`~!@#$%^&*()_+|"]/))return false;return true}$(document).ready(function($){var boldchat='http://livechat.boldchat.com';$('ul.subMenu').hide();$('li.ddMenu').hover(function(){$('ul',this).slideDown(200)},function(){$('ul',this).slideUp(200)});if(pathname=='/thank-you/'){$('#epioneOverlay').css('display','block');$('#epioneOverlayContent').append('<iframe src="'+boldchat+'/aid/7891699657744883669/bc.chat?cwdid=8654563203854391165" width="550" height="480"><p>Your browser does not support iframes.</p></iframe>');$('#button_next_0').click(function(){$('#epioneOverlay').fadeOut();$('#epioneOverlayContent').fadeOut(200)});$('a.closeOverlay').click(function(){$('#epioneOverlay').fadeOut();$('#epioneOverlayContent').fadeOut(200)})}if(pathname=='/faq-epione/california/los-angeles/botox/'){$('span#cityName').html('Los Angeles')}if(pathname=='/concerns/'){$('.fullpageNav').append('<br /><div id="pane2"><ul><li><a href="/concerns-face/">Face concerns</a></li><li><a href="/concerns-hair/">Hair concerns</a></li><li><a href="/concerns-skin/">Skin concerns</a></li><li><a href="/concerns-breasts/">Breast concerns</a></li><li><a href="/concerns-body/">Body concerns</a></li></ul></div>')}if(pathname=='/treatments/'){$('.fullpageNav').append('<br /><div id="pane2"><ul><li><a href="/treatments-face/">Face treatments</a></li><li><a href="/treatments-hair/">Hair treatments</a></li><li><a href="/treatments-skin/">Skin treatments</a></li><li><a href="/treatments-breasts/">Breast treatments</a></li><li><a href="/treatments-body/">Body treatments</a></li></ul></div>')}if(pathname=='/concerns/'||pathname=='/treatments/'){$('#navpage ul').css('margin','0')}if(pathname=='/financing-options-for-cosmetic-treatments/'){$('#navpage').append('<div style="color:#94FFFF;"><p>No Interest</p><p>Low monthly payment</p><p>No up-front costs</p><p>No pre-payment penalties</p><p>No annual fees</p></div>')}if(pathname=='/charities/'){$('.fullpageNav').append('<h2 style="font-size:14px;padding:5px 0 0 0;color:#94ffff;font-style:italic;font-weight:lighter;line-height:28px;">&quot;The entire world shall be populous with that action which saves one soul from despair.&quot;</h2>')}function isValidEmailAddress(emailAddress){var pattern=new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);return pattern.test(emailAddress)}$('.btn').click(function(){var globalSearch=$('input#s').val();if(globalSearch=='Search...'||globalSearch==''){alert('Please enter your search keywords');return false}else if(illegalChar(globalSearch)){alert('Error, you may only enter letters and numbers');return false}else{return true}});$('.entry object').append('<param name="wmode" value="transparent">');$('.entry object').find('embed').attr('wmode','transparent');if($.cookie(COOKIE_NAME)==null||$.cookie(COOKIE_NAME)=='chatBoxDefault'){$('#welcomeMessage').hide();$.cookie(COOKIE_NAME,'chatBoxDefault',options);setTimeout(function(){$('#welcomeMessage').fadeIn()},4000)}if($.cookie(COOKIE_NAME)=='chatBox'){$('#welcomeMessage').css('display','none')}$('a#closeChatBox').click(function(){$.cookie(COOKIE_NAME,'chatBox',options);$('#welcomeMessage').fadeOut(1000);return false});$(".confirmit").click(function(){if(confirm('You are about to leave epione site.')){return true}else{return false}});$(".doctorProfileLink").click(function(){if(confirm('You are about to enter someone else page.\nThis page is not part of epione')){return true}else{return false}});if($.cookie(ADDITIONAL_COOKIE_NAME)=='doctorTerms'){$("#searchIt").click(function(){var botoxsearch=$('input#botoxsearch').val();if(botoxsearch==''||botoxsearch=='Zip Code...'){alert('Please enter your search');return false}if(botoxsearch.length<=3){alert('Your input is too short. ex. 90210');return false}if(illegalChar(botoxsearch)){alert('Illegal Characters. Only Letters and Numbers are allowed');return false}});if($.browser.msie){$("#botoxsearch").keypress(function(e){if(e.keyCode=='13'){var botoxsearch=$('input#botoxsearch').val();if(botoxsearch==''||botoxsearch=='Zip Code...'){alert('Please enter your search');return false}if(botoxsearch.length<=3){alert('Your input is too short. ex. 90210');return false}if(illegalChar(botoxsearch)){alert('Illegal Characters. Only Letters and Numbers are allowed');return false}}})}}else{$("#searchIt").click(function(){var botoxsearch=$('input#botoxsearch').val();if(botoxsearch==''||botoxsearch=='Zip Code...'){alert('Please enter your search');return false}if(botoxsearch.length<=3){alert('Your input is too short. ex. 90210');return false}if(illegalChar(botoxsearch)){alert('Illegal Characters. Only Letters and Numbers are allowed');return false}if(confirm('I understand that the physicians whose names appear in the following directory are in NO way affiliated with Epione Medical Corporation, its shareholders, or employees.  This list is provided for informational purposes only and may not contain the name of every physician to whom the search criteria may apply. I have read and accept the Terms of Use.')){$.cookie(ADDITIONAL_COOKIE_NAME,'doctorTerms',options);return true}else{return false}});if($.browser.msie){$("#botoxsearch").keypress(function(e){if(e.keyCode=='13'){var botoxsearch=$('input#botoxsearch').val();if(botoxsearch==''||botoxsearch=='Zip Code...'){alert('Please enter your search');return false}if(botoxsearch.length<=3){alert('Your input is too short. ex. 90210');return false}if(illegalChar(botoxsearch)){alert('Illegal Characters. Only Letters and Numbers are allowed');return false}if(confirm('I understand that the physicians whose names appear in the following directory are in NO way affiliated with Epione Medical Corporation, its shareholders, or employees.  This list is provided for informational purposes only and may not contain the name of every physician to whom the search criteria may apply. I have read and accept the Terms of Use.')){$.cookie(ADDITIONAL_COOKIE_NAME,'doctorTerms',options);return true}else{return false}}})}}});
