if(typeof ISSUU.frontend=="undefined"){ISSUU.frontend={}}if(typeof ISSUU.frontend.embed_3=="undefined"){ISSUU.frontend.embed_3={}}ISSUU.frontend.embed_3.model=function(){var T={service:"",showHtmlLink:"",layout:"",size:{w:0,h:0,unit:""},colorOrTheme:{backgroundColor:"000000",theme:""},fitTo:"",showFlipBtn:"",flip:{autoFlip:"",autoFlipTime:6000},startingPage:1,logo:{url:"",top:0,left:0},document:{id:"",name:"",username:"",title:"",tag:""}};var D=function(){var Z=["mode=embed"];if(T.layout=="magazine"){}else{if(T.layout=="presentation"){Z.push("viewMode="+T.layout)}}if(T.colorOrTheme.theme){Z.push("layout="+encodeURIComponent(T.colorOrTheme.theme))}if(T.colorOrTheme.backgroundColor){Z.push("backgroundColor="+T.colorOrTheme.backgroundColor)}if(T.showFlipBtn=="true"){Z.push("showFlipBtn="+T.showFlipBtn)}if(T.flip.autoFlip=="true"){Z.push("autoFlip="+T.flip.autoFlip);if(T.flip.autoFlipTime){Z.push("autoFlipTime="+T.flip.autoFlipTime)}}if(T.startingPage>1){Z.push("pageNumber="+T.startingPage)}if(T.logo.url){Z.push("logo="+encodeURIComponent(T.logo.url));if(T.logo.left){Z.push("logoOffsetX="+T.logo.left)}if(T.logo.top){Z.push("logoOffsetY="+T.logo.top)}}if(T.document.id){Z.push("documentId="+T.document.id)}if(T.document.name){Z.push("docName="+T.document.name)}if(T.document.username){Z.push("username="+T.document.username)}if(T.document.title){Z.push("loadingInfoText="+encodeURIComponent(T.document.title))}Z.push("et="+new Date().getTime());Z.push("er="+Math.floor(Math.random()*100));return Z.join("&")};var B=function(){var Z=[];if(T.document.id){Z.push("documentId="+T.document.id)}if(T.colorOrTheme.theme){Z.push("layout="+encodeURIComponent(T.colorOrTheme.theme))}if(T.colorOrTheme.backgroundColor){Z.push("backgroundColor="+T.colorOrTheme.backgroundColor)}return Z.join("&")};var A=function(Z){var a=[];if(T.layout=="magazine"){}else{if(T.layout=="presentation"){a.push("viewmode="+T.layout)}}if(T.colorOrTheme.theme){a.push("layout="+encodeURIComponent(T.colorOrTheme.theme))}if(T.colorOrTheme.backgroundColor){a.push("backgroundcolor="+T.colorOrTheme.backgroundColor)}if(T.showFlipBtn=="true"){a.push("showflipbtn="+T.showFlipBtn)}if(T.flip.autoFlip=="true"){a.push("autoflip="+T.flip.autoFlip);if(T.flip.autoFlipTime){a.push("autofliptime="+T.flip.autoFlipTime)}}if(T.startingPage>1){a.push("pagenumber="+T.startingPage)}if(T.logo.url){a.push("logo="+encodeURIComponent(T.logo.url));if(T.logo.left){a.push("logooffsetx="+T.logo.left)}if(T.logo.top){a.push("logooffsety="+T.logo.top)}}if(T.document.id){a.push("documentid="+T.document.id)}if(T.document.name){a.push("docname="+T.document.name)}if(T.document.username){a.push("username="+T.document.username)}if(T.document.title){a.push("loadinginfotext="+encodeURIComponent(T.document.title))}if(Z=="true"){a.push("showhtmllink=true");if(T.document.tag){a.push("tag="+encodeURIComponent(T.document.tag))}}a.push("width="+T.size.w);a.push("height="+T.size.h);a.push("unit="+T.size.unit);return a.join(" ")};var X=function(){var Z=[];if(T.layout=="magazine"){Z.push("singlePage: false")}else{if(T.layout=="presentation"){Z.push("singlePage: true")}}if(T.colorOrTheme.theme){Z.push('layout: "'+encodeURIComponent(T.colorOrTheme.theme)+'"')}if(T.colorOrTheme.backgroundColor){Z.push('backgroundColor: "'+T.colorOrTheme.backgroundColor+'"')}if(T.flip.autoFlip=="true"){Z.push("autoFlip: true")}if(T.startingPage>1){Z.push("startOnPage: "+T.startingPage)}if(T.document.id){Z.push('documentId: "'+T.document.id+'"')}if(T.document.name){Z.push('docName: "'+T.document.name+'"')}if(T.document.username){Z.push('userName: "'+T.document.username+'"')}if(T.document.title){Z.push('loadingInfoText: "'+encodeURIComponent(T.document.title)+'"')}return Z.join()};var O=function(){var Z="http://"+ISSUU.server.model.domain+"/"+T.document.username+"/docs/"+T.document.name;if(T.startingPage>1){Z+="/"+T.startingPage}var a=["mode=a_p"];if(T.fitTo=="width"){a.push("wmode=0")}else{if(T.fitTo=="height"){a.push("wmode=1")}}return Z+"?"+a.join("&")};var M=function(){var Z="http://"+ISSUU.server.model.domain+"/"+T.document.username+"/docs/"+T.document.name;var a=["mode=embed"];if(T.layout=="magazine"){}else{if(T.layout=="presentation"){a.push("viewMode="+T.layout)}}if(T.colorOrTheme.theme){a.push("layout="+encodeURIComponent(T.colorOrTheme.theme))}if(T.colorOrTheme.backgroundColor){a.push("backgroundColor="+T.colorOrTheme.backgroundColor)}if(T.showFlipBtn=="true"){a.push("showFlipBtn="+T.showFlipBtn)}if(T.flip.autoFlip=="true"){a.push("autoFlip="+T.flip.autoFlip);if(T.flip.autoFlipTime){a.push("autoFlipTime="+T.flip.autoFlipTime)}}if(T.startingPage>1){a.push("pageNumber="+T.startingPage)}if(T.logo.url){a.push("logo="+encodeURIComponent(T.logo.url));if(T.logo.left){a.push("logoOffsetX="+T.logo.left)}if(T.logo.top){a.push("logoOffsetY="+T.logo.top)}}return Z+"?"+a.join("&")};var V=function(){return"http://static."+ISSUU.server.model.domain+"/webembed/viewers/style1/v1/IssuuViewer.swf"};var L=function(){var Z='<a href="'+M()+'" target="_blank">Open publication</a> - Free <a href="http://'+ISSUU.server.model.domain+'" target="_blank">publishing</a>'+(T.document.tag?' - <a href="http://'+ISSUU.server.model.domain+"/search?q="+encodeURIComponent(T.document.tag)+'" target="_blank">More '+T.document.tag+"</a>":"");return Z};var C=function(Z){return Z.replace(/&/g,"&amp;")};var J=function(a){var Z=((a=="true")?'<p style="visibility:visible;">':"")+'<object type="application/x-shockwave-flash" data="'+V()+'" width="'+T.size.w+'" height="'+T.size.h+'" style="width:'+T.size.w+"px;height:"+T.size.h+'px"><param name="movie" value="'+V()+'" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="salign" value="l" /><param name="allowfullscreen" value="true" /><param name="menu" value="false" /><param name="flashvars" value="'+D()+'" /></object>'+((a=="true")?"<p>"+L()+"</p></p>":"");return C(Z)};var K=function(a){var Z=((a=="true")?"<div>":"")+'<embed src="'+V()+'" type="application/x-shockwave-flash" allowfullscreen="true" menu="false" quality="high" scale="noscale" salign="l" flashvars="'+D()+'" width="'+T.size.w+'" height="'+T.size.h+'" name="flashticker" align="middle"/>'+((a=="true")?'<div style="width:'+T.size.w+'px;text-align:left;">'+L()+"</div></div>":"");return C(Z)};var N=function(Z){return K(Z)};var U=function(a){var Z=((a=="true")?"<div>":"")+'<embed src="'+V()+'" type="application/x-shockwave-flash" flashvars="'+D()+'" style="width:'+T.size.w+T.size.unit+";height:"+T.size.h+T.size.unit+'"></embed>'+((a=="true")?'<div style="width:'+T.size.w+T.size.unit+';text-align:left;">'+L()+"</div></div>":"");return C(Z)};var P=function(a){var Z=((a=="true")?"<div>":"")+'<embed src="'+V()+'" type="application/x-shockwave-flash" allowfullscreen="true" menu="false" quality="high" scale="noscale" salign="l" flashvars="'+D()+'" style="width:'+T.size.w+T.size.unit+";height:"+T.size.h+T.size.unit+'" name="flashticker" align="middle"></embed>'+((a=="true")?'<div style="width:'+T.size.w+T.size.unit+';text-align:left;">'+L()+"</div></div>":"");return C(Z)};var R=function(Z){return S(Z)};var I=function(Z){return S(Z)};var S=function(a){var Z=((a=="true")?"<div>":"")+'<embed src="'+V()+'" type="application/x-shockwave-flash" allowfullscreen="true" menu="false" quality="high" scale="noscale" salign="l" flashvars="'+D()+'" style="width:'+T.size.w+T.size.unit+";height:"+T.size.h+T.size.unit+'" name="flashticker" align="middle"/>'+((a=="true")?'<div style="width:'+T.size.w+T.size.unit+';text-align:left;">'+L()+"</div></div>":"");return C(Z)};var E=function(a){var Z="[issuu "+A(a)+"]";return C(Z)};var Q=function(Z){return E(Z)};var G=function(a){var Z="{"+X()+"}";return C(Z)};var F=function(){return"http://api."+ISSUU.server.model.domain+"/facebook/issuuviewer/add?"+B()};var Y=function(b){var a=D();var Z=((b=="true")?"<div>":"")+'<object style="width:'+T.size.w+T.size.unit+";height:"+T.size.h+T.size.unit+'" ><param name="movie" value="'+V()+"?"+a+'" /><param name="allowfullscreen" value="true"/><param name="menu" value="false"/><embed src="'+V()+'" type="application/x-shockwave-flash" allowfullscreen="true" menu="false" style="width:'+T.size.w+T.size.unit+";height:"+T.size.h+T.size.unit+'" flashvars="'+a+'" /></object>'+((b=="true")?'<div style="width:'+T.size.w+T.size.unit+';text-align:left;">'+L()+"</div></div>":"");return C(Z)};var W=function(){return'<iframe src="'+O()+'" width="'+T.size.w+T.size.unit+'" height="'+T.size.h+T.size.unit+'"></iframe>'};var H={getEmbedCode:function(){if(T.layout!="magazine"&&T.layout!="presentation"){return W()}switch(T.service){case"html":return Y(T.showHtmlLink);case"blogger":return P(T.showHtmlLink);case"orkut":return U(T.showHtmlLink);case"myspace":return J(T.showHtmlLink);case"facebook":return F(T.showHtmlLink);case"wordpress":return E(T.showHtmlLink);case"friendster":return K(T.showHtmlLink);case"typepad":return S(T.showHtmlLink);case"livejournal":return R(T.showHtmlLink);case"joomla":return Q(T.showHtmlLink);case"google":return G(T.showHtmlLink);default:return Y(T.showHtmlLink)}},getPreviewEmbedCode:function(){if(T.layout!="magazine"&&T.layout!="presentation"){return W()}switch(T.service){case"html":return Y("false");case"blogger":return P("false");case"orkut":return U("false");case"myspace":return J("false");case"facebook":return F("false");case"wordpress":return E("false");case"friendster":return K("false");case"typepad":return S("false");case"livejournal":return R("false");case"joomla":return Q("false");case"google":return G("false");default:return Y("false")}},getUrl:function(){if(T.layout!="magazine"&&T.layout!="presentation"){return O()}else{return M()}},set:function(Z){T.service=Z.service;T.showHtmlLink=Z.textBelow;T.layout=Z.layout;T.size.w=Z.w;T.size.h=Z.h;T.size.unit=Z.unit;T.colorOrTheme.backgroundColor=Z.backgroundColor;T.colorOrTheme.theme=Z.theme;T.fitTo=Z.fitTo;T.showFlipBtn=Z.showFlipBtn;T.flip.autoFlip=Z.autoFlip;T.flip.autoFlipTime=Z.autoFlipTime;T.startingPage=Z.startingPage;T.logo.url=Z.logoUrl;T.logo.top=Z.logoTop;T.logo.left=Z.logoLeft;T.document.id=Z.id;T.document.username=Z.username;T.document.name=Z.name;T.document.title=Z.title;T.document.tag=Z.textBelowTag}};return H}();ISSUU.viewer=function(){var D=2800;var G=false;var F=1060;var E="100%";var C="944px";var I=function(){$("#viewer_surround").css("width",E)};var H=function(){$("#viewer_surround").css("width",C)};var A=function(){var K=0,J=0;if(typeof (window.innerWidth)=="number"){K=window.innerWidth;J=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){K=document.documentElement.clientWidth;J=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){K=document.body.clientWidth;J=document.body.clientHeight}}}return{width:K,height:J}};$(document).ready(function(){$(".surround_container").load(function(L){});var K=ISSUU.viewer.window_size().height-105;$("#viewer_surround").css("height",K);$("#viewer_surround").css("z-index","1");ISSUU.viewer.check_window_width();$(window).resize(function(){ISSUU.viewer.check_window_width()});var J=function(L){if(ISSUU.menubar.is_menu_expanded()){if((L.pageY>128)&&(ISSUU.menubar.are_dropdowns_used()==false)&&ISSUU.viewer.hasShowTopPeriodPassed()){ISSUU.menubar.collapseMenu()}}else{if((L.pageY<13)&&(ISSUU.menubar.is_menu_hidden()==false)){ISSUU.menubar.expandMenu()}}};$(document).mousemove(J);$(window).resize(function(){var L=$(window).height()-100;$("#viewer_surround").css("height",L)});setTimeout(function(){if(!ISSUU.viewer.isZoomedIn){ISSUU.viewer.showTopPeriodHasPassed();ISSUU.menubar.collapseMenu()}else{ISSUU.menubar.collapseMenuFast()}},ISSUU.viewer.showTopPeriod)});var B={showTopPeriod:D,hasShowTopPeriodPassed:function(){return G},showTopPeriodHasPassed:function(){G=true},window_size:function(){return A()},check_window_width:function(){var J=A().width;if(J<F){if($("#viewer_surround").css("width")!=C){H()}}else{if($("#viewer_surround").css("width")!=E){I()}}},zoom_in:function(){B.isZoomedIn=true;ISSUU.menubar.hideMenubar();$("div.comments_surround").hide();$("div.footer").hide();$("body").css({margin:"0px 0px 0px 0px",padding:"0px 0px 0px 0px",height:"100%"});$("#viewer_surround").css("margin-bottom","0px");$(".surround_container").css({margin:"5px 6px 0px 6px",padding:"0px 0px 0px 0px"});var J=$(window).height();J=J-10;$("#viewer_surround").css({height:J});$("#viewer_surround object").height(J+"px")},zoom_out:function(){B.isZoomedIn=false;ISSUU.menubar.showMenubar();var J=$(window).height();J=J-100;$("#viewer_surround").css("height",J);$("div.comments_surround").show();$("div.footer").show();$("body").removeAttr("style");$("#viewer_surround").css("margin-bottom","25px");$(".surround_container").css({margin:"0px 0px 0px 0px",padding:"0px 6px 0px 6px"});$("#viewer_surround object").removeAttr("style")},search_engine_referrer_query:function(){var K=document.referrer;var L=K.match(/(?:google|yahoo|msn|baidu|live).*[&\?](?:q|p|w|wd|searchfor|as_q|as_epq|s|query)=([^&]+)/i);var M=null;if(L){var J=L[1];J=J.replace("%22","");J=J.replace("%27","");M=J.split("+")[0]}return M}};B.isZoomedIn=false;return B}();ISSUU.viewer.doc=function(){var B=ISSUU.utils.UrlHelper.getUrlHashMap();$(document).ready(function(){ISSUU.utils.api({data:{documentUsername:ISSUU.server.model.resource.split("/")[0].toLowerCase(),name:ISSUU.server.model.resource.split("/")[2],action:"issuu.document.get_anonymous"},onOk:function(G){var H=G._content.document.description;var E=G._content.document.username.toLowerCase();A.docUsername=E;var F=G._content.document.title;var D=G._content.document.infoLink;var C=G._content.document.orgDocType;A.doctype=C;A.info=G._content;ISSUU.viewer.statistics.created=G._content.document.created;html=new EJS({text:ISSUU.viewer.docInfoTemplate}).render({description:H,username:E,title:F,infoLink:D});$(".first-column").html("");$(".first-column").append(html);if(ISSUU.utils.User.isLoggedin()){$(".follow_link").show()}$(".follow_user").bind("click.follow",function(I){ISSUU.utils.User.followPerson(null,E,ISSUU.viewer.comments.current_username());$(".follow_user").css("cursor","default");$(".system-blue-shade-fat-btn-on").removeClass("system-blue-shade-fat-btn-on").addClass("system-grey-shade-fat-btn-on");$(".system-blue-shade-fat-btn-leftcap").removeClass("system-blue-shade-fat-btn-leftcap").addClass("system-grey-shade-fat-btn-leftcap");$(".system-grey-shade-fat-btn-leftcap").css("background-position","0px -70px");$(".system-blue-shade-fat-btn-text").removeClass("system-blue-shade-fat-btn-text").addClass("system-grey-shade-fat-btn-text");$(".system-grey-shade-fat-btn-text").css("background-position","-11px -70px");$(".system-blue-shade-fat-btn-rightcap").removeClass("system-blue-shade-fat-btn-rightcap").addClass("system-grey-shade-fat-btn-rightcap");$(".system-grey-shade-fat-btn-rightcap").css("background-position","-5px -70px");$(this).unbind("click");$(this).bind("click.doNothing",function(){return false});return false});if(B.showEmbed=="true"){ISSUU.viewer.doc.showEmbedForm()}A.embedFlash()},config:{username:false,token:false}})});var A={docType:null,docUsername:null,embedFlash:function(O){if(!swfobject.hasFlashPlayerVersion(ISSUU.server.model.flashver)){var C=window.location.href.split("?");var D=C[0]+"?mode=a_p";window.location.href=D}if(B.zoom==="true"){var L="http://static."+ISSUU.server.model.domain+"/site/views/ViewerPrototype.swf"}else{var L="http://static."+ISSUU.server.model.domain+"/"+ISSUU.server.model.swfname}var N="100%";var E="100%";var F={language:ISSUU.utils.User.autoGetLanguage(),layout:"documentview",mode:"embed",viewMode:"magazine",onIssuuSite:"true",navigateSameWindow:"true",doStats:"true",bl_referrer:ISSUU.server.model.referrerurl,bl_viewuser:ISSUU.server.model.viewuser};var K=(A.info.document.orgDocType)?A.info.document.orgDocType:"pdf";if(A.info.document.pageCount==1||K=="odp"||K=="sxi"||K=="ppt"){F.viewMode="presentation"}var J=ISSUU.viewer.search_engine_referrer_query();if(J){F.inDocSearchQuery=J}for(var I in ISSUU.server.model.swfflashvars){F[I]=ISSUU.server.model.swfflashvars[I]}F.notifyJS=true;var G={allowfullscreen:"true",salign:"tl",scale:"noscale",allowscriptaccess:"always",base:"http://static."+ISSUU.server.model.domain+"/site/"};if(typeof O!="undefined"){G.wmode=O}var H={id:"flash_issuu",name:"flash_issuu"};swfobject.embedSWF(L,"viewerAlternativeContent",N,E,ISSUU.server.model.flashver,"http://static.issuu.com/html/v1.1.22/staticFiles/js/swfobject/expressInstall.swf",F,G,H);if(B.zoom==="true"){var M=new SWFMacMouseWheel({getAttribute:function(){return"flash_issuu"}})}},prepareReload:function(){$("#viewer_surround").html('<div  id="viewerAlternativeContent" ></div>')},showEmbedForm:function(){A.displayEmbedFormDialogue();return },displayUnembedableDialogue:function(){var C=['<div style="padding: 16px;">',"<h3>Embedding private documents is an Issuu Pro feauture</h3>","<p>","You can not embed a free users private documents.<br>",'<span id="docOwner">The owner of this documents</span> should','<a href="/user/settings/#goPro">upgrade to Issuu Pro</a> to enable embeding of private documents.',"</p>",'<a class="system-blue-shade-fat-btn-on dialogueCloserOk" href="#">','<span class="system-blue-shade-fat-btn-leftcap"></span>','<span class="system-blue-shade-fat-btn-text"><strong>&nbsp;Hmm...Ok&nbsp;</strong></span>','<span class="system-blue-shade-fat-btn-rightcap"></span>',"</a>","</div>"];ISSUU.utils.dialogue.open({animate:false,width:400,height:300,content:contentArray.join(""),onOpen:function(){if(A.info.document.username==ISSUU.utils.Cookie.getUsername().toLowerCase()){$("span#docOwner").html("You")}else{$("span#docOwner").html("The owner of this document")}$("a.dialogueCloserOk").click(function(D){D.preventDefault();ISSUU.utils.dialogue.close();return false})}})},displayEmbedFormDialogue:function(){A.prepareReload();A.embedFlash("transparent");var C=new EJS({text:ISSUU.viewer.embedform}).render({});ISSUU.utils.dialogue.init({onOpen:function(){var T=function(U){$(U).css({backgroundColor:"#D0DCEF"});setTimeout(function(){$(U).css({backgroundColor:"#FFF"})},250)};var J=[];setInterval(function(){if(J.length>0){$("div.previewBox").html(J.pop());J=[];ISSUU.utils.dialogue.ajustOverlay()}},5000);var G=70+80;var N=function(V,W){var X=ISSUU.viewer.doc.info.document.pages[0].page.full.height/ISSUU.viewer.doc.info.document.pages[0].page.full.width;if(W=="magazine"){X=X/2}var U=Math.round(parseFloat(X*V));if(V>740){U=U+G}return U};var M=function(U,W){var X=ISSUU.viewer.doc.info.document.pages[0].page.full.width/ISSUU.viewer.doc.info.document.pages[0].page.full.height;if(W=="magazine"){X=X*2}var V=Math.round(parseFloat(X*U));return V};var R=function(){if(!$('input[name="customX"]').val()&&!$('input[name="customY"]').val){$('input[name="customX"]').val("600");$('input[name="customY"]').val(N(600,content.layout))}};var H=function(){$("div.guides").html("");$("div.guides").animate({height:"0px"},250);$("strong.embedButtonText").html(" Embed guide ")};var P=function(){var W=$('form[name="skema"]').serializeArray();var V={};for(var U=0;U<W.length;U++){V[W[U].name]=W[U].value}V.service=$("div.span-2menu li.menuOn a").attr("href").split("#")[1];V.id=ISSUU.viewer.doc.info.document.documentId;V.username=ISSUU.viewer.doc.info.document.username;V.name=ISSUU.viewer.doc.info.document.name;delete (V.embedCode);if(V.size=="custom"){V.w=V.customX;V.h=V.customY}else{V.unit="px";V.w=V.size;V.h=N(V.size,V.layout)}return V};var E=function(V,U,W){return F(V)+F(U)+F(W)};var F=function(U){if(U==null){return"00"}U=parseInt(U,10);if(U==0||isNaN(U)){return"00"}U=Math.max(0,U);U=Math.min(U,255);U=Math.round(U);return"0123456789ABCDEF".charAt((U-U%16)/16)+"0123456789ABCDEF".charAt(U%16)};var I=function(V){if(V){}var U=L();O(U)};var S=function(W,U){var X=false;for(var V=0;V<U.length;V++){if(W==U[V]){X=true}}return X};var L=function(){var X=P();if(X.service=="facebook"){X.layout="magazine";$("#l1").attr("checked","checked")}if(S(X.service,["wordpress","joomla"])){$("span.mustDownloadPlug").show()}else{$("span.mustDownloadPlug").hide()}if(S(X.service,["joomla"])){$("span.joomlaPlug").show()}else{$("span.joomlaPlug").hide()}if(S(X.service,["wordpress"])){$("span.wpPlug").show()}else{$("span.wpPlug").hide()}if(S(X.service,["html","blogger","wordpress","typepad"])){$("div.singlepage").show()}else{$("div.singlepage").hide();if($("#l3").attr("checked")){$("#l1").attr("checked","checked")}}if(S(X.service,["facebook"])){$("div.layoutBlock").hide()}else{$("div.layoutBlock").show()}if(S(X.service,["facebook","google"])){$("div.sizeBlock").hide()}else{$("div.sizeBlock").show()}if(X.layout=="reading"){$("div.colorOrThemeBlock").hide()}else{$("div.colorOrThemeBlock").show()}if((S(X.layout,["reading"]))&&(X.service!="facebook")){$("div.fitToBlock").show()}else{$("div.fitToBlock").hide()}if((X.layout!="reading")&&(X.service!="facebook")){$("div.autoflipBlock").show()}else{$("div.autoflipBlock").hide()}if(S(X.service,["facebook"])){$("div.startingpageBlock").hide()}else{$("div.startingpageBlock").show()}if(S(X.service,["facebook"])||X.layout.toLowerCase()=="reading"){$("div.audioBlock").hide()}else{$("div.audioBlock").show()}var W=(ISSUU.viewer.doc.info.document.pro&&ISSUU.viewer.doc.info.document.pro=="P")?true:false;if((W&&ISSUU.viewer.doc.info.document.username.toLowerCase()==ISSUU.viewer.comments.current_username()&&X.service!="facebook"&&X.layout!="reading")){$("div.logoBlock").show()}else{$("div.logoBlock").hide()}if(S(X.service,["facebook"])){$("div.facebookBlock").show();$("div.colorOrThemeBlock").css({borderBottomWidth:"0px"})}else{$("div.facebookBlock").hide();$("div.colorOrThemeBlock").css({borderBottomWidth:"1px"})}if(S(X.service,["facebook"])){$("div.mainButtons").hide()}else{$("div.mainButtons").show()}if(S(X.service,["google"])){$("strong.codeHandle").text("Config code")}else{$("strong.codeHandle").text("Embed code")}if(S(X.service,["joomla","myspace"])){$('option[value="%"]').remove()}else{if($('option[value="%"]').length<1){$('option[value="px"]').after('<option value="%" >%</option>')}}if(S(X.service,["facebook"])){$("div.previewBlock").hide()}else{$("div.previewBlock").show()}if(X.size=="custom"){if(!X.customX&&!X.customY){$('input[name="customX"]').val("600");$('input[name="customY"]').val(N(600,X.layout))}else{if(X.customX!=""&&X.customY==""){$('input[name="customY"]').val(N(X.customX,X.layout))}else{if(X.customX==""&&X.customY!=""){$('input[name="customX"]').val(M(X.customY,X.layout))}}}}var V=P();if($("#t0").attr("checked")!=true){delete (V.backgroundColor)}if(V.logoUrl==="www.mysite.com/logo.png"){delete (V.logoUrl)}if($("#tcustom").attr("checked")===true){V.theme=V.customThemeUrl}else{V.theme="http://skin."+ISSUU.server.model.domain+"/"+V.theme}delete (V.customThemeUrl);delete (V.urlType);delete (V.size);delete (V.customX);delete (V.customY);delete (V.url);V.title=ISSUU.viewer.doc.info.document.title;if(ISSUU.viewer.doc.info.document.tags&&ISSUU.viewer.doc.info.document.tags.length>0){for(var U=0;U<ISSUU.viewer.doc.info.document.tags.length;U++){if(ISSUU.viewer.doc.info.document.tags[U].length<15){V.textBelowTag=ISSUU.viewer.doc.info.document.tags[U];break}}}return V};var O=function(W){var X={url:$('input[name="url"]').val(),embedCode:$('input[name="embedCode"]').val()};ISSUU.frontend.embed_3.model.set(W);var U=ISSUU.frontend.embed_3.model.getEmbedCode();if($("div.span-2menu li.menuOn a").attr("href").split("#")[1]=="facebook"){$("a.facebookButton").attr("href",U)}else{$('input[name="embedCode"]').val(U)}if($('input[name="urlType"]:checked').val()=="pro"){$('input[name="url"]').val(ISSUU.frontend.embed_3.model.getUrl())}else{$('input[name="url"]').val("http://"+ISSUU.server.model.domain+"/"+W.username+"/docs/"+W.name)}if($('input[name="embedCode"]').val()!==X.url){T('input[name="embedCode"]')}if($('input[name="url"]').val()!=X.url){T('input[name="url"]')}W.service="html";if(W.w>508){W.w=508;$(".notActualSize").show()}else{$(".notActualSize").hide()}W.h=N(W.w,W.layout);ISSUU.frontend.embed_3.model.set(W);var V=ISSUU.frontend.embed_3.model.getPreviewEmbedCode();J.push(V)};var K=function(U){for(var V=1;V<=U;V++){$('select[name="startingPage"]').append('<option value="'+V+'">'+V+"</option>")}};$("div.span-2menu").click(function(U){U.preventDefault();if(U.target.tagName.toLowerCase()!="a"){return false}H();$("div.span-2menu li.menuOn").removeClass("menuOn").addClass("menuOff");$(U.target).parent().removeClass("menuOff").addClass("menuOn");I(U);return false});$("a.toggleGuide").click(function(U){U.preventDefault();U.stopPropagation();if($("div.guides").css("height")!="200px"){$("div.guides").animate({height:"200px"},250,null,function(){var V=$("div.span-2menu li.menuOn a").attr("href").split("#")[1];$("div.guides").html('<div class="ecSmallA"><div class="icon_guide"></div></div><div class="ecLarger"><iframe frameborder="0" src ="http://html.tissuu.com/embedwizard/'+V+'.html" width="504px" height="200px"><p>Your browser does not support iframes.</p></iframe></div>');$("strong.embedButtonText").html(" Close embed guide ")})}else{H()}return false});$("a.toggleThemes").click(function(U){if($("div.themes").css("height")!="260px"){$("div.themes").animate({height:"260px"},250,null,function(){ISSUU.utils.dialogue.ajustOverlay()});$("a.themeText").html("Less themes")}else{$("div.themes").animate({height:"60px"},250);$("a.themeText").html("More themes")}U.preventDefault();U.stopPropagation()});$("div.aColor").click(function(V){$("#t0").attr("checked","checked");$("div.colorChooser > .cSelected").removeClass("cSelected");$(this).addClass("cSelected");var U=$(this).css("backgroundColor");U=U.substr(4);U=U.substr(0,U.length-1);var W=U.split(",");$("input.colorval").val(E(W[0],W[1],W[2]));I(V)});$("input[name=customX]").focus(function(){$("#s4").attr("checked","checked")});$("input[name=customY]").focus(function(){$("#s4").attr("checked","checked")});$('input[name="customThemeUrl"]').focus(function(){$("#tcustom").attr("checked","checked")});$('form[name="skema"] :radio').click(function(U){I(U)});$('form[name="skema"] :checkbox').click(function(U){I(U)});$('form[name="skema"] :text').bind("change",function(U){I(U)});$('form[name="skema"] select').change(function(U){I(U)});$('form[name="skema"] textarea').change(function(U){I(U)});$('input[name="url"]').val("www.issuu.com/"+ISSUU.server.model.resource);K(ISSUU.viewer.doc.info.document.pages.length);var Q=(A.info.document.orgDocType)?A.info.document.orgDocType:"pdf";if(A.info.document.pageCount==1||Q=="odp"||Q=="sxi"||Q=="ppt"){$("input#l2").attr("checked","checked")}I();if(ISSUU.viewer.doc.info.document.username.toLowerCase()==ISSUU.viewer.comments.current_username()){if(typeof ISSUU.viewer.doc.info.document.sound!="undefined"){$("span.ownerChangeSoundLink").show();$("span.soundUrl").html(ISSUU.viewer.doc.info.document.sound).show();$("a.ownerTestLink").click(function(U){window.location.href=ISSUU.viewer.doc.info.document.sound;U.stopPropagation();U.preventDefault()}).show()}else{$("span.ownerNoSoundText").show();$("span.soundUrl").hide()}}else{if(typeof ISSUU.viewer.doc.info.document.sound!="undefined"){$("span.soundText").show()}else{$("span.noSoundText").show()}}$("input[name=embedCode]").click(function(){$(this).get(0).select()});$("input[name=url]").click(function(){$(this).get(0).select()});$("input[name=logoUrl]").change(function(){$("div.logoTester").html("");$("div.logoTester").append('<img class="logotest" src="'+$("input[name=logoUrl]").val()+"\" onError=\"$('img.logotest').attr('src','http://static.issuu.com/html/v1.1.22/staticFiles/img/no-image-medium.png')\" style=\"display: none;\">");$("img.logotest").load(function(){var V=$("img.logotest").height();if(!V){V=110}var U=parseInt(V,10)+10+"px";$("img.logotest").show();$("div.logoTester").animate({height:U})})});$(window).bind("keypress",function(U){if(U.which=="13"){U.stopPropagation();U.preventDefault();return false}});$(".notActualSize a").click(function(W){var V=L();V.service="html";var X=ISSUU.utils.UrlHelper.buildQueryStr(V);var U="http://"+ISSUU.server.model.domain+"/embed/preview?"+X;window.open(U,"preview","menubar=0,scrollbars=0,status=0,width="+V.w+",height="+V.h);return false});$(".ticon").click(function(V){var U=$(this).prev().prev().attr("for");$("#"+U).attr("checked","checked");I(V)});if(ISSUU.utils.User.isLoggedin()){var D={};D.profileUsername=ISSUU.utils.Cookie.getUsername().toLowerCase();D.action="issuu.user.get_anonymous";D.format="json";$.getJSON("http://api."+ISSUU.server.model.domain+"/query?jsoncallback=?",D,function(U){if(U.rsp.stat=="ok"){A.userInfo=U.rsp._content.user;if(U.rsp._content.user.pro=="P"){$("div.textBelow").show()}}})}else{}},onClose:function(){$(window).unbind("keypress")}});ISSUU.utils.dialogue.open({width:736,content:C,animate:false})}};return A}();ISSUU.viewer.comments=function(){var E="What do you think? Leave a comment.";var O=10;var J=ISSUU.utils.Cookie.getUsername()?ISSUU.utils.Cookie.getUsername().toLowerCase():null;var Q=null;var K=1;var D=null;var G=null;var B=null;var P=[];var I=null;var C=function(){if(B==null){F()}else{H();M.output();if(B>1){N()}}};var F=function(){ISSUU.utils.api({data:{action:"issuu.comments.get",documentId:ISSUU.server.model.documentId},onOk:function(R){Q=R._content.comments.comments;I=R._content.comments.allowPost;if(I===false||I==="false"){$("div.comment-area").hide();$("#viewer-comment").hide();$(".submit-comment").hide();$("#statisticsTab a").trigger("click")}else{$("#commentTab").show();$("#statisticsLeftBorder").show();$("#comments-tab-menu li").removeClass("selected");$("#commentTab").addClass("selected");if(Q>0){H();M.output();if(B>1){N()}}}},config:{username:false,token:false}})};var N=function(){var S;var R;var T='<div class="paging-control">';if(K!=1){T=T+' <a href="#previous" class="comment-paging-previous">Prev</a> '}for(i=1;i<=B;i++){if(i!=K){l1=' <a class="comment-paging" href="#page_'+i+'">';l2="</a> "}else{l1="";l2=""}T+=l1+i+l2}if(K!=B){T=T+' <a href="#next" class="comment-paging-next">Next</a>'}T=T+"</div>";$(".paging-area").html(T);$(".comment-paging").click(function(){var U=$(this).attr("href").split("_")[1];K=U;C();$.scrollTo("#comments",225,{offset:-10})});$(".comment-paging-next").click(function(){K++;C();$.scrollTo("#comments",225,{offset:-10})});$(".comment-paging-previous").click(function(){K--;C();$.scrollTo("#comments",225,{offset:-10})})};var H=function(){B=Math.ceil(Q/O);D=Q-(K*O)+1;if(D<=0){D=1}G=Q-(K*O)+O;if(G<=0){G=1}};var M={loadedComments:[],completed:function(R){this.loadedComments[R]=true;this.testCompletion()},testCompletion:function(){var R=true;for(i=G;i>=D;i--){if(this.loadedComments[i]!=true){R=false}}if(R==true){this.printComments()}},output:function(){for(i=G;i>=D;i--){if(typeof P[i]!="object"){A(i,this)}else{this.loadedComments[i]=true}}this.testCompletion()},printComments:function(){$(".comment-area").html("");var S=ISSUU.utils.User.isLoggedin();for(i=G;i>=D;i--){if(typeof P[i].deleteReason=="undefined"){var R=new EJS({text:ISSUU.viewer.commentTemplate}).render({docUsername:ISSUU.viewer.doc.docUsername,pageNumber:i,documentId:ISSUU.server.model.documentId,comment:P[i].commentText,username:P[i].username,time:ISSUU.utils.prettyDate(P[i].created),position:P[i].position,isLoggedin:S});$(".comment-area").append(R)}}}};var A=function(S,R){var T={};T.documentId=ISSUU.server.model.documentId;T.pageNumber=S;T.action="issuu.comment.get";T.format="json";$.getJSON("http://api."+ISSUU.server.model.domain+"/query?jsoncallback=?",T,function(U){if(U.rsp.stat=="ok"){P[S]={};P[S].created=U.rsp._content.comment.created;P[S].position=U.rsp._content.comment.pos;P[S].username=U.rsp._content.comment.username;P[S].commentText=U.rsp._content.comment.text;P[S].deleteReason=U.rsp._content.comment.deleteReason;R.completed(S)}else{}})};var L={box_text:E,subdomain:"",current_username:function(){return J},defaultSmallUser:function(R){R.src="http://static.issuu.com/html/v1.1.22/staticFiles/img/default_small_user.gif";R.alt="Image not available"},beginLoading:function(){F()},limitChars:function(T,R){var U=$("."+T).val();var S=U.length;if(S>R){$("."+T).val(U.substr(0,R));$("#buttonErrorMs").html("Maximum "+R+" characters allowed. ");return false}else{$("#buttonErrorMs").html("");return true}}};if(!ISSUU.utils.User.isLoggedin()){$(".submit-comment").after("<span class='unLogedInMs'><a href='"+ISSUU.utils.UrlHelper.issuuLoginUrl(window.location.href)+"'>Login</a> - Not a member yet? <a href='/signup'>Sign-up now</a></span>");$(document).ready(function(){$(".viewer-comments").attr("disabled","disabled");$(".submit-comment").click(function(){return false})})}else{$(document).ready(function(){$(".viewer-comments").focus(function(){if($(this).val()==E){$(this).val("")}$(this).addClass("active-box")});$(".viewer-comments").blur(function(){$(this).removeClass("active-box")});var R=function(){$(".submit-comment").unbind("click",R);$(".viewer-comments").attr("disabled","disabled");comment_text=$("textarea.viewer-comments").val();if(comment_text==ISSUU.viewer.comments.box_text||comment_text.length<3){$("#buttonErrorMs").html("Comments must be at least 3 characters long.");$(".submit-comment").bind("click",R);$(".viewer-comments").removeAttr("disabled");return false}user_token=ISSUU.utils.Cookie.getToken();$.ajax({type:"GET",url:"http://api."+ISSUU.server.model.domain+"/query?jsoncallback=?",data:{comment:comment_text,documentId:ISSUU.server.model.documentId,username:ISSUU.viewer.comments.current_username(),action:"issuu.comment.add",token:user_token,format:"json"},dataType:"json",success:function(V){if(V.rsp.stat!="fail"){K=1;var S=V.rsp._content.comment.pos;Q=S;P[S]=[];P[S].created=V.rsp._content.comment.created;P[S].position=V.rsp._content.comment.pos;P[S].commentText=V.rsp._content.comment.text;P[S].username=V.rsp._content.comment.username;C();$("textarea.viewer-comments").val(E);$.scrollTo("#comments",225,{offset:-10})}else{var U={E201:"Invalid field format",E001:"Invalid token",E002:"Expired token",E003:"Insufficient permission rights",E005:"No such user",E300:"Document not found",E304:"Comments not allowed"};var T;if(typeof U["E"+V.rsp._content.error.code]!="undefined"){T=U["E"+V.rsp._content.error.code]}else{T="Oops, something went wrong, please try again"}$("#buttonErrorMs").html(T)}$(".viewer-comments").removeAttr("disabled");$(".submit-comment").bind("click",R)},error:function(){$("#buttonErrorMs").html("Having trouble connecting to the server");$(".viewer-comments").removeAttr("disabled");$(".submit-comment").bind("click",R)}});return false};$(".submit-comment").bind("click",R)})}$(document).ready(function(){$("#tab-comments").show();$("#comments-tab-menu a").click(function(S){S.preventDefault();S.stopPropagation();$("#comments-tab-menu li").removeClass("selected");$(this).parents("li").addClass("selected");$(".tab-content").hide();var R=$(this).attr("href").substring(1);if($("#tab-"+R).html()!==""){$("#tab-"+R).show()}else{if(R==="statistics"){ISSUU.viewer.statistics.loadStats()}$("#tab-"+R).show()}});$(".viewer-comments").keyup(function(){ISSUU.viewer.comments.limitChars("viewer-comments",450)});$(".viewer-comments").val(ISSUU.viewer.comments.box_text);ISSUU.viewer.comments.beginLoading()});return L}();ISSUU.viewer.statistics=function(){var J,E,B,A,I,F,H;var D=["January","February","March","April","May","June","July","August","September","October","November","December"];function C(){if(typeof C.iteration==="undefined"){C.iteration=1}F=ISSUU.viewer.statistics.created||undefined;if((typeof J==="undefined"||typeof E==="undefined"||typeof B==="undefined"||typeof A==="undefined"||typeof I==="undefined"||typeof F==="undefined")&&C.iteration<5){C.iteration++;window.setTimeout(function(){C()},1000);return }H="";if(typeof F!=="undefined"){H+="<p>Published: <strong>"+D[F.substr(5,2)-1]+" "+F.substr(8,2)+", "+F.substr(0,4)+"</strong></p>"}if(typeof J!=="undefined"){H+="<p>Views: <strong>"+J+"</strong></p>"}if(typeof E!=="undefined"){H+="<p>Comments: <strong>"+E+"</strong></p>"}if(typeof B!=="undefined"){H+="<p>Ratings: <strong>"+B+"</strong></p>"}if(typeof A!=="undefined"){H+="<p>Bookmarks: <strong>"+A+"</strong></p>"}if(typeof I!=="undefined"){H+="<h6>Sites linking to this publication <span>("+I.length+")</span></h6>";for(var K=0;K<I.length;K++){H+='<div class="span-1">'+I[K]["@hits"]+'</div><div class="span-7 last"><a href="'+I[K]["@link"]+'">'+I[K]["@link"].truncate(60)+"</a></div>"}}$("#tab-statistics").html(H)}var G={loadStats:function(){$("#tab-statistics").html('<div class="span-8 last" style="line-height: 24px;" ><img src="http://static.issuu.com/html/v1.1.22/staticFiles/img/spinners/spinner12x12.gif" style="padding-right:7px ; display: inline;">Loading..</div>');var K;K="http://documentstat."+ISSUU.server.model.domain+"/"+ISSUU.server.model.documentId+"/document_statistics.json?jsoncallback=?";jQuery.getJSON(K,function(){});K="http://documentstat."+ISSUU.server.model.domain+"/document_referrer/"+ISSUU.server.model.documentId+"/document_referrer_statistics.json?jsoncallback=?";jQuery.getJSON(K,function(){});K="http://api."+ISSUU.server.model.domain+"/query?action=issuu.rating.get_average&format=json&documentId="+ISSUU.server.model.documentId+"&jsoncallback=?";jQuery.getJSON(K,function(L){B=L.rsp._content.averageRating.ratings1*1+L.rsp._content.averageRating.ratings2*1+L.rsp._content.averageRating.ratings3*1+L.rsp._content.averageRating.ratings4*1+L.rsp._content.averageRating.ratings5*1});K="http://api."+ISSUU.server.model.domain+"/query?action=issuu.comments.get&format=json&documentId="+ISSUU.server.model.documentId+"&jsoncallback=?";jQuery.getJSON(K,function(L){E=L.rsp._content.comments.comments});C()},setViews:function(K){J=K.documentStatistics["@views"]*1;A=K.documentStatistics["@bookmarksReceived"];F=K.documentStatistics["@dateCollected"]},setReferrer:function(L){I=[];for(var K=0;K<L.documentReferrerStatistics.referrers.length;K++){if(L.documentReferrerStatistics.referrers[K]["@link"]!==""){I.push(L.documentReferrerStatistics.referrers[K])}}},created:"2008-06-16T13:58:50.000Z"};return G}();function stats_callback(A){if(typeof A.documentStatistics!=="undefined"){ISSUU.viewer.statistics.setViews(A);return }if(typeof A.documentReferrerStatistics!=="undefined"){ISSUU.viewer.statistics.setReferrer(A);return }}ISSUU.viewer.embedform=' \n<div class="embedWrapper clearfix">  \n  <!-- headline --> \n  <div class="span-12 last"> \n    <h3>Customize and embed</h3> \n  </div> \n  <form name="skema" action="" method="get"> \n    <!-- Mainbox --> \n    <div class="span-12 last background"> \n    <!-- left menu --> \n    <div class="span-2menu"> \n      <ul> \n        <li class="menuOn"> \n            <a href="#html">HTML</a> \n        </li> \n        <li class="menuOff"> \n            <a href="#blogger">Blogger</a> \n        </li> \n        <li class="menuOff"> \n            <a href="#orkut">Orkut</a> \n        </li> \n        <li class="menuOff"> \n            <a href="#myspace">MySpace</a> \n        </li> \n        <li class="menuOff"> \n            <a href="#facebook">Facebook</a> \n        </li> \n        <!-- <li class="menuOff"> \n            <a href="#google">Open social</a> \n        </li> --> \n        <li class="menuOff"> \n            <a href="#wordpress">WordPress</a> \n        </li> \n        <li class="menuOff"> \n            <a href="#joomla">Joomla</a> \n        </li> \n        <li class="menuOff"> \n            <a href="#typepad">Typepad</a> \n        </li> \n        <li class="menuOff"> \n            <a href="#livejournal">LiveJournal</a> \n        </li> \n      </ul> \n    </div> \n    <!-- options --> \n    <div class="span-10 last optionsColumn"> \n      <!-- Code --> \n      <div class="eBlock clearfix mainButtons" >\n        <div class="eDouble"> \n				  <table class="topFixer"> \n					  <tr> \n						  <td class="firstHalf"><strong class="resultH codeHandle">Embed code</strong></td>\n						  <td class="secondHalf"> \n						    <strong class="resultH float-left">URL</strong>\n					      <input class="float-left" id="urlType_community" type="radio" name="urlType" value="community" checked> \n							  <label class="float-left textGrey" for="urlType_community" >Show on Issuu</label> \n					      <input class="float-left" id="urlType_pro" type="radio" name="urlType" value="pro"> \n							  <label class="float-left textGrey" for="urlType_pro" >Show with styling</label> \n						  </td> \n					  </tr> \n					  <tr> \n					    <td class="firstHalf" > \n						      <input class="resultFields" type="text" name="embedCode"><br>\n								<a class="toggleGuide float-right" href="#">Embed guide</a>\n						  </td> \n						  <td class="secondHalf"> \n						      <input class="resultFields urloutput" type="text" name="url"> \n						  </td> \n					  </tr> \n				  </table> \n					\n          <div class="userbuttons">\n            <span class="button-ms"> \n              <span class="mustDownloadPlug">You need </span> \n              <span class="joomlaPlug"><a href="http://extensions.joomla.org/extensions/external-contents/widgets-&-documents/7585/details" target="_blank">this extension</a> to embed in Joomla.</span>\n              <span class="wpPlug" ><a href="http://wordpress.org/extend/plugins/wp-issuu/"  target="_blank">this plugin</a> to embed on WordPress.</span> \n            </span> \n          </div>\n        </div> <!-- end eDouble -->\n				\n				<div class="eDouble guides"></div> \n      </div> <!-- end eBlock --> \n			\n			<!-- faceBook --> \n      <div class="eBlock clearfix facebookBlock">\n        <div class="ecSmallA">&nbsp;</div>\n        <div class="ecLarger">\n          <div class="eRow mb">  \n            <a class="system-blue-shade-fat-btn-on togglePreview facebookButton" href="#">  \n              <span class="system-blue-shade-fat-btn-leftcap"></span>  \n              <span class="system-blue-shade-fat-btn-text"><strong>&nbsp;Add to Facebook&nbsp;</strong></span>  \n              <span class="system-blue-shade-fat-btn-rightcap"></span>\n            </a>  \n          </div>  \n          <div class="eRow textGrey">Click to add this publication to your Facebook profile.</div>  \n        </div> <!-- end ecLarger -->\n      </div> <!-- end eBlock -->\n			\n		  <div style="margin: 0px 0px 10px 16px;"> \n			  <strong class="resultH">Customize</strong> \n			</div> \n      <!-- new Misc --> \n      <div class="eBlock clearfix layoutBlock">\n        <div class="ecSmallA"><div class="icon_layout"></div></div>\n        <div class="ecLarger textGrey">\n            <div class="eRow mb textBlack"><strong>Misc</strong></div>\n						<div class="eRow textGrey "> \n						  <div class="clearfix textBelow hidden"> \n					    <input class="float-left" id="textBelowId" type="checkbox" name="textBelow" value="true" > \n						  <label class="float-left" for="textBelowId" >Include a link to open the publication below the embedding.</label> <br>\n				      </div> \n							<div class="clearfix"> \n							<input class="float-left" id="showFlipBtn" type="checkbox" name="showFlipBtn" value="true" checked> \n						  <label class="float-left" for="showFlipBtn" >Always show flip buttons.</label> <br>\n							</div> \n						</div>\n        </div><!-- end larger -->\n      </div><!-- end new misc -->   \n			\n      <!-- Layout --> \n      <div class="eBlock clearfix layoutBlock">\n        <div class="ecSmallA"><div class="icon_layout"></div></div>\n        <div class="ecLarger textGrey">\n            <div class="eRow mb textBlack"><strong>Layout</strong></div>\n            <div class="fleft"> \n                <input  type="radio" class="radio0" name="layout" id="l1" value="magazine" checked> \n                <label for="l1">Two-up</label><br> \n                <div class="icon_layout1"></div>(Browsing) \n            </div> \n            <div class="fleft"> \n                <input type="radio" class="radio0" name="layout" id="l2" value="presentation"> \n                <label for="l2">Single page</label><br> \n                <div class="icon_layout2"></div>(Presentation)\n            </div> \n            <div class="fleft singlepage"> \n                <input type="radio" class="radio0" name="layout" id="l3" value="reading"> \n                <label for="l3">Single page continuous</label><br> \n                <div class="icon_layout3"></div>(Reading) \n            </div> \n        </div><!-- end larger -->\n      </div><!-- end Layout -->   \n      <!-- Size --> \n      <div class="eBlock clearfix sizeBlock">\n        <div class="ecSmallA"><div class="icon_size"></div></div>\n        <div class="ecLarger">\n          <div class="eRow mb textBlack"><strong>Size</strong></div>\n          <div class="eRow textGrey">\n            <div class="fleft"><input type="radio" class="radio0" name="size" id="s1" value="300"><label for="s1">300px</label><div class="icon_size1"></div></div> \n            <div class="fleft"><input type="radio" class="radio0" name="size" id="s2" value="420" checked><label for="s2">420px</label><div class="icon_size2"></div></div> \n            <div class="fleft"><input type="radio" class="radio0" name="size" id="s3" value="600" ><label for="s3">600px</label><div class="icon_size3"></div></div> \n            <div> \n              <div><input type="radio" class="radio0" name="size" id="s4" value="custom"> <label for="s4">Custom size</label></div> \n              <div class="floatleft"> \n                <input class="inputF" type="text" size="4" maxlength="4" name="customX"> x <input class="inputF" type="text" size="4" maxlength="4" name="customY"> \n                <select name="unit"><option value="px">px</option><option value="%" >%</option></select> \n              </div> \n            </div> \n          </div> <!-- end eRow -->\n        </div> <!-- end ecLarger -->\n      </div> <!-- end eBlock -->\n      <!-- Color --> \n      <div class="eBlock clearfix colorOrThemeBlock">\n        <div class="ecSmallA"><div class="icon_color"></div></div>\n        <div class="ecLarger">\n          <div class="eRow mb textBlack"><strong>Color or theme</strong></div>\n          <div class="eRow textGrey"><input type="radio" class="radio0" name="theme" id="t0" value="v/color/layout.xml"><label for="t0">Background color</label></div> \n          <div class="eRow colorChooser"> \n            <div class="aColor c1 cSelected" style="background-color: #FFFFFF;"></div> \n            <div class="aColor c2" style="background-color: #000000;"></div> \n            <div class="aColor c3" style="background-color: #CCCCCC;"></div> \n            <div class="aColor c4" style="background-color: #2a5083;"></div> \n            <div class="aColor c5" style="background-color: #a4112b;"></div> \n            <div class="aColor c6" style="background-color: #61a900;"></div> \n            <div><input class="inputF colorval" type="text" size="6" maxlength="6" name="backgroundColor" value="FFFFFF"></div> \n          </div> \n          <div class="eRow">&nbsp;</div> \n          <div class="eRow textGrey themes"> \n            <div class="fleft tsample"><input type="radio" class="radio0" name="theme" id="t2" value="v/light/layout.xml" checked><label for="t2">Light</label><br><div class="icon_t2 ticon"></div></div> \n            <div class="fleft tsample"><input type="radio" class="radio0" name="theme" id="t1" value="v/dark/layout.xml"><label for="t1">Dark</label><br><div class="icon_t1 ticon"></div></div> \n            <div class="fleft tsample"><input type="radio" class="radio0" name="theme" id="t4" value="v/lighticons/layout.xml"><label for="t4">Light (icons only)</label><br><div class="icon_t2 ticon"></div></div> \n            <div class="fleft tsample"><input type="radio" class="radio0" name="theme" id="t3" value="v/darkicons/layout.xml"><label for="t3">Dark (icons only)</label><br><div class="icon_t1 ticon"></div></div> \n            <div class="fleft tsample"><input type="radio" class="radio0" name="theme" id="t7" value="v/wood2/layout.xml"><label for="t7">Wood</label><br><div class="icon_t5 ticon"></div></div> \n            <div class="fleft tsample"><input type="radio" class="radio0" name="theme" id="t5" value="v/softdark/layout.xml"><label for="t5">Soft Dark</label><br><div class="icon_t3 ticon"></div></div> \n            <div class="fleft tsample"><input type="radio" class="radio0" name="theme" id="t6" value="v/softlight/layout.xml"><label for="t6">Soft Light</label><br><div class="icon_t4 ticon"></div></div> \n            <div class="fleft tsample"><input type="radio" class="radio0" name="theme" id="t8" value="v/aquarium/layout.xml"><label for="t8">Aquarium</label><br><div class="icon_t6 ticon"></div></div> \n            <div class="fleft tsample"><input type="radio" class="radio0" name="theme" id="t9" value="v/cartoon/layout.xml"><label for="t9">Cartoon</label><br><div class="icon_t7 ticon"></div></div> \n            <div class="fleft tsample"><input type="radio" class="radio0" name="theme" id="t10" value="v/nightmare/layout.xml"><label for="t10">Nightmare</label><br><div class="icon_t8 ticon"></div></div> \n            <div class="fleft tsample"><input type="radio" class="radio0" name="theme" id="t11" value="v/grey/layout.xml"><label for="t11">Grey (obsolete)</label><br><div class="icon_t9 ticon"></div></div> \n            <div class="fleft tsample"><input type="radio" class="radio0" name="theme" id="t12" value="v/wood/layout.xml"><label for="t12">Wood (obsolete)</label><br><div class="icon_t10 ticon"></div></div> \n            <div class="fleft tsample"><input type="radio" class="radio0" name="theme" id="t13" value="v/white/layout.xml"><label for="t13">White (obsolete)</label><br><div class="icon_t11 ticon"></div></div> \n            <div class="fleft tsample"><input type="radio" class="radio0" name="theme" id="t14" value="v/grass/layout.xml"><label for="t14">Grass (obsolete)</label><br><div class="icon_t12 ticon"></div></div> \n          </div> <!-- end themes --> \n          <div class="eRow"><a href="#" class="toggleThemes themeText">More themes</a></div> \n          <div class="eRow">&nbsp;</div> \n          <div class="eRow textGrey"> \n            <input type="radio" class="radio0" name="theme" id="tcustom" value="custom"><label for="tcustom">Custom theme URL (eg. www.mydomain.com/layout.xml)</label><br><input class="inputF" type="text" size="40" name="customThemeUrl">  \n            &nbsp;<a href="http://platform.issuu.com/" target="_blank">Learn how to create your own theme</a> \n          </div>     \n        </div> <!-- end ecLarger -->\n      </div> <!-- end eBlock -->\n      <!-- Fit to --> \n      <div class="eBlock clearfix fitToBlock singlePage">\n        <div class="ecSmallA"><div class="icon_fit"></div></div>\n        <div class="ecLarger">\n          <div class="eRow mb textBlack"><strong>Fit to</strong></div>\n          <div class="eRow textGrey">\n            <div class="fleft"><input type="radio" class="radio0" name="fitTo" id="f1" value="width" checked><label for="f1">Width</label><br><div class="icon_fitW"></div></div>\n            <div class="fleft"><input type="radio" class="radio0" name="fitTo" id="f2" value="height"><label for="f2">Height</label><br><div class="icon_fitH"></div></div>\n          </div> <!-- end eRow -->\n        </div> <!-- end ecLarger -->\n      </div> <!-- end eBlock -->\n      <!-- Auto flip --> \n      <div class="eBlock clearfix autoflipBlock">\n        <div class="ecSmallA"><div class="icon_autoflip"></div></div>\n        <div class="ecLarger">\n          <div class="eRow mb textBlack"><strong>Auto flip</strong><span class="textGrey"> Automatically turn a page every six seconds.</span></div>\n          <div class="eRow textGrey">\n            <div><input type="radio" class="radio0" name="autoFlip" id="af1" value="true"><label for="af1">On</label></div> \n            <div><input type="radio" class="radio0" name="autoFlip" id="af2" value="false" checked><label for="af2">Off</label></div> \n            <input type="hidden" name="autoFlipTime" value="6000" > \n          </div> <!-- end eRow -->\n        </div> <!-- end ecLarger -->\n      </div> <!-- end eBlock -->      \n      <!-- Starting page --> \n      <div class="eBlock clearfix startingpageBlock">\n        <div class="ecSmallA"><div class="icon_startpage"></div></div>\n        <div class="ecLarger">\n          <div class="eRow mb textBlack"><strong>Starting page</strong><span class="textGrey"> On what page should the publication open.</span></div>\n          <div class="eRow textGrey">\n            <select name="startingPage">\n            </select>\n          </div> <!-- end eRow -->\n        </div> <!-- end ecLarger -->\n      </div> <!-- end eBlock -->\n      <!-- Audio --> \n      <div class="eBlock clearfix audioBlock">\n        <div class="ecSmallA"><div class="icon_audio"></div></div>\n        <div class="ecLarger">\n          <div class="eRow mb textBlack">\n            <strong>Audio</strong> \n            <span class="textGrey ownerNoSoundText">You can add audio to this publication in <a href="/mylibrary">My Library</a>.</span> \n            <span class="textGrey ownerChangeSoundLink">You have added audio to this publication. You can always modify this in <a href="/mylibrary">My Library</a>.</span> \n            <span class="textGrey noSoundText">There\'s no audio in this publication.</span> \n            <span class="textGrey soundText">There\'s audio in this publication.</span> \n          </div>\n          <div class="eRow textGrey">\n            <span class="soundUrl" >www.mysite.com/audio.mp3</span> \n            <!-- <a href="#testaudio" class="ownerTestLink" >Test</a> --> \n          </div> <!-- end eRow -->\n        </div> <!-- end ecLarger -->\n      </div> <!-- end eBlock -->\n      <!-- Logo --> \n      <div class="eBlock clearfix logoBlock">\n        <div class="ecSmallA"><div class="icon_logo"></div></div>\n        <div class="ecLarger">\n          <div class="eRow mb textBlack"><strong>Logo Graphics</strong><span class="textGrey"> Place your own graphics at the top left corner (jpg/gif/png).</span></div>\n          <div class="eRow logoTester"></div> \n          <div class="eRow textGrey">\n            <input class="inputF" name="logoUrl" type="text" size="30" value="www.mysite.com/logo.png" > Offset px. top: \n            <input class="inputF" type="text" size="3" name="logoTop"> left: \n            <input class="inputF" type="text" size="3" name="logoLeft" >\n          </div>\n        </div> <!-- end ecLarger -->\n      </div> <!-- end eBlock -->\n      <!-- preview --> \n      <div class="eBlock clearfix previewBlock noBorder">\n        <div class="ecSmallA">&nbsp;</div>\n        <div class="ecLarger">\n          <div class="eRow mb textBlack"><strong>Preview</strong><span class="textGrey notActualSize"> &nbsp;Not actual size <a href="#realsize">See real size</a></span></div>\n          <div class="eRow previewBox"></div> <!-- end eRow -->\n        </div> <!-- end ecLarger -->\n      </div> <!-- end eBlock -->\n    </div><!-- options:end --> \n  </div><!-- Mainbox:end --> \n  </form> \n</div> <!-- embed Wrapper end --> \n';ISSUU.viewer.commentTemplate='<div class="viewer_comment clearfix"> <!-- one comment start-->\n  <div class="small-image-container">\n    <img src="<%= ISSUU.utils.UrlHelper.userThumbUrl(username) %>" onerror="ISSUU.viewer.comments.defaultSmallUser(this)" alt="image" class="with-border">\n  </div>\n  <div class="small-image-text"><strong><a href="<%= ISSUU.utils.UrlHelper.userUrl(username) %>"><%= ISSUU.utils.escapeHtml(username) %></a> says:</strong>  <br>\n    <%= comment.escapeHtml().nl2br() %> \n		<div class="textGrey" >Posted <%= time %> \n		    <% if (ISSUU.viewer.comments.current_username() == docUsername && isLoggedin) { %> \n				   <a href="/flag/doccomment?pageNumber=<%= pageNumber %>&documentId=<%= documentId %>">Delete</a>  \n				<% } %> \n		</div>\n  </div>\n</div><!-- end one comment-->\n';ISSUU.viewer.docInfoTemplate='<div class="span-2"> \n	<a href="http://<%= ISSUU.server.model.domain %>/<%= username %>"><img src="<%= ISSUU.utils.UrlHelper.userThumbUrl(username) %>" onerror="ISSUU.viewer.comments.defaultSmallUser(this)" alt="<%= username %>" class="with-border"></a> \n</div> \n<div class="span-3 pull-1"> \n	<div id="doc-info"> \n    	<h6><%= title %></h6> \n    	<h6><a href="http://<%= ISSUU.server.model.domain %>/<%= username %>" ><%= ISSUU.utils.escapeHtml(username.truncate(25)) %></a> <a href="<%= ISSUU.utils.UrlHelper.subcribeToUserRss(username) %>" class="rss">&nbsp;</a></h6> \n        <p><%= ISSUU.utils.escapeHtml(description) %></p> \n        <%  if(infoLink != null) { %> \n	  		<p>More info: <a href="<%= infoLink %> "><%= infoLink %></a></p> \n		<% } %> \n    </div> \n</div> \n<div class="span-3 last"> \n	<div class="follow_link"> \n	<a class="system-blue-shade-fat-btn-on follow_user" href="#"> \n					<span class="system-blue-shade-fat-btn-leftcap"></span> \n					<span class="system-blue-shade-fat-btn-text"><strong>&nbsp;Subscribe to user&nbsp;</strong></span> \n					<span class="system-blue-shade-fat-btn-rightcap"></span> \n				</a> \n	</div> \n</div>';function SWFMacMouseWheel(A){this.so=A;var B=navigator.appVersion.toLowerCase().indexOf("mac")!=-1;if(B){this.init()}}SWFMacMouseWheel.prototype={init:function(){SWFMacMouseWheel.instance=this;if(window.addEventListener){window.addEventListener("DOMMouseScroll",SWFMacMouseWheel.instance.wheel,false)}window.onmousewheel=document.onmousewheel=SWFMacMouseWheel.instance.wheel},handle:function(A){document[this.so.getAttribute("id")].externalMouseEvent(A)},wheel:function(A){var B=0;if(A.wheelDelta){B=A.wheelDelta/120;if(window.opera){B=-B}}else{if(A.detail){B=-A.detail}}if(B){SWFMacMouseWheel.instance.handle(B)}if(A.preventDefault){A.preventDefault()}A.returnValue=false}};