/* start http://www.nearlyweds.com/js/firebug/firebugx.js */
if(!("console" in window)||!("firebug" in console)){var names=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];window.console={};for(var i=0;i<names.length;++i){window.console[names[i]]=function(){}}};
/* end http://www.nearlyweds.com/js/firebug/firebugx.js */

/* start http://www.nearlyweds.com/js/nearlyweds.js */
var browserName=navigator.appVersion;var ieBrowserVersion=parseFloat(browserName.split("MSIE")[1]);var reordering=false;jQuery(document).ready(function(){activateTooltips();activateSuggestions();swapThumbnails();jQuery("body").addClass("ready");activeClickOnEmbeds();setupLeadly();activateSelectOnTextareas();checkForBadge();checkForLeadlyReferrer()});var allPageTags=new Array();function hideFlash(){var b="message";var a=document.getElementsByTagName("div");for(i=0;i<a.length;i++){if(a[i].className==b){a[i].style.display="none"}}}function redirectIfInFrame(){var b="";try{var b=String(window.top.document.referrer)}catch(d){}try{var a=String(window.location);if(a.match(/[\?&]is_framed/)&&window.top==window&&b&&!b.match(/nearly(dev|weds)/)){var c=a.replace(/([?&])is_framed/,"$1");window.location=c}}catch(d){}}function showTemplateSelector(){var a=$("tform");a.style.display=(a.style.display=="block"?"none":"block");void 0}function hideTemplateSelector(){document.getElementById("toolbar").style.display="block";document.getElementById("show_toolbar").style.display="none";document.body.style.paddingTop="85px"}function removeText(c){if(c!=null){if(c.childNodes){for(var b=0;b<c.childNodes.length;b++){var a=c.childNodes[b];if(a.nodeValue!=null){c.removeChild(a)}}}}}function appendText(b,c){var a=document.createTextNode(c);b.appendChild(a)}function setText(a,b){removeText(a);appendText(a,b)}function getGroupOrder(f,e){var g=document.getElementsByClassName(f);var b="";for(var c=1;c<=g.length;c++){var d=g[c-1].id;var a=Sortable.serialize(d);if(c!=g.length){b+=d+"&"}else{b+=d}}document.getElementById(e).value=b;return b}if(typeof(Array.prototype.push)=="undefined"){Array.prototype.push=function(a){this[this.length]=a}}function killElement(b,a){b=document.getElementById(b);if(b){if(a){document.getElementById(a).removeChild(b)}else{document.body.removeChild(b)}}}function showLoading(d,c,a,b){showLoader()}function hideLoading(b,a){hideLoader()}function hideMp3FileSelector(){try{var a=document.getElementById("mp3UploadFileSelector");var b=document.getElementById("mp3DeleteBox");if(b.checked){a.style.display="none"}else{a.style.display="block"}}catch(c){}}function hideLegFileSelector(){try{var a=document.getElementById("legPhotoUpload");var b=document.getElementById("legDelPhoto");if(b.checked){a.style.display="none"}else{a.style.display="block"}}catch(c){}}function compareFields(c){if(c=="email"){var b=document.getElementById("u_email1");var a=document.getElementById("u_email2");var d="Your email addresses do not match"}else{if(c=="password"){var b=document.getElementById("u_password1");var a=document.getElementById("u_password2");var d="Your passwords do not match"}else{return true}}if(b.value!=a.value){alert(d);a.focus();return false}else{return true}}function checkCpEmail(){var b=document.getElementById("u_email1");var a=document.getElementById("u_email2");if(pw1.value!=pw2.value){alert("Your passwords do not match");pw2.focus();return false}else{return true}}saveSortOrder_nav=function(){showLoader('<img src="/images/icons/ajax-loader.gif" alt="Saving..."/> Saving...');document.getElementById("sorted").value=Sortable.serialize("siteNav");$("navorder").request({onComplete:function(a){hideLoader();$("navbar").replace(a.responseText)}})};saveSortOrder_posts=function(){showLoader('<img src="/images/icons/ajax-loader.gif" alt="Saving..."/> Saving...');document.getElementById("posts_sort").value=Sortable.serialize("posts");$("postorder").request({onComplete:function(a){hideLoader()}})};saveSortOrder_photos=function(){document.getElementById("photos_sort").value=Sortable.serialize("photogallery");$("photoorder").request({onComplete:function(a){}})};resortNav=function(a){if(!a){a="show"}if(a=="show"){for(i=0;i<$$("#siteNav .handle").length;i++){$$("#siteNav .handle")[i].style.display="block"}$("nav_reorder_done").style.display="block";$("nav_reorder").style.display="none";reordering=true}else{$("nav_reorder_done").style.display="none";$("nav_reorder").style.display="block";for(i=0;i<$$("#siteNav .handle").length;i++){$$("#siteNav .handle")[i].style.display="none"}reordering=false}};addPageInitial=function(){Lightview.show({href:"/features/add",rel:"ajax",title:"Add a New Page - Choose Page Type",options:{topclose:true,autosize:false,width:520,height:470,ajax:{method:"get",evalScripts:true}}})};addPageSecondary=function(a){Lightview.show({href:"/features/add?featureType="+a+(String(document.location).indexOf("is_framed")!=-1?"&is_framed":""),rel:"ajax",title:"Add a New Page to Your Site",options:{topclose:true,autosize:true,ajax:{method:"get",evalScripts:true}}})};customCSS=function(a){Lightview.show({href:"/registries/customcss/"+a+"?rand="+Math.random()+(String(document.location).indexOf("is_framed")!=-1?"&is_framed":""),rel:"ajax",title:"Add Custom CSS",options:{autosize:false,topclose:true,width:350,height:350,ajax:{method:"get",evalScripts:true}}})};function editPageTitle(a,b,c){if(typeof(b)!="string"){b="Edit Page Title"}if(typeof(c)!="boolean"){c=false}if(a.indexOf("?")!=-1){a+="&rand="+Math.random()}else{a+="?rand="+Math.random()}Lightview.show({href:a,rel:"ajax",title:b,options:{topclose:true,autosize:false,width:500,height:(c?500:170),ajax:{method:"get",evalScripts:true}}})}function toggleMinipics(){$("posts_container").toggleClassName("minipics");var c=$$(".entryphoto .lightview img");for(var b in c){if(c[b].src){var d=c[b].src}if(d){var a=d.indexOf("tmb_")}if(d&&a!=-1){c[b].src=d.substring(0,a)+d.substr(a+4)}}}function alphaNumericOnly(c){var a;var d;if(window.event){a=window.event.keyCode;var b=window.event.shiftKey}else{if(c){a=c.which;var b=c.shiftKey}else{return true}}var b=true;d=String.fromCharCode(a);d=d.toLowerCase();if((a==null)||(a==0)||(a==8)||(a==9)||(a==13)||(a==27)||(a==35)||(a==36)||(a==37)||(a==38)||(a==39)||(a==40)||(a==45)||(a==46)){return true}else{if((a>57&&a<65)||(a>90&&a<96)||(a==111)||(a==106)){return false}else{if(b&&(("0123456789").indexOf(d)>-1)){return false}else{if((("abcdefghijklmnopqrstuvwxyz0123456789").indexOf(d)>-1)){return true}else{return false}}}}}function removeBadChars(a){return a.replace(/[^a-zA-Z0-9\-]+/,"")}function enforceCharLimits(){if(jQuery.browser.msie&&jQuery.browser.version<=7){return}jQuery("input[size]").keypress(checkCharLimit)}function addTemplateNameToLinks(a){var b=document.getElementsByTagName("a");for(i=0;i<b.length;i++){if(typeof b[i]!="undefined"&&typeof b[i].href!="undefined"&&!$(b[i]).hasClassName("lightview")){b[i].href+="/?template="+a}}}function addFramedToLinksAndForms(){jQuery("a,form").each(function(d){var b=jQuery(this);var c=this.tagName=="A"?"href":"action";var a=b.attr(c);if(this.tagName=="A"&&b.attr("rel")=="nofollow"&&b.attr("target")!="_blank"){b.attr("target","_top");return}if(b.attr("rel")=="nofollow"||b.parents("#footer").length||b.parents("#toolbar").length||a.indexOf("is_framed")!=-1||a.indexOf("void")!=-1||b.hasClass("no_is_framed")||b.attr("target")=="_top"){return}if(!a){a="?is_framed"}else{if(a.indexOf("?")==-1){a+="?"}else{a+="&"}a+="is_framed"}b.attr(c,a)})}function checkCharLimit(a){if(!a&&this&&this!=window){}a=this;if(a&&!jQuery(a).attr("nocharlimit")){if(a.size&&a.size>0){if(a.value.length>a.size){a.value=a.value.substr(0,a.size-1)}}}}function iebug(){$("body").style.paddingBottom="300px"}CkEditors=[];Event.observe(document,"lightview:opened",function(b){var a={height:150,resize_enabled:false,toolbar:[["FontSize","Font","TextColor","Bold","Italic","-","Link","Unlink","ImageButton","-","Indent","Outdent"],["NumberedList","BulletedList","Blockquote","-","JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","RemoveFormat","PasteFromWord","Source","MediaEmbed"]]};function c(d){this.on("insertHtml",function(f){if(f&&typeof(f.data)=="string"&&f.data.match(/name="ProgId" content="Word\.Document"/)){alert("Whoa there! We detected some jumbled formatting from your MS Word text paste. Please copy text in without formatting then use the editor we provide for formatting. Thanks!")}})}jQuery("textarea").filter(function(){if(jQuery(this).hasClass("no_nic")){return false}return true}).ckeditor(c,a);activateTooltips()});Event.observe(document,"lightview:hidden",function(){if(CKEDITOR.instances){for(var a in CKEDITOR.instances){CKEDITOR.remove(CKEDITOR.instances[a])}}});function position_nav(){var offsets=$("siteNav").positionedOffset();if(offsets[1]<50){$("siteNav").style.top="50px";var offsets=$("siteNav").positionedOffset()}var navOptions=$("nav_options");if(navOptions){navOptions.setStyle({left:eval(offsets[0])+"px",top:eval(offsets[1])+"px",display:"block"})}}function showLoader(msg){if(!msg){msg='<img src="/images/icons/ajax-loader.gif" alt="Loading..."/> Loading...'}var loader_msg=$$("#loader.interface_box .content_container .content")[0];loader_msg.innerHTML=msg;var leftIndent=eval(document.viewport.getWidth()/2-$$("#loader.interface_box .content_container .content")[0].getWidth()/2)+"px";jQuery("#loader").css({display:"block",left:leftIndent});new Effect.Morph("loader",{style:"bottom: -17px;",duration:0.3})}function hideLoader(){var leftIndent=eval(document.viewport.getWidth()/2-$$("#loader.interface_box .content_container .content")[0].getWidth()/2)+"px";$$("#loader")[0].style.left=leftIndent;new Effect.Morph("loader",{style:"bottom: "+eval(-67-($$("#loader.interface_box .content_container .content")[0].getHeight()))+"px;",duration:0.3});activateTooltips();activateSuggestions()}function addNote(){}function activateTooltips(){$$(".help").each(function(b){if($(b).readAttribute("help")){var c="default",a;if((a=$(b).readAttribute("protoclass"))){c=a}new Tip(b,$(b).readAttribute("help"),{hideOn:"mouseout",delay:0,border:3,radius:3,offset:{x:12,y:12},borderColor:"#f99e1c",className:c})}})}var Suggest=new Array();var SuggestIndexes=new Array();function activateSuggestions(){$$(".suggest").each(function(a){if($(a).readAttribute("suggestions")){Suggest[$(a).readAttribute("id")]=$(a).readAttribute("suggestions").split(",");SuggestIndexes[$(a).readAttribute("id")]=1}})}function suggest(b){var a=b.substr(8);$(a).value=Suggest[b][SuggestIndexes[b]];SuggestIndexes[b]++;if(SuggestIndexes[b]==Suggest[b].length){SuggestIndexes[b]=0}}function setCookie(c,d,e){if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a=";expires="+b.toGMTString()}else{a=""}document.cookie=c+"="+d+a+";path=/"}function readCookie(b){var d=b+"=";var a=document.cookie.split(";");for(var c=0;c<a.length;c++){var e=a[c];while(e.charAt(0)==" "){e=e.substring(1,e.length)}if(e.indexOf(d)==0){return e.substring(d.length,e.length)}}return null}function openComments(a){if($(a+"_comments")){$(a+"_comments").style.display="block"}if($(a+"_showComments")){$(a+"_showComments").style.display="block"}}FlashMap=function(){this.init()};FlashMap.prototype={overlayVisible:false,mapHasBeenClicked:false,flashZoomWasntOne:false,flashMovie:null,posx:null,posy:null,zoomsValue:null,ie_mapXOffset:0,ie_mapYOffset:0,init:function(){this.addEventListeners()},addEventListeners:function(){var a=this;jQuery(document).ready(function(){jQuery(window).bind("onFlashZoom",function(d){a.onMapFlashZoom(d)});setTimeout(function(){a.onMapFlashZoom()},1800);jQuery("#mapOverlay")[0].onclick=function(d){a.getPushpinCoordinates(d)};var c=0;var b=setInterval(function(){if(!jQuery("#ammap").length){++c;if(c>30){clearInterval(b);return}}a.flashMovie=$("ammap");jQuery("#ammap")[0].onclick=function(d){a.getPushpinCoordinates(d)};jQuery("#ammap")[0].onmousedown=function(d){a.getPushpinCoordinates(d)};clearInterval(b)},400);jQuery("#pinInstructionsHide,#addPinInitial").click(function(d){a.toggleAddPins()});jQuery("#pinDeleteHide").click(function(){a.showDeletePins()});jQuery("#addPinSubmit").click(function(){a.setPushpin()});jQuery("#cancelPin").click(function(){a.cancelPushpin()});jQuery("#deletePinInitial").click(function(){a.showDeletePins()})})},reloadAll:function(){if(!this.flashMovie){return}this.flashMovie.reloadAll()},getPushpinCoordinates:function(d){if(!this.overlayVisible||this.mapHasBeenClicked||jQuery(window).data("flashZoom").scale!=1){return}this.mapHasBeenClicked=true;this.getZoomInfo();var a;if(window.pageYOffset){a=window.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){a=document.documentElement.scrollTop}else{if(document.body){a=document.body.scrollTop}}}posx=0;posy=0;var b=(!d)?window.event:d;if(b.pageX){this.posx=b.pageX;this.posy=b.pageY}else{if(b.clientX){this.posx=b.clientX+10+this.ie_mapXOffset;this.posy=b.clientY+this.ie_mapYOffset+a}else{return false}}var h=Position.cumulativeOffset($("mapOverlay"));var g=this.posx-h[0];var j=(g-parseFloat($("zoom_x").value))/parseFloat($("zoom_level").value);var c=this.posy-h[1];var f=(c-parseFloat($("zoom_y").value))/parseFloat($("zoom_level").value);this.zoomsValue=' zoom="'+parseFloat($("zoom_level").value)+'" map_x="'+j+'" map_y="'+f+'" zoom_x="'+parseFloat($("zoom_x").value)+'" zoom_y="'+parseFloat($("zoom_y").value)+'"';Effect.toggle($("mapPromptBg"),"appear",{duration:0.3,from:0,to:0.6});Effect.toggle($("mapPrompt"),"appear",{duration:0.3,from:0,to:1})},setPushpin:function(){this.overlayVisible=false;this.mapHasBeenClicked=false;var a=$("map_title").value;a=a.replace("/","&#47;");a=escape(encodeURIComponent(a));var d="/maps/add_pin/"+registryID+"/"+featureID+"/"+a+"/"+this.zoomsValue;var c=this;var b=new Ajax.Request(d,{method:"post",onComplete:function(){c.pushPinDone()}})},cancelPushpin:function(){this.overlayVisible=true;this.mapHasBeenClicked=false;Effect.toggle($("mapPromptBg"),"appear",{duration:0.3,to:0});Effect.toggle($("mapPrompt"),"appear",{duration:0.3,to:0})},pushPinDone:function(){this.hidePushpinForm();$("mapOverlay").style.display="none";$("pinInstructions").style.display="none";this.reloadData()},pushPinDoneDelete:function(){var b="/maps/list_pins/"+registryID+"/"+featureID+"/";var a=this;new Ajax.Request(b,{method:"post",onSuccess:function(c){a.writeDeletePins(c.responseText)}});this.reloadData()},toggleAddPins:function(){this.mapHasBeenClicked=false;if($("mapOverlay").getStyle("display")=="none"){this.overlayVisible=true}else{this.overlayVisible=false}if($("mapOverlayDelete").style.display!="none"){Effect.toggle($("mapOverlayDelete"))}if($("deleteInstructions").style.display!="none"){Effect.toggle($("deleteInstructions"))}Effect.toggle($("mapOverlay"),"slide");Effect.toggle($("pinInstructions"),"slide")},showDeletePins:function(){if($("mapOverlay").style.display!="none"){Effect.toggle($("mapOverlay"),"slide")}if($("pinInstructions").style.display!="none"){Effect.toggle($("pinInstructions"),"slide")}if($("mapPromptBg").style.display!="none"){Effect.toggle($("mapPromptBg"),"appear",{duration:0.3})}if($("mapPrompt").style.display!="none"){Effect.toggle($("mapPrompt"),"appear",{duration:0.3})}Effect.toggle($("mapOverlayDelete"),"slide");Effect.toggle($("deleteInstructions"),"slide");var b="/maps/list_pins/"+registryID+"/"+featureID+"/";var a=this;new Ajax.Request(b,{method:"post",onSuccess:function(c){a.writeDeletePins(c.responseText)}})},writeDeletePins:function(d){if(d.indexOf("<!--")!=-1){d=d.substr(0,d.indexOf("<!--"))}var h=d.split("~~~");var c="";if(h.length>1){jQuery("#mapOverlayDelete").html("");var k=this;for(var e=0;e<h.length-1;e++){var b=h[e].split("###");var j=function(m){var l=jQuery(this).attr("pin_id");jQuery.post("/maps/del_pin/"+registryID+"/"+featureID+"/"+l,function(){k.pushPinDoneDelete()})};var f=jQuery("<div></div>").attr("style","float:left;width:200px;border:1px solid red;background:#fcc;padding:5px;");var g=jQuery("<a></a>").attr("href","javascript:void(0)").attr("pin_id",b[0]).text("Delete").click(j);f.append(g).append(" "+b[1]);jQuery("#mapOverlayDelete").append(f)}}else{var a=jQuery("<div></div>").addClass("noPins").text("There are no pins to delete!");jQuery("#mapOverlayDelete").html(a)}},hidePushpinForm:function(){Effect.toggle($("mapPromptBg"),"appear",{duration:0.3,to:0});Effect.toggle($("mapPrompt"),"appear",{duration:0.3,to:0})},reloadData:function(){if(this.flashMovie){this.flashMovie.reloadData(mapDataFile.replace(/rand=.+/,"rand="+Math.random()))}},reloadSettings:function(){if(this.flashMovie){this.flashMovie.reloadSettings()}},getZoomInfo:function(){if(this.flashMovie){this.flashMovie.getZoomInfo()}},onMapFlashZoom:function(b){var a=jQuery(window).data("flashZoom");if(!a||typeof(a.scale)!="number"){return}if(a.scale!=1){jQuery("#addPinInitial").hide();jQuery("#addPinZoomWarning").show();jQuery("#addPinZoomNowReload").hide();if(jQuery("#mapOverlay").css("display")!="none"){this.toggleAddPins();this.cancelPushpin()}this.flashZoomWasntOne=true}if(this.flashZoomWasntOne&&a.scale==1){jQuery("#addPinInitial").hide();jQuery("#addPinZoomWarning").hide();jQuery("#addPinZoomNowReload").show()}}};function setZoomInfo(a,c,b){document.getElementById("zoom_x").value=a;document.getElementById("zoom_y").value=c;document.getElementById("zoom_level").value=b}function checkPromoCode(b){var c=jQuery("#PaymentPromoCode").val();if(!c||c.match(/^\s*$/)){return}var a="/pay/validate_code/"+c+"/"+b;jQuery.ajax({type:"POST",url:a,success:function(e,d,f){jQuery("#promoCodeMsg").html(e);if(e.indexOf("Congratulations!")!=-1){jQuery("#promoCodeMsg").css("border","1px solid #547DB7")}else{jQuery("#promoCodeMsg").css("border","1px solid red")}jQuery("#promoCodeMsg").fadeIn("slow")}})}function addRsvpEvent(){var a="data[Event][title]="+escape($("event_title").value);a+="&data[Event][description]="+escape($("event_description").value);a+="&data[Event][event_date]="+escape($("event_date").value);new Ajax.Request("/events/add/",{method:"post",postBody:(a),onSuccess:function(b){if(b.responseText=="success"){window.location="/events/index"}else{new Insertion.bottom($("add_event_error"),"There was an error adding this event - please try again!");Effect.toggle($("add_event_error"))}}})}function delRsvpEvent(b){if(confirm("Are you sure you want to delete this event?")){var a="data[Event][id]="+b;new Ajax.Request("/events/delete/",{method:"post",postBody:(a),onSuccess:function(c){if(c.responseText=="success"){window.location="/events/index"}else{alert("There was an error deleting this event - please try again!")}}})}}function clearDefault(){this.style.color="#000";if(this.value==this.alt){this.value=""}}function resetDefault(){if(this.value==""){this.value=this.alt;this.style.color="#aaa"}}function setDefaults(){var c=document.getElementsByTagName("input");var a=new Array();for(i=0;i<c.length;i++){var b=c[i].id;a[b]=c[i].value;if(c[i].type=="text"){if(c[i].value==""){c[i].value=c[i].alt;c[i].style.color="#aaa"}Event.observe(c[i],"focus",clearDefault.bind(c[i]));Event.observe(c[i],"blur",resetDefault.bind(c[i]))}}}function selectGuest(b,a){if(b.id){var c=b.id}else{var c=b;$(c+"").checked=true}$(c+"").ancestors()[1].style.background=($(c+"").checked!=false)?"#fffabb":"";if(!a){$(c+"").ancestors()[1].next(0).style.background=($(c+"").checked!=false)?"#fffabb":""}}function fixPNG(f){var h=navigator.appVersion.split("MSIE");var c=parseFloat(h[1]);if((c>=5.5)&&(c<7)&&(document.body.filters)){var b=(f.id)?"id='"+f.id+"' ":"";var e=(f.className)?"class='"+f.className+"' ":"";var g=(f.title)?"title='"+f.title+"' ":"title='"+f.alt+"' ";var d="display:inline-block;"+f.style.cssText;var a="<span "+b+e+g+' style="width:'+f.width+"px; height:"+f.height+"px;"+d+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+f.src+"', sizingMethod='scale');\"></span>";f.outerHTML=a}}function set_default_path(a,b){new Ajax.Request("/controlpanel/set_default?path="+a+"&title="+b,{method:"get"});var c="path="+a+"&title="+b;new Ajax.Request("/controlpanel/set_default/",{method:"post",postBody:(c),onSuccess:function(d){if(d.responseText=="success"){document.getElementById("current_default").style.display="block";document.getElementById("mkdefault").style.display="none"}else{alert("There was an error Makint this default - please try again!")}}})}function toggle_default(a){if(a=="0"){document.getElementById("current_default").style.display="none";document.getElementById("mkdefault").style.display="block"}else{document.getElementById("current_default").style.display="none";document.getElementById("mkdefault").style.display="none"}}function swapThumbnails(){$$("img[src]").findAll(function(a,b){return a.src.match(/tmb/)}).each(function(a,b){var c=new Image();c.onload=function(){if(this.width<a.width){var d=new Image();d.onload=function(){a.src=this.src};d.src=a.src.replace(/tmb_/,"")}};c.src=a.src})}function validateFeature(b){var a=$("FeatureFeatureTitle");if(a){if(a.getValue().match(/^\s*$/)){alert("Please give the page a title");if(a.focus){a.focus()}return false}}return true}function validatePhotoPost(b){var a=$("PhotoFilename");if(a&&!a.getValue()){alert("Please select a photo to upload");return false}return true}function validatePublishForm(c){var a=[["#TemplateName","template name"],["#TemplateColorName","template color"],["#TemplateColorPrimary","primary color",function(e){return e.val().match(/^#?[a-f0-9]{6}$/i)}]];for(var b=0;b<a.length;++b){var d=jQuery(a[b][0]);if(!d.length){continue}if(!d.val()||(a[b].length==3&&!a[b][2](d))){alert("A valid "+a[b][1]+" is required");if(typeof(d[0].focus)=="function"){d[0].focus()}return false}}if(jQuery("#TemplatePreviewImageId").val()||jQuery("#TemplatePreviewImage").val()){return true}alert("Please add a preview image");return false}function createCustomerServiceEntry(a){if(!a){return}if(a.charAt(0)!="#"){a="#"+a}jQuery.ajax({url:"/customer_service_entries/create?rand="+Math.random(),type:"POST",data:getCustomerServiceVariables(),success:function(b,d,c){if(parseInt(b)!=NaN){jQuery(a).html("Please include this Customer Support number with your help request: <b>"+b+"</b>")}},error:function(){}})}function getCustomerServiceVariables(){var a={flashVersion:null,likelyBrowser:"unknown",flashDetectedZoom:null};if(typeof(swfobject)=="object"){var c=swfobject.getFlashPlayerVersion();a.flashVersion=c.major+"."+c.minor+"."+c.release}if(typeof(jQuery)!="undefined"){if(jQuery.browser.mozilla){a.likelyBrowser="Firefox"}else{if(jQuery.browser.msie){a.likelyBrowser="Internet Explorer "+jQuery.browser.version}else{if(jQuery.browser.opera){a.likelyBrowser="Opera "+jQuery.browser.version}else{if(jQuery.browser.webkit||jQuery.browser.safari){a.likelyBrowser="Safari or other Webkit (Konqueror, Chrome)"}}}}var b=jQuery(window).data("flashZoom");if(b&&typeof(b.scale)!="undefined"){a.flashDetectedZoom=b.scale}}if(typeof(navigator.platform)!="undefined"){a.platform=navigator.platform}return a}jQuery(document).ready(function(){if(window.frames.length==2&&window==window.top){console.log("skipping this parent");return}var b=jQuery("#shell");if(!b.length){return}if(jQuery("#show_toolbar")){var c=b.css("padding-top");var a=function(){console.log(jQuery("#toolbar"));if(jQuery("#toolbar").css("display")!="none"){jQuery("#toolbar,#toolbar_shadow").css("display","none");jQuery("#show_toolbar").css("display","block");jQuery("#shell").css("padding-top","0")}else{jQuery("#toolbar, #toolbar_shadow").css("display","block");jQuery("#show_toolbar").css("display","none");jQuery("#shell").css("padding-top",c)}};jQuery("#show_toolbar,#hide_toolbar").click(a)}});function submitLoginOrSignup(a,c){if(typeof(c)!="boolean"){c=false}var b=jQuery(a);if(c){jQuery.post(b.attr("action"),b.serialize(),function(d,f,e){console.log("ajax login or signup",d,f);jQuery(window).data("userLoggedIn",true);jQuery(window).trigger("onUserLogin")});return false}return true}function activeClickOnEmbeds(){jQuery(document.body).click(a);function a(d){var c=jQuery(d.target);if(c.get(0).tagName=="BUTTON"&&c.hasClass("embed")&&c.attr("url")){var b=jQuery("<span></span>").load(c.attr("url")+"?rand="+Math.random());c.replaceWith(b)}else{if(c.get(0).tagName=="INPUT"&&c.hasClass("embed")&&c.get(0).select){c.get(0).select()}}}}function activateSelectOnTextareas(){jQuery(document.body).click(function(a){try{if(a.target.select&&jQuery(a.target).attr("select_on_click")){a.target.select()}}catch(a){}})}(function(){jQuery(document).ready(function(){function d(k){k.preventDefault();var j=jQuery(k.target);if(!j.hasClass("comment_addForm")){j=j.parents(".comment_addForm")}if(!j.hasClass("comment_addForm")){console.log("no form for submission");return}var g=j.parents(".comments[entry_id]");var f=j.parents(".currentComments");if(!g.length||!f.length){return}var h="/visitorcomments/add/"+g.attr("entry_type")+"/"+g.attr("entry_id")+"?rand="+Math.random();jQuery.post(h,jQuery(j).serialize(),function(e){f.html(e);c(f)})}function b(h){h.preventDefault();var g=jQuery(h.target);if(!g.hasClass("delete_comment")){return}var f=g.parents(".currentComments");jQuery.post(g.attr("href"),function(e){f.html(e);c(f)})}function c(f){var e=f.find(".comment_container").length;f.prev(".showComments").text(e+" comment"+(e!=1?"s":""))}function a(j){if(j.target){var h=jQuery(j.target)}else{var h=jQuery(j)}var k=[];if(h.hasClass("currentComments")){k=h}if(!k.length){k=h.next(".currentComments")}if(!k.length){k=h.parents(".currentComments")}if(!k.length){console.error("Couldn't find comments container based on target %o",h);return}if(k.css("display")=="block"){Effect.toggle(k[0],"slide",{duration:0.5});if(jQuery.browser.msie&&jQuery.browser.version==7){jQuery(".photo.not-active").removeClass("not-active")}k.removeClass("visible");return}jQuery(".currentComments.visible").each(function(){if(this!=k[0]){console.log("hiding %o",this);jQuery(this).removeClass("visible").css("display","none")}});if(jQuery.browser.msie&&jQuery.browser.version==7){var f=h.parents(".photo");if(f.length){jQuery("#photogallery .photo").each(function(){if(this!=f[0]){jQuery(this).addClass("not-active")}})}}var g="/visitorcomments/add/"+h.parent().attr("entry_type")+"/"+h.parent().attr("entry_id")+(h.parent().attr("template_mode")?"/"+h.parent().attr("template_mode"):"")+"?rand="+Math.random();if(h.parent().attr("non_ajax")){console.log(k);k.addClass("visible");Effect.toggle(k[0],"slide",{duration:0.5})}else{k.html("").addClass("visible").load(g,function(l){Effect.toggle(k[0],"slide",{duration:0.5})})}}jQuery(document).click(function(g){var f=jQuery(g.target);if(!f.parents(".comments").attr("entry_type")||!f.parents(".comments").attr("entry_id")){return}if(f.hasClass("showComments")){a(g)}else{if(f.hasClass("comment_submit")){d(g)}else{if(f.hasClass("delete_comment")){b(g)}}}})})})();(function(){var f=false;var h=null;var j="";function d(k){if(jQuery("#post_draft_id,#feature_draft_id").length!=2||!CKEDITOR.instances.PostPostContent){console.log("no post_draft_id or no feature_draft_id or no ckeditor instance");return}else{if(!jQuery(window).data("userLoggedIn")){console.log("user not logged in, not auto-saving post draft");return}}h=setInterval(b,3000)}function g(){console.log("onLightviewHiddenPostDraft");if(h){clearInterval(h)}}function c(){var n=jQuery("#auto_saved");var p=new Date();var l=p.getHours();var k=p.getMinutes();var o="am";if(l>12){l=l-12;o="pm"}if(n.attr("h")&&n.attr("m")&&n.attr("h")==l&&n.attr("m")==k){return}n.attr("h",l).attr("m",k).text("Draft saved at "+l+":"+k+" "+o).show()}function b(){var n=jQuery("#feature_draft_id").val();var k=jQuery("#post_draft_id").val();if(f){console.log("post draft in progress");return}var l=CKEDITOR.instances.PostPostContent.getData();if(typeof(l)!="string"||l.match(/^[\s]*(<[\w]+>)?([\s]|&nbsp;)+(<\/[\w]+>)?[\s]*$/)){return}else{if(j==l){return}}f=true;var m={post_id:k,feature_id:n,post_id:k,draft_content:l};j=l;jQuery.ajax({url:"/posts/ajax_save_draft",type:"post",dataType:"json",data:m,error:a,success:e})}function a(l,m,k){f=false;j=""}function e(k,m,l){f=false;if(k&&k.post_id){jQuery("#PostId,#post_draft_id").val(k.post_id)}c()}jQuery(document).ready(function(){Event.observe(document,"lightview:opened",function(){setTimeout(d,1200)});Event.observe(document,"lightview:hidden",g)})})();function setupLeadly(){if(!jQuery("#leadly_share").length){return}console.log("will load leadly");jQuery("#leadly_share").click(loadLeadlyShare)}function loadLeadlyShare(){if(jQuery("#leadly_content textarea").length){showLeadly();return}var a={callAfter:function(){jQuery("#leadly_content textarea").addClass("no_nic");showLeadly()}};jQuery("<div>",{id:"leadly_content"}).appendTo(document.body);Leadly.load("#leadly_content",a)}function showLeadly(){Lightview.show({href:"#leadly_content",options:{width:800,height:355}})}function checkForBadge(){var b=(window.location.hash||"").match(/#b=(.+)$/);if(b){if(document.referrer){var a="/ghgh_badges/click/"+b[1]+"?referrer="+encodeURIComponent(document.referrer);jQuery.post(a)}window.location="#"}}function checkForLeadlyReferrer(){if(typeof(Leadly)!="undefined"&&Leadly.user.referringUserId){jQuery.post("/leadly/store_user_id/"+Leadly.user.referringUserId)}}function updateSifrData(a){jQuery(window).load(function(){setTimeout(function(){if(!jQuery(".sIFR-flash:visible").length){console.log("no visible sifr");return}var d=jQuery(".sIFR-flash:visible:first");var b=jQuery(".sIFR-flash:visible").bounds();console.log("bounds",b);var c={x:b.left,y:b.top,width:b.right-b.left,height:b.bottom-b.top,window_width:jQuery(window).width(),window_height:jQuery(window).height()};jQuery.post("/cloned_sites/store_sifr_data/"+a,c)},2000)})}(function(){jQuery.fn.bounds=function(){var a={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY};this.each(function(b,d){var c=jQuery(d);var e=c.offset();e.right=e.left+jQuery(c).width();e.bottom=e.top+jQuery(c).height();if(e.left<a.left){a.left=e.left}if(e.top<a.top){a.top=e.top}if(e.right>a.right){a.right=e.right}if(e.bottom>a.bottom){a.bottom=e.bottom}});return a}})();
/* end http://www.nearlyweds.com/js/nearlyweds.js */

/* start http://www.nearlyweds.com/js/prototip.js */
var Prototip={Version:"2.1.1"};var Tips={options:{images:"../images/prototip/",zIndex:6000}};Prototip.Styles={"default":{border:6,borderColor:"#c7c7c7",className:"default",closeButton:false,hideAfter:false,hideOn:"mouseleave",hook:false,radius:6,showOn:"mousemove",stem:{height:12,width:15}},protoblue:{className:"protoblue",border:6,borderColor:"#116497",radius:6,stem:{height:12,width:15}},darkgrey:{className:"darkgrey",border:6,borderColor:"#363636",radius:6,stem:{height:12,width:15}},creamy:{className:"creamy",border:6,borderColor:"#ebe4b4",radius:6,stem:{height:12,width:15}},protogrey:{className:"protogrey",border:6,borderColor:"#606060",radius:6,stem:{height:12,width:15}}};eval(function(h,b,i,d,g,f){g=function(a){return(a<b?"":g(parseInt(a/b)))+((a=a%b)>35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){while(i--){f[g(i)]=d[i]||g(i)}d=[function(a){return f[a]}];g=function(){return"\\w+"};i=1}while(i--){if(d[i]){h=h.replace(new RegExp("\\b"+g(i)+"\\b","g"),d[i])}}return h}('L.X(11,{4d:"1.6.1",2D:{20:!!Y.4e("20").3l},3m:p(){3.3n("2E");o(/^(4f?:\\/\\/|\\/)/.4g(s.9.T)){s.T=s.9.T}V{q a=/1C(?:-[\\w\\d.]+)?\\.4h(.*)/;s.T=(($$("4i[21]").3o(p(b){M b.21.22(a)})||{}).21||"").2F(a,"")+s.9.T}o(!3.2D.20){o(Y.4j>=8&&!Y.3p.2a){Y.3p.2G("2a","4k:4l-4m-4n:4o","#2b#3q")}V{Y.1a("3r:2H",p(){q b=Y.4p();b.4q="2a\\\\:*{4r:2I(#2b#3q)}"})}}s.2c();H.1a(2J,"2K",3.2K)},3n:p(a){o((4s 2J[a]=="4t")||(3.2L(2J[a].4u)<3.2L(3["3s"+a]))){3t("11 4v "+a+" >= "+3["3s"+a])}},2L:p(a){q b=a.2F(/3u.*|\\./g,"");b=4w(b+"0".4x(4-b.2M));M a.4y("3u")>-1?b-1:b},2N:p(a){M(a>0)?(-1*a):(a).4z()},2K:p(){s.3v()}});L.X(s,{1w:[],12:[],2c:p(){3.2e=3.1k},23:{B:"2O",2O:"B",u:"1l",1l:"u",1O:"1O",1b:"1d",1d:"1b"},3w:{G:"1b",F:"1d"},2P:p(a){M!!1P[1]?3.23[a]:a},1g:(p(b){q a=I 4A("4B ([\\\\d.]+)").4C(b);M a?(3x(a[1])<7):W})(4D.4E),2Q:(2E.4F.4G&&!Y.4H),2G:p(a){3.1w.2f(a)},1x:p(a){q b=3.1w.3o(p(c){M c.C==$(a)});o(b){b.3y();o(b.13){b.E.1x();o(s.1g){b.1m.1x()}}3.1w=3.1w.3z(b)}a.1C=24},3v:p(){3.1w.2R(p(a){3.1x(a.C)}.1e(3))},2g:p(c){o(c==3.3A){M}o(3.12.2M===0){3.2e=3.9.1k;2S(q b=0,a=3.1w.2M;b<a;b++){3.1w[b].E.r({1k:3.9.1k})}}c.E.r({1k:3.2e++});o(c.Q){c.Q.r({1k:3.2e})}3.3A=c},3B:p(a){3.2T(a);3.12.2f(a)},2T:p(a){3.12=3.12.3z(a)},3C:p(){s.12.1D("S")},U:p(b,f){b=$(b),f=$(f);q k=L.X({1c:{x:0,y:0},N:W},1P[2]||{});q d=k.1q||f.2h();d.B+=k.1c.x;d.u+=k.1c.y;q c=k.1q?[0,0]:f.3D(),a=Y.1y.2i(),g=k.1q?"1Q":"15";d.B+=(-1*(c[0]-a[0]));d.u+=(-1*(c[1]-a[1]));o(k.1q){q e=[0,0];e.G=0;e.F=0}q i={C:b.1R()},j={C:L.25(d)};i[g]=k.1q?e:f.1R();j[g]=L.25(d);2S(q h 3E j){3F(k[h]){R"4I":R"4J":j[h].B+=i[h].G;17;R"4K":j[h].B+=(i[h].G/2);17;R"4L":j[h].B+=i[h].G;j[h].u+=(i[h].F/2);17;R"4M":R"4N":j[h].u+=i[h].F;17;R"4O":R"4P":j[h].B+=i[h].G;j[h].u+=i[h].F;17;R"4Q":j[h].B+=(i[h].G/2);j[h].u+=i[h].F;17;R"4R":j[h].u+=(i[h].F/2);17}}d.B+=-1*(j.C.B-j[g].B);d.u+=-1*(j.C.u-j[g].u);o(k.N){b.r({B:d.B+"v",u:d.u+"v"})}M d}});s.2c();q 4S=4T.3G({2c:p(c,e){3.C=$(c);o(!3.C){3t("11: H 4U 4V, 4W 3G a 13.");M}s.1x(3.C);q a=(L.2j(e)||L.2U(e)),b=a?1P[2]||[]:e;3.1n=a?e:24;o(b.1S){b=L.X(L.25(11.2V[b.1S]),b)}3.9=L.X(L.X({1h:W,1f:0,2W:"#4X",1j:0,J:s.9.J,18:s.9.4Y,1r:!(b.19&&b.19=="1T")?0.14:W,1z:W,1s:"1E",3H:W,U:b.U,1c:b.U?{x:0,y:0}:{x:16,y:16},1F:(b.U&&!b.U.1q)?1i:W,19:"2k",D:W,1S:"2b",15:3.C,10:W,1y:(b.U&&!b.U.1q)?W:1i,G:W},11.2V["2b"]),b);3.15=$(3.9.15);3.1j=3.9.1j;3.1f=(3.1j>3.9.1f)?3.1j:3.9.1f;o(3.9.T){3.T=3.9.T.3I("://")?3.9.T:s.T+3.9.T}V{3.T=s.T+"4Z/"+(3.9.1S||"")+"/"}o(!3.T.51("/")){3.T+="/"}o(L.2j(3.9.D)){3.9.D={N:3.9.D}}o(3.9.D.N){3.9.D=L.X(L.25(11.2V[3.9.1S].D)||{},3.9.D);3.9.D.N=[3.9.D.N.22(/[a-z]+/)[0].2l(),3.9.D.N.22(/[A-Z][a-z]+/)[0].2l()];3.9.D.1A=["B","2O"].52(3.9.D.N[0])?"1b":"1d";3.1o={1b:W,1d:W}}o(3.9.1h){3.9.1h.9=L.X({2X:2E.53},3.9.1h.9||{})}o(3.9.U.1q){q d=3.9.U.1p.22(/[a-z]+/)[0].2l();3.1Q=s.23[d]+s.23[3.9.U.1p.22(/[A-Z][a-z]+/)[0].2l()].2m()}3.3J=(s.2Q&&3.1j);3.3K();s.2G(3);3.3L();11.X(3)},3K:p(){3.E=I H("P",{J:"1C"}).r({1k:s.9.1k});o(3.3J){3.E.S=p(){3.r("B:-3M;u:-3M;1G:2n;");M 3};3.E.O=p(){3.r("1G:12");M 3};3.E.12=p(){M(3.2Y("1G")=="12"&&3x(3.2Y("u").2F("v",""))>-54)}}3.E.S();o(s.1g){3.1m=I H("55",{J:"1m",21:"56:W;",57:0}).r({2o:"26",1k:s.9.1k-1,58:0})}o(3.9.1h){3.1U=3.1U.2Z(3.30)}3.1p=I H("P",{J:"1n"});3.10=I H("P",{J:"10"}).S();o(3.9.18||(3.9.1s.C&&3.9.1s.C=="18")){3.18=I H("P",{J:"27"}).1V(3.T+"27.2p")}},2q:p(){o(Y.2H){3.31();3.3N=1i;M 1i}V{o(!3.3N){Y.1a("3r:2H",3.31);M W}}},31:p(){$(Y.32).K(3.E);o(s.1g){$(Y.32).K(3.1m)}o(3.9.1h){$(Y.32).K(3.Q=I H("P",{J:"59"}).1V(3.T+"Q.5a").S())}q g="E";o(3.9.D.N){3.D=I H("P",{J:"5b"}).r({F:3.9.D[3.9.D.1A=="1d"?"F":"G"]+"v"});q b=3.9.D.1A=="1b";3[g].K(3.33=I H("P",{J:"5c 2r"}).K(3.3O=I H("P",{J:"5d 2r"})));3.D.K(3.1H=I H("P",{J:"5e"}).r({F:3.9.D[b?"G":"F"]+"v",G:3.9.D[b?"F":"G"]+"v"}));o(s.1g&&!3.9.D.N[1].3P().3I("5f")){3.1H.r({2o:"5g"})}g="3O"}o(3.1f){q d=3.1f,f;3[g].K(3.1W=I H("5h",{J:"1W"}).K(3.1X=I H("34",{J:"1X 35"}).r("F: "+d+"v").K(I H("P",{J:"2s 5i"}).K(I H("P",{J:"1Y"}))).K(f=I H("P",{J:"5j"}).r({F:d+"v"}).K(I H("P",{J:"3Q"}).r({1t:"0 "+d+"v",F:d+"v"}))).K(I H("P",{J:"2s 5k"}).K(I H("P",{J:"1Y"})))).K(3.36=I H("34",{J:"36 35"}).K(3.37=I H("P",{J:"37"}).r("2t: 0 "+d+"v"))).K(3.3R=I H("34",{J:"3R 35"}).r("F: "+d+"v").K(I H("P",{J:"2s 5l"}).K(I H("P",{J:"1Y"}))).K(f.5m(1i)).K(I H("P",{J:"2s 5n"}).K(I H("P",{J:"1Y"})))));g="37";q c=3.1W.38(".1Y");$w("5o 5p 5q 5r").2R(p(j,h){o(3.1j>0){11.3S(c[h],j,{1I:3.9.2W,1f:d,1j:3.9.1j})}V{c[h].2u("3T")}c[h].r({G:d+"v",F:d+"v"}).2u("1Y"+j.2m())}.1e(3));3.1W.38(".3Q",".36",".3T").1D("r",{1I:3.9.2W})}3[g].K(3.13=I H("P",{J:"13 "+3.9.J}).K(3.1Z=I H("P",{J:"1Z"}).K(3.10)));o(3.9.G){q e=3.9.G;o(L.5s(e)){e+="v"}3.13.r("G:"+e)}o(3.D){q a={};a[3.9.D.1A=="1b"?"u":"1l"]=3.D;3.E.K(a);3.28()}3.13.K(3.1p);o(!3.9.1h){3.39({10:3.9.10,1n:3.1n})}},39:p(e){q a=3.E.2Y("1G");3.E.r("F:1J;G:1J;1G:2n").O();o(3.1f){3.1X.r("F:0");3.1X.r("F:0")}o(e.10){3.10.O().3U(e.10);3.1Z.O()}V{o(!3.18){3.10.S();3.1Z.S()}}o(L.2U(e.1n)){e.1n.O()}o(L.2j(e.1n)||L.2U(e.1n)){3.1p.3U(e.1n)}3.13.r({G:3.13.3V()+"v"});3.E.r("1G:12").O();3.13.O();q c=3.13.1R(),b={G:c.G+"v"},d=[3.E];o(s.1g){d.2f(3.1m)}o(3.18){3.10.O().K({u:3.18});3.1Z.O()}o(e.10||3.18){3.1Z.r("G: 3a%")}b.F=24;3.E.r({1G:a});3.1p.2u("2r");o(e.10||3.18){3.10.2u("2r")}o(3.1f){3.1X.r("F:"+3.1f+"v");3.1X.r("F:"+3.1f+"v");b="G: "+(c.G+2*3.1f)+"v";d.2f(3.1W)}d.1D("r",b);o(3.D){3.28();o(3.9.D.1A=="1b"){3.E.r({G:3.E.3V()+3.9.D.F+"v"})}}3.E.S()},3L:p(){3.3b=3.1U.1u(3);3.3W=3.S.1u(3);o(3.9.1F&&3.9.19=="2k"){3.9.19="3c"}o(3.9.19==3.9.1s){3.1K=3.3X.1u(3);3.C.1a(3.9.19,3.1K)}o(3.18){3.18.1a("3c",p(d){d.1V(3.T+"5t.2p")}.1e(3,3.18)).1a("3d",p(d){d.1V(3.T+"27.2p")}.1e(3,3.18))}q c={C:3.1K?[]:[3.C],15:3.1K?[]:[3.15],1p:3.1K?[]:[3.E],18:[],26:[]},a=3.9.1s.C;3.3e=a||(!3.9.1s?"26":"C");3.1L=c[3.3e];o(!3.1L&&a&&L.2j(a)){3.1L=3.1p.38(a)}$w("O S").2R(p(g){q f=g.2m(),d=(3.9[g+"3Y"].5u||3.9[g+"3Y"]);o(d=="3c"){d=="3f"}V{o(d=="3d"){d=="1E"}}3[g+"5v"]=d}.1e(3));o(!3.1K){3.C.1a(3.9.19,3.3b)}o(3.1L){3.1L.1D("1a",3.5w,3.3W)}o(!3.9.1F&&3.9.19=="1T"){3.2v=3.N.1u(3);3.C.1a("2k",3.2v)}3.3Z=3.S.2Z(p(f,e){q d=e.5x(".27");o(d){d.5y();e.5z();f(e)}}).1u(3);o(3.18||(3.9.1s&&(3.9.1s.C==".27"))){3.E.1a("1T",3.3Z)}o(3.9.19!="1T"&&(3.3e!="C")){3.2w=p(){3.1B("O")}.1u(3);3.C.1a("1E",3.2w)}q b=[3.C,3.E];3.3g=p(){s.2g(3);3.2x()}.1u(3);3.3h=3.1z.1u(3);b.1D("1a","3f",3.3g).1D("1a","1E",3.3h);o(3.9.1h&&3.9.19!="1T"){3.2y=3.40.1u(3);3.C.1a("1E",3.2y)}},3y:p(){o(3.9.19==3.9.1s){3.C.1v(3.9.19,3.1K)}V{3.C.1v(3.9.19,3.3b);o(3.1L){3.1L.1D("1v")}}o(3.2v){3.C.1v("2k",3.2v)}o(3.2w){3.C.1v("3d",3.2w)}3.E.1v();3.C.1v("3f",3.3g).1v("1E",3.3h);o(3.2y){3.C.1v("1E",3.2y)}},30:p(c,b){o(!3.13){o(!3.2q()){M}}3.N(b);o(3.2z){M}V{o(3.41){c(b);M}}3.2z=1i;q e=b.5A(),d={29:{1M:e.x,1N:e.y}};q a=L.25(3.9.1h.9);a.2X=a.2X.2Z(p(g,f){3.39({10:3.9.10,1n:f.5B});3.N(d);(p(){g(f);q h=(3.Q&&3.Q.12());o(3.Q){3.1B("Q");3.Q.1x();3.Q=24}o(h){3.O()}3.41=1i;3.2z=24}.1e(3)).1r(0.6)}.1e(3));3.5C=H.O.1r(3.9.1r,3.Q);3.E.S();3.2z=1i;3.Q.O();3.5D=(p(){I 5E.5F(3.9.1h.2I,a)}.1e(3)).1r(3.9.1r);M W},40:p(){3.1B("Q")},1U:p(a){o(!3.13){o(!3.2q()){M}}3.N(a);o(3.E.12()){M}3.1B("O");3.5G=3.O.1e(3).1r(3.9.1r)},1B:p(a){o(3[a+"42"]){5H(3[a+"42"])}},O:p(){o(3.E.12()){M}o(s.1g){3.1m.O()}o(3.9.3H){s.3C()}s.3B(3);3.13.O();3.E.O();o(3.D){3.D.O()}3.C.43("1C:5I")},1z:p(a){o(3.9.1h){o(3.Q&&3.9.19!="1T"){3.Q.S()}}o(!3.9.1z){M}3.2x();3.5J=3.S.1e(3).1r(3.9.1z)},2x:p(){o(3.9.1z){3.1B("1z")}},S:p(){3.1B("O");3.1B("Q");o(!3.E.12()){M}3.44()},44:p(){o(s.1g){3.1m.S()}o(3.Q){3.Q.S()}3.E.S();(3.1W||3.13).O();s.2T(3);3.C.43("1C:2n")},3X:p(a){o(3.E&&3.E.12()){3.S(a)}V{3.1U(a)}},28:p(){q c=3.9.D,b=1P[0]||3.1o,d=s.2P(c.N[0],b[c.1A]),f=s.2P(c.N[1],b[s.23[c.1A]]),a=3.1j||0;3.1H.1V(3.T+d+f+".2p");o(c.1A=="1b"){q e=(d=="B")?c.F:0;3.33.r("B: "+e+"v;");3.1H.r({"2A":d});3.D.r({B:0,u:(f=="1l"?"3a%":f=="1O"?"50%":0),5K:(f=="1l"?-1*c.G:f=="1O"?-0.5*c.G:0)+(f=="1l"?-1*a:f=="u"?a:0)+"v"})}V{3.33.r(d=="u"?"1t: 0; 2t: "+c.F+"v 0 0 0;":"2t: 0; 1t: 0 0 "+c.F+"v 0;");3.D.r(d=="u"?"u: 0; 1l: 1J;":"u: 1J; 1l: 0;");3.1H.r({1t:0,"2A":f!="1O"?f:"26"});o(f=="1O"){3.1H.r("1t: 0 1J;")}V{3.1H.r("1t-"+f+": "+a+"v;")}o(s.2Q){o(d=="1l"){3.D.r({N:"45",5L:"5M",u:"1J",1l:"1J","2A":"B",G:"3a%",1t:(-1*c.F)+"v 0 0 0"});3.D.1S.2o="46"}V{3.D.r({N:"47","2A":"26",1t:0})}}}3.1o=b},N:p(b){o(!3.13){o(!3.2q()){M}}s.2g(3);o(s.1g){q a=3.E.1R();o(!3.2B||3.2B.F!=a.F||3.2B.G!=a.G){3.1m.r({G:a.G+"v",F:a.F+"v"})}3.2B=a}o(3.9.U){q j,h;o(3.1Q){q k=Y.1y.2i(),c=b.29||{};q g,i=2;3F(3.1Q.3P()){R"5N":R"5O":g={x:0-i,y:0-i};17;R"5P":g={x:0,y:0-i};17;R"5Q":R"5R":g={x:i,y:0-i};17;R"5S":g={x:i,y:0};17;R"5T":R"5U":g={x:i,y:i};17;R"5V":g={x:0,y:i};17;R"5W":R"5X":g={x:0-i,y:i};17;R"5Y":g={x:0-i,y:0};17}g.x+=3.9.1c.x;g.y+=3.9.1c.y;j=L.X({1c:g},{C:3.9.U.1p,1Q:3.1Q,1q:{u:c.1N||2C.1N(b)-k.u,B:c.1M||2C.1M(b)-k.B}});h=s.U(3.E,3.15,j);o(3.9.1y){q n=3.3i(h),m=n.1o;h=n.N;h.B+=m.1d?2*11.2N(g.x-3.9.1c.x):0;h.u+=m.1d?2*11.2N(g.y-3.9.1c.y):0;o(3.D&&(3.1o.1b!=m.1b||3.1o.1d!=m.1d)){3.28(m)}}h={B:h.B+"v",u:h.u+"v"};3.E.r(h)}V{j=L.X({1c:3.9.1c},{C:3.9.U.1p,15:3.9.U.15});h=s.U(3.E,3.15,L.X({N:1i},j));h={B:h.B+"v",u:h.u+"v"}}o(3.Q){q e=s.U(3.Q,3.15,L.X({N:1i},j))}o(s.1g){3.1m.r(h)}}V{q f=3.15.2h(),c=b.29||{},h={B:((3.9.1F)?f[0]:c.1M||2C.1M(b))+3.9.1c.x,u:((3.9.1F)?f[1]:c.1N||2C.1N(b))+3.9.1c.y};o(!3.9.1F&&3.C!==3.15){q d=3.C.2h();h.B+=-1*(d[0]-f[0]);h.u+=-1*(d[1]-f[1])}o(!3.9.1F&&3.9.1y){q n=3.3i(h),m=n.1o;h=n.N;o(3.D&&(3.1o.1b!=m.1b||3.1o.1d!=m.1d)){3.28(m)}}h={B:h.B+"v",u:h.u+"v"};3.E.r(h);o(3.Q){3.Q.r(h)}o(s.1g){3.1m.r(h)}}},3i:p(c){q e={1b:W,1d:W},d=3.E.1R(),b=Y.1y.2i(),a=Y.1y.1R(),g={B:"G",u:"F"};2S(q f 3E g){o((c[f]+d[g[f]]-b[f])>a[g[f]]){c[f]=c[f]-(d[g[f]]+(2*3.9.1c[f=="B"?"x":"y"]));o(3.D){e[s.3w[g[f]]]=1i}}}M{N:c,1o:e}}});L.X(11,{3S:p(d,g){q j=1P[2]||3.9,f=j.1j,c=j.1f,e={u:(g.48(0)=="t"),B:(g.48(1)=="l")};o(3.2D.20){q b=I H("20",{J:"5Z"+g.2m(),G:c+"v",F:c+"v"});d.K(b);q i=b.3l("2d");i.60=j.1I;i.61((e.B?f:c-f),(e.u?f:c-f),f,0,62.63*2,1i);i.64();i.49((e.B?f:0),0,c-f,c);i.49(0,(e.u?f:0),c,c-f)}V{q h;d.K(h=I H("P").r({G:c+"v",F:c+"v",1t:0,2t:0,2o:"46",N:"45",65:"2n"}));q a=I H("2a:66",{67:j.1I,68:"69",6a:j.1I,6b:(f/c*0.5).6c(2)}).r({G:2*c-1+"v",F:2*c-1+"v",N:"47",B:(e.B?0:(-1*c))+"v",u:(e.u?0:(-1*c))+"v"});h.K(a);a.4a=a.4a}}});H.6d({1V:p(c,b){c=$(c);q a=L.X({4b:"u B",3j:"6e-3j",3k:"6f",1I:""},1P[2]||{});c.r(s.1g?{6g:"6h:6i.6j.6k(21=\'"+b+"\'\', 3k=\'"+a.3k+"\')"}:{6l:a.1I+" 2I("+b+") "+a.4b+" "+a.3j});M c}});11.4c={O:p(){s.2g(3);3.2x();q d={};o(3.9.U){d.29={1M:0,1N:0}}V{q a=3.15.2h(),c=3.15.3D(),b=Y.1y.2i();a.B+=(-1*(c[0]-b[0]));a.u+=(-1*(c[1]-b[1]));d.29={1M:a.B,1N:a.u}}o(3.9.1h){3.30(d)}V{3.1U(d)}3.1z()}};11.X=p(a){a.C.1C={};L.X(a.C.1C,{O:11.4c.O.1e(a),S:a.S.1e(a),1x:s.1x.1e(s,a.C)})};11.3m();',62,394,"|||this||||||options|||||||||||||||if|function|var|setStyle|Tips||top|px||||||left|element|stem|wrapper|height|width|Element|new|className|insert|Object|return|position|show|div|loader|case|hide|images|hook|else|false|extend|document||title|Prototip|visible|tooltip||target||break|closeButton|showOn|observe|horizontal|offset|vertical|bind|border|fixIE|ajax|true|radius|zIndex|bottom|iframeShim|content|stemInverse|tip|mouse|delay|hideOn|margin|bindAsEventListener|stopObserving|tips|remove|viewport|hideAfter|orientation|clearTimer|prototip|invoke|mouseleave|fixed|visibility|stemImage|backgroundColor|auto|eventToggle|hideTargets|pointerX|pointerY|middle|arguments|mouseHook|getDimensions|style|click|showDelayed|setPngBackground|borderFrame|borderTop|prototip_Corner|toolbar|canvas|src|match|_inverse|null|clone|none|close|positionStem|fakePointer|ns_vml|default|initialize||zIndexTop|push|raise|cumulativeOffset|getScrollOffsets|isString|mousemove|toLowerCase|capitalize|hidden|display|png|build|clearfix|prototip_CornerWrapper|padding|addClassName|eventPosition|eventCheckDelay|cancelHideAfter|ajaxHideEvent|ajaxContentLoading|float|iframeShimDimensions|Event|support|Prototype|replace|add|loaded|url|window|unload|convertVersionString|length|toggleInt|right|inverseStem|WebKit419|each|for|removeVisible|isElement|Styles|borderColor|onComplete|getStyle|wrap|ajaxShow|_build|body|stemWrapper|li|borderRow|borderMiddle|borderCenter|select|_update|100|eventShow|mouseover|mouseout|hideElement|mouseenter|activityEnter|activityLeave|getPositionWithinViewport|repeat|sizingMethod|getContext|start|require|find|namespaces|VML|dom|REQUIRED_|throw|_|removeAll|_stemTranslation|parseFloat|deactivate|without|_highest|addVisibile|hideAll|cumulativeScrollOffset|in|switch|create|hideOthers|include|fixSafari2|setup|activate|9500px|_isBuilding|stemBox|toUpperCase|prototip_Between|borderBottom|createCorner|prototip_Fill|update|getWidth|eventHide|toggle|On|buttonEvent|ajaxHide|ajaxContentLoaded|Timer|fire|afterHide|relative|block|absolute|charAt|fillRect|outerHTML|align|Methods|REQUIRED_Prototype|createElement|https|test|js|script|documentMode|urn|schemas|microsoft|com|vml|createStyleSheet|cssText|behavior|typeof|undefined|Version|requires|parseInt|times|indexOf|abs|RegExp|MSIE|exec|navigator|userAgent|Browser|WebKit|evaluate|topRight|rightTop|topMiddle|rightMiddle|bottomLeft|leftBottom|bottomRight|rightBottom|bottomMiddle|leftMiddle|Tip|Class|not|available|cannot|000000|closeButtons|styles||endsWith|member|emptyFunction|9500|iframe|javascript|frameBorder|opacity|prototipLoader|gif|prototip_Stem|prototip_StemWrapper|prototip_StemBox|prototip_StemImage|MIDDLE|inline|ul|prototip_CornerWrapperTopLeft|prototip_BetweenCorners|prototip_CornerWrapperTopRight|prototip_CornerWrapperBottomLeft|cloneNode|prototip_CornerWrapperBottomRight|tl|tr|bl|br|isNumber|close_hover|event|Action|hideAction|findElement|blur|stop|pointer|responseText|loaderTimer|ajaxTimer|Ajax|Request|showTimer|clearTimeout|shown|hideAfterTimer|marginTop|clear|both|LEFTTOP|TOPLEFT|TOPMIDDLE|TOPRIGHT|RIGHTTOP|RIGHTMIDDLE|RIGHTBOTTOM|BOTTOMRIGHT|BOTTOMMIDDLE|BOTTOMLEFT|LEFTBOTTOM|LEFTMIDDLE|cornerCanvas|fillStyle|arc|Math|PI|fill|overflow|roundrect|fillcolor|strokeWeight|1px|strokeColor|arcSize|toFixed|addMethods|no|scale|filter|progid|DXImageTransform|Microsoft|AlphaImageLoader|background".split("|"),0,{}));
/* end http://www.nearlyweds.com/js/prototip.js */

/* start http://www.nearlyweds.com/js/swfobject/swfobject.js */
var swfobject=function(){var aq="undefined",aD="object",ab="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",aE="application/x-shockwave-flash",ac="SWFObjectExprInst",ax="onreadystatechange",af=window,aL=document,aB=navigator,aa=false,Z=[aN],aG=[],ag=[],al=[],aJ,ad,ap,at,ak=false,aU=false,aH,an,aI=true,ah=function(){var a=typeof aL.getElementById!=aq&&typeof aL.getElementsByTagName!=aq&&typeof aL.createElement!=aq,e=aB.userAgent.toLowerCase(),c=aB.platform.toLowerCase(),h=c?/win/.test(c):/win/.test(e),j=c?/mac/.test(c):/mac/.test(e),g=/webkit/.test(e)?parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,d=!+"\v1",f=[0,0,0],k=null;if(typeof aB.plugins!=aq&&typeof aB.plugins[ab]==aD){k=aB.plugins[ab].description;if(k&&!(typeof aB.mimeTypes!=aq&&aB.mimeTypes[aE]&&!aB.mimeTypes[aE].enabledPlugin)){aa=true;d=false;k=k.replace(/^.*\s+(\S+\s+\S+$)/,"$1");f[0]=parseInt(k.replace(/^(.*)\..*$/,"$1"),10);f[1]=parseInt(k.replace(/^.*\.(.*)\s.*$/,"$1"),10);f[2]=/[a-zA-Z]/.test(k)?parseInt(k.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof af.ActiveXObject!=aq){try{var i=new ActiveXObject(X);if(i){k=i.GetVariable("$version");if(k){d=true;k=k.split(" ")[1].split(",");f=[parseInt(k[0],10),parseInt(k[1],10),parseInt(k[2],10)]}}}catch(b){}}}return{w3:a,pv:f,wk:g,ie:d,win:h,mac:j}}(),aK=function(){if(!ah.w3){return}if((typeof aL.readyState!=aq&&aL.readyState=="complete")||(typeof aL.readyState==aq&&(aL.getElementsByTagName("body")[0]||aL.body))){aP()}if(!ak){if(typeof aL.addEventListener!=aq){aL.addEventListener("DOMContentLoaded",aP,false)}if(ah.ie&&ah.win){aL.attachEvent(ax,function(){if(aL.readyState=="complete"){aL.detachEvent(ax,arguments.callee);aP()}});if(af==top){(function(){if(ak){return}try{aL.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}aP()})()}}if(ah.wk){(function(){if(ak){return}if(!/loaded|complete/.test(aL.readyState)){setTimeout(arguments.callee,0);return}aP()})()}aC(aP)}}();function aP(){if(ak){return}try{var b=aL.getElementsByTagName("body")[0].appendChild(ar("span"));b.parentNode.removeChild(b)}catch(a){return}ak=true;var d=Z.length;for(var c=0;c<d;c++){Z[c]()}}function aj(a){if(ak){a()}else{Z[Z.length]=a}}function aC(a){if(typeof af.addEventListener!=aq){af.addEventListener("load",a,false)}else{if(typeof aL.addEventListener!=aq){aL.addEventListener("load",a,false)}else{if(typeof af.attachEvent!=aq){aM(af,"onload",a)}else{if(typeof af.onload=="function"){var b=af.onload;af.onload=function(){b();a()}}else{af.onload=a}}}}}function aN(){if(aa){Y()}else{am()}}function Y(){var d=aL.getElementsByTagName("body")[0];var b=ar(aD);b.setAttribute("type",aE);var a=d.appendChild(b);if(a){var c=0;(function(){if(typeof a.GetVariable!=aq){var e=a.GetVariable("$version");if(e){e=e.split(" ")[1].split(",");ah.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}}else{if(c<10){c++;setTimeout(arguments.callee,10);return}}d.removeChild(b);a=null;am()})()}else{am()}}function am(){var g=aG.length;if(g>0){for(var h=0;h<g;h++){var c=aG[h].id;var l=aG[h].callbackFn;var a={success:false,id:c};if(ah.pv[0]>0){var i=aS(c);if(i){if(ao(aG[h].swfVersion)&&!(ah.wk&&ah.wk<312)){ay(c,true);if(l){a.success=true;a.ref=av(c);l(a)}}else{if(aG[h].expressInstall&&au()){var e={};e.data=aG[h].expressInstall;e.width=i.getAttribute("width")||"0";e.height=i.getAttribute("height")||"0";if(i.getAttribute("class")){e.styleclass=i.getAttribute("class")}if(i.getAttribute("align")){e.align=i.getAttribute("align")}var f={};var d=i.getElementsByTagName("param");var k=d.length;for(var j=0;j<k;j++){if(d[j].getAttribute("name").toLowerCase()!="movie"){f[d[j].getAttribute("name")]=d[j].getAttribute("value")}}ae(e,f,c,l)}else{aF(i);if(l){l(a)}}}}}else{ay(c,true);if(l){var b=av(c);if(b&&typeof b.SetVariable!=aq){a.success=true;a.ref=b}l(a)}}}}}function av(b){var d=null;var c=aS(b);if(c&&c.nodeName=="OBJECT"){if(typeof c.SetVariable!=aq){d=c}else{var a=c.getElementsByTagName(aD)[0];if(a){d=a}}}return d}function au(){return !aU&&ao("6.0.65")&&(ah.win||ah.mac)&&!(ah.wk&&ah.wk<312)}function ae(f,d,h,e){aU=true;ap=e||null;at={success:false,id:h};var a=aS(h);if(a){if(a.nodeName=="OBJECT"){aJ=aO(a);ad=null}else{aJ=a;ad=h}f.id=ac;if(typeof f.width==aq||(!/%$/.test(f.width)&&parseInt(f.width,10)<310)){f.width="310"}if(typeof f.height==aq||(!/%$/.test(f.height)&&parseInt(f.height,10)<137)){f.height="137"}aL.title=aL.title.slice(0,47)+" - Flash Player Installation";var b=ah.ie&&ah.win?"ActiveX":"PlugIn",c="MMredirectURL="+af.location.toString().replace(/&/g,"%26")+"&MMplayerType="+b+"&MMdoctitle="+aL.title;if(typeof d.flashvars!=aq){d.flashvars+="&"+c}else{d.flashvars=c}if(ah.ie&&ah.win&&a.readyState!=4){var g=ar("div");h+="SWFObjectNew";g.setAttribute("id",h);a.parentNode.insertBefore(g,a);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}aA(f,d,h)}}function aF(a){if(ah.ie&&ah.win&&a.readyState!=4){var b=ar("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(aO(a),b);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}else{a.parentNode.replaceChild(aO(a),a)}}function aO(b){var d=ar("div");if(ah.win&&ah.ie){d.innerHTML=b.innerHTML}else{var e=b.getElementsByTagName(aD)[0];if(e){var a=e.childNodes;if(a){var f=a.length;for(var c=0;c<f;c++){if(!(a[c].nodeType==1&&a[c].nodeName=="PARAM")&&!(a[c].nodeType==8)){d.appendChild(a[c].cloneNode(true))}}}}}return d}function aA(e,g,c){var d,a=aS(c);if(ah.wk&&ah.wk<312){return d}if(a){if(typeof e.id==aq){e.id=c}if(ah.ie&&ah.win){var f="";for(var i in e){if(e[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){g.movie=e[i]}else{if(i.toLowerCase()=="styleclass"){f+=' class="'+e[i]+'"'}else{if(i.toLowerCase()!="classid"){f+=" "+i+'="'+e[i]+'"'}}}}}var h="";for(var j in g){if(g[j]!=Object.prototype[j]){h+='<param name="'+j+'" value="'+g[j]+'" />'}}a.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+f+">"+h+"</object>";ag[ag.length]=e.id;d=aS(e.id)}else{var b=ar(aD);b.setAttribute("type",aE);for(var k in e){if(e[k]!=Object.prototype[k]){if(k.toLowerCase()=="styleclass"){b.setAttribute("class",e[k])}else{if(k.toLowerCase()!="classid"){b.setAttribute(k,e[k])}}}}for(var l in g){if(g[l]!=Object.prototype[l]&&l.toLowerCase()!="movie"){aQ(b,l,g[l])}}a.parentNode.replaceChild(b,a);d=b}}return d}function aQ(b,d,c){var a=ar("param");a.setAttribute("name",d);a.setAttribute("value",c);b.appendChild(a)}function aw(a){var b=aS(a);if(b&&b.nodeName=="OBJECT"){if(ah.ie&&ah.win){b.style.display="none";(function(){if(b.readyState==4){aT(a)}else{setTimeout(arguments.callee,10)}})()}else{b.parentNode.removeChild(b)}}}function aT(a){var b=aS(a);if(b){for(var c in b){if(typeof b[c]=="function"){b[c]=null}}b.parentNode.removeChild(b)}}function aS(a){var c=null;try{c=aL.getElementById(a)}catch(b){}return c}function ar(a){return aL.createElement(a)}function aM(a,c,b){a.attachEvent(c,b);al[al.length]=[a,c,b]}function ao(a){var b=ah.pv,c=a.split(".");c[0]=parseInt(c[0],10);c[1]=parseInt(c[1],10)||0;c[2]=parseInt(c[2],10)||0;return(b[0]>c[0]||(b[0]==c[0]&&b[1]>c[1])||(b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]))?true:false}function az(b,f,a,c){if(ah.ie&&ah.mac){return}var e=aL.getElementsByTagName("head")[0];if(!e){return}var g=(a&&typeof a=="string")?a:"screen";if(c){aH=null;an=null}if(!aH||an!=g){var d=ar("style");d.setAttribute("type","text/css");d.setAttribute("media",g);aH=e.appendChild(d);if(ah.ie&&ah.win&&typeof aL.styleSheets!=aq&&aL.styleSheets.length>0){aH=aL.styleSheets[aL.styleSheets.length-1]}an=g}if(ah.ie&&ah.win){if(aH&&typeof aH.addRule==aD){aH.addRule(b,f)}}else{if(aH&&typeof aL.createTextNode!=aq){aH.appendChild(aL.createTextNode(b+" {"+f+"}"))}}}function ay(a,c){if(!aI){return}var b=c?"visible":"hidden";if(ak&&aS(a)){aS(a).style.visibility=b}else{az("#"+a,"visibility:"+b)}}function ai(b){var a=/[\\\"<>\.;]/;var c=a.exec(b)!=null;return c&&typeof encodeURIComponent!=aq?encodeURIComponent(b):b}var aR=function(){if(ah.ie&&ah.win){window.attachEvent("onunload",function(){var a=al.length;for(var b=0;b<a;b++){al[b][0].detachEvent(al[b][1],al[b][2])}var d=ag.length;for(var c=0;c<d;c++){aw(ag[c])}for(var e in ah){ah[e]=null}ah=null;for(var f in swfobject){swfobject[f]=null}swfobject=null})}}();return{registerObject:function(a,e,c,b){if(ah.w3&&a&&e){var d={};d.id=a;d.swfVersion=e;d.expressInstall=c;d.callbackFn=b;aG[aG.length]=d;ay(a,false)}else{if(b){b({success:false,id:a})}}},getObjectById:function(a){if(ah.w3){return av(a)}},embedSWF:function(k,e,h,f,c,a,b,i,g,j){var d={success:false,id:e};if(ah.w3&&!(ah.wk&&ah.wk<312)&&k&&e&&h&&f&&c){ay(e,false);aj(function(){h+="";f+="";var q={};if(g&&typeof g===aD){for(var o in g){q[o]=g[o]}}q.data=k;q.width=h;q.height=f;var n={};if(i&&typeof i===aD){for(var p in i){n[p]=i[p]}}if(b&&typeof b===aD){for(var l in b){if(typeof n.flashvars!=aq){n.flashvars+="&"+l+"="+b[l]}else{n.flashvars=l+"="+b[l]}}}if(ao(c)){var m=aA(q,n,e);if(q.id==e){ay(e,true)}d.success=true;d.ref=m}else{if(a&&au()){q.data=a;ae(q,n,e,j);return}else{ay(e,true)}}if(j){j(d)}})}else{if(j){j(d)}}},switchOffAutoHideShow:function(){aI=false},ua:ah,getFlashPlayerVersion:function(){return{major:ah.pv[0],minor:ah.pv[1],release:ah.pv[2]}},hasFlashPlayerVersion:ao,createSWF:function(a,b,c){if(ah.w3){return aA(a,b,c)}else{return undefined}},showExpressInstall:function(b,a,d,c){if(ah.w3&&au()){ae(b,a,d,c)}},removeSWF:function(a){if(ah.w3){aw(a)}},createCSS:function(b,a,c,d){if(ah.w3){az(b,a,c,d)}},addDomLoadEvent:aj,addLoadEvent:aC,getQueryParamValue:function(b){var a=aL.location.search||aL.location.hash;if(a){if(/\?/.test(a)){a=a.split("?")[1]}if(b==null){return ai(a)}var c=a.split("&");for(var d=0;d<c.length;d++){if(c[d].substring(0,c[d].indexOf("="))==b){return ai(c[d].substring((c[d].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(aU){var a=aS(ac);if(a&&aJ){a.parentNode.replaceChild(aJ,a);if(ad){ay(ad,true);if(ah.ie&&ah.win){aJ.style.display="block"}}if(ap){ap(at)}}aU=false}}}}();
/* end http://www.nearlyweds.com/js/swfobject/swfobject.js */

/* start http://www.nearlyweds.com/js/sifr.js */
var sIFR=new function(){var O=this;var E={ACTIVE:"sIFR-active",REPLACED:"sIFR-replaced",IGNORE:"sIFR-ignore",ALTERNATE:"sIFR-alternate",CLASS:"sIFR-class",LAYOUT:"sIFR-layout",FLASH:"sIFR-flash",FIX_FOCUS:"sIFR-fixfocus",DUMMY:"sIFR-dummy"};E.IGNORE_CLASSES=[E.REPLACED,E.IGNORE,E.ALTERNATE];this.MIN_FONT_SIZE=6;this.MAX_FONT_SIZE=126;this.FLASH_PADDING_BOTTOM=5;this.VERSION="436";this.isActive=false;this.isEnabled=true;this.fixHover=true;this.autoInitialize=true;this.setPrefetchCookie=true;this.cookiePath="/";this.domains=[];this.forceWidth=true;this.fitExactly=false;this.forceTextTransform=true;this.useDomLoaded=true;this.useStyleCheck=false;this.hasFlashClassSet=false;this.repaintOnResize=true;this.replacements=[];var L=0;var R=false;function Y(){}function D(c){function d(e){return e.toLocaleUpperCase()}this.normalize=function(e){return e.replace(/\n|\r|\xA0/g,D.SINGLE_WHITESPACE).replace(/\s+/g,D.SINGLE_WHITESPACE)};this.textTransform=function(e,f){switch(e){case"uppercase":return f.toLocaleUpperCase();case"lowercase":return f.toLocaleLowerCase();case"capitalize":return f.replace(/^\w|\s\w/g,d)}return f};this.toHexString=function(e){if(e.charAt(0)!="#"||e.length!=4&&e.length!=7){return e}e=e.substring(1);return"0x"+(e.length==3?e.replace(/(.)(.)(.)/,"$1$1$2$2$3$3"):e)};this.toJson=function(g,f){var e="";switch(typeof(g)){case"string":e='"'+f(g)+'"';break;case"number":case"boolean":e=g.toString();break;case"object":e=[];for(var h in g){if(g[h]==Object.prototype[h]){continue}e.push('"'+h+'":'+this.toJson(g[h]))}e="{"+e.join(",")+"}";break}return e};this.convertCssArg=function(e){if(!e){return{}}if(typeof(e)=="object"){if(e.constructor==Array){e=e.join("")}else{return e}}var l={};var m=e.split("}");for(var h=0;h<m.length;h++){var k=m[h].match(/([^\s{]+)\s*\{(.+)\s*;?\s*/);if(!k||k.length!=3){continue}if(!l[k[1]]){l[k[1]]={}}var g=k[2].split(";");for(var f=0;f<g.length;f++){var n=g[f].match(/\s*([^:\s]+)\s*\:\s*([^;]+)/);if(!n||n.length!=3){continue}l[k[1]][n[1]]=n[2].replace(/\s+$/,"")}}return l};this.extractFromCss=function(g,f,i,e){var h=null;if(g&&g[f]&&g[f][i]){h=g[f][i];if(e){delete g[f][i]}}return h};this.cssToString=function(f){var g=[];for(var e in f){var j=f[e];if(j==Object.prototype[e]){continue}g.push(e,"{");for(var i in j){if(j[i]==Object.prototype[i]){continue}var h=j[i];if(D.UNIT_REMOVAL_PROPERTIES[i]){h=parseInt(h,10)}g.push(i,":",h,";")}g.push("}")}return g.join("")};this.escape=function(e){return escape(e).replace(/\+/g,"%2B")};this.encodeVars=function(e){return e.join("&").replace(/%/g,"%25")};this.copyProperties=function(g,f){for(var e in g){if(f[e]===undefined){f[e]=g[e]}}return f};this.domain=function(){var f="";try{f=document.domain}catch(g){}return f};this.domainMatches=function(h,g){if(g=="*"||g==h){return true}var f=g.lastIndexOf("*");if(f>-1){g=g.substr(f+1);var e=h.lastIndexOf(g);if(e>-1&&(e+g.length)==h.length){return true}}return false};this.uriEncode=function(e){return encodeURI(decodeURIComponent(e))};this.delay=function(f,h,g){var e=Array.prototype.slice.call(arguments,3);setTimeout(function(){h.apply(g,e)},f)}}D.UNIT_REMOVAL_PROPERTIES={leading:true,"margin-left":true,"margin-right":true,"text-indent":true};D.SINGLE_WHITESPACE=" ";function U(e){var d=this;function c(g,j,h){var k=d.getStyleAsInt(g,j,e.ua.ie);if(k==0){k=g[h];for(var f=3;f<arguments.length;f++){k-=d.getStyleAsInt(g,arguments[f],true)}}return k}this.getBody=function(){return document.getElementsByTagName("body")[0]||null};this.querySelectorAll=function(f){return window.parseSelector(f)};this.addClass=function(f,g){if(g){g.className=((g.className||"")==""?"":g.className+" ")+f}};this.removeClass=function(f,g){if(g){g.className=g.className.replace(new RegExp("(^|\\s)"+f+"(\\s|$)"),"").replace(/^\s+|(\s)\s+/g,"$1")}};this.hasClass=function(f,g){return new RegExp("(^|\\s)"+f+"(\\s|$)").test(g.className)};this.hasOneOfClassses=function(h,g){for(var f=0;f<h.length;f++){if(this.hasClass(h[f],g)){return true}}return false};this.ancestorHasClass=function(g,f){g=g.parentNode;while(g&&g.nodeType==1){if(this.hasClass(f,g)){return true}g=g.parentNode}return false};this.create=function(f,g){var h=document.createElementNS?document.createElementNS(U.XHTML_NS,f):document.createElement(f);if(g){h.className=g}return h};this.getComputedStyle=function(h,i){var f;if(document.defaultView&&document.defaultView.getComputedStyle){var g=document.defaultView.getComputedStyle(h,null);f=g?g[i]:null}else{if(h.currentStyle){f=h.currentStyle[i]}}return f||""};this.getStyleAsInt=function(g,i,f){var h=this.getComputedStyle(g,i);if(f&&!/px$/.test(h)){return 0}return parseInt(h)||0};this.getWidthFromStyle=function(f){return c(f,"width","offsetWidth","paddingRight","paddingLeft","borderRightWidth","borderLeftWidth")};this.getHeightFromStyle=function(f){return c(f,"height","offsetHeight","paddingTop","paddingBottom","borderTopWidth","borderBottomWidth")};this.getDimensions=function(j){var h=j.offsetWidth;var f=j.offsetHeight;if(h==0||f==0){for(var g=0;g<j.childNodes.length;g++){var k=j.childNodes[g];if(k.nodeType!=1){continue}h=Math.max(h,k.offsetWidth);f=Math.max(f,k.offsetHeight)}}return{width:h,height:f}};this.getViewport=function(){return{width:window.innerWidth||document.documentElement.clientWidth||this.getBody().clientWidth,height:window.innerHeight||document.documentElement.clientHeight||this.getBody().clientHeight}};this.blurElement=function(g){try{g.blur();return}catch(h){}var f=this.create("input");f.style.width="0px";f.style.height="0px";g.parentNode.appendChild(f);f.focus();f.blur();f.parentNode.removeChild(f)}}U.XHTML_NS="http://www.w3.org/1999/xhtml";function H(r){var g=navigator.userAgent.toLowerCase();var q=(navigator.product||"").toLowerCase();var h=navigator.platform.toLowerCase();this.parseVersion=H.parseVersion;this.macintosh=/^mac/.test(h);this.windows=/^win/.test(h);this.linux=/^linux/.test(h);this.quicktime=false;this.opera=/opera/.test(g);this.konqueror=/konqueror/.test(g);this.ie=false
/*@cc_on||true@*/
;this.ieSupported=this.ie&&!/ppc|smartphone|iemobile|msie\s5\.5/.test(g)
/*@cc_on&&@_jscript_version>=5.5@*/
;this.ieWin=this.ie&&this.windows
/*@cc_on&&@_jscript_version>=5.1@*/
;this.windows=this.windows&&(!this.ie||this.ieWin);this.ieMac=this.ie&&this.macintosh
/*@cc_on&&@_jscript_version<5.1@*/
;this.macintosh=this.macintosh&&(!this.ie||this.ieMac);this.safari=/safari/.test(g);this.webkit=!this.konqueror&&/applewebkit/.test(g);this.khtml=this.webkit||this.konqueror;this.gecko=!this.khtml&&q=="gecko";this.ieVersion=this.ie&&/.*msie\s(\d\.\d)/.exec(g)?this.parseVersion(RegExp.$1):"0";this.operaVersion=this.opera&&/.*opera(\s|\/)(\d+\.\d+)/.exec(g)?this.parseVersion(RegExp.$2):"0";this.webkitVersion=this.webkit&&/.*applewebkit\/(\d+).*/.exec(g)?this.parseVersion(RegExp.$1):"0";this.geckoVersion=this.gecko&&/.*rv:\s*([^\)]+)\)\s+gecko/.exec(g)?this.parseVersion(RegExp.$1):"0";this.konquerorVersion=this.konqueror&&/.*konqueror\/([\d\.]+).*/.exec(g)?this.parseVersion(RegExp.$1):"0";this.flashVersion=0;if(this.ieWin){var l;var o=false;try{l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(m){try{l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");this.flashVersion=this.parseVersion("6");l.AllowScriptAccess="always"}catch(m){o=this.flashVersion==this.parseVersion("6")}if(!o){try{l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(m){}}}if(!o&&l){this.flashVersion=this.parseVersion((l.GetVariable("$version")||"").replace(/^\D+(\d+)\D+(\d+)\D+(\d+).*/g,"$1.$2.$3"))}}else{if(navigator.plugins&&navigator.plugins["Shockwave Flash"]){var n=navigator.plugins["Shockwave Flash"].description.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var p=n.replace(/^\D*(\d+\.\d+).*$/,"$1");if(/r/.test(n)){p+=n.replace(/^.*r(\d*).*$/,".$1")}else{if(/d/.test(n)){p+=".0"}}this.flashVersion=this.parseVersion(p);var j=false;for(var k=0,c=this.flashVersion>=H.MIN_FLASH_VERSION;c&&k<navigator.mimeTypes.length;k++){var f=navigator.mimeTypes[k];if(f.type!="application/x-shockwave-flash"){continue}if(f.enabledPlugin){j=true;if(f.enabledPlugin.description.toLowerCase().indexOf("quicktime")>-1){c=false;this.quicktime=true}}}if(this.quicktime||!j){this.flashVersion=this.parseVersion("0")}}}this.flash=this.flashVersion>=H.MIN_FLASH_VERSION;this.transparencySupport=this.macintosh||this.windows||this.linux&&(this.flashVersion>=this.parseVersion("10")&&(this.gecko&&this.geckoVersion>=this.parseVersion("1.9")||this.opera));this.computedStyleSupport=this.ie||!!document.defaultView.getComputedStyle;this.fixFocus=this.gecko&&this.windows;this.nativeDomLoaded=this.gecko||this.webkit&&this.webkitVersion>=this.parseVersion("525")||this.konqueror&&this.konquerorMajor>this.parseVersion("03")||this.opera;this.mustCheckStyle=this.khtml||this.opera;this.forcePageLoad=this.webkit&&this.webkitVersion<this.parseVersion("523");this.properDocument=typeof(document.location)=="object";this.supported=this.flash&&this.properDocument&&(!this.ie||this.ieSupported)&&this.computedStyleSupport&&(!this.opera||this.operaVersion>=this.parseVersion("9.61"))&&(!this.webkit||this.webkitVersion>=this.parseVersion("412"))&&(!this.gecko||this.geckoVersion>=this.parseVersion("1.8.0.12"))&&(!this.konqueror)}H.parseVersion=function(c){return c.replace(/(^|\D)(\d+)(?=\D|$)/g,function(f,e,g){f=e;for(var d=4-g.length;d>=0;d--){f+="0"}return f+g})};H.MIN_FLASH_VERSION=H.parseVersion("8");function F(c){this.fix=c.ua.ieWin&&window.location.hash!="";var d;this.cache=function(){d=document.title};function e(){document.title=d}this.restore=function(){if(this.fix){setTimeout(e,0)}}}function S(l){var e=null;function c(){try{if(l.ua.ie||document.readyState!="loaded"&&document.readyState!="complete"){document.documentElement.doScroll("left")}}catch(n){return setTimeout(c,10)}i()}function i(){if(l.useStyleCheck){h()}else{if(!l.ua.mustCheckStyle){d(null,true)}}}function h(){e=l.dom.create("div",E.DUMMY);l.dom.getBody().appendChild(e);m()}function m(){if(l.dom.getComputedStyle(e,"marginLeft")=="42px"){g()}else{setTimeout(m,10)}}function g(){if(e&&e.parentNode){e.parentNode.removeChild(e)}e=null;d(null,true)}function d(n,o){l.initialize(o);if(n&&n.type=="load"){if(document.removeEventListener){document.removeEventListener("DOMContentLoaded",d,false)}if(window.removeEventListener){window.removeEventListener("load",d,false)}}}function j(){l.prepareClearReferences();if(document.readyState=="interactive"){document.attachEvent("onstop",f);setTimeout(function(){document.detachEvent("onstop",f)},0)}}function f(){document.detachEvent("onstop",f);k()}function k(){l.clearReferences()}this.attach=function(){if(window.addEventListener){window.addEventListener("load",d,false)}else{window.attachEvent("onload",d)}if(!l.useDomLoaded||l.ua.forcePageLoad||l.ua.ie&&window.top!=window){return}if(l.ua.nativeDomLoaded){document.addEventListener("DOMContentLoaded",i,false)}else{if(l.ua.ie||l.ua.khtml){c()}}};this.attachUnload=function(){if(!l.ua.ie){return}window.attachEvent("onbeforeunload",j);window.attachEvent("onunload",k)}}var Q="sifrFetch";function N(c){var e=false;this.fetchMovies=function(f){if(c.setPrefetchCookie&&new RegExp(";?"+Q+"=true;?").test(document.cookie)){return}try{e=true;d(f)}catch(g){}if(c.setPrefetchCookie){document.cookie=Q+"=true;path="+c.cookiePath}};this.clear=function(){if(!e){return}try{var f=document.getElementsByTagName("script");for(var g=f.length-1;g>=0;g--){var h=f[g];if(h.type=="sifr/prefetch"){h.parentNode.removeChild(h)}}}catch(j){}};function d(f){for(var g=0;g<f.length;g++){document.write('<script defer type="sifr/prefetch" src="'+f[g].src+'"><\/script>')}}}function b(e){var g=e.ua.ie;var f=g&&e.ua.flashVersion<e.ua.parseVersion("9.0.115");var d={};var c={};this.fixFlash=f;this.register=function(h){if(!g){return}var i=h.getAttribute("id");this.cleanup(i,false);c[i]=h;delete d[i];if(f){window[i]=h}};this.reset=function(){if(!g){return false}for(var j=0;j<e.replacements.length;j++){var h=e.replacements[j];var k=c[h.id];if(!d[h.id]&&(!k.parentNode||k.parentNode.nodeType==11)){h.resetMovie();d[h.id]=true}}return true};this.cleanup=function(l,h){var i=c[l];if(!i){return}for(var k in i){if(typeof(i[k])=="function"){i[k]=null}}c[l]=null;if(f){window[l]=null}if(i.parentNode){if(h&&i.parentNode.nodeType==1){var j=document.createElement("div");j.style.width=i.offsetWidth+"px";j.style.height=i.offsetHeight+"px";i.parentNode.replaceChild(j,i)}else{i.parentNode.removeChild(i)}}};this.prepareClearReferences=function(){if(!f){return}__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}};this.clearReferences=function(){if(f){var j=document.getElementsByTagName("object");for(var h=j.length-1;h>=0;h--){c[j[h].getAttribute("id")]=j[h]}}for(var k in c){if(Object.prototype[k]!=c[k]){this.cleanup(k,true)}}}}function K(d,g,f,c,e){this.sIFR=d;this.id=g;this.vars=f;this.movie=null;this.__forceWidth=c;this.__events=e;this.__resizing=0}K.prototype={getFlashElement:function(){return document.getElementById(this.id)},getAlternate:function(){return document.getElementById(this.id+"_alternate")},getAncestor:function(){var c=this.getFlashElement().parentNode;return !this.sIFR.dom.hasClass(E.FIX_FOCUS,c)?c:c.parentNode},available:function(){var c=this.getFlashElement();return c&&c.parentNode},call:function(c){var d=this.getFlashElement();if(!d[c]){return false}return Function.prototype.apply.call(d[c],d,Array.prototype.slice.call(arguments,1))},attempt:function(){if(!this.available()){return false}try{this.call.apply(this,arguments)}catch(c){if(this.sIFR.debug){throw c}return false}return true},updateVars:function(c,e){for(var d=0;d<this.vars.length;d++){if(this.vars[d].split("=")[0]==c){this.vars[d]=c+"="+e;break}}var f=this.sIFR.util.encodeVars(this.vars);this.movie.injectVars(this.getFlashElement(),f);this.movie.injectVars(this.movie.html,f)},storeSize:function(c,d){this.movie.setSize(c,d);this.updateVars(c,d)},fireEvent:function(c){if(this.available()&&this.__events[c]){this.sIFR.util.delay(0,this.__events[c],this,this)}},resizeFlashElement:function(c,d,e){if(!this.available()){return}this.__resizing++;var f=this.getFlashElement();f.setAttribute("height",c);this.getAncestor().style.minHeight="";this.updateVars("renderheight",c);this.storeSize("height",c);if(d!==null){f.setAttribute("width",d);this.movie.setSize("width",d)}if(this.__events.onReplacement){this.sIFR.util.delay(0,this.__events.onReplacement,this,this);delete this.__events.onReplacement}if(e){this.sIFR.util.delay(0,function(){this.attempt("scaleMovie");this.__resizing--},this)}else{this.__resizing--}},blurFlashElement:function(){if(this.available()){this.sIFR.dom.blurElement(this.getFlashElement())}},resetMovie:function(){this.sIFR.util.delay(0,this.movie.reset,this.movie,this.getFlashElement(),this.getAlternate())},resizeAfterScale:function(){if(this.available()&&this.__resizing==0){this.sIFR.util.delay(0,this.resize,this)}},resize:function(){if(!this.available()){return}this.__resizing++;var g=this.getFlashElement();var f=g.offsetWidth;if(f==0){return}var e=g.getAttribute("width");var l=g.getAttribute("height");var m=this.getAncestor();var o=this.sIFR.dom.getHeightFromStyle(m);g.style.width="1px";g.style.height="1px";m.style.minHeight=o+"px";var c=this.getAlternate().childNodes;var n=[];for(var k=0;k<c.length;k++){var h=c[k].cloneNode(true);n.push(h);m.appendChild(h)}var d=this.sIFR.dom.getWidthFromStyle(m);for(var k=0;k<n.length;k++){m.removeChild(n[k])}g.style.width=g.style.height=m.style.minHeight="";g.setAttribute("width",this.__forceWidth?d:e);g.setAttribute("height",l);if(sIFR.ua.ie){g.style.display="none";var j=g.offsetHeight;g.style.display=""}if(d!=f){if(this.__forceWidth){this.storeSize("width",d)}this.attempt("resize",d)}this.__resizing--},replaceText:function(g,j){var d=this.sIFR.util.escape(g);if(!this.attempt("replaceText",d)){return false}this.updateVars("content",d);var f=this.getAlternate();if(j){while(f.firstChild){f.removeChild(f.firstChild)}for(var c=0;c<j.length;c++){f.appendChild(j[c])}}else{try{f.innerHTML=g}catch(h){}}return true},changeCSS:function(c){c=this.sIFR.util.escape(this.sIFR.util.cssToString(this.sIFR.util.convertCssArg(c)));this.updateVars("css",c);return this.attempt("changeCSS",c)},remove:function(){if(this.movie&&this.available()){this.movie.remove(this.getFlashElement(),this.id)}}};var X=new function(){this.create=function(p,n,j,i,f,e,g,o,l,h,m){var k=p.ua.ie?d:c;return new k(p,n,j,i,f,e,g,o,["flashvars",l,"wmode",h,"bgcolor",m,"allowScriptAccess","always","quality","best"])};function c(s,q,l,h,f,e,g,r,n){var m=s.dom.create("object",E.FLASH);var p=["type","application/x-shockwave-flash","id",f,"name",f,"data",e,"width",g,"height",r];for(var o=0;o<p.length;o+=2){m.setAttribute(p[o],p[o+1])}var j=m;if(h){j=W.create("div",E.FIX_FOCUS);j.appendChild(m)}for(var o=0;o<n.length;o+=2){if(n[o]=="name"){continue}var k=W.create("param");k.setAttribute("name",n[o]);k.setAttribute("value",n[o+1]);m.appendChild(k)}l.style.minHeight=r+"px";while(l.firstChild){l.removeChild(l.firstChild)}l.appendChild(j);this.html=j.cloneNode(true)}c.prototype={reset:function(e,f){e.parentNode.replaceChild(this.html.cloneNode(true),e)},remove:function(e,f){e.parentNode.removeChild(e)},setSize:function(e,f){this.html.setAttribute(e,f)},injectVars:function(e,g){var h=e.getElementsByTagName("param");for(var f=0;f<h.length;f++){if(h[f].getAttribute("name")=="flashvars"){h[f].setAttribute("value",g);break}}}};function d(p,n,j,h,f,e,g,o,k){this.dom=p.dom;this.broken=n;this.html='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="'+f+'" width="'+g+'" height="'+o+'" class="'+E.FLASH+'"><param name="movie" value="'+e+'"></param></object>';var m="";for(var l=0;l<k.length;l+=2){m+='<param name="'+k[l]+'" value="'+k[l+1]+'"></param>'}this.html=this.html.replace(/(<\/object>)/,m+"$1");j.style.minHeight=o+"px";j.innerHTML=this.html;this.broken.register(j.firstChild)}d.prototype={reset:function(f,g){g=g.cloneNode(true);var e=f.parentNode;e.innerHTML=this.html;this.broken.register(e.firstChild);e.appendChild(g)},remove:function(e,f){this.broken.cleanup(f)},setSize:function(e,f){this.html=this.html.replace(e=="height"?/(height)="\d+"/:/(width)="\d+"/,'$1="'+f+'"')},injectVars:function(e,f){if(e!=this.html){return}this.html=this.html.replace(/(flashvars(=|\"\svalue=)\")[^\"]+/,"$1"+f)}}};this.errors=new Y(O);var A=this.util=new D(O);var W=this.dom=new U(O);var T=this.ua=new H(O);var G={fragmentIdentifier:new F(O),pageLoad:new S(O),prefetch:new N(O),brokenFlashIE:new b(O)};this.__resetBrokenMovies=G.brokenFlashIE.reset;var J={kwargs:[],replaceAll:function(d){for(var c=0;c<this.kwargs.length;c++){O.replace(this.kwargs[c])}if(!d){this.kwargs=[]}}};this.activate=function(){if(!T.supported||!this.isEnabled||this.isActive||!C()||a()){return}G.prefetch.fetchMovies(arguments);this.isActive=true;this.setFlashClass();G.fragmentIdentifier.cache();G.pageLoad.attachUnload();if(!this.autoInitialize){return}G.pageLoad.attach()};this.setFlashClass=function(){if(this.hasFlashClassSet){return}W.addClass(E.ACTIVE,W.getBody()||document.documentElement);this.hasFlashClassSet=true};this.removeFlashClass=function(){if(!this.hasFlashClassSet){return}W.removeClass(E.ACTIVE,W.getBody());W.removeClass(E.ACTIVE,document.documentElement);this.hasFlashClassSet=false};this.initialize=function(c){if(!this.isActive||!this.isEnabled){return}if(R){if(!c){J.replaceAll(false)}return}R=true;J.replaceAll(c);if(O.repaintOnResize){if(window.addEventListener){window.addEventListener("resize",Z,false)}else{window.attachEvent("onresize",Z)}}G.prefetch.clear()};this.replace=function(x,u){if(!T.supported){return}if(u){x=A.copyProperties(x,u)}if(!R){return J.kwargs.push(x)}if(this.onReplacementStart){this.onReplacementStart(x)}var AM=x.elements||W.querySelectorAll(x.selector);if(AM.length==0){return}var w=M(x.src);var AR=A.convertCssArg(x.css);var v=B(x.filters);var AN=x.forceSingleLine===true;var AS=x.preventWrap===true&&!AN;var q=AN||(x.fitExactly==null?this.fitExactly:x.fitExactly)===true;var AD=q||(x.forceWidth==null?this.forceWidth:x.forceWidth)===true;var s=x.ratios||[];var AE=x.pixelFont===true;var r=parseInt(x.tuneHeight)||0;var z=!!x.onRelease||!!x.onRollOver||!!x.onRollOut;if(q){A.extractFromCss(AR,".sIFR-root","text-align",true)}var t=A.extractFromCss(AR,".sIFR-root","font-size",true)||"0";var e=A.extractFromCss(AR,".sIFR-root","background-color",true)||"#FFFFFF";var o=A.extractFromCss(AR,".sIFR-root","kerning",true)||"";var AW=A.extractFromCss(AR,".sIFR-root","opacity",true)||"100";var k=A.extractFromCss(AR,".sIFR-root","cursor",true)||"default";var AP=parseInt(A.extractFromCss(AR,".sIFR-root","leading"))||0;var AJ=x.gridFitType||(A.extractFromCss(AR,".sIFR-root","text-align")=="right")?"subpixel":"pixel";var h=this.forceTextTransform===false?"none":A.extractFromCss(AR,".sIFR-root","text-transform",true)||"none";t=/^\d+(px)?$/.test(t)?parseInt(t):0;AW=parseFloat(AW)<1?100*parseFloat(AW):AW;var AC=x.modifyCss?"":A.cssToString(AR);var AG=x.wmode||"";if(!AG){if(x.transparent){AG="transparent"}else{if(x.opaque){AG="opaque"}}}if(AG=="transparent"){if(!T.transparencySupport){AG="opaque"}else{e="transparent"}}else{if(e=="transparent"){e="#FFFFFF"}}for(var AV=0;AV<AM.length;AV++){var AF=AM[AV];if(W.hasOneOfClassses(E.IGNORE_CLASSES,AF)||W.ancestorHasClass(AF,E.ALTERNATE)){continue}var AO=W.getDimensions(AF);var f=AO.height;var c=AO.width;var AA=W.getComputedStyle(AF,"display");if(!f||!c||!AA||AA=="none"){continue}c=W.getWidthFromStyle(AF);var n,AH;if(!t){var AL=I(AF);n=Math.min(this.MAX_FONT_SIZE,Math.max(this.MIN_FONT_SIZE,AL.fontSize));if(AE){n=Math.max(8,8*Math.round(n/8))}AH=AL.lines}else{n=t;AH=1}var d=W.create("span",E.ALTERNATE);var AX=AF.cloneNode(true);AF.parentNode.appendChild(AX);for(var AU=0,AT=AX.childNodes.length;AU<AT;AU++){var m=AX.childNodes[AU];if(!/^(style|script)$/i.test(m.nodeName)){d.appendChild(m.cloneNode(true))}}if(x.modifyContent){x.modifyContent(AX,x.selector)}if(x.modifyCss){AC=x.modifyCss(AR,AX,x.selector)}var p=P(AX,h,x.uriEncode);AX.parentNode.removeChild(AX);if(x.modifyContentString){p.text=x.modifyContentString(p.text,x.selector)}if(p.text==""){continue}var AK=Math.round(AH*V(n,s)*n)+this.FLASH_PADDING_BOTTOM+r;if(AH>1&&AP){AK+=Math.round((AH-1)*AP)}var AB=AD?c:"100%";var AI="sIFR_replacement_"+L++;var AQ=["id="+AI,"content="+A.escape(p.text),"width="+c,"renderheight="+AK,"link="+A.escape(p.primaryLink.href||""),"target="+A.escape(p.primaryLink.target||""),"size="+n,"css="+A.escape(AC),"cursor="+k,"tunewidth="+(x.tuneWidth||0),"tuneheight="+r,"offsetleft="+(x.offsetLeft||""),"offsettop="+(x.offsetTop||""),"fitexactly="+q,"preventwrap="+AS,"forcesingleline="+AN,"antialiastype="+(x.antiAliasType||""),"thickness="+(x.thickness||""),"sharpness="+(x.sharpness||""),"kerning="+o,"gridfittype="+AJ,"flashfilters="+v,"opacity="+AW,"blendmode="+(x.blendMode||""),"selectable="+(x.selectable==null||AG!=""&&!sIFR.ua.macintosh&&sIFR.ua.gecko&&sIFR.ua.geckoVersion>=sIFR.ua.parseVersion("1.9")?"true":x.selectable===true),"fixhover="+(this.fixHover===true),"events="+z,"delayrun="+G.brokenFlashIE.fixFlash,"version="+this.VERSION];var y=A.encodeVars(AQ);var g=new K(O,AI,AQ,AD,{onReplacement:x.onReplacement,onRollOver:x.onRollOver,onRollOut:x.onRollOut,onRelease:x.onRelease});g.movie=X.create(sIFR,G.brokenFlashIE,AF,T.fixFocus&&x.fixFocus,AI,w,AB,AK,y,AG,e);this.replacements.push(g);this.replacements[AI]=g;if(x.selector){if(!this.replacements[x.selector]){this.replacements[x.selector]=[g]}else{this.replacements[x.selector].push(g)}}d.setAttribute("id",AI+"_alternate");AF.appendChild(d);W.addClass(E.REPLACED,AF)}G.fragmentIdentifier.restore()};this.getReplacementByFlashElement=function(d){for(var c=0;c<O.replacements.length;c++){if(O.replacements[c].id==d.getAttribute("id")){return O.replacements[c]}}};this.redraw=function(){for(var c=0;c<O.replacements.length;c++){O.replacements[c].resetMovie()}};this.prepareClearReferences=function(){G.brokenFlashIE.prepareClearReferences()};this.clearReferences=function(){G.brokenFlashIE.clearReferences();G=null;J=null;delete O.replacements};function C(){if(O.domains.length==0){return true}var d=A.domain();for(var c=0;c<O.domains.length;c++){if(A.domainMatches(d,O.domains[c])){return true}}return false}function a(){if(document.location.protocol=="file:"){if(O.debug){O.errors.fire("isFile")}return true}return false}function M(c){if(T.ie&&c.charAt(0)=="/"){c=window.location.toString().replace(/([^:]+)(:\/?\/?)([^\/]+).*/,"$1$2$3")+c}return c}function V(d,e){for(var c=0;c<e.length;c+=2){if(d<=e[c]){return e[c+1]}}return e[e.length-1]||1}function B(g){var e=[];for(var d in g){if(g[d]==Object.prototype[d]){continue}var c=g[d];d=[d.replace(/filter/i,"")+"Filter"];for(var f in c){if(c[f]==Object.prototype[f]){continue}d.push(f+":"+A.escape(A.toJson(c[f],A.toHexString)))}e.push(d.join(","))}return A.escape(e.join(";"))}function Z(d){var e=Z.viewport;var c=W.getViewport();if(e&&c.width==e.width&&c.height==e.height){return}Z.viewport=c;if(O.replacements.length==0){return}if(Z.timer){clearTimeout(Z.timer)}Z.timer=setTimeout(function(){delete Z.timer;for(var f=0;f<O.replacements.length;f++){O.replacements[f].resize()}},200)}function I(f){var g=W.getComputedStyle(f,"fontSize");var d=g.indexOf("px")==-1;var e=f.innerHTML;if(d){f.innerHTML="X"}f.style.paddingTop=f.style.paddingBottom=f.style.borderTopWidth=f.style.borderBottomWidth="0px";f.style.lineHeight="2em";f.style.display="block";g=d?f.offsetHeight/2:parseInt(g,10);if(d){f.innerHTML=e}var c=Math.round(f.offsetHeight/(2*g));f.style.paddingTop=f.style.paddingBottom=f.style.borderTopWidth=f.style.borderBottomWidth=f.style.lineHeight=f.style.display="";if(isNaN(c)||!isFinite(c)||c==0){c=1}return{fontSize:g,lines:c}}function P(c,g,s){s=s||A.uriEncode;var q=[],m=[];var k=null;var e=c.childNodes;var o=false,p=false;var j=0;while(j<e.length){var f=e[j];if(f.nodeType==3){var t=A.textTransform(g,A.normalize(f.nodeValue)).replace(/</g,"&lt;");if(o&&p){t=t.replace(/^\s+/,"")}m.push(t);o=/\s$/.test(t);p=false}if(f.nodeType==1&&!/^(style|script)$/i.test(f.nodeName)){var h=[];var r=f.nodeName.toLowerCase();var n=f.className||"";if(/\s+/.test(n)){if(n.indexOf(E.CLASS)>-1){n=n.match("(\\s|^)"+E.CLASS+"-([^\\s$]*)(\\s|$)")[2]}else{n=n.match(/^([^\s]+)/)[1]}}if(n!=""){h.push('class="'+n+'"')}if(r=="a"){var d=s(f.getAttribute("href")||"");var l=f.getAttribute("target")||"";h.push('href="'+d+'"','target="'+l+'"');if(!k){k={href:d,target:l}}}m.push("<"+r+(h.length>0?" ":"")+h.join(" ")+">");p=true;if(f.hasChildNodes()){q.push(j);j=0;e=f.childNodes;continue}else{if(!/^(br|img)$/i.test(f.nodeName)){m.push("</",f.nodeName.toLowerCase(),">")}}}if(q.length>0&&!f.nextSibling){do{j=q.pop();e=f.parentNode.parentNode.childNodes;f=e[j];if(f){m.push("</",f.nodeName.toLowerCase(),">")}}while(j==e.length-1&&q.length>0)}j++}return{text:m.join("").replace(/^\s+|\s+$|\s*(<br>)\s*/g,"$1"),primaryLink:k||{}}}};var parseSelector=(function(){var c=/\s*,\s*/;var d=/\s*([\s>+~(),]|^|$)\s*/g;var f=/([\s>+~,]|[^(]\+|^)([#.:@])/g;var l=/(^|\))[^\s>+~]/g;var e=/(\)|^)/;var g=/[\s#.:>+~()@]|[^\s#.:>+~()@]+/g;function j(t,v){v=v||document.documentElement;var s=t.split(c),n=[];for(var q=0;q<s.length;q++){var x=[v],o=k(s[q]);for(var r=0;r<o.length;){var u=o[r++],w=o[r++],p="";if(o[r]=="("){while(o[r++]!=")"&&r<o.length){p+=o[r]}p=p.slice(0,-1)}x=i(x,u,w,p)}n=n.concat(x)}return n}function k(o){var n=o.replace(d,"$1").replace(f,"$1*$2").replace(l,a);return n.match(g)||[]}function a(n){return n.replace(e,"$1 ")}function i(q,o,n,p){return(j.selectors[o])?j.selectors[o](q,n,p):[]}var m={toArray:function(o){var p=[];for(var n=0;n<o.length;n++){p.push(o[n])}return p}};var b={isTag:function(n,o){return(o=="*")||(o.toLowerCase()==n.nodeName.toLowerCase())},previousSiblingElement:function(n){do{n=n.previousSibling}while(n&&n.nodeType!=1);return n},nextSiblingElement:function(n){do{n=n.nextSibling}while(n&&n.nodeType!=1);return n},hasClass:function(o,n){return(n.className||"").match("(^|\\s)"+o+"(\\s|$)")},getByTag:function(o,n){return n.getElementsByTagName(o)}};var h={"#":function(p,n){for(var o=0;o<p.length;o++){if(p[o].getAttribute("id")==n){return[p[o]]}}return[]}," ":function(p,n){var q=[];for(var o=0;o<p.length;o++){q=q.concat(m.toArray(b.getByTag(n,p[o])))}return q},">":function(s,p){var t=[];for(var q=0,o;q<s.length;q++){o=s[q];for(var r=0,n;r<o.childNodes.length;r++){n=o.childNodes[r];if(n.nodeType==1&&b.isTag(n,p)){t.push(n)}}}return t},".":function(q,o){var r=[];for(var p=0,n;p<q.length;p++){n=q[p];if(b.hasClass([o],n)){r.push(n)}}return r},":":function(p,n,o){return(j.pseudoClasses[n])?j.pseudoClasses[n](p,o):[]}};j.selectors=h;j.pseudoClasses={};j.util=m;j.dom=b;return j})();
/* end http://www.nearlyweds.com/js/sifr.js */

/* start http://www.nearlyweds.com/js/swfZoomDetection.js */
var swfZoomDetection={_nodeId:"swfZoomDetectionNode2",_detectSWFWidth:100,_detectSWFHeight:100,_flashVersion:"9.0.0",_flashVars:{},_params:{menu:false,wmode:"transparent",scale:"noScale"},_attributes:{id:this._nodeId,name:this._nodeId,style:"position:fixed;left:-98px;top:-98px;"},onZoomChange:null,getInitIfOne:false,initCallOnly:false,currentScale:null,init:function(a){this.mixIn(a);this._isInitialized=false;this.createNode()},mixIn:function(c,a){var b;if(!a){a=this}for(b in c){a[b]=c[b]}},createNode:function(b){var a=document.createElement("DIV");var a=jQuery("<div></div>").attr("id",this._nodeId).appendTo("body");this._zoomDetectSWF=a[0];swfobject.embedSWF("/js/swfZoomDetection.swf",this._nodeId,this._detectSWFWidth,this._detectSWFHeight,this._flashVersion,"expressInstall.swf",this._flashvars,this._params,this._attributes)},swfZoomDetectInit:function(a){var a={setHeight:this._detectSWFHeight,setWidth:this._detectSWFWidth,isOnZoomChangeSet:(this.onZoomChange!=null)};return a},zoomChangeHandler:function(b){this.currentScale=b.scale;if(b.scale!=1||!b.init||this.getInitIfOne){this.onZoomChange(b)}if(b.init&&this.initCallOnly){var a=jQuery("#"+this._nodeId)[0];a.parentNode.removeChild(a)}},isBrowserZoom:function(){if(this.currentScale==null){return null}return(this.currentScale==1)},getZoomLevel:function(){return this.currentScale},moveFlash:function(){}};jQuery(document).ready(function(){swfZoomDetection.init.apply(swfZoomDetection,[swfZoomDetectionConfig])});
/* end http://www.nearlyweds.com/js/swfZoomDetection.js */


