var view = ''; var edit = '0'; var EMBED_URL3074 = 'http://www.paperg.com/jsfb/embed.php?pid=11459&bid=3074'; function clickclear(thisfield, defaulttext) { if (thisfield.value == defaulttext) { thisfield.value = ""; } } function clickrecall(thisfield, defaulttext) { if (thisfield.value == "") { thisfield.value = defaulttext; } } ;var PAPERG = PAPERG || (function() { var jQueryLoaded = false; var jQueryLoading = false; var jQueryVersion = false; var fancyBoxLoading = false; var MIN_JQUERY_VER = 153; var MAX_JQUERY_VER = 199; function loadJs(filename) { var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); script.src = filename; script.type = 'text/javascript'; head.appendChild(script); }; function getJQueryVersion() { jQueryVersion = parseInt(jQuery.fn.jquery.replace(/\./g, "")); return jQueryVersion; }; return { checkLinkExists: function() { if (!window.console) { console = {log: function() {}}; } $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) { console.log("Flyerboard code has been altered. Please consult your webmaster"); } else { var textToCheck = pg_link_node.innerHTML; if (textToCheck.indexOf("http://www.paperg.com") == -1) { console.log("Flyerboard code has been altered. Please consult your webmaster"); } } }); }, loadCss: function(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); }, loadJQuery: function() { if ($pg_jq === null && !jQueryLoading) { jQueryLoading = true; if (typeof jQuery !== 'undefined') { if (PAPERG.isValidJQueryVersion()) { $pg_jq = jQuery; jQueryLoaded = true; return; } } loadJs("//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"); } }, loadFancyBox: function() { if (!PAPERG.isJQueryLoaded()) { PAPERG.waitForJQuery(PAPERG.loadFancyBox); } else if (!fancyBoxLoading) { fancyBoxLoading = true; PAPERG.loadCss(PG_CDN_ASSET_URL + "/includes/fancybox/jquery.fancybox-1.3.4.css?"); loadJs(PG_CDN_ASSET_URL + "/includes/fancybox/jquery.fancybox-1.3.4.pack.js?v=2"); } }, waitForJQuery: function(callback) { if ((typeof jQuery === 'undefined' || !PAPERG.isValidJQueryVersion()) && !jQueryLoaded) { setTimeout(function() { PAPERG.waitForJQuery(callback); }, 100); } else { if ($pg_jq === null) { $pg_jq = jQuery.noConflict(true); jQueryLoaded = true; } if (typeof callback === 'function') { callback(); } } }, waitForFancyBox: function(callback) { if ($pg_jq === null || typeof $pg_jq.fancybox === 'undefined') { setTimeout(function() { PAPERG.waitForFancyBox(callback); }, 100); } else if (typeof callback === 'function') { callback(); } }, isValidJQueryVersion: function() { var version = getJQueryVersion(); return version >= MIN_JQUERY_VER && version <= MAX_JQUERY_VER; }, isJQueryLoaded: function() { return jQueryLoaded; } } }()); function Flyerboard(id) { var id = id; var that = this; var bustCache = false; function getId() { return id; } function swapBackground() { var preLoaderImage = $pg_jq(".PG_preload" + id).css("background-image"); if (preLoaderImage != "none") { $pg_jq("#PG_flyerboard" + id).css("background-image", preLoaderImage); } } function fixQuirksModeHeight() { if (typeof $pg_jq.fn.oldHeightFunction === 'undefined' && !$pg_jq.support.boxModel) { $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(); } } } } //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 fixBangTags() { var i, flyerWrapperDiv; for (i = 0; i < 6; i++) { flyerWrapperDiv = document.getElementById("PG_flyer" + i); if (flyerWrapperDiv) { if (flyerWrapperDiv.parentNode.nodeName == '!') { flyerWrapperDiv.parentNode.style.float = 'left'; flyerWrapperDiv.parentNode.style.display = 'none'; flyerWrapperDiv.parentNode.style.display = 'inline-block'; } } else { break; } } } function addCacheBuster() { if (bustCache) { $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: addCacheBuster }; 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(){incrementClicks($pg_jq(this));}); $pg_jq("div.PG_click_area").click(function() { $pg_jq(this).children().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-pg_jq').width(); if (currentWidth != settings.width) { $pg_jq('#fancybox-wrap-pg_jq, #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-pg_jq, #fancybox-content, #fancybox-inner').css('width', settings.width + 'px').css('height', settings.height + 'px'); } } function incrementClicks(node) { var cid = $pg_jq(node).attr('data-cid'); var bid = $pg_jq(node).attr('data-bid'); $pg_jq('#PG_trk' + id).attr("src", "//" + CLICK_SERVER_NAME + "/jsfb/inc/tracker.php?r=" + CACHE_BUSTER + "&type=clicks&board_id=" + bid + "&campaign_id=" + cid); } return { init: function() { if ($pg_jq("#fancybox-wrap-pg_jq").length < 1) { $pg_jq.fancybox.init(); } $pg_jq("#PG_fb").append("
"); setTimeout(swapBackground, 1500); fixQuirksModeHeight(); setTimeout(fixBangTags, 1000); setFancyBoxClick(); }, setCacheBuster: function(useCacheBuster) { bustCache = useCacheBuster; } }; }; function checkAll() { var checkboxes = document["filters"].getElementsByTagName('input'); for (var i=0; i 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); } }; }(); var PG_scripts = document.getElementsByTagName('script'); var PG_scriptEl = PG_scripts[ PG_scripts.length - 1 ]; if (PG_scriptEl.src != "http://www.flyerboard.com/jsfb/embed.php?pid=11459&bid=3074") { var page_script = ''; var i = 0; for (i = 0; i < PG_scripts.length; i++) { page_script = PG_scripts[i]; if (page_script.src == "http://www.flyerboard.com/jsfb/embed.php?pid=11459&bid=3074") { PG_scriptEl = page_script; } } } var PG_scriptParent = PG_scriptEl.parentNode; var flyerboard = document.createElement('div'); flyerboard.id = 'PG_fb'; var main_code = '
View All
'; PAPERG.loadCss("//www.flyerboard.com/jsfb/css/flyerboard/style.css.php?height=400&width=300&skin=cork&i=3074&pid=11459"); flyerboard.innerHTML = main_code; 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_URL3074) { PG_scriptEl = PG_all_scripts[i]; PG_scriptParent = PG_scriptEl.parentNode; } } PG_scriptParent.replaceChild(flyerboard, PG_scriptEl); var PG_CDN_ASSET_URL = PG_CDN_ASSET_URL || 'http://assets.www.paperg.com'; var $pg_jq = $pg_jq || null; var CLICK_SERVER_NAME = CLICK_SERVER_NAME || 'www.flyerboard.com'; var CACHE_BUSTER = CACHE_BUSTER || '1424926246.3014'; var PG_clicked = PG_clicked || false; var PG_delayed_click_id = 'PG_delayed_click_id' || false; var PG_BUST_IFRAME_CACHE = ''; if (!PAPERG.isJQueryLoaded()) { PAPERG.loadJQuery(); } PAPERG.waitForJQuery(PAPERG.loadFancyBox); var Flyerboard3074 = new Flyerboard(3074); PAPERG.waitForFancyBox(Flyerboard3074.init); try { var _gaq = _gaq || []; _gaq.push( ['PG._setAccount', "UA-2526400-3"], ['PG._setDomainName', "none"], ['PG._trackPageview'], ['PG._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(PAPERG.checkLinkExists, 5000);