﻿// JScript File

//Update Sept 5th 2009 - Ability to add Visitors
jQuery(document).ready(function() {
    //PostMessageSetup();
    //jQuery('#becomesupporter_a').click(function() { jQuery('#becomesupporter_div').show("slow"); });
    //jQuery('.blogfrogshownext').click(function() { jQuery(this).next().show("slow"); });

    //hover
        jQuery('.blogfrogentry').hover(function() {
            var pos = jQuery(this).position();
            var width = jQuery(this).width();
            jQuery(this).next("div").css({ "left": (pos.left + width - 20) + "px", "top": (pos.top - 10) + "px" });
            jQuery(this).next("div").stop(true, true).fadeIn("slow");
        }, function() { jQuery(this).next("div").fadeOut("fast"); });

        jQuery('.blogfrogpopupwidget').hover(function() {
            jQuery(this).stop(true, true).show();
        }, function() { jQuery(this).fadeOut("fast"); });

});



//If we were the ones that included jQuery, return the $ back to other libraries
try {
    if (BFincludedjQuery) {
        jQuery.noConflict();
    }
}
catch (theerror)
{ }

var ref = document.referrer;
if(ref.search(/\?/) > 0){
    ref = ref.substring(0,ref.search(/\?/));
}

if (typeof BlogFrogShowProfile == 'undefined') {
    BlogFrogShowProfile = 'True';
}
if (typeof BlogFrogForumN == 'undefined') {
    BlogFrogForumN = BlogFrogN;
}
if (typeof BlogFrogIntro == 'undefined') {
    BlogFrogIntro = 'Join me in';
}
document.write("<script type=\"text/javascript\" src=\"http://theblogfrog.com/widgets/CommunityWidget.aspx?UserID=" + BlogFrogUserID + "&BlogID=" + BlogFrogBlogID + "&sample=" + BlogFrogSample + "&color=" + BlogFrogColor + "&showprofile=" + BlogFrogShowProfile + "&n=" + BlogFrogN + "&forumn=" + BlogFrogForumN + "&width=" + BlogFrogWidth + "&widget_title=" + encodeURI(BlogFrogTitle) + "&widget_intro=" + encodeURI(BlogFrogIntro) + "&ref=" + ref + "\"></script>");

