var ajaxBlueStroberBlueOnGray="<img src='/gfx/strobe_smallcircle_blue_on_gray.gif'/>";var _loginMode="login";var _PPT_CDN_IMG="http://cdn1.pastorgraphics.com/thumbs";var _VIDEO_CDN_IMG="http://cdn1.pastorgraphics.com/thumbs2";var _PPT_CDN="http://cdn1.pastorgraphics.com/download";var _VIDEO_CDN="http://cdn1.pastorgraphics.com/download2";var _SECURE_URL="https://www.pastorgraphics.com/";var _NONSECURE_URL="http://www.pastorgraphics.com/";$(document).ready(function(){var b=readCookie("type");if(b==1||b==2){$("#type").val(b)}$("#login_box_password").attr("disabled",false);$("#login_box_username").attr("disabled",false);$("#login_box_password").keydown(function(d){if(d.keyCode==13){pppLogin($("#login_button"))}});$("#login_box_username").keydown(function(d){if(d.keyCode==13){pppLogin($("#login_button"))}});$("#login_welcome_name").show();$("#login_welcome_text").show();var a=0;$(".moveLink").hover(function(){$(this).animate({fontSize:"1.1em"},a)},function(){$(this).animate({fontSize:"1em"},0)});$(".seasonalLink").hover(function(){$(this).animate({fontSize:"1.1em"},a)},function(){$(this).animate({fontSize:"1.0em"},0)});$(".menuHover").hover(function(){$(this).addClass("menuHoverColor")},function(){$(this).removeClass("menuHoverColor")});$("#search_tabs").tabs();$("#dialog").dialog({autoOpen:false,width:540,resizable:false,bgiframe:true,modal:true,buttons:{Search:function(){advSearch()},Cancel:function(){$(this).dialog("close")}}});$("#advanced_search").click(function(){$("#dialog").dialog("open");return false});$("#pptsignup").dialog({autoOpen:false,width:640,bgiframe:true,resizable:false,modal:true,buttons:{"Sign Up and Start Downloading!":function(){window.location=_SECURE_URL+"?mode=register&ppt=1"},Cancel:function(){$(this).dialog("close")}}});$("#videosignup").dialog({autoOpen:false,width:640,bgiframe:true,resizable:false,modal:true,buttons:{"Sign Up and Start Downloading!":function(){window.location=_SECURE_URL+"?mode=register&video=1&ppt=0"},Cancel:function(){$(this).dialog("close")}}});$("#membershipResultBox").dialog({autoOpen:false,width:640,resizable:false,modal:true,bgiframe:true,close:function(){window.location=_NONSECURE_URL},buttons:{"Start Using Your New Membership!":function(){window.location=_NONSECURE_URL}}});$("#videosignup").dialog({autoOpen:false,width:640,resizable:false,bgiframe:true,modal:true,buttons:{"Sign Up and Start Downloading!":function(){window.location=_SECURE_URL+"?mode=register&video=1&ppt=0"},Cancel:function(){$(this).dialog("close")}}});$("#verify").dialog({autoOpen:false,width:580,bgiframe:true,resizable:false,modal:true,buttons:{Close:function(){$(this).dialog("close")}}});$("#suggestionbox").dialog({autoOpen:false,width:640,resizable:false,bgiframe:true,modal:true,buttons:{"Submit It!":function(){submitSuggestion()},Cancel:function(){$(this).dialog("close")}}});$("#feedbackbox").dialog({autoOpen:false,width:760,resizable:false,bgiframe:true,modal:true,buttons:{"Submit It!":function(){submitFeedback()},Cancel:function(){$(this).dialog("close")}}});$("#ideaType").change(function(){if($("#ideaType").val()==0){$("#ideaTitleTable").show();$("#suggestWordType").html("Idea");$("#suggestWord, #suggestWord2").html("Graphic Set")}else{if($("#ideaType").val()==1){$("#ideaTitleTable").show();$("#suggestWordType").html("Idea");$("#suggestWord, #suggestWord2").html("Video")}else{$("#ideaTitleTable").hide();$("#suggestWordType").html("Comments")}}});$("#type").change(function(){var d=$("#type").val();if(d==1||d==2){createCookie("type",d,1)}else{createCookie("type",0,1)}});$("#pptsignup_tabs").tabs();$("#suggestionbox_tabs").tabs();$("#videosignup_tabs").tabs();$("#search_box").autocomplete(_NONSECURE_URL+"search/",{width:260,scrollHeight:220,max:30,minChars:1,selectFirst:false});$("input").hint();$("#breadCrumb0").jBreadCrumb();handleMenu();var c=query("logout");if(c==1){$.jGrowl("You have logged out.  Visit us again soon!",{life:7000,header:'<img width="24" height="24" style="float:left" src="/images/function/accepted_48.png">&nbsp;&nbsp;Logged Out'});eraseCookie("uid");eraseCookie("sess")}$.ajaxSetup({cache:false})});function openPPT(){$("#pptsignup").dialog("open")}function openVerify(){$("#verify").dialog("open")}function openVideo(){$("#videosignup").dialog("open")}function playPreview(a){$("#moviePreviewThumb").html("<div style='z-index:0;position: relative;'><object id='flashmovie' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='384' height='250' ><param name='quality' value='best'><param name='movie' value='/video/ppp_video.swf?pppSource="+_VIDEO_CDN_IMG+"/"+a+".flv'><param name='pppSource' value='videoLocation="+_VIDEO_CDN_IMG+"/"+a+".flv?pppSource="+_VIDEO_CDN_IMG+"/"+a+".flv'><embed src='/video/ppp_video.swf' loop='true' quality='best' wmode='transparent' flashvars='pppSource="+_VIDEO_CDN_IMG+"/"+a+".flv' height='250' width='384'></object></div>");$("#play_header").html("Playing Preview");$("#play_text").html("Note: Logo only appears in the preview video.")}function stopPreview(c,a){if($("#UID").val()<=0){var b=navigator.userAgent.toLowerCase().indexOf("chrome")>-1;if(!b){$("#moviePreviewThumb").html("  <span class='cursor' onclick='playPreview(\""+c+"\",\"video\")'><img width='350' src='"+_VIDEO_CDN_IMG+"/"+c+"_tilt2.jpg'/></span>");$("#play_header").html("Play Preview");$("#play_text").html("Play the preview of this video")}if(a!="false"){openVideo()}}else{if(a!="false"){addFavorite(c)}}}function openSuggestion(){$("#suggestionbox").dialog("open")}function openFeedback(){$("#feedbackbox").dialog("open")}function submitSuggestion(){var d=cleanJSON($("#ideaText").val());var c=cleanJSON($("#ideaTitle").val());var a=cleanJSON($("#ideaSubtitle").val());var b=cleanJSON($("#ideaType").val());if(d==""||d=="||"){$.jGrowl("Please enter your idea before submitting!",{life:4000,header:'<img width="24" height="24" style="float:left" src="/images/function/cross_48.png">&nbsp;&nbsp;Idea Box is Empty!'});$("#ideaText").effect("shake");return}$.getJSON(_NONSECURE_URL+"?service=ppp2&module=feedback&feedbacktype="+b+"&feedback="+d+"&feedbacktitle="+c+"&feedbacksubtitle="+a+"&cback=?",function(e){return});$.jGrowl("Thank you for your feedback.  We promise to read each and every one!",{life:8000,header:'<img width="24" height="24" style="float:left" src="/images/function/accepted_48.png">&nbsp;&nbsp;Idea Sent!'});$("#suggestionbox").dialog("close");$("#ideaText").val("");$("#ideaType").val(0)}function submitFeedback(){var b=cleanJSON($("#feedbackType").val());var a=cleanJSON($("#feedbackName").val());var d=cleanJSON($("#feedbackEmail").val());var e=cleanJSON($("#feedbackSubject").val());var f=cleanJSON($("#feedbackText").val());var c=getRand();if(a==""){$.jGrowl("Please enter your name",{life:4000,header:'<img width="24" height="24" style="float:left" src="/images/function/cross_48.png">&nbsp;&nbsp;Name Needed'});$("#feedbackName").effect("shake",{times:1});$("#feedbackName").focus();return}if(d==""){$.jGrowl("Please enter your e-mail",{life:4000,header:'<img width="24" height="24" style="float:left" src="/images/function/cross_48.png">&nbsp;&nbsp;E-mail Needed'});$("#feedbackEmail").effect("shake");$("#feedbackEmail").focus();return}if(f==""){$.jGrowl("Please enter your comments",{life:4000,header:'<img width="24" height="24" style="float:left" src="/images/function/cross_48.png">&nbsp;&nbsp;Comment Needed'});$("#feedbackText").effect("shake");$("#feedbackText").focus();return}$.getJSON(_NONSECURE_URL+"?service=ppp3&module=feedback&feedbacktype="+b+"&feedback="+f+"&feedbackemail="+d+"&feedbacksubject="+e+"&feedbackname="+a+"&rnd="+c+"&cback=?",function(g){return});$.jGrowl("Thank you for contacting us.  If a response is required, we will e-mail you at the address you provided.",{life:10000,header:'<img width="24" height="24" style="float:left" src="/images/function/accepted_48.png">&nbsp;&nbsp;Comment Sent!'});$("#feedbackbox").dialog("close");$("#feedbackText").val("");$("#feedbackSubject").val("");$("#feedbackType").val(0)}function pppResize(b,a){$(b).animate({fontSize:a})}function pppLogin(e){var c=$(e).html();var a=$("#login_box_username").val();a=jQuery.trim(a);var b=$("#login_box_password").val();b=jQuery.trim(b);if(a=="Username or Email"||a==""){$(e).html(c);$("#loginResultText").html("Enter Username or Email");$("#login_box_username").effect("highlight",{},1000);return true}if((b=="Password"||b=="")&&_loginMode=="login"){$(e).html(c);$("#loginResultText").html("Please Enter Password");$("#login_box_password").effect("highlight",{},1000);return true}if(_loginMode=="login"){$(e).html(ajaxBlueStroberBlueOnGray);$("#loginResultText").html("Logging In...");$("#login_box_password").attr("disabled",true);$("#login_box_username").attr("disabled",true);$("#front_lost_password_link").hide();var d=getRand();$.getJSON(_SECURE_URL+"?service=ppp&module=lg&l="+a+"&p="+b+"&rnd="+d+"&cback=?",function(f){pppLoginHandler(f)})}else{$("#sendPasswordText").html("Password sent to "+a+"!");$("#login_box_username").attr("disabled",true);$("#login_button").hide()}}function pppLoginHandler(c){var b=c.result;if(b=="error"){pppResetLoginBox();$("#loginResultText").html("Wrong Login.  Try again.");$("#loginResultText").effect("highlight")}else{if(b=="inactive"){pppResetLoginBox();$("#loginResultText").html("Sorry, account disabled.");$("#loginResultText").effect("highlight")}else{if(b=="ok"){var d=c.user;$("#loginResultText").html("Account Overview");$("#loginResultText").addClass("bottomMargin4");var i=c.ppt_str;var f=c.video_str;var e=c.print_str;if(i==null){i=""}if(f==null){f=""}if(e==null){e=""}var a=c.sess;var j=c.uid;createCookie("sess",a,1);createCookie("uid",j,1);var h=i+f+e;var g=$("#surpressreload").val();$("#UID").val(100);if(g!="true"){window.location=_NONSECURE_URL}else{window.location.reload()}$("#loginResultContent").html("<div id='login_welcome_name' class='smallerFont1 blueShade'>Welcome Back "+d+"!</div><div id='login_welcome_text' class=' bottomMargin4 smallerFont2'>"+h+"</div><div>&nbsp;<a href='"+_NONSECURE_URL+"?mode=account'><img src='/gfx/button_my_account.png' /></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class='cursor'   onclick='pppLogout()'><img src='/gfx/button_log_out.png' /></a></div>");$("#loginResultContent").show();$("#login_box_username").hide();$("#login_box_password").hide();$("#login_button_area").hide();$("#login_button").hide();$("#menuStrip").hide("slide",{direction:"right"},400);$("#dynamic_content_1").fadeOut(300);$("#dynamic_content_3").fadeOut(300);$("#menuButton1").html("Downloads");$("#menuButton1").click(function(){window.location=_NONSECURE_URL+"?mode=downloads"});$("#menuButton2").html("Favorites");$("#menuButton2").click(function(){window.location=_NONSECURE_URL+"?mode=favorites"});$("#menuButton3").html("Customize");$("#menuButton3").click(function(){window.location=_SECURE_URL+"?mode=customize"});$("#menuButton4").html("Payments");$("#menuButton4").click(function(){window.location=_SECURE_URL+"?mode=payments"});$("#menuStrip").effect("slide",{},800,fadeControl("#dynamic_content_2",3000));handleMenu()}}}}function addFavorite(b,a){if($("#UID").val()<1){if(a=="video"){openVideo()}else{openPPT()}return}$("#favorite_icon").attr("src","/gfx/strobe_smallcircle_blue_on_gray.gif");$("#favorite_header").html("Adding to Favorites...");$.getJSON(_NONSECURE_URL+"?service=ppp2&module=bookmark&objectid="+b+"&cback=?",function(c){addFavoriteHandler(c,b,a)})}function addFavoriteHandler(c,d,b){var a=c.result;if(a=="error"){$("#favorite_icon").attr("src","/images/function/add_48.png");$("#favorite_header").html("Add to Favorites");$.jGrowl("There was an error adding your Favorite.",{life:8000,header:'<img width="24" height="24" style="float:left" src="/images/function/cross_48.png">&nbsp;&nbsp;Error'})}else{if(a=="ok"){$("#favorite_header").html("On Your Favorites List!");$("#favorite_icon").attr("src","/images/function/accepted_48.png");$("#favorite_text").html("You can access this sermon in your Favorites");$("#favorite_icon");if(b=="video"){$.jGrowl("This video has been added to your Favorites list!",{life:8000,header:'<img width="24" height="24" style="float:left" src="/images/function/accepted_48.png">&nbsp;&nbsp;Favorite Added'})}else{$.jGrowl("This graphic has been added to your Favorites list!",{life:8000,header:'<img width="24" height="24" style="float:left" src="/images/function/accepted_48.png">&nbsp;&nbsp;Favorite Added'})}}}}function removeFavorite(b,a){$("#favorite_text_"+b).html("Removing...");$.getJSON(_NONSECURE_URL+"?service=ppp2&module=removebookmark&objectid="+b+"&cback=?",function(c){removeFavoriteHandler(c,b,a)})}function removeFavoriteHandler(c,d,b){var a=c.result;if(a=="error"){$("#favorite_text_"+d).html("Remove Favorte...");$.jGrowl("There was an error removing your Favorite.",{life:8000,header:'<img width="24" height="24" style="float:left" src="/images/function/cross_48.png">&nbsp;&nbsp;Error'})}else{if(a=="ok"){$("#favorite_"+d).fadeOut(200);if(b=="video"){$.jGrowl("This video has been removed from your Favorites list!",{life:2000,header:'<img width="24" height="24" style="float:left" src="/images/function/accepted_48.png">&nbsp;&nbsp;Favorite Removed'})}else{$.jGrowl("This graphic has been removed from your Favorites list!",{life:2000,header:'<img width="24" height="24" style="float:left" src="/images/function/accepted_48.png">&nbsp;&nbsp;Favorite Removed'})}}}}function fadeControl(b,a){$(b).fadeIn(a)}function slideControl(b,a){$(b).effect("slide",{},a)}function pppRetrievePassword(a){if(_loginMode=="login"){$("#loginResultText").html("Retrieve My Password");$("#loginResultText").effect("highlight");$("#login_box_password").hide();$(a).html("Back to Login");$("#loginResultText").addClass("bottomMargin4");$("#sendPasswordText").fadeIn(500);$("#login_box_username").focus();_loginMode="reset"}else{pppResetLoginBox();$("#login_box_password").focus()}}function pppResetLoginBox(){$("#loginResultText").html("Member Login");$("#login_box_password").fadeIn(500);$("#login_box_username").fadeIn(500);$("#sendPasswordText").html("Enter your e-mail and press send. Your password will be e-mailed.");$("#front_lost_password_link").html("Lost My Password");$("#loginResultText").removeClass("bottomMargin4");$("#sendPasswordText").hide();$("#loginResultContent").html("");$("#loginResultContent").hide();$("#front_lost_password_link").show();$("#login_button").html("<img id='ppp_top_login_button' src='/gfx/front_button_log_in.png' border='0' />");_loginMode="login";$("#login_button").show();$("#login_button_area").show();$("#login_box_password").attr("disabled",false);$("#login_box_username").attr("disabled",false)}function pppLogout(){eraseCookie("uid");eraseCookie("sess");$("#UID").val(0);window.location=_NONSECURE_URL+"?mode=home&logout=1"}function handleMenu(){var b=$("#PAGEID").val();var a=$("#UID").val();$("#menuButton1, #menuButton2, #menuButton3, #menuButton4").removeClass("menuHoverColor");$("#menuButton1, #menuButton2, #menuButton3, #menuButton4,#goButton,#advanced_search").addClass("menuHover");if(a>0){if(b=="customize"){$("#menuButton3").removeClass("menuHover");$("#menuButton3").addClass("menuHoverColor")}else{if(b=="favorites"){$("#menuButton2").removeClass("menuHover");$("#menuButton2").addClass("menuHoverColor")}else{if(b=="downloads"){$("#menuButton1").removeClass("menuHover");$("#menuButton1").addClass("menuHoverColor")}else{if(b=="payments"){$("#menuButton4").removeClass("menuHover");$("#menuButton4").addClass("menuHoverColor")}}}}}else{if(b=="payments"||b=="downloads"||b=="favorites"||b=="account"){window.location=_NONSECURE_URL}}$(".menuHover").hover(function(){$(this).addClass("menuHoverColor")},function(){$(this).removeClass("menuHoverColor")})}function handleCookies(){var b="";b=readCookie("urlc");var g=document.location;var f=document.title;if(f.indexOf("PowerPoint Sermons and Motion Video Backgrounds")>-1){f="Home"}f=replaceAll(f,"PowerPoint Sermons Search Results"," - Search");f=replaceAll(f,"- PastorGraphics.com","");if(b!=""&&b!=null){var a=false;var e=b.split("|");for(var d=0;d<e.length;d++){var c=e[d].split("~");if(c[1]==g){}}if(e.length>10){e.shift()}if(e[0]!="Home~/"){e[0]="Home~/"}if(a==false){b="";for(var d=0;d<e.length;d++){var c=e[d].split("~");if(c[0]!=""&&c[0]!=null&&c[1]!=""&&c[1]!=null){b=b+c[0]+"~"+c[1]+"|"}}if(e.length>0){try{if(e[e.length-2]!=f+"~"+g){b=b+f+"~"+g+"|"}}catch(h){}}else{b=b+f+"~"+g+"|"}createCookie("urlc",b,365)}}else{var b="Home~/|"+f+"~"+g+"|";createCookie("urlc",b,365)}}function addTooltip(c,d,b,a){if(b=="ppt"){if(a!=1){$("#"+c).tooltip({delay:400,showURL:false,fixPNG:true,opacity:1,fade:150,track:true,top:15,bodyHandler:function(){return"<table cellpadding='2' width='420px'><tr><td><img width='280' src='"+_PPT_CDN_IMG+"/"+d+"_t_sm.jpg'/></td><td><table cellpadding='1' width='100%'><tr><td><img width = '140' src='"+_PPT_CDN_IMG+"/"+d+"_cn_sm.jpg'/></td></tr><tr><td><img width = '140' src='"+_PPT_CDN_IMG+"/"+d+"_cn2_b_sm.jpg'/></td></tr></table></td></tr></table>"}})}else{$("#"+c).tooltip({delay:400,showURL:false,fixPNG:true,opacity:1,fade:150,track:true,top:15,bodyHandler:function(){return"<table cellpadding='2' width='203px'><tr><td><img width='200px' src='"+_PPT_CDN_IMG+"/"+d+"_cn_b_sm.jpg'/></td><td><img width='200px' src='"+_PPT_CDN_IMG+"/"+d+"_cn2_b_sm.jpg'/></td></tr></table>"}})}}else{if(b=="video"){$("#"+c).tooltip({delay:400,showURL:false,fixPNG:false,opacity:1,fade:0,track:false,bodyHandler:function(){return"<table width='385px' class='flash' height='250' cellpadding='3' width='100%'><tr><td valign='middle' align='center'><object  classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='380' height='250' ><param name='quality' value='best'><param name='movie' value='/video/ppp_video.swf?pppSource="+_VIDEO_CDN_IMG+"/"+d+".flv'><param name='pppSource' value='"+_VIDEO_CDN_IMG+"/"+d+".flv'><embed src='/video/ppp_video.swf' loop='true' quality='best' flashvars='pppSource="+_VIDEO_CDN_IMG+"/"+d+".flv' height='250' width='380'></object></td></tr></table>"}})}}}function submitSearch(){var b=$("#search_box").val();if(b==" Search PastorGraphics.com "){b=""}var a=$("#type").val();if(a==1){a=1}else{if(a==2){a=2}else{a=""}}window.location=_NONSECURE_URL+"?mode=search&term="+b+"&type="+a}function advSearch(){$.jGrowl("We are performing your search...",{life:100000,header:'<img width="24" height="24" style="float:left" src="/images/function/clock_48.png">&nbsp;&nbsp;Searching'});var e=$("#search_tabs").tabs("option","selected");if(e==0){var c=$("#search_book").val();var d=$("#search_chapter").val();var a=$("#search_verse").val();var f=$("#search_book option:selected").text();if(f=="-------------------"||f==undefined){f=""}window.location=_NONSECURE_URL+"?mode=search&bible="+c+"&chp="+d+"&verse="+a+"&desc="+f}else{if(e==1){var b=$("#search_series").val();var f=$("#search_series option:selected").text();window.location=_NONSECURE_URL+"?mode=search&term=c_"+b+"&desc="+f}else{if(e==2){var b=$("#search_category").val();var f=$("#search_category option:selected").text();window.location=_NONSECURE_URL+"?mode=search&term=c_"+b+"&desc="+f}else{if(e==3){var b=$("#search_seasonal").val();var f=$("#search_seasonal option:selected").text();window.location=_NONSECURE_URL+"?mode=search&term=c_"+b+"&desc="+f}}}}}$("#search_box").keyup(function(a){var b=$(this).val();if(a.keyCode==13){window.location=_NONSECURE_URL+"?mode=search&term="+b}});function downloadPPT(f,e,c){var b=$("#PK").val();var a=$("#PID").val();var d=new Date().getTime();var g=_PPT_CDN+"/?id="+f+"&selection="+e+"&ws="+c+"&random="+d+"&pid="+a+"&pk="+b;window.location=g}function downloadPPTCustom(d){var b=$("#PK").val();var a=$("#PID").val();var c=new Date().getTime();var e=_PPT_CDN+"/custom/?id="+d+"&random="+c+"&pid="+a+"&pk="+b;window.location=e}function downloadFree(c,d,f,a,i,g,k,b,e){var h=new Date().getTime();if(k=="video"){var j=_VIDEO_CDN+"/free/?id="+c+"&selection="+d+"&ws="+f+"&random="+h+"&name="+a+"&email="+i+"&phone="+g+"&ref="+b+"&other="+e;window.location=j}else{var j=_PPT_CDN+"/free/?id="+c+"&selection="+d+"&ws="+f+"&random="+h+"&name="+a+"&email="+i+"&phone="+g+"&ref="+b+"&other="+e;window.location=j}$("#freeTrialImage").fadeIn(3000)}function downloadVideo(f,e,c){if($("#UID").val()<1){stopPreview(f);return}var b=$("#PK").val();var a=$("#PID").val();var d=new Date().getTime();var g=_VIDEO_CDN+"/?id="+f+"&selection="+e+"&ws="+c+"&random="+d+"&pid="+a+"&pk="+b;window.location=g}function downloadPPTButton(c,d){if($("#UID").val()<1){$.jGrowl("Please log in or sign up to download this media!",{life:6000,header:'<img width="24" height="24" style="float:left" src="/images/function/ppp.png">&nbsp;&nbsp;Please Log In'});openPPT();return}var b=$("#object_id").val();if(c>0){$.jGrowl("<div>"+d+"</div>",{life:4000,header:'<img width="24" height="24" style="float:left" src="/images/function/arrow_down_green_48.png">Downloading'});var a=0;if(c>4){a=1;c=c-4}downloadPPT(b,c,a)}}function downloadVideoButton(c,d){var b=$("#object_id").val();if(c>0){$.jGrowl("<div>"+d+"</div>",{life:4000,header:'<img width="24" height="24" style="float:left" src="/images/function/arrow_down_green_48.png">Downloading'});var a=0;if(c>4){a=1;c=c-4}downloadVideo(b,c,a)}}$(".downloadStartPPT").click(function(){if($("#UID").val()<1){openPPT();return}var g=$(this).attr("id");var c=g.split("_");var e=c[1];var f="#select_"+c[1];var d=$(f).val();if(d>0){var a=$(f).find(":selected").attr("alt");$.jGrowl(a,{life:4000,header:'<img width="24" height="24" style="float:left" src="/images/function/arrow_down_green_48.png">Downloading'});var b=0;if(d>4){b=1;d=d-4}downloadPPT(e,d,b)}else{$(f).effect("pulsate",{times:1});$(f).addClass("orangeBorder");$.jGrowl("Please choose a download option using the dropdown menu",{life:4000,header:"Select Download Option"})}});$(".downloadStartPPTCustom").click(function(){if($("#UID").val()<1){openPPT();return}var d=$(this).attr("id");var b=d.split("_");var c=b[1];var a=$("#download_"+c+"_title").html();if(c>0){$.jGrowl(a,{life:4000,header:'<img width="24" height="24" style="float:left" src="/images/function/arrow_down_green_48.png">Downloading'});downloadPPTCustom(c)}});$(".downloadStartPPTFree").click(function(){var a=cleanJSON($("#free_name").val());var i=cleanJSON($("#free_email").val());var h=cleanJSON($("#free_phone").val());var c=cleanJSON($("#free_ref_other").val());var b=$("#free_ref").val();var k="";k=$("#free_ref_hide").val();if(k!=""){b=k}if(a==""){$("#free_name").effect("highlight");$("#free_name").focus();$("#free_name_error").html("<br/>Please enter your name");return}else{$("#free_name_error").html("")}if(i==""){$("#free_email").effect("highlight");$("#free_email").focus();$("#free_email_error").html("<br/>Please enter your email address");return}else{$("#free_email_error").html("")}if(h==""){$("#free_phone").effect("highlight");$("#free_phone").focus();$("#free_phone_error").html("<br/>Please enter your phone number");return}if(b==""&&k==""){$("#free_ref").effect("pulsate",{times:1});$("#free_ref").focus();$("#free_ref_error").html("<br/>Where did you hear about us?");return}else{$("#free_ref_error").html("")}if(b=="other"&&c==""){$("#free_ref_other").effect("pulsate",{times:1});$("#free_ref_other").focus();$("#free_ref_other_error").html("<br/>Where did you hear about us?");return}else{$("#free_ref_other_error").html("")}var j=$(this).attr("id");var m=j.split("_");var d=m[1];var l="#select_"+m[1];var f=$(l).val();if(f>0){var e=$(l).find(":selected").attr("alt");$.jGrowl(e,{life:4000,header:'<img width="24" height="24" style="float:left" src="/images/function/arrow_down_green_48.png">Downloading'});var g=0;if(f>4){g=1;f=f-4}downloadFree(d,f,g,a,i,h,"",b,c)}else{$(l).effect("pulsate",{times:1});$.jGrowl("Please choose a download option using the dropdown menu",{life:4000,header:"Select Download Option"});$(l).addClass("orangeBorder")}});function setFree(a,b,c){$(".downloadIcon").hide();$(".choice").removeClass("orangeBack");$("#"+b+"_"+a+"_icon").show();$("#"+b+"_"+a).addClass("orangeBack");_INDEX=a;_TYPE=b;if(_TYPE=="video"&&_INDEX==1&&_WS==1){$("#mpeg").show();$("#mpeg").effect("highlight");_RETURN_TO_WS=true;setWS(0,"ws",1)}else{if(c!=1){$("#mpeg").hide()}}if(_RETURN_TO_WS==true&&(_TYPE=="ppt"||(_TYPE=="video"&&_INDEX!=1))){_RETURN_TO_WS=false;setWS(1,"ws")}}function setWS(a,b,c){$(".WSIcon").hide();$(".ws_choice").removeClass("orangeBack");$("#"+b+"_"+a+"_icon").show();$("#"+b+"_"+a).addClass("orangeBack");_WS=a;if(_TYPE=="video"&&_INDEX==1&&_WS==1){$("#mpeg").show();$("#mpeg").effect("highlight");setWS(0,"ws",1)}else{if(c!=1){$("#mpeg").hide()}}}$(".downloadStartPPTFreeNew").click(function(){var b=$("#free_phone").val();b=b.replace(/[^0-9]/g,"");$("#free_phone").val(b);var a=cleanJSON($("#free_name").val());var f=cleanJSON($("#free_email").val());var e=cleanJSON($("#free_phone").val());var d=cleanJSON($("#free_ref_other").val());var c=$("#free_ref").val();var i="";i=$("#free_ref_hide").val();if(i!=""){c=i}if(a==""){$("#free_name").effect("highlight");$("#free_name").focus();$("#free_name_error").html("<br/>Please enter your name");return}else{$("#free_name_error").html("")}if(f==""){$("#free_email").effect("highlight");$("#free_email").focus();$("#free_email_error").html("<br/>Please enter your email address");return}else{$("#free_email_error").html("")}if(f.search(/^\s*[\w\-\+_]+(\.[\w\-\+_]+)*\@[\w\-\+_]+\.[\w\-\+_]+(\.[\w\-\+_]+)*\s*$/)==-1){$("#free_email").effect("highlight");$("#free_email").focus();$("#free_email_error").html("<br/>Please enter a valid email address");return}else{$("#free_email_error").html("")}if(e==""){$("#free_phone").effect("highlight");$("#free_phone").focus();$("#free_phone_error").html("<br/>Please enter your phone number");return}if(c==""&&i==""){$("#free_ref").effect("pulsate",{times:1});$("#free_ref").focus();$("#free_ref_error").html("<br/>Where did you hear about us?");return}else{$("#free_ref_error").html("")}if(c=="other"&&d==""){$("#free_ref_other").effect("pulsate",{times:1});$("#free_ref_other").focus();$("#free_ref_other_error").html("<br/>Where did you hear about us?");return}else{$("#free_ref_other_error").html("")}downloadSelectValue=_INDEX;if(_WS==1){downloadSelectValue++}var g="";var h=0;if(_TYPE=="ppt"){g=$("#PPT_NAME").val();h=$("#PPT_ID").val();if(_INDEX==4){_PPT_TYPE="JPEG Image Pack"}else{_PPT_TYPE="PowerPoint"}if(_WS==1){txt="Downloading "+_PPT_TYPE+" '"+g+"' (Widescreen)"}else{txt="Downloading "+_PPT_TYPE+" '"+g+"'"}$.jGrowl(txt,{life:4000,header:'<img width="24" height="24" style="float:left" src="/images/function/arrow_down_green_48.png">Downloading'});downloadFree(h,_INDEX,_WS,a,f,e,"",c,d)}else{g=$("#VIDEO_NAME").val();h=$("#VIDEO_ID").val();if(_WS==1){txt="Downloading Video '"+g+"' (Widescreen)"}else{txt="Downloading Video '"+g+"'"}$.jGrowl(txt,{life:4000,header:'<img width="24" height="24" style="float:left" src="/images/function/arrow_down_green_48.png">Downloading'});downloadFree(h,_INDEX,_WS,a,f,e,"video",c,d)}});$(".downloadStartVideo").click(function(){if($("#UID").val()<1){openVideo();return}var g=$(this).attr("id");var c=g.split("_");var e=c[1];var f="#select_"+c[1];var d=$(f).val();if(d>0){var a=$(f).find(":selected").attr("alt");$.jGrowl(a,{life:4000,header:'<img width="24" height="24" style="float:left" src="/images/function/arrow_down_green_48.png">Downloading'});var b=0;if(d>4){b=1;d=d-4}downloadVideo(e,d,b)}else{$(f).effect("pulsate",{times:1});$(f).addClass("orangeBorder");$.jGrowl("Please choose a download option using the dropdown menu",{life:4000,header:"Select Download Option"})}});$(".downloadDropdown").change(function(){var d=$(this).val();var f=$(this).attr("id");var c=f.split("_");f=c[1];var a=$(this).find(":selected").attr("alt");var b="#download_"+f;var e="#download_"+f+"_img";if(d>0){$(b).removeClass("grayShade");$(b).addClass("blueShade");$(e).attr("src","/images/function/accepted_48.png");$(this).removeClass("orangeBorder")}else{$(b).addClass("grayShade");$(b).removeClass("blueShade");$(e).attr("src","/images/function/accepted_48_bw.png")}});$(".downloadDropdownFree").change(function(){var d=$(this).val();var f=$(this).attr("id");var c=f.split("_");f=c[1];var a=$(this).find(":selected").attr("alt");var b="#download_"+f;var e="#download_"+f+"_img";if(d>0){$(b).removeClass("grayShade");$(b).addClass("blueShade");$(e).attr("src","/images/function/accepted_48.png");$(this).removeClass("orangeBorder")}else{$(b).addClass("grayShade");$(b).removeClass("blueShade");$(e).attr("src","/images/function/accepted_48_bw.png")}});function setCC(){var l=new Date().getTime();var i=$("#cc_num").val();var g=cleanJSON($("#cc_fname").val());var n=cleanJSON($("#cc_lname").val());var e=$("#cc_code").val();var j=$("#cc_month").val();var m=$("#cc_year").val();var k=cleanJSON($("#cc_phone").val());var f=$("#country").val();var d=cleanJSON($("#address1").val());var b=cleanJSON($("#address2").val());var h=$("#city").val();var a=$("#state").val();var c=$("#zip").val();var o=$("#cc_control").html();$("#cc_control").html("<img src='/images/function/clock_48.png'  height='24'   style='vertical-align:bottom'>  Saving...");$.getJSON(_SECURE_URL+"?service=ppp2&module=updatecc&country="+f+"&fname="+g+"&lname="+n+"&num="+i+"&address1="+d+"&address2="+b+"&city="+h+"&state="+a+"&zip="+c+"&code="+e+"&phone="+k+"&month="+j+"&year="+m+"&rnd="+l+"&cback=?",function(p){setCCHandler(p,o)})}function setCCHandler(c,e){var a=c.result;var b=c.error_code;var d=c.display;if(a=="ok"){$.jGrowl("Your Credit Card has been saved!",{life:3000,header:'<img width="24" height="24" style="float:left" src="/images/function/accepted_48.png">&nbsp;&nbsp;Credit Card Saved'})}else{if(a=="display"){$.jGrowl("Please correct your information and resubmit.",{life:3000,header:'<img width="24" height="24" style="float:left" src="/images/function/cross_48.png">&nbsp;&nbsp;Missing Fields'});$("#cc_error").html(b)}else{if(a=="invalid"){$.jGrowl("Your card information is incorrect.  Please verify and resubmit.",{life:3000,header:'<img width="24" height="24" style="float:left" src="/images/function/cross_48.png">&nbsp;&nbsp;Card Not Valid'});$("#cc_error").html(b)}else{$.jGrowl("There was an error saving your credit card.  Try again later.",{life:3000,header:'<img width="24" height="24" style="float:left" src="/images/function/cross_48.png">&nbsp;&nbsp;Error'});$("#cc_error").html(b)}}}$("#cc_control").html(e);return}function showAmexHint(){$("#other_cards").hide();$("#amex_cards").show()}function showOtherHint(){$("#other_cards").show();$("#amex_cards").hide()}var _FORCE_REFRESH=false;function setCredit(a){$("#credit4").removeClass("orangeBackground");$("#credit8").removeClass("orangeBackground");$("#credit16").removeClass("orangeBackground");$("#credit24").removeClass("orangeBackground");$("#credit52").removeClass("orangeBackground");$("#credit124").removeClass("orangeBackground");$("#credit248").removeClass("orangeBackground");$("#credit"+a).addClass("orangeBackground");$("#credit").val(a)}function addCredit(){var b=$("#credit").val();var a=$("#credits_password").val();var c=$("#credit_control2").html();$("#credit_control2").html("<img src='/images/function/clock_48.png'  height='24'   style='vertical-align:bottom'>  Adding...");$.getJSON(_SECURE_URL+"?service=ppp2&module=credits&credits_choice="+b+"&credits_password="+a+"&cback=?",function(d){addCreditHandler(d,c)})}function addCreditHandler(e,d){var b=e.result;var c=e.error_code;var f=e.display;var a=e.newbalance;if(b=="ok"){$.jGrowl("Your Credits Have Been Added!",{life:8000,header:'<img width="24" height="24" style="float:left" src="/images/function/accepted_48.png">&nbsp;&nbsp;Credits Added'});var g="<span style='color:green;text-align:center'>Your Credits have been added!  Your new balance is "+a+" Customization Credits.  Your receipt can be found in the Payments section.</span>";$("#credit_error").html(g);$("#balance, #balance2").html(a);$("#balance2").effect("strobe");$("#balance2_text").html('<span style="color:green">Your new balance is </span>');$("#balance3_text").html('<span style="color:green"> Customization Credits</span>');$("#credits_password").val("");_FORCE_REFRESH=true}else{if(b=="display"){$.jGrowl("Please select the number of credits you wish to add and type your account password.",{life:3000,header:'<img width="24" height="24" style="float:left" src="/images/function/cross_48.png">&nbsp;&nbsp;Missing Fields'});$("#credit_error").html(c)}else{if(b=="invalid"){$.jGrowl("Your card card was not accepted.  Please verify and resubmit.",{life:3000,header:'<img width="24" height="24" style="float:left" src="/images/function/cross_48.png">&nbsp;&nbsp;Card Not Accepted'});$("#credit_error").html(c)}else{$.jGrowl("There was an error purchasing credits.  Try again later.",{life:3000,header:'<img width="24" height="24" style="float:left" src="/images/function/cross_48.png">&nbsp;&nbsp;Error'});$("#credit_error").html(c)}}}$("#credit_control2").html(d);return}function receiptCheckForceRefresh(){if(_FORCE_REFRESH==true){window.location=_SECURE_URL+"/?mode=payments&rnd="+getRand()}}function pppCoupon(g){var f=$("#coupon_entry").val();var c=$("#couponEntryButton").html();var a=_PPT_SELECTED;var e=_VIDEO_SELECTED;var d=_CUSTOMIZING_SELECTED;if(f==""){$("#couponEntryText").html("Please Enter Coupon Code:");$("#couponEntryText").effect("highlight");return}var b=getRand();$("#couponEntryButton").html("Checking..");$.getJSON(_SECURE_URL+"?service=ppp&module=coupon&value="+f+"&ppt_choice="+a+"&video_choice="+e+"&credits_choice="+d+"&rnd="+b+"&cback=?",function(h){pppCouponHandler(h,c,f)})}function pppCouponHandler(c,f,e){var a=c.result;if(a=="error"){$("#couponEntryButton").html(f);$("#couponEntryText").html("Invalid coupon.  Try again.");$("#couponEntryText").effect("highlight")}else{if(a=="expired"){$("#couponEntryButton").html(f);$("#couponEntryText").html("Sorry, coupon has expired.");$("#couponEntryText").effect("highlight")}else{if(a=="msg"){var b=c.desc;$("#couponEntryButton").html(f);$("#couponEntryText").html(b);$("#couponEntryText").effect("highlight")}else{if(a=="ok"){$("#couponEntryButton").html(f);var b=c.desc;var d=c.price;_COUPON_ARRAY.code=e;_COUPON_ARRAY.desc=b;_COUPON_ARRAY.price=d;$("#couponEntryText").html("Your coupon has been applied!");refreshTotal()}}}}}function regTrial(){var a=$("#trialEmail").val();if(a=="Email Address"){a=""}window.location=_SECURE_URL+"?mode=register&trial=1&trialemail="+a}function cleanJSON(a){a=a.replace(/&/g,"%23");a=a.replace(/#/g,"%23");return a}function cleanSpaces(a){a=replaceAll(a," ","_");return a}function replaceAll(a,b,c){return a.replace(new RegExp(b,"g"),c)}function getRand(){return new Date().getTime()}function query(a){var c=(location.search.substring(1));var b=c.toUpperCase().indexOf(a.toUpperCase()+"=");if(b>=0){c=c.substring(a.length+b+1);b=c.indexOf("&");return unescape(c=c.substring(0,(b>=0)?b:c.length))}return("")}function addMembership(){var a=$("#ppt_choice").val();var g=$("#video_choice").val();var d=$("#ppt_discount").val();var b=$("#coupon_code").val();var f=getRand();var e=$("#renew_password").val();var c=$("#renew_control").html();$("#renew_control").html("<img src='/images/function/clock_48.png'  height='24'   style='vertical-align:bottom'>  Please Wait...");$.getJSON(_SECURE_URL+"?service=ppp2&module=renew&ppt_choice="+a+"&video_choice="+g+"&credits_password="+e+"&rand="+f+"&ppt_discount="+d+"&coupon_code="+b+"&cback=?",function(h){addMembershipHandler(h,c)})}function addMembershipHandler(g,d){var c=g.result;var h=g.error_code;var i=g.display;var b=g.newbalance;var f=g.changed;if(c=="ok"){$("#renewArea").hide();$.jGrowl("Your Membership has been Purchased!",{life:8000,header:'<img width="24" height="24" style="float:left" src="/images/function/accepted_48.png">&nbsp;&nbsp;Membership Purchased'});var a="<span style='color:green;text-align:center'>Your Membership has been Purchased!  Here are your updated membership durations:<br/><b>"+f+"</b><br/><br/>Your receipt can be found in the Payments History tab above.  <a href='<?php echo $NORMAL_URL;?>'>Click here</a> to start using your membership!</span>";var e="<span class='smallerFont1'>Your Membership has been Purchased!  Here are your updated membership durations:<br/><br/><b>"+f+"</b><br/><br/>Your receipt will appear momentarily in the Payments section.  Click the button below to start using your new membership!</span>";$("#membershipResultText").html(e);$("#membershipResultBox").dialog("open");$("#renew_error").html(a);$("#renew_error").effect("highlight");$("#credits_password").val("")}else{if(c=="display"){$.jGrowl("Please select the membership you wish to add and type your account password.",{life:3000,header:'<img width="24" height="24" style="float:left" src="/images/function/cross_48.png">&nbsp;&nbsp;Missing Fields'});$("#renew_error").html(h);$("#renew_error").effect("highlight")}else{if(c=="invalid"){$.jGrowl("Your card card was not accepted.  Please verify and resubmit.",{life:3000,header:'<img width="24" height="24" style="float:left" src="/images/function/cross_48.png">&nbsp;&nbsp;Card Not Accepted'});$("#renew_error").html(h);$("#renew_error").effect("highlight")}else{$.jGrowl("There was an error purchasing the membership.  Try again later or contact support@pastorgraphics.com.",{life:3000,header:'<img width="24" height="24" style="float:left" src="/images/function/cross_48.png">&nbsp;&nbsp;Error'});$("#renew_error").html(h);$("#renew_error").effect("highlight")}}}$("#renew_control").html(d);return}$("#sortSelect").change(function(h){var b=$("#hidden_term").val();var g=$("#hidden_limit").val();var i=$("#hidden_bible").val();var d=$("#hidden_chapter").val();var j=$("#hidden_verse").val();var f=$("#hidden_desc").val();var a=$("#hidden_category").val();var c=$(this).val();if(b==undefined){b="term_na"}if(a==undefined){a=""}if(g==undefined){g="12"}if(i==undefined){i="bible_na"}if(d==undefined){d="bible_na"}if(j==undefined){j="verse_na"}if(f==undefined||f=="-------------------"){f="desc_na"}if(c==undefined){c="sort_na"}createCookie("sort",c,300);window.location="/powerpoint_sermons/"+f+"/"+b+"/"+g+"/"+c+"/"+i+"/"+d+"/"+j+"/0/1/index.html"});$("#pageSelect").change(function(h){var b=$("#hidden_term").val();var g=$(this).val();var c=$("#hidden_sort").val();var i=$("#hidden_bible").val();var d=$("#hidden_chapter").val();var j=$("#hidden_verse").val();var f=$("#hidden_desc").val();var a=$("#hidden_category").val();if(b==undefined){b="term_na"}if(a==undefined){a=""}if(g==undefined){g="12"}if(i==undefined){i="bible_na"}if(d==undefined){d="bible_na"}if(j==undefined){j="verse_na"}if(f==undefined||f=="-------------------"){f="desc_na"}if(c==undefined){c="sort_na"}createCookie("search_limit",g,300);window.location="/powerpoint_sermons/"+f+"/"+b+"/"+g+"/"+c+"/"+i+"/"+d+"/"+j+"/0/1/index.html"});function changePw(){var a=$("#password_old").val();var d=$("#password").val();var b=$("#password_confirm").val();var c=$("#password_control").html();if(d==""||d.length<5||d=="Password must be at least 5 characters"){$("#password_error").html("New password must be at least 5 characters.");$("#password").effect("pulsate",{times:1});return}if(d!=b){$("#password_error").html("New passwords must match.");$("#password").effect("highlight");$("#password_confirm").effect("highlight");return}if(d==a){$("#password_error").html("Old and new passwords must be different.");$("#password").effect("highlight");$("#password_confirm").effect("highlight");return}$("#password_error").html("");$("#password_control").html("<img src='images/function/clock_48.png'  height='24'   style='vertical-align:bottom'>  Changing...");$.getJSON(_SECURE_URL+"?service=ppp2&module=changepw&pwo="+a+"&pwn="+d+"&cback=?",function(e){changePwHandler(e,c)});$("#password").attr("disable","true");$("#password_old").attr("disable","true");$("#password_confirm").attr("disable","true")}function changePwHandler(c,b){var a=c.result;if(a=="mismatch"){$("#password_error").html("Your old password was incorrect.");$("#password_old").effect("highlight");$("#password").attr("disable","false");$("#password_old").attr("disable","false");$("#password_confirm").attr("disable","false");$("#password_control").html(b)}else{if(a=="ok"){$.jGrowl("Your password has been changed!",{life:3000,header:'<img width="24" height="24" style="float:left" src="images/function/accepted_48.png">&nbsp;&nbsp;Password Changed'});$("#password_error").html('<span style="color:green"><img width="16" height="16" style="float:left" src="images/function/accepted_48.png">&nbsp;&nbsp;Password changed!</span>');$("#password_control").html("")}else{$("#password_error").html("Error changing password.");$("#password").attr("disable","false");$("#password_old").attr("disable","false");$("#password_confirm").attr("disable","false");$("#password_control").html(b)}}return}function setChurch(){var c=$("#churchsize").val();var b=$("#churchname").val();var d=$("#affiliation").val();var a=$("#church_control").html();$("#church_control").html("<img src='images/function/clock_48.png'  height='24'   style='vertical-align:bottom'>  Saving...");$.getJSON(_SECURE_URL+"?service=ppp2&module=updatechurch&csize="+c+"&cname="+b+"&caffl="+d+"&cback=?",function(e){setChurchHandler(e,a)});$("#password").attr("disable","true");$("#password_old").attr("disable","true");$("#password_confirm").attr("disable","true")}function setChurchHandler(c,a){var b=c.result;if(b=="ok"){$.jGrowl("Your Church Details have been saved!",{life:3000,header:'<img width="24" height="24" style="float:left" src="images/function/accepted_48.png">&nbsp;&nbsp;Changes Saved'});$("#affiliation_readonly").html($("#affiliation option:selected").text());$("#churchsize_readonly").html($("#churchsize option:selected").text());$("#churchname_readonly").html($("#churchname").val())}else{$.jGrowl("There was an error saving your settings.",{life:3000,header:'<img width="24" height="24" style="float:left" src="images/function/cross_48.png">&nbsp;&nbsp;Error'})}$("#church_control").html(a);return}function setProfile(){var g=$("#fname").val();var l=$("#lname").val();var d=cleanJSON($("#address1").val());var b=cleanJSON($("#address2").val());var h=$("#city").val();var a=$("#state").val();var e=$("#zip").val();var k=$("#email").val();var j=$("#phone").val();var f=$("#country").val();var c=$("#newsletter").val();var i=$("#profile_control").html();$("#profile_control").html("<img src='images/function/clock_48.png'  height='24'   style='vertical-align:bottom'>  Saving...");$.getJSON(_SECURE_URL+"?service=ppp2&module=updateprofile&country="+f+"&fname="+g+"&lname="+l+"&address1="+d+"&address2="+b+"&city="+h+"&state="+a+"&zip="+e+"&email="+k+"&phone="+j+"&newsletter="+c+"&cback=?",function(m){setProfileHandler(m,i)})}function setProfileHandler(d,c){var a=d.result;var b=d.error_code;if(a=="ok"){$.jGrowl("Your Contact Information has been saved!",{life:3000,header:'<img width="24" height="24" style="float:left" src="images/function/accepted_48.png">&nbsp;&nbsp;Changes Saved'});$("#profile_error").html("")}else{if(a=="display"){$.jGrowl("Please correct your information and resubmit.",{life:3000,header:'<img width="24" height="24" style="float:left" src="images/function/cross_48.png">&nbsp;&nbsp;Missing Fields'});$("#profile_error").html(b)}else{$.jGrowl("There was an error saving your settings.",{life:3000,header:'<img width="24" height="24" style="float:left" src="images/function/cross_48.png">&nbsp;&nbsp;Error'});$("#profile_error").html("")}}$("#profile_control").html(c);return};
