function ClipBoard()
{

	document.TT.ta.select();
	
	Copied = document.TT.ta.createTextRange();
	Copied.execCommand("Copy");
	
	msg.innerText = ' Code copied '
}

function showAddToBlog(o, e, urlToSend, imageUrl, title)
{
	var str = "";
	
	str += "<form name=\"TT\"><table width='500' border='0' cellpadding='0' cellspacing='0'><tr><td bgcolor='#ffffff' class='textohome'><b>Add to my blog: " + title.replace("'","") + "</b></td><td bgcolor='#ffffff' align='right' class='textohome' valign=\"center\"><div style=\"display:inline;cursor: pointer\" onClick=\"javascript:ToolTip.style.visibility='hidden'\">close</div>&nbsp;<img align='absmiddle' src='/images/closepopupblog.gif' border='0' style=\"cursor: pointer\" onClick='javascript:ToolTip.style.visibility=\"hidden\"'></td></tr>";

	str += "<tr><td colspan='2'><TEXTAREA style='border-color:#f1970b;border-style:solid;border-width:3px 0px 0px 0px;' class=\"textohome\" id=\"ta\" name=\"ta\" onfocus=\"javascript:ClipBoard()\" onclick=\"javascript:ClipBoard()\" ROWS=\"12\" COLS=\"85\" readonly style=\"overflow:hidden;\">";

	str += "<center><A href=\"http://www.greetingsforever.com/cards/" + urlToSend  + "\">Click here to send</a><br><A href=\"http://www.greetingsforever.com/cards/" + urlToSend + "\"><img src=\"http://www.greetingsforever.com" + imageUrl + "\" BORDER=\"0\" alt=\"Send this card\"/></A><br/><a href=\"http://www.greetingsforever.com/\">&amp;#169; www.Greetingsforever.com</a><br/><A href=\"http://www.greetingsforever.com/cards/" + urlToSend + "\">ĄClick here to send!</a></center><br/></TEXTAREA></td></tr>";

	str += "<tr><td height=\"23\" colspan=\"2\" valign=\"center\" bgcolor=\"#ffcc66\" class=\"textohome\">&nbsp;<input type=\"button\" value=\"Copy code\" onclick=\"javascript:ClipBoard()\"><div style=\"display:inline;\" id=\"msg\" name=\"msg\"></div></td></tr>";

	str += "<tr><td colspan=\"2\" class='textohome' style='border-color:#ffffff;border-style:solid;border-width:7px 7px 7px 7px;'>";

	str += "Help to add your favourite eCards from TuParada.com to Blogger.com or MySpace.com. If you want to add them to other Web page, the steps to take are similar.<br><Br>";

	str += "<B>Add an eCard to your Blog or  Web Page:</b><Br><br>";

	str += "1 - Click on the  \"Add to my Blog\", button that is at the side of the small ecard image. A window displays, click on \"Copy code\" and copy the code using the second button of your Mouse.<br><br>";

	str += "2 - In another window display for example, \"Blogger.com\" log in.<Br><Br>";

	str += "3 - Click on  \"HTML Edition\" and paste the code with the second button of your Mouse on the window displayed on the screen.<br><br>";

	str += "4 - Click on the  \"Publish\" button to see how the eCard looks on your Blog. You can add all the ecards that you want.<br><br>";

	str += "Send an e-mail to your friends so that they send the eCards from your Web Page or your Blog.<br><br>";

	str += "You can also tell them how easy it is to add their favourite eCards from www.Greetingsforever.com to their Blogs or Web Pages.<br><br>";

	str += "Greetingsforever.com eCards can solely be used for personal use. No Greetingsforever.com eCard can be used for commercial purposes.<br>"; 

	str += "© Greetingsforever.com is the owner of all intellectual property rights. All rights reserved.<br><br>";

	str += "</td></tr><tr><td height=\"23\" colspan='2' valign='center' bgcolor='#ffcc66' class='textohome'>&nbsp;<input type='button' value='Close' onclick=\"javascript:ToolTip.style.visibility='hidden'\"></td></tr></table></form>";
	
	document.all.ToolTip.innerHTML=str;
	
	var agt=navigator.userAgent.toLowerCase();

	if (agt.indexOf('msie')==-1) {
		document.all.ToolTip.style.marginTop = (o.y + 10);
	}
	else
	{
		document.all.ToolTip.style.marginTop = (e.y - 25 + document.body.scrollTop);
	}
	
	document.all.ToolTip.style.marginLeft = (screen.width/2) - 220 ;
	document.all.ToolTip.style.visibility = "visible";
}

function hideAddToBlog()
{
	document.all.ToolTip.style.visibility="hidden";
} 