// JavaScript Document

$(document).ready(function()
{



});

function test()
{
alert(this.offsetHeight )
}
// + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop)

function popLink()
{

var makeHTML = "<div id='mainContainer'><div id='topContainer'>Share this page.</div><div id='leftContainer'><div class='bookmarkItem' onclick='facebook()'><img src='http://www.a-media.co.uk/sobopro/bookmark_images/facebook.gif' alt='' width='20' height='20' align='left' onclick='myUrl()'/> Facebook</div><div class='bookmarkItem' onclick='digg()'><img src='http://www.a-media.co.uk/sobopro/bookmark_images/digg.gif' alt='' width='20' height='20' align='left' /> Digg</div><div class='bookmarkItem' onclick='reddit()'><img src='http://www.a-media.co.uk/sobopro/bookmark_images/reddit.gif' alt='' width='20' height='20' align='left' /> reddit</div><div class='bookmarkItem' onclick='delicious()'><img src='http://www.a-media.co.uk/sobopro/bookmark_images/del.gif' alt='' width='20' height='20' align='left' /> Delicious</div><div class='bookmarkItem' onclick='stumbleupon()'><img src='http://www.a-media.co.uk/sobopro/bookmark_images/stumbleupon.gif' alt='' width='20' height='20' align='left' /> StumbleUpon</div></div><div id='rightContainer'><p>Select the site where you would like to share this page.  </p><p>You will be directed to the sites share page where you may have to provide your login details. </p></div><div id='bottomContainer'><a href='http://www.a-media.co.uk/SoBoPro.asp' target='_blank'>SoBoPro</a></div></div>";

$("body").prepend("<div id='testmid' class='testmid' onclick='hideLink()'</div>");
$("body").prepend("<div id='testdiv' class='testdiv' onclick='hideLink()'></div>");

$("#testmid").prepend(makeHTML);

//$("#testmid").load("http://www.a-media.co.uk/sobopro/sobopro.html");

document.getElementById("testdiv").style.display ='block';
document.getElementById("testmid").style.display ='block';
//$("div.testdiv").show("slow");
//$("div.testmid").show("slow");

}


function hideLink()
{
$("div.testdiv").hide("slow");
$("div.testmid").hide("slow");
$("div.testdiv").remove();
$("div.testmid").remove();
}

function myUrl()
{
//alert(window.location)	
}


function facebook()
{
var linkUrl = "http://facebook.com/sharer.php?u=" + window.location + "&t=" + document.title;
//alert(linkUrl)
window.open(linkUrl,"Facebook");
}

function digg()
{
var linkUrl = "http://digg.com/submit?url=" + window.location + "&title=" + document.title;
window.open(linkUrl,"Digg");

}

function reddit()
{
var linkUrl = "http://www.reddit.com/submit?url=" + window.location + "&title=" + document.title;
window.open(linkUrl,"Reddit");
}

function delicious()
{
var linkUrl = "http://delicious.com/save?url=" + window.location + "&title=" + document.title;
window.open(linkUrl,"Delicious");
}

function stumbleupon()
{
var linkUrl = "http://www.stumbleupon.com/submit?url=" + window.location + "&title=" + document.title;
window.open(linkUrl,"StumbleUpon");
}