/**** DO NOT EDIT OR ADD NEW CONTENT TO THIS FILE DIRECTLY *****/
/* Make edits on these files /js/pages/homepage.js and /js/library/tracking/tracking_homepage.js and compress into this file */
/*homepage.js*/
$(document).ready(function(){$slideshow=$('#mainBanner');$slides=$slideshow.children('*').remove();var $slidebuttongroup=$("#bannerSelectorButtons");for(var i=0;i<$slides.length;i++){$slidebuttongroup.append("<div></div>");}
$slidebuttons=$slidebuttongroup.children('div');$slidebuttons.eq(0).addClass('activeButton');$slidebuttons.click(function(){gotoSlide($slidebuttons.index($(this)));start();})
playSlideshow=null;$("#playButton").click(start);$("#pauseButton").click(stop);$slidebuttons.eq(0).click();$('#mainBanner').mouseover(function(){stop();});$('#mainBanner').mouseout(function(){start();});BindSocial();});
function stop(){clearInterval(playSlideshow);$('#pauseButton').hide();$('#playButton').show();playSlideshow = null;}
function start(){stop();playSlideshow = setInterval(slideSwitch, 6500);$('#pauseButton, #playButton').toggle();}
function gotoSlide(slide_index){slide_index%=$slides.length;var $oldslides=$slideshow.children('*');$slidebuttons.removeClass('activeButton');$slidebuttons.eq(slide_index).addClass('activeButton');$slideshow.append($slides.eq(slide_index).clone());var $newslide=$slideshow.children('*:last').css('opacity', 0.0).animate({opacity: 1.0}, {duration: 500,complete: function () {$oldslides.remove()}});current_slide_index = slide_index}
function slideSwitch(){gotoSlide(current_slide_index + 1)};function BindSocial(){	if (!$.browser.msie || $.browser.version != 7) {$(".fblike").each(function(){$(this).html('<iframe src="http://www.facebook.com/plugins/like?href='+location.href+'&send=false&layout=box_count&width=65&show_faces=false&action=like&colorscheme=light&font=arial&height=90" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:65px; height:70px;" allowTransparency="true"></iframe>')});}$.getScript("https://apis.google.com/js/plusone.js");$(".pinit").each(function(){var logoSrc="http://content0.cpcache.com/global/img/cafepress-us.gif?072111";$(this).html('<a href="http://pinterest.com/pin/create/button/?url='+encodeURIComponent(location.href)+'&media='+encodeURIComponent(logoSrc)+'" class="pin-it-button" count-layout="vertical">Pin It</a>')});$.getScript("http://assets.pinterest.com/js/pinit.js")}
/*tracking_homepage.js*/
$('<div id="__cmbDiv" style="display: none"></div>').appendTo('body');
var __cmbLoaded=false,__cmbRunnable=null;(function(){try{var b;var actionType="pv";function d(){var action=TellApartCrumb.makeCrumbAction("5KYSO562qV11",actionType);action.setActionAttr("PageType","Other");action.finalize()};if("https:"==document.location.protocol)b="https://sslt.tellapart.com/crumb.js";else{for(var g=navigator.userAgent,h=0,e=0,i=g.length;e<i;e++)h^=g.charCodeAt(e);b="http://static.tellapart.com/crumb"+h%10+".js"}
if(actionType==="tx"){__cmbRunnable=d;document.write("\x3Cscript type='text/java"+"script' src='"+b+"'\x3E\x3C/script\x3E");__cmbLoaded=true}else{$(document).ready(function(){$.getScript(b, function(){__cmbLoaded=true;d()});});}}catch(j){}})();if(__cmbRunnable!=null){__cmbRunnable();__cmbRunnable=null};function doCriteoTracking(){var CRITEO=function(){var b={Load:function(d){var c=window.onload;window.onload=function(){if(c){c()}
d()}}};function a(e){if(document.createElement){var c=document.createElement("IFRAME");if(c){c.width="1px";c.height="1px";c.style.display="none";c.src=e;var d=document.getElementById("cto_mg_div");if(d!=null&&d.appendChild){d.appendChild(c)}}}}
return{Load:function(c){document.write("<div id='cto_mg_div' style='display:none;'></div>");b.Load(function(){a(c)})}}}();CRITEO.Load("http://dis.criteo.com/dis/dis.aspx?p1="+escape("v=2&wi=7711950&pt1=0&pt2=1")+"&t1=sendEvent&p=2207&c=2&cb="+Math.floor(Math.random()*99999999999));}
mr_merchantID="CafePress";mr_Track();/* CSS Document */

