var Kp_1e7eec846641c95a6f2d889e589b708d_HTML = "\x3cstyle type=\"text/css\"\x3e\r\n.kapostWidget{\r\n -moz-border-radius:5px ;\r\n -webkit-border-radius: 5px;\r\n border-radius: 5px;\r\n position: relative;\r\n font-family: arial,sans-serif;\r\n overflow: hidden;\r\n line-height: 1em;\r\n font-size: 12px;\r\n}\r\n.kapostWidget h4.widgetTitle{\r\n font-size: 14px;\r\n font-weight: bold;\r\n display: block;\r\n margin: 20px 10px 15px 10px !important;\r\n}\r\n.kapostWidget .widgetPostRow{\r\n -moz-border-radius:5px ;\r\n -webkit-border-radius: 5px;\r\n border-radius: 5px;\r\n margin: 2px 10px !important;\r\n overflow: hidden; \r\n clear: both;\r\n display: block;\r\n}\r\n.kapostWidget .widgetPostRow .kpusrimg{\r\n margin: 9px !important;\r\n overflow: hidden;\r\n float: left;\r\n width: 35px;\r\n display: block;\r\n}\r\n.kapostWidget .widgetPostRow .kpusrimg img{\r\n width: 35px;\r\n}\r\n.kapostWidget.noUsrImg .kpusrimg{\r\n display: none;\r\n}\r\n.kapostWidget .widgetPostRow .kapostRowInfo{\r\n float: none;\r\n width: auto;\r\n font-size: 12px;\r\n font-weight: bold;\r\n margin: 9px 5px 9px 0 !important;\r\n overflow: hidden;\r\n}\r\n.kapostWidget.noUsrImg .kapostRowInfo{\r\n margin-left: 9px !important;\r\n}\r\n.kapostWidget .widgetPostRow .kapostTtl{\r\n font-size: 12px;\r\n font-weight: bold;\r\n text-decoration: none;\r\n}\r\n.kapostWidget .widgetPostRow .kapostusr{\r\n text-decoration: none;\r\n font-size: 12px;\r\n font-weight: normal;\r\n}\r\n.kapostWidget .widgetPostRow .kapostDate{\r\n font-size: 10px;\r\n display: block;\r\n clear: both;\r\n line-height: 1.2em;\r\n text-transform: capitalize;\r\n}\r\n.kapostWidget.noPostDate .widgetPostRow .kapostDate{\r\n display: none;\r\n}\r\n.kapostWidget .widgetFooter{\r\n margin: 5px 10px 0 !important;\r\n border-top: 2px solid #999;\r\n text-align: right;\r\n padding: 3px 0 !important;\r\n}\r\n.kapostWidget .kapostPowBy{\r\n text-decoration: none;\r\n font-size: 10px;\r\n font-weight: normal;\r\n color: #999;\r\n}\r\n.kapostWidget .kapostContribute{\r\n text-align: center;\r\n margin: 5px 10px !important;\r\n}\r\n.kapostWidget .kapostContribute .kpContributeBtn{\r\n -moz-border-radius:5px ;\r\n -webkit-border-radius: 5px;\r\n border-radius: 5px;\r\n border: 0;\r\n overflow: visible;\r\n font-weight: bold;\r\n font-size: 12px;\r\n padding: 5px 15px;\r\n cursor: pointer;\r\n}\r\n.kapostWidget .kapostMsg{\r\n margin: 5px 10px !important;\r\n font-size: 12px;\r\n}\r\n/* css customization*/\r\n#Kp_1e7eec846641c95a6f2d889e589b708d.kapostWidget{\r\n background-color: shell_bg; /*shell_bg*/\r\n color: shell_txt; /*shell_txt*/\r\n}\r\n#Kp_1e7eec846641c95a6f2d889e589b708d.kapostWidget h4.widgetTitle{\r\n color: shell_txt; /*shell_txt*/\r\n}\r\n#Kp_1e7eec846641c95a6f2d889e589b708d.kapostWidget .widgetPostRow{\r\n background-color: post_bg; /*post_bg*/\r\n color: post_txt; /*post_txt*/\r\n}\r\n#Kp_1e7eec846641c95a6f2d889e589b708d.kapostWidget .widgetPostRow .kapostTtl{\r\n color: links !important; /*links*/\r\n}\r\n#Kp_1e7eec846641c95a6f2d889e589b708d.kapostWidget .widgetPostRow .kapostusr{\r\n color: links; /*links*/\r\n}\r\n#Kp_1e7eec846641c95a6f2d889e589b708d.kapostWidget .widgetPostRow .kapostDate{\r\n color: date_txt; /*date_txt*/\r\n}\r\n#Kp_1e7eec846641c95a6f2d889e589b708d.kapostWidget .kapostPowBy{\r\n color: shell_txt !important; /*shell_txt*/\r\n}\r\n#Kp_1e7eec846641c95a6f2d889e589b708d.kapostWidget .kapostContribute .kpContributeBtn{\r\n background-color: button_bg; /*button_bg*/\r\n color: button_txt; /*button_txt*/\r\n}\r\n\x3c/style\x3e\r\n\x3cdiv class=\"kapostWidget\" id=\"Kp_1e7eec846641c95a6f2d889e589b708d\"\x3e\r\n \x3ch4 class=\"widgetTitle\" id=\"Kp_1e7eec846641c95a6f2d889e589b708d_WgdtTtl\"\x3eMy Community\'s Posts\x3c/h4\x3e\r\n \x3cdiv class=\"widgetPostRow\"\x3e\r\n \x3cdiv class=\"kpusrimg\"\x3e\x3cimg src=\"http://joshfraser.kapost.com/sites/all/modules/dailyinches/modules/di_activity_feeds/images/defuser.png\"\x3e\x3c/img\x3e\x3c/div\x3e\r\n \x3cdiv class=\"kapostRowInfo\"\x3e\r\n \x3ca class=kapostTtl href=\"http://joshfraser.kapost.com/post/another-approach-dealing-timezones-and-javascript\" target=\"_blank\"\x3eAnother approach to dealing with timezones and javascript\x3c/a\x3e by \x3ca class=\"kapostusr\" href=\"http://joshfraser.kapost.com/users/xirias\" target=\"_blank\"\x3exirias\x3c/a\x3e\r\n \x3cspan class=\"kapostDate\"\x3eposted Thu 08, 2010\x3c/span\x3e\r\n \x3c/div\x3e\r\n \x3c/div\x3e\r\n \r\n \x3cdiv class=\"kapostMsg\" id=\"Kp_1e7eec846641c95a6f2d889e589b708d_WgdtMsg\"\x3eAnyone can submit content to this site. Click here to add your\'s\x3c/div\x3e\r\n \x3cdiv class=\"kapostContribute\"\x3e\r\n \x3cinput type=\"button\" value=\"Contribute\" class=\"kpContributeBtn\" onclick=\" Kp_1e7eec846641c95a6f2d889e589b708d_showPopup();\"\x3e\r\n \x3c/div\x3e\r\n \x3cdiv class=\"widgetFooter\"\x3e\x3ca class=\"kapostPowBy\" href=\"http://kapost.com\" target=\"_blank\"\x3ePowered by Kapost\x3c/a\x3e\x3c/div\x3e\r\n\x3c/div\x3e";
var KapostWidget = KapostWidget? KapostWidget : function(_settings){
var self = this;
var Settings = _settings;
var widgetHtml = null;
this.Show = function(){
try{
widgetHtml = eval(Settings['classHldr']+"_HTML");
if(typeof( widgetHtml) != "undefined"){
if(typeof(Settings['appearance']['colors']) == "object"){
var colors = Settings['appearance']['colors'];
for(var i in colors){
var what = new RegExp(i, "g")
widgetHtml = widgetHtml.replace(what,colors[i]);
}
}
document.write(widgetHtml);
var prefs = Settings['prefs']
var thiswidget = document.getElementById(Settings['classHldr']);
document.getElementById(Settings['classHldr']+"_WgdtTtl").innerHTML = prefs['title'];
document.getElementById(Settings['classHldr']+"_WgdtMsg").innerHTML = prefs['message_text'];
if(!prefs['user_thumbs']){
thiswidget.className += " noUsrImg";
}
if(!prefs['show_post_date']){
thiswidget.className += " noPostDate";
}
if(!prefs['show_messaging']){
document.getElementById(Settings['classHldr']+"_WgdtMsg").style.display = "none";
}
}
}catch(e){}
}
}