// JavaScript Document
path = "/spiegelandgrau/pass_it_on/";
//if (url=="<$MTEntryPermalink$>") {
url = window.location.href;
//}

document.writeln('<link href=\"' + path + 'style.css\" rel=\"stylesheet\" type=\"text/css\" />');
document.writeln('<div id=\"ecard\" class=\"passHidden\">');
document.writeln('<iframe src=\"/spiegelandgrau/pass_it_on/ecard.php?url=' + url + '\" scrolling=\"no\" allowtransparency=\"true\" frameborder=\"0\" width=\"625\" height=\"290\" style=\"border: 1px solid #AC9897; padding: 5px\"></iframe></div>');



function toggleEcard(flag) {
	
	r = document.getElementById("ecard");	
	if (r.className == "passHidden") {
		r.className = "passShow";	
	} else {
		if (flag == 1 ) {
			tempimg = document.getElementById("sendBar");
			tempimg.src = path + "send_thanks.gif";
		}
		r.className = "passHidden";
	}
	
}