﻿var friends = {}; friends.defaultTop = 208;
friends.showbadge = function() {
    if (!window.XMLHttpRequest) { return; }
    if (document.getElementById('friendsBadge')) { document.body.removeChild(document.getElementById('friendsBadge')); }
    if (friends.top < 0 || friends.top > 1000 || isNaN(friends.top)) { friends.top = friends.defaultTop; }
    friends.tabStyleCode = 'position:fixed;' + 'top:' + friends.top + 'px;' + 'width:50px;' + 'height:150px;' + 'z-index:8765;' + 'cursor:pointer;' + 'background: url(' + friends.imageUrl + ');' + 'background-repeat:no-repeat;'; friends.tabStyleCode += 'right:0; background-position:left top;';
    friendsMainDiv = document.createElement('div'); friendsMainDiv.setAttribute('id', 'friendsFollowBadge'); document.body.appendChild(friendsMainDiv); friendsMainDiv.innerHTML = '<div id="friendsTab" style="' + friends.tabStyleCode + '"></div><style>#friendsFollowBadge:hover {visibility:visible;}</style>'; document.getElementById('friendsTab').onclick = function() { window.location = friends.url; }
}
var face = {}; face.defaultTop = 208;
face.showbadge = function() {
    if (!window.XMLHttpRequest) { return; }
    if (document.getElementById('facebookBadge')) { document.body.removeChild(document.getElementById('facebookBadge')); }
    if (face.top < 0 || face.top > 1000 || isNaN(face.top)) { face.top = face.defaultTop; }
    face.tabStyleCode = 'position:fixed;' + 'top:' + face.top + 'px;' + 'width:50px;' + 'height:150px;' + 'z-index:8765;' + 'cursor:pointer;' + 'background: url(' + face.imageUrl + ');' + 'background-repeat:no-repeat;'; face.tabStyleCode += 'right:0; background-position:left top;';
    faceMainDiv = document.createElement('div'); faceMainDiv.setAttribute('id', 'faceFollowBadge'); document.body.appendChild(faceMainDiv); faceMainDiv.innerHTML = '<div id="faceTab" style="' + face.tabStyleCode + '"></div><style>#faceFollowBadge:hover {visibility:visible;}</style>'; document.getElementById('faceTab').onclick = function() { window.open(face.url); } 
}
