var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); /* link name */ var active_popup = ''; function gracefulGet(url, urlVars, callback) { try { jQuery.get(url, urlVars, callback); } catch (err) { try { if (url.match("https")) { jQuery.get(url.replace("https","http"), urlVars, callback); } else { jQuery.get(url.replace("http","https"), urlVars, callback); } } catch (err2) { callback(''); } } } function gracefulPost(url, urlVars, callback) { try { jQuery.post(url, urlVars, callback); } catch (err) { try { if (url.match("https")) { jQuery.post(url.replace("https","http"), urlVars, callback); } else { jQuery.post(url.replace("http","https"), urlVars, callback); } } catch (err2) { callback(''); } } } var popup_s = []; (function($){ $.fn.hasAttr = function(name) { return this.attr(name) !== undefined; } var defaultWidth = 0; var defaultHeight = 0; var defaultTitleBarTop = 0; var defaultTitleBarLeft = 0; var url_regex = /^(?:(?:ht|f)tp(?:s?)\:\/\/|~\/|\/)?(?:\w+:\w+@)?((?:(?:[-\w\d{1-3}]+\.)+(?:com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|edu|co\.uk|ac\.uk|it|fr|tv|museum|asia|local|travel|[a-z]{2})?)|((\b25[0-5]\b|\b[2][0-4][0-9]\b|\b[0-1]?[0-9]?[0-9]\b)(\.(\b25[0-5]\b|\b[2][0-4][0-9]\b|\b[0-1]?[0-9]?[0-9]\b)){3}))(?::[\d]{1,5})?(?:(?:(?:\/(?:[-\w~!$+|.,=]|%[a-f\d]{2})+)+|\/)+|\?|#)?(?:(?:\?(?:[-\w~!$+|.,*:]|%[a-f\d{2}])+=?(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)(?:&(?:[-\w~!$+|.,*:]|%[a-f\d{2}])+=?(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)*)*(?:#(?:[-\w~!$ |/.,*:;=]|%[a-f\d]{2})*)?$/; $.fn.sr_popup = function(o) { $(this).click( function () { $(this).open(); return false; }); var IE = /*@cc_on!@*/false; var iPad = (navigator.userAgent.match(/iPad/i) != null || navigator.userAgent.match(/iPhone/i) != null); var s = { pages: [], // associative array with pagename as key // content can be either a url for async download // or full content in html // first page must have pagename set to "main" titleBar: '', // url or full html content titleBarTop: '', titleBarLeft: '', titleBarMinWidth: 0, width: '', height: '', autoResize: '', // true: scale size to current page content // false: constant size pageHistory: [], lbox: '', firstOpen: false, visible: false, loading: '', infoPopup: '', infoPopupTimeout: '', resizeHandler: '' } if(o) $.extend(s, o); $.fn.extend({ open: function () { var popup = $(this); active_popup = popup; var s = popup_s[popup.attr("popup_id")]; if (!s.firstOpen) { s.lbox.getContent().closest(".boxy-wrapper").css({ display:"block", visibility:"visible" }); s.lbox.show(); popup.goToMain(function () { s.firstOpen = true; }); } else { s.lbox.show(); s.firstOpen = true; } if ($("#sr_popup_overlay").length == 0) { $("body").append("
"); if (iPad) { $("#sr_popup_overlay").css({width: document.width,height: document.height}); $(window).bind("resize", function () { $("#sr_popup_overlay").css({width: document.width,height: document.height}); }); } $("#sr_popup_overlay").click( function () { if (active_popup != '') active_popup.close(false); return false; }); } $("#sr_popup_overlay").fadeIn(); if (IE) { $("#sr_popup_overlay").css( { opacity: 0.5 }); } if (iPad) { s.lbox.center(); if (s.resizeHandler == '') { s.resizeHandler = function () {s.lbox.center();}; } $(window).bind("resize", s.resizeHandler); } }, close: function (resetToMain) { var popup = $(this); var s = popup_s[popup.attr("popup_id")]; if (s.lbox.getContent().closest(".boxy-wrapper").css("visibility") == "visible" && s.lbox.getContent().closest(".boxy-wrapper").css("display") != "none") { $("#sr_popup_overlay").fadeOut("slow"); if (s.infoPopup != '') s.infoPopup.fadeOut("slow"); if (resetToMain) { s.lbox.getContent().closest(".boxy-wrapper").find("*").css({visibility:"hidden"}); popup.goToMain( function () { s.lbox.getContent().closest(".boxy-wrapper").css("display","none"); s.lbox.hide(function () { // s.lbox.getContent().closest(".boxy-wrapper").css("display","block"); // setTimeout('popup_s['+popup.attr("popup_id")+'].getContent().closest(".boxy-wrapper").find("*").css({visibility:"visible"})',1000); s.lbox.getContent().closest(".boxy-wrapper").find("*").css({visibility:"visible"}); }); }); } else { s.lbox.hide(function () { if (IE && s.lbox.getContent().parent().find(".page_main object").length > 0) { s.lbox.getContent().parent().find(".page_main").remove(); s.pageHistory = []; s.firstOpen = false; } }); } s.lbox.getContent().closest(".boxy-wrapper").find("video").each( function () { this.pause(); }); if (iPad) $(window).unbind("resize", s.resizeHandler); } }, newSize: function(newWidth, newHeight, callback) { var popup = $(this); var s = popup_s[popup.attr("popup_id")]; var content = s.lbox.getContent().parent().find(".popup_content"); var currentHeight = s.lbox.getContent().height(); var currentWidth = s.lbox.getContent().width(); if (newWidth < s.titleBarMinWidth) newWidth = s.titleBarMinWidth; if (s.width > 0 && newWidth > s.width) { newWidth = s.width; content.css({"overflow-x":"auto"}); } else content.css({"overflow-x":"hidden"}); currentPageName = s.pageHistory[s.pageHistory.length-1]; content.children(":not(.page_"+currentPageName+")").each( function () { $(this).stop(); $(this).css({left:currentWidth}); if (!s.firstOpen) $(this).css({left:newWidth}); else $(this).animate({left:newWidth},"swing"); }); titleBar = s.lbox.getContent().parent().find(".popup_titlebar"); if (s.pageHistory.length <= 1) titleBar.find(".back:not(.back .back)").each( function () { $(this).css({ left: newWidth-$(this).attr("_visible_width"), width: "0px" }); // $(this).animate({left:newWidth-$(this).attr("_visible_width")},"swing",function () { // $(this).css({ // width: "0px" // }); // }); }); titleBarHeight = (titleBar.height()+parseInt(titleBar.css("top"))); if (!s.firstOpen) { s.lbox.tween(newWidth, currentHeight, function () { if (s.height > 0 && newHeight+content.siblings(".popup_titlebar").height() > s.height) { newHeight = s.height-content.siblings(".popup_titlebar").height(); content.css({"overflow-y":"auto"}); } else content.css({"overflow-y":"hidden"}); var titleBarHeight = (titleBar.height()+parseInt(titleBar.css("top"))); var totalHeight = newHeight+titleBarHeight; content.parent().css({ width: newWidth, height: totalHeight }); content.css({ height: newHeight }); s.lbox.tween(newWidth, totalHeight, callback); titleBar.css({width:newWidth}); if (!s.autoResize) { content.children("*").css({width:newWidth,height:newHeight}); } }); } else { if (s.infoPopup != '') s.infoPopup.fadeOut(500); if (s.height > 0 && newHeight+titleBarHeight > s.height) { newHeight = s.height-titleBarHeight; content.css({"overflow-y":"auto"}); } else content.css({"overflow-y":"hidden"}); var totalHeight = newHeight+titleBarHeight; content.parent().animate({ width: newWidth, height: totalHeight },"swing"); content.animate({ height: newHeight },"swing"); titleBar.animate({width:newWidth},"swing"); s.lbox.tween(newWidth, totalHeight, callback); if (!s.autoResize) { content.children("*").animate({width:newWidth,height:newHeight},"swing"); } } }, resizeToPage: function(pageName, callback) { var popup = $(this); var s = popup_s[popup.attr("popup_id")]; var content = s.lbox.getContent().parent().find(".popup_content"); var currentWidth = s.lbox.getContent().width(); var currentHeight = s.lbox.getContent().height(); var newW = 0; var newH = 0; if (!s.firstOpen || s.autoResize) { newW = popup.getPage(pageName).outerWidth(); newH = popup.getPage(pageName).outerHeight(); if (popup.getPage(pageName).children("*").length == 1) { var child = popup.getPage(pageName).children("*")[0]; if (($(child).css("width") != undefined || $(child).css("width") != null || $(child).css("width") != '' || $(child).css("width").indexOf("%") > -1) && parseInt($(child).css("width")) >= $(child).outerWidth()) newW = parseInt($(child).css("width")); else if ($(child).width() > 0) newW = $(child).outerWidth(); if (($(child).css("height") != undefined || $(child).css("height") != null || $(child).css("height") != '' || $(child).css("height").indexOf("%") > -1) && parseInt($(child).css("height")) >= $(child).outerHeight()) newH = parseInt($(child).css("height")); else if ($(child).height() > 0) newH = $(child).outerHeight(); } if (newW < s.titleBarMinWidth) popup.getPage(pageName).css({width:s.titleBarMinWidth}); } if ((newW != 0 || newH != 0) && newW != currentWidth && newH != currentHeight) { if (newW == 0) newW = currentWidth; if (newH == 0) newH = currentHeight; popup.newSize(newW, newH, function () { if (!s.firstOpen) { s.lbox.getContent().parent().find(".popup_content").siblings(".popup_titlebar").fadeIn(); popup.getPage(pageName).css({ display:"none", visibility: "visible" }); popup.getPage(pageName).fadeIn(callback); } else if ((typeof callback) == "function") callback(); }); } else if ((typeof callback) == "function") callback(); }, goToPage: function(pageName, clearHistory, callback) { var popup = $(this); var s = popup_s[popup.attr("popup_id")]; var content = s.lbox.getContent().parent().find(".popup_content"); if (popup.getPage(pageName).length > 0) { var oldPage = s.pageHistory[s.pageHistory.length-1]; var newPage = pageName; s.pageHistory.push(newPage); if (newPage != oldPage) { if (!s.firstOpen) { content.children(".page_"+oldPage).css({ left: -content.width() }); content.children(".page_"+newPage).css({ left: 0 }); popup.resizeToPage(newPage, callback); } else { content.children(".page_"+newPage).css({ left: content.width() }); content.children(".page_"+oldPage).animate({ left: -content.width() },"swing"); content.children(".page_"+newPage).animate({ left: 0 },"swing", function () { popup.resizeToPage(newPage, callback); }); } if (clearHistory) { s.pageHistory = []; s.pageHistory.push(newPage); } else if (oldPage == "loading") s.pageHistory.splice(s.pageHistory.length-2, 1); titleBar = s.lbox.getContent().parent().find(".popup_titlebar"); if (s.pageHistory.length > 1) { titleBar.find(".back:not(.back .back)").each( function () { $(this).animate({ width: $(this).attr("_visible_width") },"swing"); $(this).animate({ left: $(this).attr("_visible_pos") },"swing"); }); } else { titleBar.find(".back:not(.back .back)").each( function () { $(this).animate({left: titleBar.width()-$(this).attr("_visible_width")},"swing", function () { $(this).css({ width: '0px' }); }); }); } } else { popup.resizeToPage(newPage, callback); } } else if (popup_s[popup.attr("popup_id")].pages[pageName] != undefined && popup_s[popup.attr("popup_id")].pages[pageName] != null) { if (popup_s[popup.attr("popup_id")].pages[pageName].match(url_regex)) { var splitURL = popup_s[popup.attr("popup_id")].pages[pageName].split('?'); var url = splitURL[0]; if (splitURL.length > 1) var urlVars = splitURL[1]; else var urlVars = ""; URLExtension = url.split("."); if (URLExtension.length > 1 && (URLExtension[URLExtension.length-1] in {'jpg':'', 'jpeg':'', 'png':'', 'gif':'', 'bmp':''})) { popup.setPageContent(pageName, ""); $('').load(function(){popup.goToPage(pageName, clearHistory, callback);}).attr('src',popup_s[popup.attr("popup_id")].pages[pageName]).appendTo('body'); } else { gracefulGet(url, urlVars, function(response) { popup.setPageContent(pageName, response); popup.goToPage(pageName, clearHistory, callback); }); } } } }, goBack: function(callback) { var popup = $(this); var s = popup_s[popup.attr("popup_id")]; var content = s.lbox.getContent().parent().find(".popup_content"); if (s.pageHistory.length > 1) { var oldPage = s.pageHistory.pop(); var newPage = s.pageHistory[s.pageHistory.length - 1]; content.children(".page_"+newPage).css({ left: -content.width() }); content.children(".page_"+oldPage).animate({ left: content.width() },"swing"); content.children(".page_"+newPage).animate({ left: 0 },"swing", function () { popup.resizeToPage(newPage, callback); }); } titleBar = s.lbox.getContent().parent().find(".popup_titlebar"); if (s.pageHistory.length <= 1) titleBar.find(".back:not(.back .back)").each( function () { $(this).animate({left: titleBar.width()-$(this).attr("_visible_width")},"swing", function () { $(this).css({ width: '0px' }); }); }); }, goToMain: function(callback) { $(this).goToPage("main", true, callback); }, // adds the page if it doesn't exist, then sets the content setPageContent: function(pageName, pageContent) { var popup = $(this); var s = popup_s[popup.attr("popup_id")]; var content = s.lbox.getContent().parent().find(".popup_content"); if (popup.getPage(pageName).length == 0) { content.append("
"); if (!s.autoResize && pageName != "main") { popup.getPage(pageName).css({width:content.width(),height:content.height()}); } } popup.getPage(pageName).html(pageContent); popup.prepareNavigation(popup.getPage(pageName)); if (!s.firstOpen && pageName == "main") { popup.getPage(pageName).hide(); popup.getPage(pageName).css({ display:"block", visibility:"hidden" }); } }, reloadPage: function(pageName, newURL, postVars, getVars, autoShow) { var popup = $(this); var s = popup_s[popup.attr("popup_id")]; if (autoShow) { popup.getPage("loading").css({ width: popup.getPage(s.pageHistory[s.pageHistory.length-1]).width(), height: popup.getPage(s.pageHistory[s.pageHistory.length-1]).height() }); popup.goToPage("loading", false, function () { if (postVars != undefined && postVars != null && postVars != '') { gracefulPost(newURL, postVars, function (response) { popup.setPageContent(pageName, response); popup.goToPage(pageName, false, ''); }); } else { gracefulGet(newURL, getVars, function (response) { popup.setPageContent(pageName, response); popup.goToPage(pageName, false, ''); }); } }); } else { popup.getPage("loading").css({ width: popup.getPage(s.pageHistory[s.pageHistory.length-1]).width(), height: popup.getPage(s.pageHistory[s.pageHistory.length-1]).height() }); gracefulPost(newURL, postVars, function (response) { popup.setPageContent(pageName, response); popup.goBack(); }); } }, getPage: function(pageName) { var popup=$(this); var s = popup_s[popup.attr("popup_id")]; return s.lbox.getContent().parent().find(".popup_content").children(".page_"+pageName); }, getHiddenPageWidth: function(pageName) { }, prepareNavigation: function(element) { var popup = $(this); var s = popup_s[popup.attr("popup_id")]; element.find(".close").click(function () { if (s.reset_on_close) popup.close(true); else popup.close(false); return false; }); element.find(".back").click(function () { popup.goBack(); return false; }); element.find(".popup_page_link").click(function () { if ($(this).attr("_reload") == "true") { if ($(this).attr("_autoShow") == "false") var autoShow = false; else var autoShow = true; var href = this.href; if (!href) href = $(this).attr('href'); popup.reloadPage($(this).attr("_pageName"), href, $(this).attr("_postVars"), $(this).attr("_getVars"), autoShow); } else if ($(this).attr("_pageName") == "main") popup.goToMain(''); else popup.goToPage($(this).attr("_pageName"), false, ''); return false; }); element.find(".popup_form").submit( function () { popup.reloadPage($(this).attr("_pageName"), $(this).attr("action"), $(this).serialize(), '', true); return false; }); element.find(".info_popup").click( function () { if (s.infoPopupTimeout != '') { clearTimeout(s.infoPopupTimeout); } popup.show_popup($(this).attr("popup_content")); return false; }); if (iPad) { element.find("*").each( function () { if ($(this).css("overflow") == "auto" || $(this).css("overflow") == "scroll") $(this).jScrollTouch(); }); } }, show_popup: function(popup_text) { var popup=$(this); var s = popup_s[popup.attr("popup_id")]; if (s.infoPopup == '') { s.infoPopup = $(""); s.infoPopup.appendTo($("body")); s.infoPopup.find(".sr_a_info_popup_close").click( function () { if (s.infoPopupTimeout != '') { clearTimeout(s.infoPopupTimeout); } s.infoPopup.fadeOut(500); return false; }); } else { s.infoPopup.css({ visibility: "hidden", display: "block" }); s.infoPopup.find(".sr_a_info_popup_message").html(popup_text); } popup_position = s.lbox.getPosition(); popup_size = s.lbox.getSize(); s.infoPopup.css({ left: popup_position[0]+"px", top: (popup_position[1]+popup_size[1]+5)+"px", width: popup_size[0], "z-index": 2005 }); s.infoPopup.find(".sr_a_info_popup_top").css({ width: (popup_size[0]-20)+"px" }); s.infoPopup.find(".sr_a_info_popup_background").css({ width: (popup_size[0]-20)+"px" }); s.infoPopup.find(".sr_a_info_popup_message").css({ width: (popup_size[0]-20-67)+"px" }); s.infoPopup.find(".sr_a_info_popup_message").css({ top: (8+((43-s.infoPopup.find(".sr_a_info_popup_message").height())/2))+"px" }); s.infoPopup.find(".sr_a_info_popup_bottom").css({ width: (popup_size[0]-20)+"px" }); s.infoPopup.css({ display: "none", visibility: "visible" }); s.infoPopup.fadeIn(700, function () { s.infoPopupTimeout = setTimeout('popup_s['+popup.attr("popup_id")+'].infoPopup.fadeOut(700)', 10000); }); } }); $(this).each(function() { var popup = $(this); var popup_id = popup_s.length; popup_s[popup_id] = $.extend(true,{}, s); popup.attr("popup_id", popup_id); popup_s[popup_id].firstOpen = false; // make sure all optional parameters are set if (popup.hasAttr("_titleBar")) popup_s[popup_id].titleBar = popup.attr("_titleBar"); if (popup.hasAttr("_titleBarTop")) popup_s[popup_id].titleBarTop = popup.attr("_titleBarTop"); else if (popup_s[popup_id].titleBarTop === '') popup_s[popup_id].titleBarTop = defaultTitleBarTop; if (popup.hasAttr("_titleBarLeft")) popup_s[popup_id].titleBarLeft = popup.attr("_titleBarLeft"); else if (popup_s[popup_id].titleBarLeft === '') popup_s[popup_id].titleBarLeft = defaultTitleBarLeft; if (popup.hasAttr("_width")) popup_s[popup_id].width = popup.attr("_width"); else if (popup_s[popup_id].width === '') popup_s[popup_id].width = defaultWidth; if (popup.hasAttr("_height")) popup_s[popup_id].height = popup.attr("_height"); else if (popup_s[popup_id].height === '') popup_s[popup_id].height = defaultHeight; if (popup.hasAttr("_autoResize")) { if (popup.attr("_autoResize")=="true") popup_s[popup_id].autoResize = true; else popup_s[popup_id].autoResize = false; } else if (popup_s[popup_id].autoResize === '') popup_s[popup_id].autoResize = true; if (popup_s[popup_id].pages["main"] == undefined) { popup.each( function () { popup_s[popup_id].pages["main"] = this.href; }); popup.next(".sr_popup_pages").children("*").each( function () { if ($(this).hasAttr("name")) { if ($(this).hasAttr("href")) popup_s[popup_id].pages[$(this).attr("name")] = this.href; else popup_s[popup_id].pages[$(this).attr("name")] = $(this).html(); } }); } // create main lightbox var startingWidth = popup_s[popup_id].width; if (startingWidth == 0) startingWidth = 100; var startingHeight = popup_s[popup_id].height; if (startingHeight == 0) startingHeight = 100; var startingContent = "
"+popup_s[popup_id].loading+"
"; popup_s[popup_id].lbox = new Boxy(startingContent); popup_s[popup_id].lbox.getContent().closest(".boxy-wrapper").css({ display:"block", visibility:"hidden", position:"fixed", overflow:"visible" }); if (IE) { popup_s[popup_id].lbox.centerAt(document.documentElement.clientWidth/2,document.documentElement.clientHeight/2); popup_s[popup_id].lbox.getContent().closest(".boxy-wrapper").find(".top-left,.top-right,.bottom-left,.bottom-right").css({ opacity: 0.6 }); } else popup_s[popup_id].lbox.centerAt(window.innerWidth/2,window.innerHeight/2); popup_s[popup_id].lbox.getContent().parent().append(""); popup.wrapper = popup_s[popup_id].lbox.getContent().parent().find(".popup_wrapper"); popup.wrapper.css({ top: popup.wrapper.closest("table").find("td.top").height(), left: popup.wrapper.closest("table").find("td.left").width(), height: popup.wrapper.parent().height()-1, width: popup.wrapper.parent().width()-1 }); // add title bar popup.wrapper.append(""); popup.titleBar = popup.wrapper.find(".popup_titlebar"); popup_s[popup_id].titleBarMinWidth = popup.titleBar.width(); popup.titleBar.find("*").each( function () { if (parseInt($(this).css("min-width")) > popup_s[popup_id].titleBarMinWidth) popup_s[popup_id].titleBarMinWidth = parseInt($(this).css("min-width")); }); popup.titleBar.css({ width: "100%" }); popup.prepareNavigation(popup.titleBar); popup.titleBar.find(".back:not(.back .back)").each( function () { $(this).attr("_visible_pos", $(this).position().left); $.swap(this, {position:"static"}, function(){ $(this).attr("_visible_width", $(this).width()); }); $(this).css({ left: popup.titleBar.width()-$(this).attr("_visible_width"), width: "0px", overflow: 'hidden', position: 'absolute' }); }); popup.titleBar.hide(); // add content area var content_top = popup.titleBar.height() + parseInt(popup.titleBar.css("top")); popup.wrapper.append(""); popup.content = popup.wrapper.find(".popup_content"); popup.content.css({ height: popup.wrapper.height() - content_top }); // add pages popup_s[popup_id].pageHistory = []; var splitURL, url, urlVars, content; if (popup_s[popup_id].pages["loading"] == undefined && popup_s[popup_id].loading != '') popup_s[popup_id].pages["loading"] = popup_s[popup_id].loading; for (var page in popup_s[popup_id].pages) { if ((typeof popup_s[popup_id].pages[page]) == 'string' && !popup_s[popup_id].pages[page].match(url_regex)) { popup.setPageContent(page, popup_s[popup_id].pages[page]); } } }); return this; } })(jQuery); (function($){ $.fn.sr_popup_type = function(type) { if (type == "popup") { var splithref = $(this).attr("href").split("."); if (splithref.length == 1) $(this).attr("href",'http://web.archive.org./web/20120525055236/http://www.simpleregistry.com/anything/popup.php?tpl='+$(this).attr("href")+".tpl"); else if (splithref[splithref.length-1] == "tpl") $(this).attr("href",'http://web.archive.org./web/20120525055236/http://www.simpleregistry.com/anything/popup.php?tpl='+$(this).attr("href")); var popup = $(this).sr_popup({ autoResize: false, titleBar: "", loading: "
" }); $(document).keyup(function (event) { if (event.keyCode == '27') popup.close(false); }); } else if (type == "popup_full") { var titleBarContent; titleBarContent = "
" +"
" +"
" +"
" +"SimpleRegistry.com" +"Close" +"Back" +"
" +"
"; $(this).sr_popup( { titleBar: titleBarContent, loading: "
" }); } else if (type == "popup_img") { var close_reset = false; if ($(this).attr('_reload') == 'true') { close_reset = true; } $(this).sr_popup({ titleBar: "", loading: "
", reset_on_close: close_reset }); $(document).keyup(function (event) { if (event.keyCode == '27') popup.close(false); }); } else if (type == "popup_local") { var popup = $(this).sr_popup({ autoResize: false, titleBar: "", loading: $(this).next('div.sr_popup_pages').find('div:first').html() }); $(document).keyup(function (event) { if (event.keyCode == '27') popup.close(false); }); } else { $(this).sr_popup(); } return this; } })(jQuery); jQuery(function () { jQuery("[rel='popup']").each(function () { jQuery(this).sr_popup_type('popup'); }); jQuery("[rel='popup_full']").each(function () { jQuery(this).sr_popup_type('popup_full'); }); jQuery("[rel='popup_img']").each(function () { jQuery(this).sr_popup_type('popup_img'); }); jQuery("[rel='popup_local']").each(function () { jQuery(this).sr_popup_type('popup_local'); }); }); } /* FILE ARCHIVED ON 05:52:36 May 25, 2012 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 04:01:08 Oct 08, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.508 exclusion.robots: 0.017 exclusion.robots.policy: 0.009 esindex: 0.01 cdx.remote: 4.779 LoadShardBlock: 122.908 (3) PetaboxLoader3.datanode: 42.621 (4) PetaboxLoader3.resolve: 192.542 (2) load_resource: 143.433 */