
var surveyEnabled=new Boolean(false);var library;var surveyVars;var catalogId
if(window.surveyLibs!=undefined){for(x in surveyLibs){library=surveyLibs[x].library;surveyVars=surveyLibs[x].surveyVars;catalogId=surveyLibs[x].catalogId;if(window.location.href.indexOf(library+"/Garden")>0||window.location.href.indexOf("catalogId="+catalogId)>0){surveyEnabled=true;break;}}}
if(surveyEnabled==true){var currentLink=null;var popupheight=410;var popupwidth=450;var cookieName="fiskars-survey";var cookieExpireDays=30;var surveyUrl='http://www.largedesign.com/limesurvey/index.php?'+surveyVars;var host=window.location.protocol+"//"+window.location.hostname;Shadowbox.loadSkin("garden_en_eu",'http://www.fiskars.com/wps/wcm/connect/garden_en_eu/Garden/?srv=cmpnt&servefile=true&source=library&cmpntname=');function setCookie(c_name,value,expiredays){var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+"="+escape(value)
+((expiredays==null)?"":";expires="+exdate.toGMTString());}
function getCookie(c_name){if(document.cookie.length>0){c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1){c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)
c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}
return"";}
function turnOffSurvey(){setCookie(cookieName,'hide',cookieExpireDays)}
function closed(){setCookie(cookieName,'hide',cookieExpireDays)
var newform=$jQ("<form></form>").attr("action",currentLink.href).attr("target","_blank").attr("method","get");$jQ("body").append(newform);$jQ(newform).trigger("submit");}
$jQ(document).ready(function(){$jQ("a").bind("click",function(event){currentLink=this;var link1=currentLink.href.indexOf("fiskars.com");var link2=currentLink.href.indexOf("commercestg.fiskarsbrands.co");if(link1==-1&&link2==-1){if(getCookie(cookieName)!='hide'){event.stopPropagation();currentLink=this;Shadowbox.open({player:'html',content:'<iframe width="'
+(popupwidth-2)
+'" height="'
+(popupheight-2)
+'" style="border:1 solid #cccccc;" frameborder="0" scrolling="none" src="'+surveyUrl+'"></iframe>',height:popupheight,width:popupwidth});return false;}}});$jQ(window).unload(function(event){if(getCookie(cookieName)!='hide'){if(!currentLink){if(getCookie(cookieName)!='hide'){var wintop=(screen.height-popupheight)/2;var winleft=(screen.width-popupwidth)/2;surveyWindow=window.open(surveyUrl,'fiskarssurvey','width='+popupwidth+',height='+popupheight+',top='+wintop+',left='+winleft+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,dependent=no');surveyWindow.focus()
turnOffSurvey();}}}});var options={overlayColor:"#0c091a",overlayOpacity:"0.8",animate:false,onClose:closed};Shadowbox.init(options);});}