﻿function AdjustColumnsHeight() { var centerCol = window.document.getElementById('centercol'); var leftCol = window.document.getElementById('leftcol'); var hCenterCol = centerCol.offsetHeight; var hLeftCol = leftCol.offsetHeight; var maxHeight = Math.max(hCenterCol, hLeftCol); centerCol.style.height = maxHeight + 'px'; leftCol.style.height = maxHeight + 'px'; window.document.getElementById('footer').style.visibility = 'inherit'; }
function ScreenResolution() {
    if (screen.width >= 1024) { window.document.getElementById('banner2').style.visibility = 'visible'; }
    else { } 
}
function HeaderMenu() { var agt = navigator.userAgent.toLowerCase(); if (agt.indexOf("firefox") != -1) { window.document.getElementById('headermenu').style.textAlign = '-moz-center'; window.document.getElementById('footertext').style.textAlign = '-moz-center'; } }
function addLoadEvent(fn) {
    var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else {
        window.onload = function () {
            if (oldonload) { oldonload(); }
            func();
        } 
    } 
}
function AddDotNetKicks() { var insertLocation = document.getElementById('postToolbar'); if (insertLocation) { var currentPageUrl = "http://www.dotnetcurry.com/ShowArticle.aspx" + document.location.search; var dotnetkicksLink = document.createElement('a'); dotnetkicksLink.href = 'http://www.dotnetkicks.com/kick/?url=' + currentPageUrl; var dotnetkicksImg = document.createElement('IMG'); dotnetkicksImg.src = 'http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=' + currentPageUrl; dotnetkicksImg.border = 0; dotnetkicksLink.appendChild(dotnetkicksImg); insertLocation.appendChild(dotnetkicksLink); alert(dotnetkicksLink); } }
window.onload = function () { AdjustColumnsHeight(); ScreenResolution(); HeaderMenu(); addLoadEvent(AddDotNetKicks()); }
