/* Minify: at least one missing file. See http://code.google.com/p/minify/wiki/Debugging */
;var c_cache=[],dle_poll_voted=[];function reload(){var a=(new Date).getTime();document.getElementById("dle-captcha").innerHTML='
'}function dle_change_sort(a,c){var b=document.getElementById("news_set_sort");b.dlenewssortby.value=a;b.dledirection.value=c;b.submit();return!1}
function doPoll(a,c){var b=document.getElementById("dlepollform_"+c),d=b.status.value,e="";if(1!=dle_poll_voted[c]){if("results"!=a&&1!=d){for(var f=0;f'+c+"";e[1]=''+b+"";e[2]=''+d+"";return e}
function ajax_save_for_edit(a,c){var b={};"2"==quick_wysiwyg&&tinyMCE.triggerSave();$.each($("#ajaxnews"+a).serializeArray(),function(a,c){b[c.name]=c.value});b.id=a;b.field=c;b.action="save";b.user_hash=dle_login_hash;ShowLoading("");$.post(dle_root+"engine/ajax/editnews.php",b,function(a){HideLoading("");"ok"!=a?DLEalert(a,dle_info):($("#dlepopup-news-edit").dialog("close"),DLEconfirm(dle_save_ok,dle_confirm,function(){location.reload(!0)}))});return!1}
function ajax_prep_for_edit(a,c){for(var b=0,d=c_cache.length;b');$("#modal-overlay").css({filter:"alpha(opacity=40)"}).fadeIn();var e={};e[dle_act_lang[3]]=function(){$(this).dialog("close")};e[dle_act_lang[4]]=function(){ajax_save_for_edit(a,c)};$("#dlepopup-news-edit").remove();$("body").prepend("");$(".dlepopupnewsedit").html("");var k=.9*$(window).height(),h=.9*$(window).width();1024");b=b.replace(/&/g,"&");$("#ratig-layer-"+c).html(b);$("#vote-num-id-"+c).html(a.votenum)}else a.error&&DLEalert(a.errorinfo,dle_info)},"json")}
function doCommentsRate(a,c){ShowLoading("");$.get(dle_root+"engine/ajax/ratingcomments.php",{go_rate:a,c_id:c,skin:dle_skin,user_hash:dle_login_hash},function(a){HideLoading("");if(a.success){var b=a.rating;b=b.replace(/</g,"<");b=b.replace(/>/g,">");b=b.replace(/&/g,"&");$("#comments-ratig-layer-"+c).html(b);$("#comments-vote-num-id-"+c).html(a.votenum)}else a.error&&DLEalert(a.errorinfo,dle_info)},"json")}function ajax_cancel_reply(){$("#dlefastreplycomments").hide("blind",{},1400)}
function ajax_fast_reply(a,c){var b=$("#comments"+a).val(),d=$("#name"+a).val(),e=$("#question_answer"+a).val(),f=$("#sec_code"+a).val(),g=$("#recaptcha"+a).val(),k=$("#subscribe"+a+":checked").val(),h=$("#postid"+a).val(),l="";if(""==d||""==b)return DLEalert(dle_req_field,dle_info),!1;g&&(l=grecaptcha.getResponse(recaptcha_widget));k||(k=0);f||(f="");e||(e="");ShowLoading("");$.post(dle_root+"engine/ajax/addcomments.php",{post_id:h,parent:a,indent:c,comments:b,name:d,mail:"",editor_mode:"",skin:dle_skin,sec_code:f,question_answer:e,g_recaptcha_response:l,allow_subscribe:k,user_hash:dle_login_hash},function(b){HideLoading("");$("#blind-animation"+a).remove();$("#dlefastreplyesponse").html(b);"error"!=b&&document.getElementById("blind-animation"+a)&&($("html,body").stop().animate({scrollTop:$("#dlefastreplyesponse").offset().top-70},1100),setTimeout(function(){$("#blind-animation"+a).show("blind",{},1500);$("#dlefastreplycomments").hide("blind",{},1500)},1100))},"html");return!1}
function dle_reply(a,c,b){var d={},e="";$("#dlereplypopup").remove();"1"==b&&($("#dlefastreplycomments").remove(),$("#dlefastreplyesponse").remove());d[dle_act_lang[3]]=function(){$(this).dialog("close")};d[dle_p_send]=function(){if("1"==dle_wysiwyg||"2"==dle_wysiwyg)"2"==dle_wysiwyg&&tinyMCE.triggerSave(),e="wysiwyg";var b=$("#comments"+a).val(),d=$("#name"+a).val(),k=$("#mail"+a).val(),h=$("#question_answer"+a).val(),l=$("#sec_code"+a).val(),p=$("#recaptcha"+a).val(),m=$("#subscribe"+a+":checked").val(),q=$("#postid"+a).val(),n="";if(""==d||""==b)return DLEalert(dle_req_field,dle_info),!1;p&&(n=grecaptcha.getResponse(recaptcha_widget));m||(m=0);l||(l="");h||(h="");ShowLoading("");$.post(dle_root+"engine/ajax/addcomments.php",{post_id:q,parent:a,indent:c,comments:b,name:d,mail:k,editor_mode:e,skin:dle_skin,sec_code:l,question_answer:h,g_recaptcha_response:n,allow_subscribe:m,user_hash:dle_login_hash},function(b){HideLoading("");$("#blind-animation"+a).remove();$("#comments-tree-item-"+a).append(b);"error"!=b&&document.getElementById("blind-animation"+a)&&($("#dlereplypopup").remove(),$("html,body").stop().animate({scrollTop:$("#comments-tree-item-"+a).offset().top+$("#comments-tree-item-"+a).height()-70},1100),setTimeout(function(){$("#blind-animation"+a).show("blind",{},1500)},1100))},"html");return!1};ShowLoading("");$.get(dle_root+"engine/ajax/replycomments.php",{id:a,indent:c,skin:dle_skin,user_hash:dle_login_hash},function(c){HideLoading("");"1"==b?($("#comment-id-"+a).append(""),$("#dlefastreplycomments").html(c),$("html,body").stop().animate({scrollTop:$("#comment-id-"+a).offset().top+$("#comment-id-"+a).height()-70},1100),setTimeout(function(){$("#dlefastreplycomments").show("blind",{},1500)},1100)):($("body").append(""),$("#dlereplypopup").html(c),$("#dlereplypopup").dialog({autoOpen:!0,width:800,resizable:!1,dialogClass:"modalfixed dle-popup-replycomments",buttons:d}),$(".modalfixed.ui-dialog").css({position:"fixed"}),$("#dlereplypopup").dialog("option","position",["0","0"]))},"html");return!1}
function doAddComments(){var a=document.getElementById("dle-comments-form"),c="",b="",d="",e="",f="0",g="";if("1"==dle_wysiwyg||"2"==dle_wysiwyg)"2"==dle_wysiwyg&&tinyMCE.triggerSave(),c="wysiwyg";if(""==a.comments.value||""==a.name.value)return DLEalert(dle_req_field,dle_info),!1;a.question_answer&&(b=a.question_answer.value);a.sec_code&&(d=a.sec_code.value);"undefined"!=typeof grecaptcha&&(e=grecaptcha.getResponse());a.allow_subscribe&&1==a.allow_subscribe.checked&&(f="1");a.mail&&(g=a.mail.value);ShowLoading("");$.post(dle_root+"engine/ajax/addcomments.php",{post_id:a.post_id.value,comments:a.comments.value,name:a.name.value,mail:g,editor_mode:c,skin:dle_skin,sec_code:d,question_answer:b,g_recaptcha_response:e,allow_subscribe:f,user_hash:dle_login_hash},function(b){HideLoading("");$("#dle-ajax-comments").html(b);"error"!=b&&document.getElementById("blind-animation")&&($("html,body").stop().animate({scrollTop:$("#dle-ajax-comments").offset().top-70},1100),setTimeout(function(){$("#blind-animation").show("blind",{},1500)},1100),a.sec_code&&(a.sec_code.value="",reload()),"undefined"!=typeof grecaptcha&&grecaptcha.reset())},"html");return!1}function isHistoryApiAvailable(){return!(!window.history||!history.pushState)}
function CommentsPage(a,c,b){ShowLoading("");$.get(dle_root+"engine/ajax/comments.php",{cstart:a,news_id:c,skin:dle_skin},function(d){HideLoading("");isNaN(a)||isNaN(c)||($("#dle-comm-link").off("click"),$("#dle-comm-link").on("click",function(){CommentsPage(a,c);return!1}));scroll(0,$("#dle-comments-list").offset().top-70);$("#dle-comments-list").html(d.comments);$(".dle-comments-navigation").html(d.navigation);isHistoryApiAvailable()&&window.history.pushState(null,null,b)},"json");return!1}
function dle_copy_quote(a){dle_txt="";window.getSelection?dle_txt=window.getSelection():document.selection&&(dle_txt=document.selection.createRange().text);""!=dle_txt&&(dle_txt="[quote="+a+"]"+dle_txt+"[/quote]")}
function dle_fastreply(a){if(!document.getElementById("dle-comments-form"))return!1;var c=document.getElementById("dle-comments-form").comments,b="";"0"==dle_wysiwyg||"-1"==dle_wysiwyg?(c.value="0"==dle_wysiwyg?c.value+("[b]"+a+"[/b],\n"):c.value+(a+",\n"),c.focus()):(b=""+a+",
","1"==dle_wysiwyg?($("#comments").froalaEditor("events.focus"),$("#comments").froalaEditor("html.insert",b,!0)):tinyMCE.execCommand("mceInsertContent",!1,b));setTimeout(function(){$("html,body").stop().animate({scrollTop:$("#dle-comments-form").offset().top-
70},700)},100);return!1}
function dle_ins(a){if(!document.getElementById("dle-comments-form"))return!1;var c=document.getElementById("dle-comments-form").comments,b="";""!=dle_txt?("0"==dle_wysiwyg||"-1"==dle_wysiwyg?(c.value+=dle_txt+"\n",c.focus()):(b=dle_txt+"
","1"==dle_wysiwyg?($("#comments").froalaEditor("events.focus"),$("#comments").froalaEditor("html.insert",b,!0)):tinyMCE.execCommand("mceInsertContent",!1,b)),setTimeout(function(){$("html,body").stop().animate({scrollTop:$("#dle-comments-form").offset().top-70},700)},100)):(ShowLoading(""),$.get(dle_root+"engine/ajax/quote.php",{id:a,user_hash:dle_login_hash},function(a){HideLoading("");a=a.replace(/</g,"<");a=a.replace(/>/g,">");a=a.replace(/&/g,"&");a=a.replace(/"/g,'"');a=a.replace(/'/g,"'");a=a.replace(/'/g,"'");a=a.replace(/"/g,'"');"0"==dle_wysiwyg||"-1"==dle_wysiwyg?(c.value+=a+"\n",c.focus()):(b=a+"
","1"==dle_wysiwyg?($("#comments").froalaEditor("events.focus"),$("#comments").froalaEditor("html.insert",b,!0)):tinyMCE.execCommand("mceInsertContent",!1,b));setTimeout(function(){$("html,body").stop().animate({scrollTop:$("#dle-comments-form").offset().top-70},700)},100)}));return!1}
function ShowOrHide(a){var c=$("#"+a),b=null;document.getElementById("image-"+a)&&(b=document.getElementById("image-"+a));a=c.height()/200*1E3;3E3a&&(a=250);"none"==c.css("display")?(c.show("blind",{},a),b&&(b.src=dle_root+"templates/"+dle_skin+"/dleimages/spoiler-minus.gif")):(2E3$("#dle-promt-text").val().length)$("#dle-promt-text").addClass("ui-state-error");else{var b=$("#dle-promt-text").val();$(this).dialog("close");$("#dlepopup").remove();$.post(dle_root+"engine/ajax/message.php",{id:a,user_hash:dle_login_hash,text:b},function(b){"ok"==b?document.location=dle_root+"index.php?do=deletenews&id="+a+"&hash="+dle_login_hash:DLEalert("Send Error",dle_info)})}};$("#dlepopup").remove();$("body").append("");$("#dlepopup").dialog({autoOpen:!0,width:500,resizable:!1,dialogClass:"modalfixed dle-popup-newsdelete",buttons:b});$(".modalfixed.ui-dialog").css({position:"fixed"});$("#dlepopup").dialog("option","position",["0","0"])});c[dle_act_lang[0]]=function(){$(this).dialog("close");document.location=dle_root+"index.php?do=deletenews&id="+a+"&hash="+dle_login_hash};$("#dlepopup").remove();$("body").append("");$("#dlepopup").dialog({autoOpen:!0,width:500,resizable:!1,dialogClass:"modalfixed dle-popup-newsdelete",buttons:c});$(".modalfixed.ui-dialog").css({position:"fixed"});$("#dlepopup").dialog("option","position",["0","0"])}
function MenuNewsBuild(a,c){var b=[];b[0]="'+menu_short+"";""!=dle_admin&&(b[1]=''+menu_full+"");allow_dle_delete_news&&(b[2]="'+dle_notice+"",b[3]="'+dle_del_news+"");return b}
function sendNotice(a){var c={};c[dle_act_lang[3]]=function(){$(this).dialog("close")};c[dle_p_send]=function(){if(1>$("#dle-promt-text").val().length)$("#dle-promt-text").addClass("ui-state-error");else{var b=$("#dle-promt-text").val();$(this).dialog("close");$("#dlepopup").remove();$.post(dle_root+"engine/ajax/message.php",{id:a,user_hash:dle_login_hash,text:b,allowdelete:"no"},function(a){"ok"==a&&DLEalert(dle_p_send_ok,dle_info)})}};$("#dlepopup").remove();$("body").append("");$("#dlepopup").dialog({autoOpen:!0,width:500,resizable:!1,dialogClass:"modalfixed dle-popup-sendmessage",buttons:c});$(".modalfixed.ui-dialog").css({position:"fixed"});$("#dlepopup").dialog("option","position",["0","0"])}
function AddComplaint(a,c){var b={};b[dle_act_lang[3]]=function(){$(this).dialog("close")};b[dle_p_send]=function(){if(1>$("#dle-promt-text").val().length)$("#dle-promt-text").addClass("ui-state-error");else{var b=$("#dle-promt-text").val();$(this).dialog("close");$("#dlepopup").remove();$.post(dle_root+"engine/ajax/complaint.php",{id:a,text:b,action:c,user_hash:dle_login_hash},function(a){"ok"==a?DLEalert(dle_p_send_ok,dle_info):DLEalert(a,dle_info)})}};$("#dlepopup").remove();$("body").append("");$("#dlepopup").dialog({autoOpen:!0,width:500,resizable:!1,dialogClass:"modalfixed dle-popup-complaint",buttons:b});$(".modalfixed.ui-dialog").css({position:"fixed"});$("#dlepopup").dialog("option","position",["0","0"])}
function DLEalert(a,c){$("#dlepopup").remove();$("body").append("");$("#dlepopup").dialog({autoOpen:!0,width:470,resizable:!1,dialogClass:"modalfixed dle-popup-alert",buttons:{Ok:function(){$(this).dialog("close");$("#dlepopup").remove()}}});$(".modalfixed.ui-dialog").css({position:"fixed"});$("#dlepopup").dialog("option","position",["0","0"])}
function DLEconfirm(a,c,b){var d={};d[dle_act_lang[1]]=function(){$(this).dialog("close");$("#dlepopup").remove()};d[dle_act_lang[0]]=function(){$(this).dialog("close");$("#dlepopup").remove();b&&b()};$("#dlepopup").remove();$("body").append("");$("#dlepopup").dialog({autoOpen:!0,width:500,resizable:!1,dialogClass:"modalfixed dle-popup-confirm",buttons:d});$(".modalfixed.ui-dialog").css({position:"fixed"});$("#dlepopup").dialog("option","position",["0","0"])}
function DLEprompt(a,c,b,d,e){var f={};f[dle_act_lang[3]]=function(){$(this).dialog("close")};f[dle_act_lang[2]]=function(){if(!e&&1>$("#dle-promt-text").val().length)$("#dle-promt-text").addClass("ui-state-error");else{var a=$("#dle-promt-text").val();$(this).dialog("close");$("#dlepopup").remove();d&&d(a)}};$("#dlepopup").remove();$("body").append("");$("#dlepopup").dialog({autoOpen:!0,width:500,resizable:!1,dialogClass:"modalfixed dle-popup-promt",buttons:f});$(".modalfixed.ui-dialog").css({position:"fixed"});$("#dlepopup").dialog("option","position",["0","0"]);0');$("#modal-overlay").css({filter:"alpha(opacity=40)"}).fadeIn("slow");$("#dleuserpopup").remove();$("body").append("");a[dle_act_lang[3]]=function(){$(this).dialog("close");$("#dleuserpopup").remove()};a[dle_act_lang[5]]=function(){window.frames.edituserframe.confirmDelete(dle_login_hash)};a[dle_act_lang[4]]=function(){document.getElementById("edituserframe").contentWindow.document.getElementById("saveuserform").submit()};$("#dleuserpopup").dialog({autoOpen:!0,show:"fade",width:700,resizable:!1,dialogClass:"modalfixed dle-popup-userprofileadmin",buttons:a,open:function(a,b){$("#dleuserpopup").html("")},beforeClose:function(a,b){$("#dleuserpopup").html("")},close:function(a,b){$("#modal-overlay").fadeOut("slow",function(){$("#modal-overlay").remove()})}});830<$(window).width()&&530<$(window).height()&&($(".modalfixed.ui-dialog").css({position:"fixed"}),$("#dleuserpopup").dialog("option","position",["0","0"]))});$("#dleprofilepopup").remove();$("body").append(a);$("#dleprofilepopup").dialog({autoOpen:!0,show:"fade",hide:"fade",resizable:!1,dialogClass:"dle-popup-userprofile",buttons:b,width:550});return!1}
function ShowProfile(a,c,b){if(dle_user_profile==a&&document.getElementById("dleprofilepopup"))return $("#dleprofilepopup").dialog("open"),!1;dle_user_profile=a;dle_user_profile_link=c;ShowLoading("");$.get(dle_root+"engine/ajax/profile.php",{name:a,skin:dle_skin,user_hash:dle_login_hash},function(a){HideLoading("");ShowPopupProfile(a,b)});return!1}
function FastSearch(){$("#story").attr("autocomplete","off");$("#story").blur(function(){$("#searchsuggestions").fadeOut()});$("#story").keyup(function(){var a=$(this).val();0==a.length?$("#searchsuggestions").fadeOut():dle_search_value!=a&&3");$.post(dle_root+"engine/ajax/search.php",{query:""+a+"",user_hash:dle_login_hash},function(a){$("#searchsuggestions").html(a).fadeIn().css({position:"absolute",top:0,left:0}).position({my:"left top",at:"left bottom",of:"#story",collision:"fit flip"})});dle_search_value=a}
function ShowLoading(a){$("#loading-layer").remove();$("body").append("");a?$("#loading-layer").html(a):$("#loading-layer").html(dle_act_lang[6]);a=($(window).width()-$("#loading-layer").width())/2;var c=($(window).height()-$("#loading-layer").height())/2;$("#loading-layer").css({left:a+"px",top:c+"px",position:"fixed",zIndex:"99"});$("#loading-layer").fadeTo("slow",.6)}
function HideLoading(a){$("#loading-layer").fadeOut("slow",function(){$("#loading-layer").remove()})}
function ShowAllVotes(){if(document.getElementById("dlevotespopup"))return $("#dlevotespopup").dialog("open"),!1;$.ajaxSetup({cache:!1});ShowLoading("");$.get(dle_root+"engine/ajax/allvotes.php?dle_skin="+dle_skin,function(a){HideLoading("");$("#dlevotespopup").remove();$("body").append(a);$(".dlevotebutton").button();$("#dlevotespopup").dialog({autoOpen:!0,show:"fade",hide:"fade",resizable:!1,dialogClass:"dle-popup-allvotes",width:600});400<$("#dlevotespopupcontent").height()&&$("#dlevotespopupcontent").height(400);$("#dlevotespopup").dialog("option","height",$("#dlevotespopupcontent").height()+60);$("#dlevotespopup").dialog("option","position","center")});return!1}
function fast_vote(a){var c=$("#vote_"+a+" input:radio[name=vote_check]:checked").val();ShowLoading("");$.get(dle_root+"engine/ajax/vote.php",{vote_id:a,vote_action:"vote",vote_mode:"fast_vote",vote_check:c,vote_skin:dle_skin,user_hash:dle_login_hash},function(b){HideLoading("");$("#dle-vote_list-"+a).fadeOut(500,function(){$(this).html(b);$(this).fadeIn(500)})});return!1}
function AddIgnorePM(a,c){DLEconfirm(c,dle_confirm,function(){ShowLoading("");$.get(dle_root+"engine/ajax/pm.php",{id:a,action:"add_ignore",skin:dle_skin,user_hash:dle_login_hash},function(a){HideLoading("");DLEalert(a,dle_info);return!1})})}
function DelIgnorePM(a,c){DLEconfirm(c,dle_confirm,function(){ShowLoading("");$.get(dle_root+"engine/ajax/pm.php",{id:a,action:"del_ignore",skin:dle_skin,user_hash:dle_login_hash},function(b){HideLoading("");$("#dle-ignore-list-"+a).html("");DLEalert(b,dle_info);return!1})})}
function subscribe(a){DLEconfirm(dle_sub_agree,dle_confirm,function(){ShowLoading("");$.get(dle_root+"engine/ajax/commentssubscribe.php",{news_id:a,skin:dle_skin,user_hash:dle_login_hash},function(a){HideLoading("");a.success?DLEalert(a.info,dle_info):a.error&&DLEalert(a.errorinfo,dle_info)},"json")});return!1}
function media_upload(a,c,b,d){var e=(new Date).getTime(),f="none";$("#mediaupload").remove();$("body").append("");$("#mediaupload").dialog({autoOpen:!0,width:710,resizable:!1,dialogClass:"modalfixed dle-popup-upload",open:function(f,k){$("#mediaupload").html("");$(".ui-dialog").draggable("option","containment","")},dragStart:function(a,b){f=$(".modalfixed").css("box-shadow");$(".modalfixed").fadeTo(0,.6).css("box-shadow","none");$("#mediaupload").css("visibility","hidden")},dragStop:function(a,b){$(".modalfixed").fadeTo(0,1).css("box-shadow",f);$("#mediaupload").css("visibility","visible")},beforeClose:function(a,b){$("#mediaupload").html("")}});830<$(window).width()&&530<$(window).height()&&($(".modalfixed.ui-dialog").css({position:"fixed"}),$("#mediaupload").dialog("option","position",["0","0"]));return!1}
function dropdownmenu(a,c,b,d){window.event?event.cancelBubble=!0:c.stopPropagation&&c.stopPropagation();c=$("#dropmenudiv");if(c.is(":visible"))return clearhidemenu(),c.fadeOut("fast"),!1;c.remove();$("body").append('');c=$("#dropmenudiv");c.html(b.join(""));d&&c.width(d);b=$(document).width()-30;d=$(a).offset();b-d.lefta("#dle-promt-text").val().length)a("#dle-promt-text").addClass("ui-state-error");else{var b=a("#dle-promt-text").val(),c=a("#orfom").text();a(this).dialog("close");a("#dlepopup").remove();a.post(dle_root+"engine/ajax/complaint.php",{seltext:c,text:b,user_hash:dle_login_hash,action:"orfo",url:window.location.href},function(a){"ok"==a?DLEalert(dle_p_send_ok,dle_info):DLEalert(a,dle_info)})}};a("#dlepopup").remove();a("body").append("");a("#dlepopup").dialog({autoOpen:!0,width:600,resizable:!1,dialogClass:"modalfixed dle-popup-complaint",buttons:b});a(".modalfixed.ui-dialog").css({position:"fixed"});a("#dlepopup").dialog("option","position",["0","0"])}});a("img[data-maxwidth]").each(function(){var b=a(this).width(),d=a(this).data("maxwidth");b>d&&(a(this).width(d),a(this).wrap(''),"undefined"==typeof hs&&0==c&&(c=!0,a.getScript(dle_root+"engine/classes/highslide/highslide.js",function(){hs.graphicsDir=dle_root+"engine/classes/highslide/graphics/";hs.numberOfImagesToPreload=0;hs.captionEval="this.thumb.alt";hs.showCredits=!1;hs.align="center";hs.transitions=["expand","crossfade"]})))})});;if(!hs){var hs={lang:{cssDirection:"ltr",loadingText:"Loading...",loadingTitle:"Click to cancel",focusTitle:"Click to bring to front",fullExpandTitle:"Expand to actual size (f)",creditsText:"Powered by Highslide JS",creditsTitle:"Go to the Highslide JS homepage",previousText:"Previous",nextText:"Next",moveText:"Move",closeText:"Close",closeTitle:"Close (esc)",resizeTitle:"Resize",playText:"Play",playTitle:"Play slideshow (spacebar)",pauseText:"Pause",pauseTitle:"Pause slideshow (spacebar)",previousTitle:"Previous (arrow left)",nextTitle:"Next (arrow right)",moveTitle:"Move",fullExpandText:"1:1",number:"Image %1 of %2",restoreTitle:"Click to close image, click and drag to move. Use arrow keys for next and previous."},graphicsDir:"highslide/graphics/",expandCursor:"zoomin.cur",restoreCursor:"zoomout.cur",expandDuration:250,restoreDuration:250,marginLeft:15,marginRight:15,marginTop:15,marginBottom:15,zIndexCounter:1001,loadingOpacity:.75,allowMultipleInstances:!0,outlineWhileAnimating:2,outlineStartOffset:3,padToMinWidth:!1,fullExpandPosition:"bottom right",fullExpandOpacity:1,showCredits:!0,creditsHref:"http://highslide.com/",creditsTarget:"_self",enableKeyListener:!0,openerTagNames:["a"],transitions:[],transitionDuration:250,dimmingOpacity:0,dimmingDuration:50,anchor:"auto",align:"auto",targetX:null,targetY:null,dragByHeading:!0,minWidth:200,minHeight:200,allowSizeReduction:!0,outlineType:"drop-shadow",skin:{controls:''},expanders:[],overrides:"allowSizeReduction useBox anchor align targetX targetY outlineType outlineWhileAnimating captionId captionText captionEval captionOverlay headingId headingText headingEval headingOverlay creditsPosition dragByHeading autoplay numberPosition transitions dimmingOpacity width height wrapperClassName minWidth minHeight maxWidth maxHeight pageOrigin slideshowGroup easing easingClose fadeInOut src".split(" "),overlays:[],idCounter:0,oPos:{x:["leftpanel","left","center","right","rightpanel"],y:["above","top","middle","bottom","below"]},mouse:{},headingOverlay:{},captionOverlay:{},timers:[],slideshows:[],pendingOutlines:{},clones:{},onReady:[],uaVersion:/Trident\/4\.0/.test(navigator.userAgent)?8:parseFloat((navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1]),ie:document.all&&!window.opera,safari:/Safari/.test(navigator.userAgent),geckoMac:/Macintosh.+rv:1\.[0-8].+Gecko/.test(navigator.userAgent),$:function(a){if(a)return document.getElementById(a)},push:function(a,b){a[a.length]=b},createElement:function(a,b,c,d,e){a=document.createElement(a);b&&hs.extend(a,b);e&&hs.setStyles(a,{padding:0,border:"none",margin:0});c&&hs.setStyles(a,c);d&&d.appendChild(a);return a},extend:function(a,b){for(var c in b)a[c]=b[c];return a},setStyles:function(a,b){for(var c in b)hs.ieLt9&&"opacity"==c?.99hs.uaVersion||"undefined"==typeof pageXOffset);hs.page={width:c?b.clientWidth:a.documentElement.clientWidth||self.innerWidth,height:c?b.clientHeight:self.innerHeight,scrollLeft:c?b.scrollLeft:pageXOffset,scrollTop:c?b.scrollTop:pageYOffset};return hs.page},getPosition:function(a){for(var b={x:a.offsetLeft,y:a.offsetTop};a.offsetParent;)a=a.offsetParent,b.x+=a.offsetLeft,b.y+=a.offsetTop,a!=document.body&&a!=document.documentElement&&(b.x-=a.scrollLeft,b.y-=a.scrollTop);return b},expand:function(a,b,c,d){a||(a=hs.createElement("a",null,{display:"none"},hs.container));if("function"==typeof a.getParams)return b;try{return new hs.Expander(a,b,c),!1}catch(e){return!0}},getElementByClass:function(a,b,c){a=a.getElementsByTagName(b);for(b=0;ba&&(a=d,b=e);-1==b?hs.focusKey=-1:c[b].focus()},getParam:function(a,b){a.getParams=a.onclick;var c=a.getParams?a.getParams():null;a.getParams=null;return c&&"undefined"!=typeof c[b]?c[b]:"undefined"!=typeof hs[b]?hs[b]:null},getSrc:function(a){var b=hs.getParam(a,"src");return b?b:a.href},getNode:function(a){var b=hs.$(a),c=hs.clones[a];if(!b&&!c)return null;if(c)return c.cloneNode(!0);c=b.cloneNode(!0);c.id="";hs.clones[a]=c;return b},discardElement:function(a){a&&hs.garbageBin.appendChild(a);hs.garbageBin.innerHTML=""},dim:function(a){if(!hs.dimmer&&(b=!0,hs.dimmer=hs.createElement("div",{className:"highslide-dimming highslide-viewport-size",owner:"",onclick:function(){hs.close()}},{visibility:"visible",opacity:0},hs.container,!0),/(Android|iPad|iPhone|iPod)/.test(navigator.userAgent))){var b=function(){hs.setStyles(hs.dimmer,{width:c.scrollWidth+"px",height:c.scrollHeight+"px"})},c=document.body;b();hs.addEventListener(window,"resize",b)}hs.dimmer.style.display="";var b=""==hs.dimmer.owner;hs.dimmer.owner+="|"+a.key;b&&(hs.geckoMac&&hs.dimmingGeckoFix?hs.setStyles(hs.dimmer,{background:"url("+hs.graphicsDir+"geckodimmer.png)",opacity:1}):hs.animate(hs.dimmer,{opacity:a.dimmingOpacity},hs.dimmingDuration))},undim:function(a){hs.dimmer&&("undefined"!=typeof a&&(hs.dimmer.owner=hs.dimmer.owner.replace("|"+
a,"")),"undefined"!=typeof a&&""!=hs.dimmer.owner||hs.upcoming&&hs.getParam(hs.upcoming,"dimmingOpacity")||(hs.geckoMac&&hs.dimmingGeckoFix?hs.dimmer.style.display="none":hs.animate(hs.dimmer,{opacity:0},hs.dimmingDuration,null,function(){hs.dimmer.style.display="none"})))},transit:function(a,b){var c=b||hs.getExpander();b=c;if(hs.upcoming)return!1;hs.last=c;hs.removeEventListener(document,window.opera?"keypress":"keydown",hs.keyHandler);try{hs.upcoming=a,a.onclick()}catch(d){hs.last=hs.upcoming=null}try{a&&"crossfade"==b.transitions[1]||b.close()}catch(d){}return!1},previousOrNext:function(a,b){var c=hs.getExpander(a);return c?hs.transit(c.getAdjacentAnchor(b),c):!1},previous:function(a){return hs.previousOrNext(a,-1)},next:function(a){return hs.previousOrNext(a,1)},keyHandler:function(a){a||(a=window.event);a.target||(a.target=a.srcElement);if("undefined"!=typeof a.target.form)return!0;var b=hs.getExpander(),c=null;switch(a.keyCode){case 70:return b&&b.doFullExpand(),!0;case 32:c=2;break;case 34:case 39:case 40:c=1;break;case 8:case 33:case 37:case 38:c=-1;break;case 27:case 13:c=0}if(null!==c){2!=c&&hs.removeEventListener(document,window.opera?"keypress":"keydown",hs.keyHandler);if(!hs.enableKeyListener)return!0;a.preventDefault?a.preventDefault():a.returnValue=!1;if(b)return 0==c?b.close():2==c?b.slideshow&&b.slideshow.hitSpace():(b.slideshow&&b.slideshow.pause(),hs.previousOrNext(b.key,c)),!1}return!0},registerOverlay:function(a){hs.push(hs.overlays,hs.extend(a,{hsId:"hsId"+hs.idCounter++}))},addSlideshow:function(a){var b=a.slideshowGroup;if("object"==typeof b)for(var c=0;c(hs.dragSensitivity||5));b.hasDragged&&5hs.uaVersion;hs.ieLt9=hs.ie&&9>hs.uaVersion;hs.getPageSize();for(var a in hs.langDefaults)"undefined"!=typeof hs[a]?hs.lang[a]=hs[a]:"undefined"==typeof hs.lang[a]&&"undefined"!=typeof hs.langDefaults[a]&&(hs.lang[a]=hs.langDefaults[a]);hs.container=hs.createElement("div",{className:"highslide-container"},{position:"absolute",left:0,top:0,width:"100%",zIndex:hs.zIndexCounter,direction:"ltr"},document.body,!0);hs.loading=hs.createElement("a",{className:"highslide-loading",title:hs.lang.loadingTitle,innerHTML:hs.lang.loadingText,href:"javascript:;"},{position:"absolute",top:"-9999px",opacity:hs.loadingOpacity,zIndex:1},hs.container);hs.garbageBin=hs.createElement("div",null,{display:"none"},hs.container);hs.viewport=hs.createElement("div",{className:"highslide-viewport highslide-viewport-size"},{visibility:hs.safari&&525>hs.uaVersion?"visible":"hidden"},hs.container,1);Math.linearTween=function(a,c,d,e){return d*a/e+c};Math.easeInQuad=function(a,c,d,e){return d*(a/=e)*a+c}}},ready:function(){if(!hs.isReady){hs.isReady=!0;for(var a=0;a=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();a=this.options.curAnim[this.prop]=!0;for(var c in this.options.curAnim)!0!==this.options.curAnim[c]&&(a=!1);a&&this.options.complete&&this.options.complete.call(this.elem);return!1}c=b-this.startTime;this.state=c/this.options.duration;this.pos=this.options.easing(c,0,1,this.options.duration);this.now=this.start+
(this.end-this.start)*this.pos;this.update();return!0}};hs.extend(hs.fx,{step:{opacity:function(a){hs.setStyles(a.elem,{opacity:a.now})},_default:function(a){try{a.elem.style&&null!=a.elem.style[a.prop]?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}catch(b){}}}});hs.Outline=function(a,b){this.onLoad=b;this.outlineType=a;var c;this.hasAlphaImageLoader=hs.ie&&7>hs.uaVersion;if(a){hs.init();this.table=hs.createElement("table",{cellSpacing:0},{visibility:"hidden",position:"absolute",borderCollapse:"collapse",width:0},hs.container,!0);var d=hs.createElement("tbody",null,null,this.table,1);this.td=[];for(var e=0;8>=e;e++)0==e%3&&(c=hs.createElement("tr",null,{height:"auto"},d,!0)),this.td[e]=hs.createElement("td",null,null,c,!0),hs.setStyles(this.td[e],4!=e?{lineHeight:0,fontSize:0}:{position:"relative"});this.td[4].className=a+" highslide-outline";this.preloadGraphic()}else b&&b()};hs.Outline.prototype={preloadGraphic:function(){var a=hs.graphicsDir+(hs.outlinesDir||"outlines/")+this.outlineType+".png";this.graphic=hs.createElement("img",null,{position:"absolute",top:"-9999px"},hs.safari&&525>hs.uaVersion?hs.container:null,!0);var b=this;this.graphic.onload=function(){b.onGraphicLoad()};this.graphic.src=a},onGraphicLoad:function(){for(var a=this.offset=this.graphic.width/4,b=[[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],c={height:2*a+"px",width:2*a+"px"},d=0;8>=d;d++)if(b[d]){if(this.hasAlphaImageLoader){var e=1==d||7==d?"100%":this.graphic.width+"px",f=hs.createElement("div",null,{width:"100%",height:"100%",position:"relative",overflow:"hidden"},this.td[d],!0);hs.createElement("div",null,{filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale, src='"+this.graphic.src+"')",position:"absolute",width:e,height:this.graphic.height+"px",left:b[d][0]*a+"px",top:b[d][1]*a+"px"},f,!0)}else hs.setStyles(this.td[d],{background:"url("+this.graphic.src+") "+b[d][0]*a+"px "+b[d][1]*a+"px"});!window.opera||3!=d&&5!=d||hs.createElement("div",null,c,this.td[d],!0);hs.setStyles(this.td[d],c)}this.graphic=null;hs.pendingOutlines[this.outlineType]&&hs.pendingOutlines[this.outlineType].destroy();hs.pendingOutlines[this.outlineType]=this;if(this.onLoad)this.onLoad()},setPosition:function(a,b,c,d,e){d=this.exp;b=b||0;a=a||{x:d.x.pos+b,y:d.y.pos+b,w:d.x.get("wsize")-2*b,h:d.y.get("wsize")-2*b};c&&(this.table.style.visibility=a.h>=4*this.offset?"visible":"hidden");hs.setStyles(this.table,{left:a.x-this.offset+"px",top:a.y-this.offset+"px",width:a.w+2*this.offset+"px"});a.w-=2*this.offset;a.h-=2*this.offset;hs.setStyles(this.td[4],{width:0<=a.w?a.w+"px":0,height:0<=a.h?a.h+"px":0});this.hasAlphaImageLoader&&(this.td[3].style.height=this.td[5].style.height=this.td[4].style.height)},destroy:function(a){a?this.table.style.visibility="hidden":hs.discardElement(this.table)}};hs.Dimension=function(a,b){this.exp=a;this.dim=b;this.ucwh="x"==b?"Width":"Height";this.wh=this.ucwh.toLowerCase();this.uclt="x"==b?"Left":"Top";this.lt=this.uclt.toLowerCase();this.ucrb="x"==b?"Right":"Bottom";this.rb=this.ucrb.toLowerCase();this.p1=this.p2=0};hs.Dimension.prototype={get:function(a){switch(a){case"loadingPos":return this.tpos+this.tb+(this.t-hs.loading["offset"+this.ucwh])/2;case"loadingPosXfade":return this.pos+this.cb+this.p1+(this.size-hs.loading["offset"+this.ucwh])/2;case"wsize":return this.size+2*this.cb+this.p1+this.p2;case"fitsize":return this.clientSize-this.marginMin-this.marginMax;case"maxsize":return this.get("fitsize")-2*this.cb-this.p1-this.p2;case"opos":return this.pos-(this.exp.outline?this.exp.outline.offset:0);case"osize":return this.get("wsize")+(this.exp.outline?2*this.exp.outline.offset:0);case"imgPad":return this.imgSize?Math.round((this.size-this.imgSize)/2):0}},calcBorders:function(){this.cb=(this.exp.content["offset"+this.ucwh]-this.t)/2;this.marginMax=hs["margin"+this.ucrb]},calcThumb:function(){this.t=this.exp.el[this.wh]?parseInt(this.exp.el[this.wh]):this.exp.el["offset"+this.ucwh];this.tpos=this.exp.tpos[this.dim];this.tb=(this.exp.el["offset"+this.ucwh]-this.t)/2;if(0==this.tpos||-1==this.tpos)this.tpos=hs.page[this.wh]/2+hs.page["scroll"+this.uclt]},calcExpanded:function(){var a=this.exp;this.justify="auto";"center"==a.align?this.justify="center":(new RegExp(this.lt)).test(a.anchor)?this.justify=null:(new RegExp(this.rb)).test(a.anchor)&&(this.justify="max");this.pos=this.tpos-this.cb+this.tb;this.maxHeight&&"x"==this.dim&&(a.maxWidth=Math.min(a.maxWidth||this.full,a.maxHeight*this.full/a.y.full));this.size=Math.min(this.full,a["max"+this.ucwh]||this.full);this.minSize=a.allowSizeReduction?Math.min(a["min"+this.ucwh],this.full):this.full;a.isImage&&a.useBox&&(this.size=a[this.wh],this.imgSize=this.full);"x"==this.dim&&hs.padToMinWidth&&(this.minSize=a.minWidth);this.target=a["target"+this.dim.toUpperCase()];this.marginMin=hs["margin"+this.uclt];this.scroll=hs.page["scroll"+this.uclt];this.clientSize=hs.page[this.wh]},setSize:function(a){var b=this.exp;b.isImage&&(b.useBox||hs.padToMinWidth)?(this.imgSize=a,this.size=Math.max(this.size,this.imgSize),b.content.style[this.lt]=this.get("imgPad")+"px"):this.size=a;b.content.style[this.wh]=a+"px";b.wrapper.style[this.wh]=this.get("wsize")+"px";b.outline&&b.outline.setPosition();"x"==this.dim&&b.overlayBox&&b.sizeOverlayBox(!0);"x"==this.dim&&b.slideshow&&b.isImage&&(a==this.full?b.slideshow.disable("full-expand"):b.slideshow.enable("full-expand"))},setPos:function(a){this.pos=a;this.exp.wrapper.style[this.lt]=a+"px";this.exp.outline&&this.exp.outline.setPosition()}};hs.Expander=function(a,b,c,d){if(document.readyState&&hs.ie&&!hs.isReady)hs.addEventListener(document,"ready",function(){new hs.Expander(a,b,c,d)});else{this.a=a;this.custom=c;this.contentType=d||"image";this.isImage=!this.isHtml;this.overlays=[];this.last=hs.last;hs.last=null;hs.init();for(var e=this.key=hs.expanders.length,f=0;fhs.uaVersion&&hs.container.appendChild(b);hs.ie&&hs.flushImgSize&&(b.src=null);b.src=this.src;this.showLoading()},contentLoaded:function(){try{if(this.content&&(this.content.onload=null,!this.onLoadStarted)){this.onLoadStarted=!0;var a=this.x,b=this.y;this.loading&&(hs.setStyles(this.loading,{top:"-9999px"}),this.loading=null);a.full=this.content.width;b.full=this.content.height;hs.setStyles(this.content,{width:a.t+"px",height:b.t+"px"});this.wrapper.appendChild(this.content);hs.container.appendChild(this.wrapper);a.calcBorders();b.calcBorders();hs.setStyles(this.wrapper,{left:a.tpos+a.tb-a.cb+"px",top:b.tpos+a.tb-b.cb+"px"});this.initSlideshow();this.getOverlays();var c=a.full/b.full;a.calcExpanded();this.justify(a);b.calcExpanded();this.justify(b);this.overlayBox&&this.sizeOverlayBox(0,1);if(this.allowSizeReduction){this.correctRatio(c);var d=this.slideshow;if(d&&this.last&&d.controls&&d.fixedControls){var e=d.overlayOptions.position||"",f,g;for(g in hs.oPos)for(a=0;5>a;a++)f=this[g],e.match(hs.oPos[g][a])&&(f.pos=this.last[g].pos+(this.last[g].p1-f.p1)+(this.last[g].size-f.size)*[0,0,.5,1,1][a],"fit"==d.fixedControls&&(f.pos+f.size+f.p1+f.p2>f.scroll+f.clientSize-f.marginMax&&(f.pos=f.scroll+f.clientSize-f.size-f.marginMin-f.marginMax-f.p1-f.p2),f.pos(this.x.imgSize||this.x.size)&&(this.createFullExpand(),1==this.overlays.length&&this.sizeOverlayBox())}this.show()}}catch(k){this.error(k)}},justify:function(a,b){var c,d=a.target,e=a==this.x?"x":"y";d&&d.match(/ /)&&(c=d.split(" "),d=c[0]);if(d&&hs.$(d))a.pos=hs.getPosition(hs.$(d))[e],c&&c[1]&&c[1].match(/^[-]?[0-9]+px$/)&&(a.pos+=parseInt(c[1])),a.sizea.scroll+a.clientSize-a.marginMax&&(!b&&c&&f?a.size=Math.min(a.size,a.get("y"==e?"fitsize":"maxsize")):a.get("wsize")a?(e=f*a,ethis.minHeight&&c.size>this.minWidth&&d.get("wsize")>d.get("fitsize");)d.size-=10,a&&(c.size=d.size*a),this.sizeOverlayBox(0,1),b=!0;return b},show:function(){var a=this.x,b=this.y;this.changeSize(1,{wrapper:{width:a.get("wsize"),height:b.get("wsize"),left:a.pos,top:b.pos},content:{left:a.p1+a.get("imgPad"),top:b.p1+b.get("imgPad"),width:a.imgSize||a.size,height:b.imgSize||b.size}},hs.expandDuration)},changeSize:function(a,b,c){var d=this.transitions,e=a?this.last?this.last.a:null:hs.upcoming,d=d[1]&&e&&hs.getParam(e,"transitions")[1]==d[1]?d[1]:d[0];if(this[d]&&"expand"!=d)this[d](a,b);else{this.outline&&!this.outlineWhileAnimating&&(a?this.outline.setPosition():this.outline.destroy());a||this.destroyOverlays();var f=this,g=f.x,k=f.y,d=this.easing;a||(d=this.easingClose||d);e=a?function(){f.outline&&(f.outline.table.style.visibility="visible");setTimeout(function(){f.afterExpand()},50)}:function(){f.afterClose()};a&&hs.setStyles(this.wrapper,{width:g.t+"px",height:k.t+"px"});this.fadeInOut&&(hs.setStyles(this.wrapper,{opacity:a?0:1}),hs.extend(b.wrapper,{opacity:a}));hs.animate(this.wrapper,b.wrapper,{duration:c,easing:d,step:function(b,c){if(f.outline&&f.outlineWhileAnimating&&"top"==c.prop){var d=a?c.pos:1-c.pos,d={w:g.t+(g.get("wsize")-g.t)*d,h:k.t+(k.get("wsize")-k.t)*d,x:g.tpos+(g.pos-g.tpos)*d,y:k.tpos+(k.pos-k.tpos)*d};f.outline.setPosition(d,0,1)}}});hs.animate(this.content,b.content,c,d,e);a&&(this.wrapper.style.visibility="visible",this.content.style.visibility="visible",this.a.className+=" highslide-active-anchor")}},fade:function(a,b){this.outlineWhileAnimating=!1;var c=this,d=a?hs.expandDuration:0;a&&(hs.animate(this.wrapper,b.wrapper,0),hs.setStyles(this.wrapper,{opacity:0,visibility:"visible"}),hs.animate(this.content,b.content,0),this.content.style.visibility="visible",hs.animate(this.wrapper,{opacity:1},d,null,function(){c.afterExpand()}));if(this.outline){this.outline.table.style.zIndex=this.wrapper.style.zIndex;for(var e=a||-1,f=this.outline.offset,g=a?3:f,k=a?f:3,l=g;e*l<=e*k;l+=e,d+=25)(function(){var b=a?k-l:g-l;setTimeout(function(){c.outline.setPosition(0,b,1)},d)})()}a||setTimeout(function(){c.outline&&c.outline.destroy(c.preserveContent);c.destroyOverlays();hs.animate(c.wrapper,{opacity:0},hs.restoreDuration,null,function(){c.afterClose()})},d)},crossfade:function(a,b,c){if(a){var d=this,e=this.last,f=this.x,g=this.y,k=e.x,l=e.y,r=this.wrapper,u=this.content,m=this.overlayBox;hs.removeEventListener(document,"mousemove",hs.dragHandler);hs.setStyles(u,{width:(f.imgSize||f.size)+"px",height:(g.imgSize||g.size)+"px"});m&&(m.style.overflow="visible");if(this.outline=e.outline)this.outline.exp=d;e.outline=null;var t=hs.createElement("div",{className:"highslide-"+this.contentType},{position:"absolute",zIndex:4,overflow:"hidden",display:"none"});a={oldImg:e,newImg:this};for(var n in a)this[n]=a[n].content.cloneNode(1),hs.setStyles(this[n],{position:"absolute",border:0,visibility:"visible"}),t.appendChild(this[n]);r.appendChild(t);m&&(m.className="",r.appendChild(m));t.style.display="";e.content.style.display="none";hs.safari&&525>hs.uaVersion&&(this.wrapper.style.visibility="visible");hs.animate(r,{width:f.size},{duration:hs.transitionDuration,step:function(a,b){var c=b.pos,q=1-c,p,h={},n=["pos","size","p1","p2"],v;for(v in n)p=n[v],h["x"+p]=Math.round(q*k[p]+c*f[p]),h["y"+p]=Math.round(q*l[p]+c*g[p]),h.ximgSize=Math.round(q*(k.imgSize||k.size)+c*(f.imgSize||f.size)),h.ximgPad=Math.round(q*k.get("imgPad")+c*f.get("imgPad")),h.yimgSize=Math.round(q*(l.imgSize||l.size)+c*(g.imgSize||g.size)),h.yimgPad=Math.round(q*l.get("imgPad")+c*g.get("imgPad"));d.outline&&d.outline.setPosition({x:h.xpos,y:h.ypos,w:h.xsize+h.xp1+h.xp2+2*f.cb,h:h.ysize+h.yp1+h.yp2+2*g.cb});e.wrapper.style.clip="rect("+(h.ypos-l.pos)+"px, "+(h.xsize+h.xp1+h.xp2+h.xpos+2*k.cb-k.pos)+"px, "+(h.ysize+h.yp1+h.yp2+h.ypos+2*l.cb-l.pos)+"px, "+(h.xpos-k.pos)+"px)";hs.setStyles(u,{top:h.yp1+g.get("imgPad")+"px",left:h.xp1+f.get("imgPad")+"px",marginTop:g.pos-h.ypos+"px",marginLeft:f.pos-h.xpos+"px"});hs.setStyles(r,{top:h.ypos+"px",left:h.xpos+"px",width:h.xp1+h.xp2+h.xsize+2*f.cb+"px",height:h.yp1+h.yp2+h.ysize+2*g.cb+"px"});hs.setStyles(t,{width:(h.ximgSize||h.xsize)+"px",height:(h.yimgSize||h.ysize)+"px",left:h.xp1+
h.ximgPad+"px",top:h.yp1+h.yimgPad+"px",visibility:"visible"});hs.setStyles(d.oldImg,{top:l.pos-h.ypos+l.p1-h.yp1+l.get("imgPad")-h.yimgPad+"px",left:k.pos-h.xpos+k.p1-h.xp1+k.get("imgPad")-h.ximgPad+"px"});hs.setStyles(d.newImg,{opacity:c,top:g.pos-h.ypos+g.p1-h.yp1+g.get("imgPad")-h.yimgPad+"px",left:f.pos-h.xpos+f.p1-h.xp1+f.get("imgPad")-h.ximgPad+"px"});m&&hs.setStyles(m,{width:h.xsize+"px",height:h.ysize+"px",left:h.xp1+f.cb+"px",top:h.yp1+g.cb+"px"})},complete:function(){r.style.visibility=u.style.visibility="visible";u.style.display="block";hs.discardElement(t);d.afterExpand();e.afterClose();d.last=null}})}},reuseOverlay:function(a,b){if(!this.last)return!1;for(var c=0;c'+a+""+this[this.numberPosition].innerHTML)}},initSlideshow:function(){if(this.last)this.slideshow=this.last.slideshow;else for(var a=0;ahs.uaVersion&&(hs.styleRestoreCursor="hand"),this.content.style.cursor=hs.styleRestoreCursor);hs.focusKey=this.key;hs.addEventListener(document,window.opera?"keypress":"keydown",hs.keyHandler)},moveTo:function(a,b){this.x.setPos(a);this.y.setPos(b)},resize:function(a){var b,c=a.width/a.height;a=Math.max(a.width+a.dX,Math.min(this.minWidth,this.x.full));this.isImage&&12>Math.abs(a-this.x.full)&&(a=this.x.full);b=a/c;ba.parentNode.offsetWidth&&(a.style.width="100%")):a.parentNode!=this.overlayBox&&this.overlayBox.appendChild(a);/left$/.test(b)&&(a.style.left=d+"px");/center$/.test(b)&&hs.setStyles(a,{left:"50%",marginLeft:d-Math.round(a.offsetWidth/2)+"px"});/right$/.test(b)&&(a.style.right=-d+"px");/^leftpanel$/.test(b)?(hs.setStyles(a,{right:"100%",marginRight:this.x.cb+"px",top:-this.y.cb+"px",bottom:-this.y.cb+"px",overflow:"auto"}),this.x.p1=a.offsetWidth):/^rightpanel$/.test(b)&&(hs.setStyles(a,{left:"100%",marginLeft:this.x.cb+"px",top:-this.y.cb+"px",bottom:-this.y.cb+"px",overflow:"auto"}),this.x.p2=a.offsetWidth);d=a.parentNode.offsetHeight;a.style.height="auto";c&&a.offsetHeight>d&&(a.style.height=hs.ieLt7?d+"px":"100%");/^top/.test(b)&&(a.style.top=e+"px");/^middle/.test(b)&&hs.setStyles(a,{top:"50%",marginTop:e-Math.round(a.offsetHeight/2)+"px"});/^bottom/.test(b)&&(a.style.bottom=-e+"px");/^above$/.test(b)?(hs.setStyles(a,{left:-this.x.p1-this.x.cb+"px",right:-this.x.p2-this.x.cb+"px",bottom:"100%",marginBottom:this.y.cb+"px",width:"auto"}),this.y.p1=a.offsetHeight):/^below$/.test(b)&&(hs.setStyles(a,{position:"relative",left:-this.x.p1-this.x.cb+"px",right:-this.x.p2-this.x.cb+"px",top:"100%",marginTop:this.y.cb+"px",width:"auto"}),this.y.p2=a.offsetHeight,a.style.position="absolute")},getOverlays:function(){this.getInline(["heading","caption"],!0);this.getNumber();this.heading&&this.dragByHeading&&(this.heading.className+=" highslide-move");hs.showCredits&&this.writeCredits();for(var a=0;ahs.uaVersion||d)){var g=document.styleSheets[document.styleSheets.length-1];"object"==typeof g.addRule&&g.addRule(a,b)}else c.appendChild(document.createTextNode(a+" {"+b+"}"))},c=hs.createElement("style",{type:"text/css"},null,document.getElementsByTagName("HEAD")[0]),d="BackCompat"==document.compatMode;hs.expandCursor&&b(".highslide img","cursor: zoom-in; cursor: -moz-zoom-in; cursor: -webkit-zoom-in;");b(".highslide-viewport-size",hs.ie&&(7>hs.uaVersion||d)?"position: absolute; left:"+a("scrollLeft")+"top:"+a("scrollTop")+"width:"+a("clientWidth")+"height:"+a("clientHeight"):"position: fixed; width: 100%; height: 100%; left: 0; top: 0")}});hs.addEventListener(window,"resize",function(){hs.getPageSize();if(hs.viewport)for(var a=0;a