function ShowBlock(div, desc)
{
	div = document.getElementById(div);
	div.style.display = 'block';
	div.style.position = 'absolute';
	div.style.backgroundColor = 'lightyellow';
	div.style.border = 'solid 1px black';
	div.style.padding = '10px';
	div.style.paddingRight = '10px';
	div.style.marginTop = '4px';
	div.style.marginLeft = '10px';
	div.style.fontSize = '11px';
	div.style.textAlign = 'left';
	div.style.lineHeight = '13px';
	div.innerHTML = '<div><img src="' + desc + '" /></div>';
}

function HideBlock(div)
{
	div = document.getElementById(div);
	div.style.display = 'none';
}

function bookmark()
{
	var url = "http://www.brother-sister-incest.com";
	var title = "Brother Sister Incest Stories";
	if (window.sidebar.addPanel) // firefox
	{
		try
		{
			window.sidebar.addPanel(title, url, "");  // firefox
			return true;
		}
		catch(e){}
	}
	else if(window.opera && window.print) // opera
	{
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	}
	else if(document.all)// ie
	{
		window.external.AddFavorite(url, title);
	}
	return true;
}


function ShowTooltip(title, text)
{
	div = document.getElementById("pic_tooltip");
	div.innerHTML = '<b>' + title + '</b><br>' + text;
	div.style.display = 'block';
}

function MoveTooltip(e)
{
	div = document.getElementById("pic_tooltip");
	x = 5;
	y = 20;
        if ((e.clientX + x + div.clientWidth) > (document.body.clientWidth + document.documentElement.scrollLeft))
            x = (document.body.clientWidth + document.documentElement.scrollLeft) - div.clientWidth;
        else
            x = e.clientX + x;
	y = e.clientY + document.documentElement.scrollTop + y;

	if(x+div.clientWidth+20 > document.body.clientWidth)
		x = x-20;

	div.style.left = x + 'px';
	div.style.top = y + 'px';
}

function HideTooltip()
{
	div = document.getElementById("pic_tooltip");
	div.style.display = 'none';
}
