﻿
var thisUrl = window.location.protocol + "//" + window.location.host +  window.location.pathname;


var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-10623173-2']);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackSocial', 'facebook', 'like', undefined, thisUrl]);
_gaq.push(['_trackSocial', 'twitter', 'tweet', undefined, thisUrl]);
_gaq.push(['_trackSocial', 'linkedIn', 'share', undefined, thisUrl]);

(function () {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();



function locationPort()
        {
            // alternate method to get the port number
            // using substring function on location.host property
            var portNumber = new String();
            
            portNumber = window.location.host;
            portNumber = portNumber.substring( portNumber.indexOf( ":" ) + 1 );
            
            return portNumber;
        }
