/* EPIONE - digiwork.us */
(function popup(){$(document).ready( function(){$("a[rel='enlargeIt']").click(function(){var features="height=800,width=560,scrollTo,resizable=1,scrollbars=1,location=0";newwindow=window.open(this.href,'Popup',features);return false;});});}());function setCookie(c_name,value,expireHours){var exhour=new Date();exhour.setHours(exhour.getHours()+1);document.cookie=c_name+ "=" +escape(value)+((expireHours==null)? "":";expires="+exhour.toGMTString());}function getCookie(c_name){if(document.cookie.length>0){c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1){c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}return "";}$(document).ready(function($){var pathname=window.location.pathname;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="640" 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);}$('#subscribe').click(function(){var subscriberName=$('input#attribute1').val();var subscriberEmail=$('input#email').val();var subscriberList=$("input[@id=attribute07]:checked").length;var tos=$("input[@id=attribute12]:checked").length;if(subscriberName=='Name:'||subscriberName==''){alert('Please enter your name');return false;}else if(subscriberEmail=='Email:'||subscriberEmail==''){alert('Please enter your email address');return false;}else if(isValidEmailAddress(subscriberEmail)== false){alert('Please make sure to enter the right email address ex:johndoe@epione.com');return false;}else if(subscriberList==0){alert('Please make sure to check our terms and conditions');return false;}else if(tos==0){alert('Please make sure to check our terms and conditions');return false;}else{return true;}});$('.btn').click(function(){var globalSearch=$('input#s').val();if(globalSearch=='Search...'||globalSearch==''){alert('Please enter your search keywords');return false;}else{return true;}});$('.entry object').append('<param name="wmode" value="transparent">');$('.entry object').find('embed').attr('wmode','transparent');if(getCookie('show_message')!='no'){$('#welcomeMessage').css("bottom","0");setTimeout(function(){ $('#welcomeMessage').fadeIn();},1500);}else{$('#welcomeMessage').css("display","none");}$('#welcomeMessageClose').click(function(){$('#welcomeMessage').fadeOut(600);setCookie('show_message','no',1);});$(".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;}});});