/*
FILE ARCHIVED ON 11:28:26 Dec 7, 2012 AND RETRIEVED FROM THE
AN OPENWAYBACK INSTANCE ON 18:33:14 Aug 20, 2024.
JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
var view = '';
var edit = '0';
var EMBED_URL4536 = 'https://webarchive.library.unt.edu/web/20121207112826/http://www.paperg.com/jsfb/embed.php?pid=13526&bid=4536';
// links stylesheets in head
function pg_linkss(filename)
{
var head = document.getElementsByTagName('head')[0];
var link = document.createElement('link');
link.rel = 'stylesheet';
link.media = 'all';
link.type = 'text/css';
link.href = filename;
head.appendChild(link);
}
// includes scripts in head
function pg_include(filename)
{
var head = document.getElementsByTagName('head')[0];
var script = document.createElement('script');
script.src = filename;
script.type = 'text/javascript';
head.appendChild(script);
}
function checkFancyBoxExists()
{
return !(typeof $pg_jq.fn.fancybox == 'undefined' || $pg_jq.fancybox == 'undefined');
}
function loadFancyBox()
{
pg_include(PG_CDN_ASSET_URL + "/fancybox/jquery.fancybox-1.3.4.pack.js?");
}
function addCacheBuster()
{
$pg_jq("a.fancy_iframe").each(function() {
var originalLink = $pg_jq(this).attr('href');
var d = new Date();
$pg_jq(this).attr('href', originalLink + '&' + d.getTime());
});
}
function setFancyBoxClick()
{
var fancyboxSettingsDefault = {
transitionIn: "elastic",
transitionOut: "elastic",
scrolling: "no",
padding: 0,
type: "iframe",
autoDimensions: false,
autoScale: false,
onStart: function(){hide_other_objects();},
onClosed : show_other_objects
};
var setOrientationDimensions = function (settings) {
setTimeout("$pg_jq('#fancybox-frame').css('visibility', '');", 100);
setTimeout("setViewerDimensions(settings);", 500);
};
var verticalSettings = $pg_jq.extend({}, {width: 800, height: 699}, fancyboxSettingsDefault);
verticalSettings.onComplete = function() {
setViewerDimensions(verticalSettings);
};
$pg_jq("a.fancy_iframe.PG_vertical").fancybox(verticalSettings);
var horizontalSettings = $pg_jq.extend({}, {width: 695, height: 695}, fancyboxSettingsDefault);
horizontalSettings.onComplete = function() {
setViewerDimensions(horizontalSettings);
};
$pg_jq("a.fancy_iframe.PG_horizontal").fancybox(horizontalSettings);
$pg_jq("a.fancy_iframe").click(function(){PG_incrementClicks($pg_jq(this));hide_other_objects();});
$pg_jq("div.PG_click_area").click(function() {
$pg_jq(this).prev().find("a.fancy_iframe").click();
});
if(PG_delayed_click_id && !PG_clicked)
{
if($pg_jq('#fancybox-frame') && $pg_jq('#fancybox-frame').length == 0)
{
$pg_jq('#' + PG_delayed_click_id).parent().click();
}
PG_delayed_click_id = null;
PG_clicked = true;
}
}
function setViewerDimensions(settings)
{
var currentWidth = $pg_jq('fancybox-wrap').width();
var currentHeight = $pg_jq('fancybox-wrap').height();
if(currentWidth != settings.width)
{
$pg_jq('#fancybox-wrap, #fancybox-content').css('width', settings.width + 'px').css('height', settings.height + 'px');
$pg_jq.fancybox.resize();
}
if($pg_jq('#fancybox-inner').height() < 500)
{
$pg_jq('#fancybox-wrap, #fancybox-content, #fancybox-inner').css('width', settings.width + 'px').css('height', settings.height + 'px');
}
}
function fixFlyerviewerDimensions()
{
if($pg_jq('#fancybox-inner').height() < 500)
{
$pg_jq('#fancybox-wrap, #fancybox-content, #fancybox-inner').css('height', '699px');
}
}
function PG_incrementClicks(node)
{
var cid = $pg_jq(node).attr('data-cid');
var bid = $pg_jq(node).attr('data-bid');
$pg_jq('#PG_trk4536').attr("src", "//www.flyerboard.com/jsfb/inc/tracker.php?r=1354879707.058&type=clicks&board_id=" + bid + "&campaign_id=" + cid);
}
function loadPreFancyBox()
{
$pg_jq(document).ready(function(){
if($pg_jq.support.boxModel == false)
{
PG_quirks_mode();
}
});
}
var PG_fancybox_init4536 = function()
{
if($pg_jq != null && $pg_jq.find != null && $pg_jq("a.fancy_iframe").length > 0)
{
$pg_jq(document).ready(function(){
clearInterval(PG_interval4536);
PG_interval4536 = setInterval(function() {
if(checkFancyBoxExists())
{
clearInterval(PG_interval4536);
if(typeof $pg_jq.fancybox.init !== "undefined")
{
$pg_jq.fancybox.init();
}
else if(!PG_fancybox_loading)
{
//some sites load the fancybox js but don't load the css file which causes problems
//ie. https://webarchive.library.unt.edu/web/20121207112826/http://ultimatememorial.com/
PG_fancybox_loading = true;
pg_linkss(PG_CDN_ASSET_URL + "/fancybox/jquery.fancybox-1.3.4.css?");
}
setFancyBoxClick();
}
else if(!PG_fancybox_loading)
{
PG_fancybox_loading = true;
loadFancyBox();
}
}, 200);
$pg_jq("#PG_fb").append("
");
setTimeout('PG_swapBackground(4536)', 1500);
if ($pg_jq.fn.jquery == '1.8.0' && !$pg_jq.fn.oldHeightFunction)
{
$pg_jq.fn.oldHeightFunction = $pg_jq.fn.height;
$pg_jq.fn.height = function () {
if(this.is($pg_jq(window))) {
return (this.oldHeightFunction() < this[0].innerHeight)? this.oldHeightFunction() : this[0].innerHeight
} else {
return this.oldHeightFunction();
}
}
}
});
}
}
function PG_swapBackground(instance)
{
var preLoaderImage = $pg_jq(".PG_preload" + instance).css("background-image");
if (preLoaderImage != "none")
{
$pg_jq("#PG_flyerboard" + instance).css("background-image", preLoaderImage);
}
}
function PG_preloadViewer()
{
if(PG_preloaded)
{
return true;
}
PG_preloaded = true;
var imageFiles = [PG_CDN_ASSET_URL + '/fancybox/fancybox-x.png',
PG_CDN_ASSET_URL + '/fancybox/fancybox-y.png',
PG_CDN_ASSET_URL + '/fancybox/fancybox.png',
PG_CDN_ASSET_URL + '/fancybox/blank.gif',
PG_CDN_ASSET_URL + '/images/flyerviewer/sprite1.png',
PG_CDN_ASSET_URL + '/images/flyerviewer/vertical/sprite_repeat.jpg',
PG_CDN_ASSET_URL + '/images/flyerviewer/horizontal/sprite_repeat.jpg',
PG_CDN_ASSET_URL + '/images/flyerviewer/vertical/tabs/tabs.png',
PG_CDN_ASSET_URL + '/images/flyerviewer/horizontal/tabs/tabs.png'];
pg_include('//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js');
pg_linkss(PG_CDN_ASSET_URL + '/css/flyerviewer/vertical/combined.min.css?v=10');
pg_linkss(PG_CDN_ASSET_URL + '/css/flyerviewer/horizontal/combined.min.css?v=10');
$pg_jq.map(imageFiles, function(url, i) {
var img = $pg_jq('
').attr('src', url).css('display', 'none');
$pg_jq('body').append(img);
});
return true;
}
function PG_quirks_mode()
{
$pg_jq('.PG_ribbon div a img').css('margin-right', '-5px');
}
//ie8.js and ie7.js used by some sites to emulate the respective browsers in
//older versions make wrapper tags !> that mess with css styles
function PG_float_aliens()
{
var i;
var flyer_wrapper_div;
var tag_type;
for(i = 0; i < 6; i++)
{
flyer_wrapper_div = document.getElementById("PG_flyer" + i);
if(flyer_wrapper_div)
{
tag_type = flyer_wrapper_div.parentNode.nodeName;
if(tag_type == '!')
{
flyer_wrapper_div.parentNode.style.float = 'left';
flyer_wrapper_div.parentNode.style.display = 'none';
flyer_wrapper_div.parentNode.style.display = 'inline-block';
}
}
else
{
break;
}
}
}
function PG_jq_wait()
{
if(typeof jQuery === "undefined" || jQuery.PGtmp)
{
setTimeout("PG_jq_wait();", 100);
}
else
{
//we should release both $ and jQuery since we loaded our own
$pg_jq = jQuery.noConflict(true);
loadPreFancyBox();
PG_fancybox_init4536();
}
}
function PG_jq_includes()
{
pg_linkss(PG_CDN_ASSET_URL + "/fancybox/jquery.fancybox-1.3.4.css?");
if(typeof $pg_jq == 'undefined' || $pg_jq == null)
{
if(typeof jQuery == 'undefined' || typeof jQuery.find == 'undefined')
{
$pg_jq = 'loading';
pg_include("//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js");
PG_jq_wait();
}
else if(jQuery.fn.jquery == '1.2.6' )
{
//mark the current jQuery version so we know when ours is loaded
//since we know ours is loaded when this variable does not exist
jQuery.PGtmp = true;
jQuery.getScript("//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js",
function() {PG_jq_wait();});
}
else
{
$pg_jq = jQuery;
//parseJSON didn't exist until 1.4.1
if(typeof $pg_jq.parseJSON === "undefined")
{
$pg_jq.extend({
parseJSON: function( data ) {
if ( typeof data !== "string" || !data )
{
return null;
}
data = $pg_jq.trim( data );
if ( /^[\],:{}\s]*$/.test(data.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@")
.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]")
.replace(/(?:^|:|,)(?:\s*\[)+/g, "")) )
{
return window.JSON && window.JSON.parse ?
window.JSON.parse( data ) :
(new Function("return " + data))();
}
}
});
}
loadPreFancyBox();
PG_fancybox_init4536();
}
}
else
{
loadPreFancyBox();
PG_fancybox_init4536();
}
}
function check_pg_exists()
{
$pg_jq(document).ready(function() {
var pg_link_node = document.getElementById("PG_link");
var pg_flyerboard_node = document.getElementById('PG_fb');
if(!pg_link_node || !pg_flyerboard_node)
{
alert("Flyerboard code has been altered. Please consult your webmaster");
if(pg_flyerboard_node)
pg_flyerboard_node.style.display = "none";
}
else
{
var textToCheck = pg_link_node.innerHTML;
if(textToCheck.indexOf("https://webarchive.library.unt.edu/web/20121207112826/http://www.paperg.com") == -1)
{
alert("Flyerboard code has been altered. Please consult your webmaster");
if(pg_flyerboard_node)
pg_flyerboard_node.style.display = "none";
}
}
});
}
//keep track of all hidden elements, so that we can rehide them later
var PG_elements_to_hide = PG_elements_to_hide || null;
/*
Hide all other objects/embeds so as to avoid layering issue.
*/
var hide_other_objects = function()
{
return;
PG_elements_to_hide = $pg_jq('object:visible,embed:visible');
if(PG_elements_to_hide)
{
PG_elements_to_hide.css("visibility", "hidden");
}
};
/*
Once flyerviewer is closed, resume showing all other objects -- assuming they weren't already hidden
*/
var show_other_objects = function()
{
return;
if(PG_elements_to_hide)
{
PG_elements_to_hide.css("visibility", "visible");
}
};
var $pg_jq = $pg_jq || null;
var PG_fancybox_loading = PG_fancybox_loading || null;
var PG_clicked = PG_clicked || false;
var PG_delayed_click_id = PG_delayed_click_id || false;
var PG_preloaded = PG_preloaded || false;
var PG_CDN_ASSET_URL = PG_CDN_ASSET_URL || 'https://webarchive.library.unt.edu/web/20121207112826/http://assets.www.paperg.com';
var PG_interval4536 = PG_interval4536 || null;
setTimeout("PG_fancybox_init4536();", 2000);
var PG_tt=function(){
var id = 'PG_tt';
var top = -100;
var left = 15;
var maxw = 150;
var speed = 12;
var timer = 20;
var endalpha = 95;
var alpha = 0;
var tt,t,c,b,h;
var ie = document.all ? true : false;
var objBody = document.getElementsByTagName("body").item(0);
return{
show:function(v,w){
if(tt == null){
tt = document.createElement('div');
tt.setAttribute('id',id);
t = document.createElement('div');
t.setAttribute('id',id + 'top');
c = document.createElement('div');
c.setAttribute('id',id + 'cont');
b = document.createElement('div');
b.setAttribute('id',id + 'bot');
tt.appendChild(t);
tt.appendChild(c);
tt.appendChild(b);
objBody.insertBefore(tt, objBody.firstChild);
tt.style.opacity = 0;
tt.style.filter = 'alpha(opacity=0)';
}
document.onmousemove = this.pos;
tt.style.display = 'block';
c.innerHTML = v;
tt.style.width = w ? w + 'px' : 'auto';
if(!w && ie){
t.style.display = 'none';
b.style.display = 'none';
tt.style.width = tt.offsetWidth;
t.style.display = 'block';
b.style.display = 'block';
}
tt.style.width = maxw + 'px';
h = parseInt(tt.offsetHeight) + top;
clearInterval(tt.timer);
tt.timer = setInterval(function(){PG_tt.fade(1)},timer);
},
pos:function(e){
var u = ie ? event.clientY + document.documentElement.scrollTop : e.pageY;
var l = ie ? event.clientX + document.documentElement.scrollLeft : e.pageX;
if(u-h < 0) tt.style.top = 0;
else tt.style.top = (u - h) + 'px';
if(l+left < 0) tt.style.left = 0;
else if((l + left)+maxw > document.body.clientWidth) {tt.style.left=document.body.clientWidth-maxw*2 + 'px';}
else tt.style.left = (l + left) + 'px';
document.onmousemove = null;
},
fade:function(d){
var a = alpha;
if((a != endalpha && d == 1) || (a != 0 && d == -1)){
var i = speed;
if(endalpha - a < speed && d == 1){
i = endalpha - a;
}else if(alpha < speed && d == -1){
i = a;
}
alpha = a + (i * d);
tt.style.opacity = alpha * .01;
tt.style.filter = 'alpha(opacity=' + alpha + ')';
}else{
clearInterval(tt.timer);
if(d == -1){tt.style.display = 'none'}
}
},
hide:function(){
clearInterval(tt.timer);
tt.timer = setInterval(function(){PG_tt.fade(-1)},timer);
}
};
}();/**
* postit.functions.js
*
* Various functions to allow screen position to be determined.
*/
/**
* Gets the number of pixels that the page has been scrolled from the top
*
* @param e
* @return int
*/
function getScrollY()
{
var scrOfX = 0, scrOfY = 0;
if( typeof( window.pageYOffset ) == 'number' ) {
scrOfY = window.pageYOffset;
} else if( document.body && document.body.scrollTop) {
scrOfY = document.body.scrollTop;
} else if( document.documentElement && document.documentElement.scrollTop ) {
scrOfY = document.documentElement.scrollTop;
}
return scrOfY;
}
/**
* Gets the number of pixels that the page has been scrolled from the left
*
* @param e
* @return int
*/
function getScrollX() {
var scrOfX = 0, scrOfY = 0;
if( typeof(window.pageYOffset ) == 'number' ) {
scrOfX = window.pageXOffset;
} else if(document.body && document.body.scrollLeft ) {
scrOfX = document.body.scrollLeft;
} else if(document.documentElement && document.documentElement.scrollLeft ) {
scrOfX = document.documentElement.scrollLeft;
}
return scrOfX;
}
/**
* Gets Y position of the mouse in pixels from the top of the page.
*
* @param event e
* @return int
*/
function getPosY(e){
var ev = (!e)?window.event:e;//IE:Moz
var posy;
if (ev.pageY)//Moz
{
posy=ev.pageY;
}
else if(ev.clientY)//IE
{
posy =ev.clientY + getScrollY();
}
if(!posy)
{
return 0;
}
else
{
return posy;
}
}
/**
* Gets X position of the mouse in pixels from the left side of the page.
*
* @param event e
* @return int
*/
function getPosX(e){
var ev = (!e)?window.event:e;//IE:Moz
var posx;
if (ev.pageX)//Moz
{
posx=ev.pageX;
}
else if(ev.clientX)//IE
{
posx=ev.clientX;
}
if(!posx)
{
return 0;
}
else
{
return posx;
}
}
/**
* Gets the height of the current page in pixels
*
* @return int
*/
function getWindowHeight() {
var windowHeight = 0;
if (typeof(window.innerHeight) == 'number') {
windowHeight = window.innerHeight;
}
else {
if (document.documentElement && document.documentElement.clientHeight) {
windowHeight = document.documentElement.clientHeight;
}
else {
if (document.body && document.body.clientHeight) {
windowHeight = document.body.clientHeight;
}
}
}
return windowHeight;
}
/**
* Gets the width of the current page in pixels
*
* @return int
*/
function getWindowWidth() {
var windowWidth = 0;
if (typeof(window.innerWidth) == 'number') {
windowWidth = window.innerWidth;
}
else {
if (document.documentElement && document.documentElement.clientWidth) {
windowWidth = document.documentElement.clientWidth;
}
else {
if (document.body && document.body.clientWidth) {
windowWidth = document.body.clientWidth;
}
}
}
return windowWidth;
}
//tells if a query variable exists
function var_exists(variable)
{
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i 0) {
var contentHeight = contentElement.offsetHeight;
var top = ((windowHeight / 2) - (contentHeight / 2)) + getScrollY();
if(((windowHeight / 2) - (contentHeight / 2)) + getScrollY() < 0)
{
top = 0;
}
if(top < 0)
{
top = 0;
}
contentElement.style.top = top + 'px';
}
if(windowWidth > 0) {
var contentWidth = contentElement.offsetWidth;
var left = ((windowWidth / 2) - (contentWidth / 2));
if(((windowWidth / 2) - (contentWidth / 2)) < 0)
{
left = 0;
}
contentElement.style.left = left + 'px';
}
}
//-- getting all script elements from document
var PG_scripts = document.getElementsByTagName('script');
//-- grabbing our script element
// we need to explicitly search for it because sometimes scripts are deferred and our script may not be the last element
var PG_scriptEl = PG_scripts[ PG_scripts.length - 1 ];
if(PG_scriptEl.src != "https://webarchive.library.unt.edu/web/20121207112826/http://www.flyerboard.com/jsfb/embed.php?pid=13526&bid=4536")
{
var page_script = '';
var i = 0;
for(i = 0; i < PG_scripts.length; i++)
{
page_script = PG_scripts[i];
if(page_script.src == "https://webarchive.library.unt.edu/web/20121207112826/http://www.flyerboard.com/jsfb/embed.php?pid=13526&bid=4536")
{
PG_scriptEl = page_script;
}
}
}
//-- getting parent of script element
var PG_scriptParent = PG_scriptEl.parentNode;
var flyerboard = document.createElement('div');
flyerboard.id = 'PG_fb';
var main_code = '
';
pg_linkss("//www.flyerboard.com/jsfb/css/flyerboard/style.css.php?height=600&width=300&skin=cork&i=4536&pid=13526");
flyerboard.innerHTML = main_code;
//search and replace
var PG_all_scripts = document.getElementsByTagName("script");
var PG_script_src = null;
for (var i = 0; i < PG_all_scripts.length; i++) {
if ( PG_all_scripts[i].src == EMBED_URL4536) {
PG_scriptEl = PG_all_scripts[i];
PG_scriptParent = PG_scriptEl.parentNode;
}
}
PG_scriptParent.replaceChild(flyerboard, PG_scriptEl);
PG_jq_includes();
setTimeout('PG_float_aliens();', 1000);
try {
var _gaq = _gaq || [];
_gaq.push(
['_setAccount', "UA-2526400-3"],
['_setDomainName', "none"],
['_trackPageview'],
['_setAllowLinker', false]
);
(function(d, t) {
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.async = g.src = '//www.google-analytics.com/ga.js';
s.parentNode.insertBefore(g, s);
}(document, 'script'));
} catch(err) {}
setTimeout('check_pg_exists();', 5000);