// JavaScript Document

function evb_big(url){
	if(url == '' || url == 'URL_GOES_HERE'){url = window.location.href;}

	url = 'http://buffd.net/evb/check_url.php?url='+escape(encodeURIComponent(url));
	document.write('<iframe width="59" height="80" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" src="'+url+'"></iframe>');
}

function evb_small($url){
	if($url == ''){
		document.write("<a href = \"http://buffd.net/submit.php?url=" + escape(window.location.href).replace(/\+/g,"%2b") + "\"><img src = \"http://buffd.net/evb/img/votebutton.png\"> Add to Buff'd</a>");
	} else {
		document.write("<a href = \"http://buffd.net/submit.php?url=" + escape($url).replace(/\+/g,"%2b") + "\"><img src = \"http://buffd.net/evb/img/votebutton.png\"> Add to Buff'd</a>");
	} 
}

function evb_text($url){
	if($url == ''){
		document.write("<a href = \"http://buffd.net/submit.php?url=" + escape(window.location.href).replace(/\+/g,"%2b") + "\">Add to Buff'd</a>");
	} else {
		document.write("<a href = \"http://buffd.net/submit.php?url=" + escape($url).replace(/\+/g,"%2b") + "\">Add to Buff'd</a>");
	} 
}
