﻿
var strTitle = encodeURIComponent(document.title);
var strURL = encodeURIComponent(location.href);
var strThumb = "";
var strDesc = "";
var strKeyword = "";
var strTwit = strURL;
var fontIndex = 1;


function hidediv() {
    document.getElementById('hideshow').style.visibility = 'hidden';
}

function showdiv() {
    document.getElementById('hideshow').style.visibility = 'visible';
}




function FontBuilder(location) {
    if (location == "up") {
        if (fontIndex < 5) {
            ++fontIndex;
        }
    }
    else {
        if (fontIndex > 1) {
            --fontIndex;
        }
    }
    switch (fontIndex) {
        case 1:
            document.getElementById('objectContent').style.fontSize = '14px'; document.getElementById('objectContent').style.lineHeight = '16px';
            break;
        case 2:
            document.getElementById('objectContent').style.fontSize = '16px'; document.getElementById('objectContent').style.lineHeight = '18px';
            break;
        case 3:
            document.getElementById('objectContent').style.fontSize = '18px'; document.getElementById('objectContent').style.lineHeight = '22px';
            break;
        case 4:
            document.getElementById('objectContent').style.fontSize = '22px'; document.getElementById('objectContent').style.lineHeight = '25px';
            break;
        case 5:
            document.getElementById('objectContent').style.fontSize = '25px'; document.getElementById('objectContent').style.lineHeight = '30px';
            break;
        case 6:
            document.getElementById('objectContent').style.fontSize = '30px'; document.getElementById('objectContent').style.lineHeight = '35px';
            break;
        default:
            break;
    }
}




function GetThis(T, C, U, L) {
    var targetUrl = 'http://www.myspace.com/index.cfm?fuseaction=postto&' + 't=' + encodeURIComponent(T)
    + '&c=' + encodeURIComponent(C) + '&u=' + encodeURIComponent(U) + '&l=' + L;
    window.open(targetUrl);
}
function delicious() {
    t = encodeURIComponent(document.title);
    window.open('http://del.icio.us/post?v=4&noui&jump=close&url=' + encodeURIComponent(location.href) + '&title=' + encodeURIComponent(document.title) + '&notes=' + strDesc + '&tags=' + encodeURIComponent(t.replace(" ", ",")), 'delicious', 'toolbar=no,width=700,height=400');
}
function google() {



    window.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=' + encodeURIComponent(location.href) + '&title=' + t + '&labels=' + t.replace(" ", ",") + '&annotation=' + strDesc, 'googlebookmark', 'toolbar=no,width=700,height=500');
}
function twitter() {
    window.open('http://twitter.com/home?status=' + encodeURIComponent(location.href), 'sharer', 'toolbar=0,status=0,width=626,height=436');
}
function myspace() {
    GetThis(encodeURIComponent(document.title), "", encodeURIComponent(location.href), 3);
}
function digg() {
    window.open('http://digg.com/submit?phase=2&url=' + encodeURIComponent(document.location.href) + '&title=' + encodeURIComponent(document.title), 'digg', 'scrollbars=yes,toolbar=no,width=760,height=500');
}
function email() {
    window.open('/arkadasina-gonder.aspx?url=' + encodeURIComponent(document.location.href) + '&title=' + encodeURIComponent(document.title), 'email', 'scrollbars=yes,toolbar=no,width=540,height=300');
}
function openup(thehref, thew, theh) {
    window.open(thehref, '', 'width=' + thew + ',height=' + theh + ',left=0,top=0,scrollbars=yes,location=no,resizable=yes');
}



function facebook() 
{
u = location.href;
t = document.title;
window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
return false;
}


