
 /* Start of dt.ajax */
function DTAjax() {
}

DTAjax.call = function(service, func, data, successCallback, errorCallback) {

    if (data == null)
        data = "{}";
    $.ajax(
            {
                type: "POST",
                url: service + "/" + func,
                data: data,
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function(result) {
                    successCallback(result);
                },
                error: function(error) {
                    errorCallback(errorCallback);
                }
            });
}

DTAjax.toJSONString = function(str) {
    return str.replace(/'/g, "&#039;").replace(/\\/g, "\\\\");
}
DTAjax.fromJSONString = function(str) {
    return str.replace(/&#039;/g, "'");
}

DTAjax.getContent = function(name, arguments, callback, afterJsCallback) {

    var argumentsStr = "";
    for (key in arguments) {
        argumentsStr += key + ":" + arguments[key] + ",";
    }
    if (argumentsStr.length > 0)
        argumentsStr = argumentsStr.substr(0, argumentsStr.length - 1);

    DTAjax.call("/WebServices/Content.asmx", "GetContent", "{name: '" + name + "', args: '" + argumentsStr + "'}",
                function(result) {
                    callback(result.d);
                    eval(result.d.js);
                    try {
                        afterJsCallback();
                    } catch (ex) {
                    }
                },
                function(error) {

                });
}
/* EOF dt.ajax */

 /* Start of dt.banners */
function DTBannerContainer(a,e,b){this._id=a;this._numBanners=e;this._type=b;this._startPage=false;this._queue={}}function DTBanners(){this._bannerContainers=[];this._updateFreq=16E4}DTBanners.prototype.executeQueue=function(){if(this._queue.length>0){var a=this._queue.pop();this._loadBannerContainer(a[0],a[1],a[2])}};DTBanners.prototype.start=function(){this.load()};
DTBanners.prototype.registerContainer=function(a){if(this._bannerContainers[a._type]==null)this._bannerContainers[a._type]=[];this._bannerContainers[a._type][a._id]=a};
DTBanners.prototype._loadBannerContainer=function(a,e,b){var d=this;DTAjax.BannerService_GetBanners(e,b,function(c){var f=0,g=true;for(key in c){if(g){g=false;$("#"+a[f]._id).html("")}$("#"+a[f]._id).html($("#"+a[f]._id).html()+c[key].html);eval(c[key].script);f++}if(d._queue.length>0){c=d._queue.pop();d._loadBannerContainer(c[0],c[1],c[2])}})};
DTBanners.prototype.load=function(){var a=[];this._queue=[];for(key in this._bannerContainers){var e=0,b=0;a[key]=[];var d=this._bannerContainers[key];for(bKey in d){e+=d[bKey]._numBanners;for(var c=0;c<d[bKey]._numBanners;c++){a[key][b]=d[bKey];b++}}b={};b[0]=a[key];b[1]=key;b[2]=e;this._queue.push(b)}this.executeQueue();this._updateTimer!=null&&clearTimeout(this._updateTimer);this._updateTimer=setTimeout("banners.load();",this._updateFreq)};
/* EOF dt.banners */

 /* Start of dt.config */
function DTConfig(){}DTConfig.host="http: //www.djungeltrumman.se/";DTConfig.debug=false;
/* EOF dt.config */

 /* Start of dt.facebook */
function DTFacebook(a){this._apiKey="a16d5127bf1c77afddc055119456e7d7";this._channelPath="/xd_receiver.htm";this._initCallback=a}DTFacebook.prototype.init=function(){var a=this._apiKey,b=this._channelPath,c=this._initCallback;FB.Bootstrap.requireFeatures(["Connect","Api"],function(){FB.init(a,b,{ifUserConnected:function(){c()}})})};function FBPostCallback(a){a.length>4&&DTAjax.UserService_FacebookCommentStreamPublished(function(){})}
DTFacebook.prototype.postToFeed=function(a,b,c,e){var d={name:a,href:b,description:c,media:[{type:"image",src:e,href:b}]};FB.Facebook.apiClient.users_hasAppPermission("publish_stream",function(f){if(f==0)FB.Connect.streamPublish("",d,null,null,"",FBPostCallback,false);else{FB.Connect._singleton._userInfo.shortStorySetting=FB.FeedStorySetting.autoaccept;FB.Connect.streamPublish("",d,null,null,"",FBPostCallback,true)}})};
DTFacebook.prototype.postCommentFeed=function(a,b,c,e){var d="",f="http://www.gravatar.com/avatar/"+dtBlogMailHash+".png?s=110&r=X&d=identicon";d=b!=0?{name:c+" - Djungeltrumman.se",href:"http://www.djungeltrumman.se/"+a+"/post/"+b,description:e+" har kommenterat "+c,media:[{type:"image",src:f,href:"http://www.djungeltrumman.se/"+a+"/post/"+b}]}:{name:c+" - Djungeltrumman.se",href:"http://www.djungeltrumman.se/"+a,description:e+" har kommenterat "+c,media:[{type:"image",src:f,href:"http://www.djungeltrumman.se/"+
a}]};FB.Facebook.apiClient.users_hasAppPermission("publish_stream",function(g){if(g==0)FB.Connect.streamPublish("",d,null,null,"",FBPostCallback,false);else{FB.Connect._singleton._userInfo.shortStorySetting=FB.FeedStorySetting.autoaccept;FB.Connect.streamPublish("",d,null,null,"",FBPostCallback,true)}})};
/* EOF dt.facebook */

 /* Start of dt.webservices */
DTAjax.MediaLibService_SaveImageProperties=function(d,c,b,a,e){DTAjax.call("/WebServices/MediaLibService.asmx","SaveImageProperties","{imageId:"+d+",title:'"+DTAjax.toJSONString(c)+"',imageText:'"+DTAjax.toJSONString(b)+"'}",function(f){a(f.d)},function(f){e&&e(f)})};DTAjax.MediaLibService_RemoveFile=function(d,c,b){DTAjax.call("/WebServices/MediaLibService.asmx","RemoveFile","{id:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.MediaLibService_RemoveFiles=function(d,c,b){DTAjax.call("/WebServices/MediaLibService.asmx","RemoveFiles","{ids:'"+DTAjax.toJSONString(d)+"'}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.UserService_GetUserFiles=function(d,c){DTAjax.call("/WebServices/UserService.asmx","GetUserFiles","{}",function(b){d(b.d)},function(b){c&&c(b)})};
DTAjax.UserService_RemoveUserFile=function(d,c,b){DTAjax.call("/WebServices/UserService.asmx","RemoveUserFile","{filename:'"+DTAjax.toJSONString(d)+"'}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.UserService_FacebookCommentStreamPublished=function(d,c){DTAjax.call("/WebServices/UserService.asmx","FacebookCommentStreamPublished","{}",function(b){d(b.d)},function(b){c&&c(b)})};
DTAjax.UserService_DislikeBlogPost=function(d,c,b){DTAjax.call("/WebServices/UserService.asmx","DislikeBlogPost","{postid:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.UserService_LikeBlogPost=function(d,c,b){DTAjax.call("/WebServices/UserService.asmx","LikeBlogPost","{postid:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.UserService_GetSiteCommentsPage=function(d,c,b,a){DTAjax.call("/WebServices/UserService.asmx","GetSiteCommentsPage","{url:'"+DTAjax.toJSONString(d)+"',page:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};
DTAjax.UserService_PostSiteCommentPage=function(d,c,b,a,e,f,g,i){DTAjax.call("/WebServices/UserService.asmx","PostSiteCommentPage","{name:'"+DTAjax.toJSONString(d)+"',commentstr:'"+DTAjax.toJSONString(c)+"',url:'"+DTAjax.toJSONString(b)+"',blogUrl:'"+DTAjax.toJSONString(a)+"',mail:'"+DTAjax.toJSONString(e)+"',imageurl:'"+DTAjax.toJSONString(f)+"'}",function(h){g(h.d)},function(h){i&&i(h)})};
DTAjax.UserService_GetSiteComments=function(d,c,b){DTAjax.call("/WebServices/UserService.asmx","GetSiteComments","{url:'"+DTAjax.toJSONString(d)+"'}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.UserService_PostSiteComment=function(d,c,b,a,e,f,g,i){DTAjax.call("/WebServices/UserService.asmx","PostSiteComment","{name:'"+DTAjax.toJSONString(d)+"',commentstr:'"+DTAjax.toJSONString(c)+"',url:'"+DTAjax.toJSONString(b)+"',blogUrl:'"+DTAjax.toJSONString(a)+"',mail:'"+DTAjax.toJSONString(e)+"',imageurl:'"+DTAjax.toJSONString(f)+"'}",function(h){g(h.d)},function(h){i&&i(h)})};
DTAjax.UserService_PostComment=function(d,c,b,a,e,f,g,i){DTAjax.call("/WebServices/UserService.asmx","PostComment","{name:'"+DTAjax.toJSONString(d)+"',commentstr:'"+DTAjax.toJSONString(c)+"',url:'"+DTAjax.toJSONString(b)+"',postid:"+a+",mail:'"+DTAjax.toJSONString(e)+"',imageurl:'"+DTAjax.toJSONString(f)+"'}",function(h){g(h.d)},function(h){i&&i(h)})};DTAjax.UserService_IsLoggedIn=function(d,c){DTAjax.call("/WebServices/UserService.asmx","IsLoggedIn","{}",function(b){d(b.d)},function(b){c&&c(b)})};
DTAjax.UserService_ForgotPassword=function(d,c,b){DTAjax.call("/WebServices/UserService.asmx","ForgotPassword","{mail:'"+DTAjax.toJSONString(d)+"'}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.UserService_SubscribeToBlog=function(d,c,b,a){DTAjax.call("/WebServices/UserService.asmx","SubscribeToBlog","{mail:'"+DTAjax.toJSONString(d)+"',id:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};
DTAjax.UserService_TryLogin=function(d,c,b,a,e){DTAjax.call("/WebServices/UserService.asmx","TryLogin","{username:'"+DTAjax.toJSONString(d)+"',password:'"+DTAjax.toJSONString(c)+"',storeLogin:"+b+"}",function(f){a(f.d)},function(f){e&&e(f)})};DTAjax.UserService_NewsLetterSubscribe=function(d,c,b){DTAjax.call("/WebServices/UserService.asmx","NewsLetterSubscribe","{email:'"+DTAjax.toJSONString(d)+"'}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.UserService_TestFacebookConnect=function(d,c){DTAjax.call("/WebServices/UserService.asmx","TestFacebookConnect","{}",function(b){d(b.d)},function(b){c&&c(b)})};DTAjax.UserService_GetMD5Hash=function(d,c,b){DTAjax.call("/WebServices/UserService.asmx","GetMD5Hash","{text:'"+DTAjax.toJSONString(d)+"'}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.Content_GetContent=function(d,c,b,a){DTAjax.call("/WebServices/Content.asmx","GetContent","{name:'"+DTAjax.toJSONString(d)+"',args:'"+DTAjax.toJSONString(c)+"'}",function(e){b(e.d)},function(e){a&&a(e)})};DTAjax.AlltOm_LoadGuide_Old=function(d,c){DTAjax.call("/WebServices/AlltOm.asmx","LoadGuide_Old","{}",function(b){d(b.d)},function(b){c&&c(b)})};DTAjax.AlltOm_LoadGuide=function(d,c){DTAjax.call("/WebServices/AlltOm.asmx","LoadGuide","{}",function(b){d(b.d)},function(b){c&&c(b)})};
DTAjax.PluginService_HasPlugin=function(d,c,b){DTAjax.call("/WebServices/PluginService.asmx","HasPlugin","{name:'"+DTAjax.toJSONString(d)+"'}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.PluginService_GetPlugins=function(d,c,b){DTAjax.call("/WebServices/PluginService.asmx","GetPlugins","{blogid:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.PluginService_GetNewPlugin=function(d,c,b,a){DTAjax.call("/WebServices/PluginService.asmx","GetNewPlugin","{type:'"+DTAjax.toJSONString(d)+"',blogid:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};DTAjax.PluginService_AddPlugin=function(d,c,b,a,e){DTAjax.call("/WebServices/PluginService.asmx","AddPlugin","{type:'"+DTAjax.toJSONString(d)+"',blogid:"+c+",variables:'"+DTAjax.toJSONString(b)+"'}",function(f){a(f.d)},function(f){e&&e(f)})};
DTAjax.PluginService_SavePlugin=function(d,c,b,a,e){DTAjax.call("/WebServices/PluginService.asmx","SavePlugin","{id:"+d+",blogid:"+c+",variables:'"+DTAjax.toJSONString(b)+"'}",function(f){a(f.d)},function(f){e&&e(f)})};DTAjax.PluginService_DeletePlugin=function(d,c,b,a){DTAjax.call("/WebServices/PluginService.asmx","DeletePlugin","{id:"+d+",blogid:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};
DTAjax.PluginService_GetEditPlugin=function(d,c,b,a){DTAjax.call("/WebServices/PluginService.asmx","GetEditPlugin","{id:"+d+",blogid:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};DTAjax.BlogAdminElements_GetCollageList=function(d,c,b){DTAjax.call("/WebServices/BlogAdminElements.asmx","GetCollageList","{page:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.BlogAdminElements_GetTextElementTemplate=function(d,c){DTAjax.call("/WebServices/BlogAdminElements.asmx","GetTextElementTemplate","{}",function(b){d(b.d)},function(b){c&&c(b)})};DTAjax.BlogAdminElements_GetQuoteElementTemplate=function(d,c){DTAjax.call("/WebServices/BlogAdminElements.asmx","GetQuoteElementTemplate","{}",function(b){d(b.d)},function(b){c&&c(b)})};
DTAjax.BlogAdminElements_GetCollageElementTemplate=function(d,c,b){DTAjax.call("/WebServices/BlogAdminElements.asmx","GetCollageElementTemplate","{page:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.BlogAdminElements_GetImageList=function(d,c,b){DTAjax.call("/WebServices/BlogAdminElements.asmx","GetImageList","{page:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.BlogAdminElements_GetImageElementTemplate=function(d,c,b){DTAjax.call("/WebServices/BlogAdminElements.asmx","GetImageElementTemplate","{page:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.BlogAdminElements_GetVideoList=function(d,c,b){DTAjax.call("/WebServices/BlogAdminElements.asmx","GetVideoList","{page:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.BlogAdminElements_SaveEmbeddedVideoFile=function(d,c,b){DTAjax.call("/WebServices/BlogAdminElements.asmx","SaveEmbeddedVideoFile","{html:'"+DTAjax.toJSONString(d)+"'}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.BlogAdminElements_GetVideoElementTemplate=function(d,c,b){DTAjax.call("/WebServices/BlogAdminElements.asmx","GetVideoElementTemplate","{page:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.BlogAdminElements_GetSoundList=function(d,c,b){DTAjax.call("/WebServices/BlogAdminElements.asmx","GetSoundList","{page:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.BlogAdminElements_GetSoundElementTemplate=function(d,c,b){DTAjax.call("/WebServices/BlogAdminElements.asmx","GetSoundElementTemplate","{page:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.BlogAdminElements_GetPublishSettings=function(d,c){DTAjax.call("/WebServices/BlogAdminElements.asmx","GetPublishSettings","{}",function(b){d(b.d)},function(b){c&&c(b)})};DTAjax.WidgetsService_SendContactForm=function(d,c,b,a,e){DTAjax.call("/WebServices/WidgetsService.asmx","SendContactForm","{blogid:"+d+",message:'"+DTAjax.toJSONString(c)+"',mail:'"+DTAjax.toJSONString(b)+"'}",function(f){a(f.d)},function(f){e&&e(f)})};
DTAjax.WidgetsService_SaveWidgetOrder=function(d,c,b,a){DTAjax.call("/WebServices/WidgetsService.asmx","SaveWidgetOrder","{blogid:"+d+",order:'"+DTAjax.toJSONString(c)+"'}",function(e){b(e.d)},function(e){a&&a(e)})};DTAjax.WidgetsService_SaveWidget=function(d,c,b,a,e){DTAjax.call("/WebServices/WidgetsService.asmx","SaveWidget","{id:"+d+",blogid:"+c+",variables:'"+DTAjax.toJSONString(b)+"'}",function(f){a(f.d)},function(f){e&&e(f)})};
DTAjax.WidgetsService_DeleteWidget=function(d,c,b,a){DTAjax.call("/WebServices/WidgetsService.asmx","DeleteWidget","{id:"+d+",blogid:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};DTAjax.WidgetsService_GetEditWidget=function(d,c,b,a){DTAjax.call("/WebServices/WidgetsService.asmx","GetEditWidget","{id:"+d+",blogid:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};
DTAjax.WidgetsService_GetNewWidget=function(d,c,b,a){DTAjax.call("/WebServices/WidgetsService.asmx","GetNewWidget","{type:'"+DTAjax.toJSONString(d)+"',blogid:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};DTAjax.WidgetsService_AddWidget=function(d,c,b,a,e){DTAjax.call("/WebServices/WidgetsService.asmx","AddWidget","{type:'"+DTAjax.toJSONString(d)+"',blogid:"+c+",variables:'"+DTAjax.toJSONString(b)+"'}",function(f){a(f.d)},function(f){e&&e(f)})};
DTAjax.WidgetsService_GetWidgets=function(d,c,b){DTAjax.call("/WebServices/WidgetsService.asmx","GetWidgets","{blogid:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.WidgetsService_GetNumPostsAfter=function(d,c,b,a,e,f){DTAjax.call("/WebServices/WidgetsService.asmx","GetNumPostsAfter","{year:"+d+",month:"+c+",blogurl:'"+DTAjax.toJSONString(b)+"',pageid:"+a+"}",function(g){e(g.d)},function(g){f&&f(g)})};
DTAjax.BannerService_GetBanners=function(d,c,b,a){DTAjax.call("/WebServices/BannerService.asmx","GetBanners","{type:"+d+",num:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};DTAjax.MediaContent_GetSoundCloud=function(d,c,b){DTAjax.call("/WebServices/MediaContent.asmx","GetSoundCloud","{id:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.MediaContent_GetEmbededVideo=function(d,c,b){DTAjax.call("/WebServices/MediaContent.asmx","GetEmbededVideo","{id:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.MediaContent_GetVimeoVideo=function(d,c,b){DTAjax.call("/WebServices/MediaContent.asmx","GetVimeoVideo","{id:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.BlogRegistrationService_CheckUrlAvalibility=function(d,c,b){DTAjax.call("/WebServices/BlogRegistrationService.asmx","CheckUrlAvalibility","{url:'"+DTAjax.toJSONString(d)+"'}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.BlogRegistrationService_CheckNameAvalibility=function(d,c,b){DTAjax.call("/WebServices/BlogRegistrationService.asmx","CheckNameAvalibility","{name:'"+DTAjax.toJSONString(d)+"'}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.BlogRegistrationService_CheckBlogNameAndUrl=function(d,c,b,a){DTAjax.call("/WebServices/BlogRegistrationService.asmx","CheckBlogNameAndUrl","{url:'"+DTAjax.toJSONString(d)+"',name:'"+DTAjax.toJSONString(c)+"'}",function(e){b(e.d)},function(e){a&&a(e)})};DTAjax.StartService_GetSelectedBlogs=function(d,c,b){DTAjax.call("/WebServices/StartService.asmx","GetSelectedBlogs","{num:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.StartService_GetFeature=function(d,c){DTAjax.call("/WebServices/StartService.asmx","GetFeature","{}",function(b){d(b.d)},function(b){c&&c(b)})};DTAjax.StartService_GetLatestUpdatedBlogs=function(d,c){DTAjax.call("/WebServices/StartService.asmx","GetLatestUpdatedBlogs","{}",function(b){d(b.d)},function(b){c&&c(b)})};DTAjax.StartService_GetLatestMedia=function(d,c){DTAjax.call("/WebServices/StartService.asmx","GetLatestMedia","{}",function(b){d(b.d)},function(b){c&&c(b)})};
DTAjax.Export_LoadStr=function(d,c){DTAjax.call("/WebServices/Export.asmx","LoadStr","{}",function(b){d(b.d)},function(b){c&&c(b)})};DTAjax.Export_Load=function(d,c){DTAjax.call("/WebServices/Export.asmx","Load","{}",function(b){d(b.d)},function(b){c&&c(b)})};DTAjax.DTService_GetLatestComments=function(d,c){DTAjax.call("/WebServices/DTService.asmx","GetLatestComments","{}",function(b){d(b.d)},function(b){c&&c(b)})};
DTAjax.DTService_LeaveCompetitionAnswer=function(d,c,b,a,e,f){DTAjax.call("/WebServices/DTService.asmx","LeaveCompetitionAnswer","{mail:'"+DTAjax.toJSONString(d)+"',name:'"+DTAjax.toJSONString(c)+"',answer:'"+DTAjax.toJSONString(b)+"',compeititon_id:"+a+"}",function(g){e(g.d)},function(g){f&&f(g)})};DTAjax.DTService_AddClubCompetitionVote=function(d,c,b){DTAjax.call("/WebServices/DTService.asmx","AddClubCompetitionVote","{aId:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.DTService_GetRelatedSites=function(d,c,b,a){DTAjax.call("/WebServices/DTService.asmx","GetRelatedSites","{blogid:"+d+",num:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};DTAjax.DTService_GetLatestUpdatedSites=function(d,c){DTAjax.call("/WebServices/DTService.asmx","GetLatestUpdatedSites","{}",function(b){d(b.d)},function(b){c&&c(b)})};DTAjax.DTService_GetRandomSite=function(d,c){DTAjax.call("/WebServices/DTService.asmx","GetRandomSite","{}",function(b){d(b.d)},function(b){c&&c(b)})};
DTAjax.DTService_GetSelectedSites=function(d,c){DTAjax.call("/WebServices/DTService.asmx","GetSelectedSites","{}",function(b){d(b.d)},function(b){c&&c(b)})};DTAjax.DTService_GetCompeititon=function(d,c,b){DTAjax.call("/WebServices/DTService.asmx","GetCompeititon","{id:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.DTService_OldPolls=function(d,c,b){DTAjax.call("/WebServices/DTService.asmx","OldPolls","{num:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.DTService_GetInfoText=function(d,c){DTAjax.call("/WebServices/DTService.asmx","GetInfoText","{}",function(b){d(b.d)},function(b){c&&c(b)})};DTAjax.DTService_GetPuffs=function(d,c,b){DTAjax.call("/WebServices/DTService.asmx","GetPuffs","{num:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.DTService_GetArchivePuffs=function(d,c,b,a){DTAjax.call("/WebServices/DTService.asmx","GetArchivePuffs","{start:"+d+",num:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};
DTAjax.DTService_GetArchivePolls=function(d,c,b,a){DTAjax.call("/WebServices/DTService.asmx","GetArchivePolls","{start:"+d+",num:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};DTAjax.BlogAdminService_GetAnalyticsData=function(d,c,b,a,e){DTAjax.call("/WebServices/BlogAdminService.asmx","GetAnalyticsData","{blogid:"+d+",startDate:'"+DTAjax.toJSONString(c)+"',endDate:'"+DTAjax.toJSONString(b)+"'}",function(f){a(f.d)},function(f){e&&e(f)})};
DTAjax.BlogAdminService_GetAnalyticsChartUnique=function(d,c,b,a,e,f){DTAjax.call("/WebServices/BlogAdminService.asmx","GetAnalyticsChartUnique","{blogid:"+d+",startDate:'"+DTAjax.toJSONString(c)+"',endDate:'"+DTAjax.toJSONString(b)+"',dataType:'"+DTAjax.toJSONString(a)+"'}",function(g){e(g.d)},function(g){f&&f(g)})};
DTAjax.BlogAdminService_GetAnalyticsChart=function(d,c,b,a,e,f){DTAjax.call("/WebServices/BlogAdminService.asmx","GetAnalyticsChart","{blogid:"+d+",startDate:'"+DTAjax.toJSONString(c)+"',endDate:'"+DTAjax.toJSONString(b)+"',dataType:'"+DTAjax.toJSONString(a)+"'}",function(g){e(g.d)},function(g){f&&f(g)})};DTAjax.BlogAdminService_GetMostViewedChart=function(d,c,b,a){DTAjax.call("/WebServices/BlogAdminService.asmx","GetMostViewedChart","{days:"+d+",blogs:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};
DTAjax.BlogAdminService_GetTotalVisitors=function(d,c,b,a,e){DTAjax.call("/WebServices/BlogAdminService.asmx","GetTotalVisitors","{blogid:"+d+",startDate:'"+DTAjax.toJSONString(c)+"',endDate:'"+DTAjax.toJSONString(b)+"'}",function(f){a(f.d)},function(f){e&&e(f)})};
DTAjax.BlogAdminService_GetTotalUniqueVisitors=function(d,c,b,a,e){DTAjax.call("/WebServices/BlogAdminService.asmx","GetTotalUniqueVisitors","{blogid:"+d+",startDate:'"+DTAjax.toJSONString(c)+"',endDate:'"+DTAjax.toJSONString(b)+"'}",function(f){a(f.d)},function(f){e&&e(f)})};
DTAjax.BlogAdminService_SaveFile=function(d,c,b,a,e,f){DTAjax.call("/WebServices/BlogAdminService.asmx","SaveFile","{fileid:"+d+",caption:'"+DTAjax.toJSONString(c)+"',title:'"+DTAjax.toJSONString(b)+"',data:'"+DTAjax.toJSONString(a)+"'}",function(g){e(g.d)},function(g){f&&f(g)})};DTAjax.BlogAdminService_AddIPBan=function(d,c,b){DTAjax.call("/WebServices/BlogAdminService.asmx","AddIPBan","{commentid:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.BlogAdminService_ImportSoundcloudFiles=function(d,c){DTAjax.call("/WebServices/BlogAdminService.asmx","ImportSoundcloudFiles","{}",function(b){d(b.d)},function(b){c&&c(b)})};DTAjax.BlogAdminService_GetComment=function(d,c,b){DTAjax.call("/WebServices/BlogAdminService.asmx","GetComment","{id:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.BlogAdminService_GetCommentPostRelation=function(d,c,b){DTAjax.call("/WebServices/BlogAdminService.asmx","GetCommentPostRelation","{commentId:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.BlogAdminService_SetCommentsState=function(d,c,b,a){DTAjax.call("/WebServices/BlogAdminService.asmx","SetCommentsState","{isPublic:"+d+",ids:'"+DTAjax.toJSONString(c)+"'}",function(e){b(e.d)},function(e){a&&a(e)})};
DTAjax.BlogAdminService_RemoveComments=function(d,c,b){DTAjax.call("/WebServices/BlogAdminService.asmx","RemoveComments","{ids:'"+DTAjax.toJSONString(d)+"'}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.BlogAdminService_ResetThemeSettingVariables=function(d,c,b){DTAjax.call("/WebServices/BlogAdminService.asmx","ResetThemeSettingVariables","{blogid:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.BlogAdminService_RequestDTPage=function(d,c,b){DTAjax.call("/WebServices/BlogAdminService.asmx","RequestDTPage","{body:'"+DTAjax.toJSONString(d)+"'}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.BlogAdminService_SendFeedback=function(d,c,b,a){DTAjax.call("/WebServices/BlogAdminService.asmx","SendFeedback","{type:'"+DTAjax.toJSONString(d)+"',text:'"+DTAjax.toJSONString(c)+"'}",function(e){b(e.d)},function(e){a&&a(e)})};
DTAjax.BlogAdminService_SaveEmbededVideo=function(d,c,b){DTAjax.call("/WebServices/BlogAdminService.asmx","SaveEmbededVideo","{data:'"+DTAjax.toJSONString(d)+"'}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.BlogAdminService_ResetBlogBlocks=function(d,c,b){DTAjax.call("/WebServices/BlogAdminService.asmx","ResetBlogBlocks","{blogid:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.BlogAdminService_SetBlogTheme=function(d,c,b,a){DTAjax.call("/WebServices/BlogAdminService.asmx","SetBlogTheme","{blogid:"+d+",themeid:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};DTAjax.BlogAdminService_SaveThemeSettingsVariables=function(d,c,b,a){DTAjax.call("/WebServices/BlogAdminService.asmx","SaveThemeSettingsVariables","{variables:'"+DTAjax.toJSONString(d)+"',blogid:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};
DTAjax.BlogAdminService_GetBlogThemeSettingsHtml=function(d,c,b){DTAjax.call("/WebServices/BlogAdminService.asmx","GetBlogThemeSettingsHtml","{blogid:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.BlogAdminService_SetPreviewTheme=function(d,c,b,a){DTAjax.call("/WebServices/BlogAdminService.asmx","SetPreviewTheme","{blogid:"+d+",themeid:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};
DTAjax.BlogAdminService_SaveBlogSettings=function(d,c,b,a,e,f,g,i,h,k){DTAjax.call("/WebServices/BlogAdminService.asmx","SaveBlogSettings","{blogid:"+d+",name:'"+DTAjax.toJSONString(c)+"',description:'"+DTAjax.toJSONString(b)+"',secondheader:'"+DTAjax.toJSONString(a)+"',acceptComment:"+e+",publicComments:"+f+",standardBlog:"+g+",mailcomments:"+i+"}",function(j){h(j.d)},function(j){k&&k(j)})};
DTAjax.BlogAdminService_CreatePage=function(d,c,b,a){DTAjax.call("/WebServices/BlogAdminService.asmx","CreatePage","{name:'"+DTAjax.toJSONString(d)+"',blogid:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};DTAjax.BlogAdminService_RemovePage=function(d,c,b){DTAjax.call("/WebServices/BlogAdminService.asmx","RemovePage","{pageId:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.BlogAdminService_RemovePages=function(d,c,b){DTAjax.call("/WebServices/BlogAdminService.asmx","RemovePages","{a_pageIds:'"+DTAjax.toJSONString(d)+"'}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.BlogAdminService_UpdatePages=function(d,c,b,a){DTAjax.call("/WebServices/BlogAdminService.asmx","UpdatePages","{a_pageIds:'"+DTAjax.toJSONString(d)+"',blogid:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};
DTAjax.BlogAdminService_UpdatePage=function(d,c,b,a,e){DTAjax.call("/WebServices/BlogAdminService.asmx","UpdatePage","{name:'"+DTAjax.toJSONString(d)+"',blogid:"+c+",pageId:"+b+"}",function(f){a(f.d)},function(f){e&&e(f)})};DTAjax.BlogAdminService_RemovePost=function(d,c,b){DTAjax.call("/WebServices/BlogAdminService.asmx","RemovePost","{id:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.BlogAdminService_RemovePosts=function(d,c,b){DTAjax.call("/WebServices/BlogAdminService.asmx","RemovePosts","{ids:'"+DTAjax.toJSONString(d)+"'}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.BlogAdminService_SetPostStatus=function(d,c,b,a){DTAjax.call("/WebServices/BlogAdminService.asmx","SetPostStatus","{ids:'"+DTAjax.toJSONString(d)+"',published:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};
DTAjax.BlogAdminService_MovePosts=function(d,c,b,a,e){DTAjax.call("/WebServices/BlogAdminService.asmx","MovePosts","{ids:'"+DTAjax.toJSONString(d)+"',blogid:"+c+",pageid:"+b+"}",function(f){a(f.d)},function(f){e&&e(f)})};DTAjax.BlogAdminService_GetBlogPost=function(d,c,b){DTAjax.call("/WebServices/BlogAdminService.asmx","GetBlogPost","{id:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.BlogAdminService_GetBlogBlocks=function(d,c,b){DTAjax.call("/WebServices/BlogAdminService.asmx","GetBlogBlocks","{blogid:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.BlogAdminService_SaveBlogBlocks=function(d,c,b,a,e){DTAjax.call("/WebServices/BlogAdminService.asmx","SaveBlogBlocks","{blogid:"+d+",blockName:'"+DTAjax.toJSONString(c)+"',blockContent:'"+DTAjax.toJSONString(b)+"'}",function(f){a(f.d)},function(f){e&&e(f)})};
DTAjax.BlogAdminService_CompareDate=function(d,c,b){DTAjax.call("/WebServices/BlogAdminService.asmx","CompareDate","{date:'"+DTAjax.toJSONString(d)+"'}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.BlogAdminService_SaveBlogPostElement=function(d,c,b,a,e,f,g,i,h,k,j,n,m,l){DTAjax.call("/WebServices/BlogAdminService.asmx","SaveBlogPostElement","{id:"+d+",blog_id:"+c+",header:'"+DTAjax.toJSONString(b)+"',type:"+a+",data:'"+DTAjax.toJSONString(e)+"',date:'"+DTAjax.toJSONString(f)+"',page_id:"+g+",isPublic:"+i+",allowComments:"+h+",broadcast:'"+DTAjax.toJSONString(k)+"',sendBroadcast:"+j+",tags:'"+DTAjax.toJSONString(n)+"'}",function(o){m(o.d)},function(o){l&&l(o)})};
DTAjax.BlogAdminService_GenerateMobileMail=function(d,c,b){DTAjax.call("/WebServices/BlogAdminService.asmx","GenerateMobileMail","{blogid:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.BlogAdminService_SaveBlogPost=function(d,c,b,a,e,f,g,i,h,k,j,n,m){DTAjax.call("/WebServices/BlogAdminService.asmx","SaveBlogPost","{id:"+d+",blog_id:"+c+",header:'"+DTAjax.toJSONString(b)+"',text:'"+DTAjax.toJSONString(a)+"',date:'"+DTAjax.toJSONString(e)+"',page_id:"+f+",isPublic:"+g+",allowComments:"+i+",broadcast:'"+DTAjax.toJSONString(h)+"',sendBroadcast:"+k+",tags:'"+DTAjax.toJSONString(j)+"'}",function(l){n(l.d)},function(l){m&&m(l)})};
DTAjax.ClubguideService_GetClubGuide=function(d,c,b,a){DTAjax.call("/WebServices/ClubguideService.asmx","GetClubGuide","{day:"+d+",city:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};DTAjax.ClubguideService_GetMapPuff=function(d,c,b,a){DTAjax.call("/WebServices/ClubguideService.asmx","GetMapPuff","{day:"+d+",city:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};
DTAjax.ClubguideService_GetClubsPuff=function(d,c,b,a){DTAjax.call("/WebServices/ClubguideService.asmx","GetClubsPuff","{day:"+d+",city:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};DTAjax.ClubguideService_GetClubsByDate=function(d,c,b,a){DTAjax.call("/WebServices/ClubguideService.asmx","GetClubsByDate","{day:"+d+",city:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};
DTAjax.ClubguideService_GetClubsByDate_Old=function(d,c,b,a){DTAjax.call("/WebServices/ClubguideService.asmx","GetClubsByDate_Old","{day:"+d+",city:"+c+"}",function(e){b(e.d)},function(e){a&&a(e)})};DTAjax.ClubguideService_GetClubDates=function(d,c,b){DTAjax.call("/WebServices/ClubguideService.asmx","GetClubDates","{city:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.ClubguideService_GetClubCalendar=function(d,c,b){DTAjax.call("/WebServices/ClubguideService.asmx","GetClubCalendar","{city:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.ClubguideService_GetPhotoSession=function(d,c,b){DTAjax.call("/WebServices/ClubguideService.asmx","GetPhotoSession","{num:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.ClubguideService_GetPhotoByID=function(d,c,b){DTAjax.call("/WebServices/ClubguideService.asmx","GetPhotoByID","{id:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.ClubguideService_GetPhotoSessionByID=function(d,c,b){DTAjax.call("/WebServices/ClubguideService.asmx","GetPhotoSessionByID","{id:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.ClubguideService_GetPhoto=function(d,c,b){DTAjax.call("/WebServices/ClubguideService.asmx","GetPhoto","{num:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.Misc_AddPollVote=function(d,c,b,a){DTAjax.call("/WebServices/Misc.asmx","AddPollVote","{id:"+d+",bgcolor:'"+DTAjax.toJSONString(c)+"'}",function(e){b(e.d)},function(e){a&&a(e)})};DTAjax.Misc_RemovePoll=function(d,c,b){DTAjax.call("/WebServices/Misc.asmx","RemovePoll","{id:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.Misc_GetPopupPolls=function(d,c,b){DTAjax.call("/WebServices/Misc.asmx","GetPopupPolls","{page:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.Misc_GetPolls=function(d,c,b){DTAjax.call("/WebServices/Misc.asmx","GetPolls","{page:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.Misc_AddClubVote=function(d,c,b){DTAjax.call("/WebServices/Misc.asmx","AddClubVote","{id:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};
DTAjax.Misc_GetClubPoll=function(d,c,b){DTAjax.call("/WebServices/Misc.asmx","GetClubPoll","{id:"+d+"}",function(a){c(a.d)},function(a){b&&b(a)})};DTAjax.Misc_CreatePoll=function(d,c,b,a,e,f){DTAjax.call("/WebServices/Misc.asmx","CreatePoll","{name:'"+DTAjax.toJSONString(d)+"',question:'"+DTAjax.toJSONString(c)+"',answer:'"+DTAjax.toJSONString(b)+"',file:'"+DTAjax.toJSONString(a)+"'}",function(g){e(g.d)},function(g){f&&f(g)})};
DTAjax.Misc_GetLatestPoll=function(d,c,b,a){DTAjax.call("/WebServices/Misc.asmx","GetLatestPoll","{userid:"+d+",bgcolor:'"+DTAjax.toJSONString(c)+"'}",function(e){b(e.d)},function(e){a&&a(e)})};DTAjax.Misc_GetStartPoll=function(d,c,b,a,e){DTAjax.call("/WebServices/Misc.asmx","GetStartPoll","{userid:"+d+",page:"+c+",bgcolor:'"+DTAjax.toJSONString(b)+"'}",function(f){a(f.d)},function(f){e&&e(f)})};
DTAjax.Misc_GetPoll=function(d,c,b,a){DTAjax.call("/WebServices/Misc.asmx","GetPoll","{id:"+d+",bgcolor:'"+DTAjax.toJSONString(c)+"'}",function(e){b(e.d)},function(e){a&&a(e)})};
/* EOF dt.webservices */

 /* Start of response */
$(document).ready(function(){$(".close").click(function(){$(this).parent().fadeTo(400,0,function(){$(this).hide("slow",function(){$(this).css("opacity","100")})});$(this).fadeTo(400,0)})});
function displayResponse(c,d,a){var b=a+"_msgresponse";$("#"+b).remove();$("#"+b+"_space").remove();$("#"+c).clone(true).insertAfter("#"+a).attr("id",a+"_msgresponse");$("#"+a+"_msgresponse").before('<hr class="space" id="'+a+'_msgresponse_space"/>');$("#"+b+" > span").html(d);$("#"+b).fadeIn(400);$("#colorbox").css("display")!="block"&&$.scrollTo($("#"+b),800)};
/* EOF response */

 /* Start of slidemenu */
$(document).ready(function(){if($(".slideout-menu").length!=0){initSlidemenu();$(".slidein").click(function(){$(".slideout-menu").animate({left:"-"+($(".slideout-menu").width()-45)+"px"},700);$(".slideout").removeClass("expanded");$("#slideout-tooltip").fadeOut("slow")});$(".slideout").click(function(){$(".slideout-menu").animate({left:"0px"},700);$(".slideout").addClass("expanded");$("#slideout-tooltip").fadeOut("slow");var a=0;if($.cookie("DT_SLIDE_TOOLTIP_VIEWS")!=null)a=$.cookie("DT_SLIDE_TOOLTIP_VIEWS");
a+=1;$.cookie("DT_SLIDE_TOOLTIP_VIEWS",a,{expires:14,path:"/"})});$(".shuffle").click(function(){slideShuffle()});$("#slideout-tooltip").click(function(){var a=0;if($.cookie("DT_SLIDE_TOOLTIP_VIEWS")!=null)a=$.cookie("DT_SLIDE_TOOLTIP_VIEWS");a+=1;$.cookie("DT_SLIDE_TOOLTIP_VIEWS",a,{expires:14,path:"/"});$(this).fadeOut("slow")})}});
function getUpdatedPages(){clearTimeout(slideUpdateTimer);DTAjax.DTService_GetLatestUpdatedSites(function(a){$(".slide-updated").remove();for(var b in a){var c='<li class="slide-updated"><a href="/'+a[b].Url+'&method=slide" title="'+a[b].Name+", uppdaterad "+a[b].UpdateDate+'"><img src="http://www.gravatar.com/avatar/'+a[b].HashedMail+'.png?s=20&amp;r=X&amp;d=identicon&amp;);" class="updated-page" />'+a[b].Name+"</a></li>";$("#updates").after(c)}});DTAjax.DTService_GetSelectedSites(function(a){$(".slide-selected").remove();
for(var b in a){var c='<li class="slide-selected"><a href="/'+a[b].Url+'&method=slide" title="'+a[b].Name+", uppdaterad "+a[b].UpdateDate+'"><img src="http://www.gravatar.com/avatar/'+a[b].HashedMail+'.png?s=20&amp;r=X&amp;d=identicon&amp;);" class="updated-page" />'+a[b].Name+"</a></li>";$("#selected").after(c);slideUpdateTimer=setTimeout("getUpdatedPages();",6E4);$(".slideout-menu").css("left")!="0px"&&$(".slideout-menu").css("left","-"+($(".slideout-menu").width()-45)+"px")}})}
function slideShuffle(){$(".slide-random").html("<a>Laddar...</a>");DTAjax.DTService_GetRandomSite(function(a){$(".slide-random").remove();a='<li class="slide-random"><a href="/'+a.Url+'&method=slide" title="'+a.Name+", uppdaterad "+a.UpdateDate+'"><img src="http://www.gravatar.com/avatar/'+a.HashedMail+'.png?s=20&amp;r=X&amp;d=identicon&amp;);" class="updated-page" />'+a.Name+"</a></li>";$("#shuffle").after(a)})}
function initSlidemenu(){var a=true;if($.cookie("DT_SLIDE_TOOLTIP_VIEWS")!=null)if($.cookie("DT_SLIDE_TOOLTIP_VIEWS")>=2)a=false;a&&setTimeout('$("#slideout-tooltip").fadeIn("slow")',15E3);DTAjax.DTService_GetLatestUpdatedSites(function(b){for(var c in b){var g='<li class="slide-updated"><a href="/'+b[c].Url+'&method=slide" title="'+b[c].Name+", uppdaterad "+b[c].UpdateDate+'"><img src="http://www.gravatar.com/avatar/'+b[c].HashedMail+'.png?s=20&amp;r=X&amp;d=identicon&amp;);" class="updated-page" />'+
b[c].Name+"</a></li>";$("#updates").after(g)}DTAjax.DTService_GetSelectedSites(function(e){for(var f in e){var h='<li class="slide-selected"><a href="/'+e[f].Url+'&method=slide" title="'+e[f].Name+", uppdaterad "+e[f].UpdateDate+'"><img src="http://www.gravatar.com/avatar/'+e[f].HashedMail+'.png?s=20&amp;r=X&amp;d=identicon&amp;);" class="updated-page" />'+e[f].Name+"</a></li>";$("#selected").after(h)}DTAjax.DTService_GetRandomSite(function(d){d='<li class="slide-random"><a href="/'+d.Url+'&method=slide" title="'+
d.Name+", uppdaterad "+d.UpdateDate+'"><img src="http://www.gravatar.com/avatar/'+d.HashedMail+'.png?s=20&amp;r=X&amp;d=identicon&amp;);" class="updated-page" />'+d.Name+"</a></li>";$("#shuffle").after(d);$(".slideout-menu").css("left","-"+($(".slideout-menu").width()-45)+"px")})})})};
/* EOF slidemenu */

 /* Start of validate */
$(document).ready(function(){$(".validate_url").keyup(function(){var a=$(this).attr("id");$("#"+a+"_validate").remove();if($(this).val()!="")validate_url($(this).val())?$("#"+a).before("<div id='"+a+"_validate' class='success small validate_response_small' style='margin-left: "+($("#"+a).width()+20)+"px'>&nbsp;</div>").removeClass("error"):$("#"+a).before("<div id='"+a+"_validate' class='error small validate_response_small' style='margin-left: "+($("#"+a).width()+20)+"px'><span>Skriv in en fungerande&nbsp;url.</span></div>")});
$(".validate_email").keyup(function(){$("#"+$(this).attr("id")+"_validate").remove();if($(this).val()!="")validate_email($(this).val())?$(this).before("<div id='"+$(this).attr("id")+"_validate' class='success small validate_response_small' style='margin-left: "+($(this).width()+25)+"px'>&nbsp;</div>").removeClass("error"):$(this).before("<div id='"+$(this).attr("id")+"_validate' class='error small validate_response_small' style='margin-left: "+($(this).width()+25)+"px'><span>Skriv in en fungerande&nbsp;e-postadress.</span></div>")});
$(".validate_phone").keyup(function(){var a=new RegExp(/[0-9+-]{6,15}/),b=$(this).val();$("#"+$(this).attr("id")+"_validate").remove();!a.test(b)&&$(this).val()!=""&&$(this).before("<div id='"+$(this).attr("id")+"_validate' class='error small validate_response_small' style='margin-left: "+($(this).width()+25)+"px'>Skriv in ett fungerande&nbsp;telefonnummer.</div>");a.test(b)&&$(this).before("<div id='"+$(this).attr("id")+"_validate' class='success small validate_response_small' style='margin-left: "+
($(this).width()+25)+"px'>&nbsp;</div>")});$(".validate_fullname").keyup(function(){$("#"+$(this).attr("id")+"_validate").remove();validate_fullname($(this).attr("id"))?$(this).before("<div id='"+$(this).attr("id")+"_validate' class='success small validate_response_small' style='margin-left: "+($(this).width()+25)+"px'>&nbsp;</div>").removeClass("error"):$(this).before("<div id='"+$(this).attr("id")+"_validate' class='error small validate_response_small' style='margin-left: "+($(this).width()+25)+
"px'>Skriv in f\u00f6r- och&nbsp;efternamn.</div>")});$(".validate_passwordstrength").keyup(function(){$("#"+$(this).attr("id")+"_validate").remove();var a=validate_passwordstrength($(this).attr("id"));a=="weak"&&$(this).before("<div id='"+$(this).attr("id")+"_validate' class='error small validate_response_small' style='margin-left: "+($(this).width()+25)+"px'>L\u00f6senordet m\u00e5ste vara minst 5 tecken l\u00e5ngt.</div>");a=="medium"&&$(this).before("<div id='"+$(this).attr("id")+"_validate' class='notice small validate_response_small' style='margin-left: "+
($(this).width()+25)+"px'>Mediumstarkt l\u00f6senord.</div>").removeClass("error");a=="strong"&&$(this).before("<div id='"+$(this).attr("id")+"_validate' class='success small validate_response_small' style='margin-left: "+($(this).width()+25)+"px'>Starkt l\u00f6senord.</div>").removeClass("error")});$(".required").keyup(function(){$("#"+$(this).attr("id")+"_validate_required").remove();$("#"+$(this).attr("id")+"_validate").remove();$(this).val()==""?$(this).before("<div id='"+$(this).attr("id")+"_validate_required' class='error small validate_response_small' style='margin-left: "+
($(this).width()+25)+"px'><span>Detta \u00e4r ett obligatoriskt&nbsp;f\u00e4lt.</span></div>"):$(this).removeClass("error")});$(".validate_repeatpassword").keyup(function(){var a=$("#"+$(this).attr("repeatid")).val();$("#"+$(this).attr("id")+"_validate").remove();$("#"+$(this).attr("id")+"_validate_required").remove();a!=$(this).val()?$(this).before("<div id='"+$(this).attr("id")+"_validate' class='error small validate_response_small' style='margin-left: "+($(this).width()+25)+"px'>L\u00f6senordet m\u00e5ste matcha.</div>"):
$(this).before("<div id='"+$(this).attr("id")+"_validate' class='success small validate_response_small' style='margin-left: "+($(this).width()+25)+"px'>&nbsp;</div>").removeClass("error")});$(".validate_minlength").keyup(function(){var a=$(this).attr("id"),b="Du m\u00e5ste skriva minst "+$(this).attr("minlength")+"&nbsp;tecken.";$("#"+a+"_validate").remove();validate_minlength($(this).attr("id"),$(this).attr("minlength"))?$("#"+a).before("<div id='"+$("#"+a).attr("id")+"_validate' class='success small validate_response_small' style='margin-left: "+
($("#"+a).width()+20)+"px'>&nbsp;</div>").removeClass("error"):$("#"+a).before("<div id='"+$("#"+a).attr("id")+"_validate' class='error small validate_response_small' style='margin-left: "+($("#"+a).width()+20)+"px'>"+b+"</div>")})});function validate_minlength(a,b){return $("#"+a).val().length<b?false:true}function validate_url(a){var b=new RegExp(/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/);return a==""?true:b.test(a)}
function validate_email(a){var b=new RegExp(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z]{2,6})+$/);return a==""?true:b.test(a)}function validate_fullname(a){var b=new RegExp(/^([a-zA-Z\.-])+\s([a-zA-Z\.-]{2,90})/);a=$("#"+a).val();return b.test(a)}function validate_passwordstrength(a){a=$("#"+a).val();var b=new RegExp(/^.{1,4}$/),c=new RegExp(/^.{5,7}$/),d=new RegExp(/^.{8,}/);if(b.test(a))return"weak";if(c.test(a))return"medium";if(d.test(a))return"strong"};
/* EOF validate */
