/*
set baseURL to point to your Pligg installation
*/
var baseURL = "http://mydungeonspace.com/kink-link";


/*
The following code is how Digg.com determines the button appearance.
You do not need to change anything below. However, if you wish to expand on
how Pligg works, you can use the variables provided below to guide you.
For example, the included evb.php file and Pligg programming would need to be altered 
in order to use all the possible variations below.
*/
var ls=typeof link_skin=='string'?link_skin:'';
var h=74;
var w=71;
if(ls=='compact'){h=20;w=120;}
else if(ls=='icon'){h=20;w=20;}
var url=typeof link_url=='string'?link_url:(typeof LINK_URL=='string'?LINK_URL:window.location.href);

document.write("<iframe src='" + baseURL + "/evb/evb.php?url="+escape(url).replace(/\+/g,'%2b')+
(typeof link_title=='string'?('&title='+escape(link_title)):'')+
(typeof link_window=='string'?('&window='+escape(link_window)):'')+
(typeof link_bodytext=='string'?('&text='+escape(link_bodytext)):'')+
(typeof link_topic=='string'?('&topic='+escape(link_topic)):'')+
(ls?('&s='+ls):'')+"' height='"+h+"' width='"+w+"' frameborder='0' scrolling='no'></iframe>");
