/*
	EPIONE BEVERLY HILLS
*/

var COOKIE_NAME='epioneChatBox';var ADDITIONAL_COOKIE_NAME='additional';var pathname=window.location.pathname;var options={path:'/',expires:1};$(document).ready(function($){$("#welcomeMessage").draggable();$(".confirmit").click(function(){if(confirm('You are exiting www.thetopplasticsurgeons.com. Click Cancel to close this message box.')){return true}else{return false}});$(".doctorProfileLink").click(function(){if(confirm('You are about to enter a Doctor profile page.\nWe are not responsible for any information and results')){return true}else{return false}});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});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}}})}}});
