var ooi_quote_5001_userPick = '';
var ooi_quote_5001_quoteId = '';
function ooi_quote_5001_incJs(filename) {
script = document.createElement('script');
script.src = filename;
script.type = 'text/javascript';
document.getElementsByTagName('head').item(0).appendChild(script);
}
function ooi_quote_5001_incCss(filename) {
var el = document.createElement('link');
el.type = "text/css";
el.rel = "StyleSheet";
el.media = "screen";
el.href = filename;
document.getElementsByTagName('head').item(0).appendChild(el);
}
function ooi_quote_5001_insertAfter(node, refNode) {
refNode.parentNode.insertBefore(node, refNode.nextSibling);
}
function ooi_quote_5001_likeItNoAjax() {
jQuery('#ooi-quote-5001-ilikeit').html("You like this.").show();
jQuery('#ooi-quote-5001-qlike').hide();
jQuery('#ooi-quote-5001-undo-link').show();
ooi_quote_5001_userPick = 'like';
}
function ooi_quote_5001_dislikeItNoAjax() {
jQuery('#ooi-quote-5001-ilikeit').html("You dislike this.").show();
jQuery('#ooi-quote-5001-qlike').hide();
jQuery('#ooi-quote-5001-undo-link').show();
ooi_quote_5001_userPick = 'dislike';
}
function ooi_quote_5001_likeIt() {
jQuery("script[src*='http://dev.ikayzo.com:80/ooi-widgets/quote/jlike.groovy']").remove();
ooi_quote_5001_incJs('http://dev.ikayzo.com:80/ooi-widgets/quote/jlike.groovy?widgetId=5001"eId=' + ooi_quote_5001_quoteId + '&choice=like');
jQuery('#ooi-quote-5001-ilikeit').html("You like this.").show();
jQuery('#ooi-quote-5001-qlike').hide();
jQuery('#ooi-quote-5001-undo-link').show();
ooi_quote_5001_incLikeCount(1);
ooi_quote_5001_userPick = 'like';
}
function ooi_quote_5001_dislikeIt() {
jQuery("script[src*='http://dev.ikayzo.com:80/ooi-widgets/quote/jlike.groovy']").remove();
ooi_quote_5001_incJs('http://dev.ikayzo.com:80/ooi-widgets/quote/jlike.groovy?widgetId=5001"eId=' + ooi_quote_5001_quoteId + '&choice=dislike');
jQuery('#ooi-quote-5001-ilikeit').html("You dislike this.").show();
jQuery('#ooi-quote-5001-qlike').hide();
jQuery('#ooi-quote-5001-undo-link').show();
ooi_quote_5001_incDislikeCount(1);
ooi_quote_5001_userPick = 'dislike';
}
function ooi_quote_5001_incLikeCount(val) {
var count = jQuery('#ooi-quote-5001-like-count').html();
count = parseInt(count) + parseInt(val);
if(count < 0)
count = 0;
var msg = (count == 1) ? "like" : "likes";
msg = count + " " + msg;
jQuery('#ooi-quote-5001-like-count').html(msg);
}
function ooi_quote_5001_incDislikeCount(val) {
var count = jQuery('#ooi-quote-5001-dislike-count').html();
count = parseInt(count) + parseInt(val);
if(count < 0)
count = 0;
var msg = (count == 1) ? "dislike" : "dislikes";
msg = count + " " + msg;
jQuery('#ooi-quote-5001-dislike-count').html(msg);
}
function ooi_quote_5001_undo() {
if(ooi_quote_5001_userPick == 'like') {
ooi_quote_5001_incLikeCount(-1);
ooi_quote_5001_incJs('http://dev.ikayzo.com:80/ooi-widgets/quote/jlike.groovy?widgetId=5001"eId=' + ooi_quote_5001_quoteId + '&choice=undo-like');
} else if(ooi_quote_5001_userPick == 'dislike') {
ooi_quote_5001_incDislikeCount(-1);
ooi_quote_5001_incJs('http://dev.ikayzo.com:80/ooi-widgets/quote/jlike.groovy?widgetId=5001"eId=' + ooi_quote_5001_quoteId + '&choice=undo-dislike');
}
ooi_quote_5001_userPick = '';
jQuery('#ooi-quote-5001-qlike').show();
jQuery('#ooi-quote-5001-undo-link').hide();
jQuery('#ooi-quote-5001-ilikeit').hide();
}
function ooi_quote_5001_getQuoteData() {
jQuery("script[src*='http://dev.ikayzo.com:80/ooi-widgets/quote/jserv.groovy']").remove();
ooi_quote_5001_incJs('http://dev.ikayzo.com:80/ooi-widgets/quote/jserv.groovy?widgetId=5001');
}
ooi_quote_5001_incCss("http://dev.ikayzo.com:80/ooi-widgets/css/quote/techhui.css");
ooi_quote_5001_incJs('http://dev.ikayzo.com:80/ooi-widgets/js/jquery.js');
var ooi_quote_5001_html = "Quote of the Day from Ooi.com Loading quote... Submit quotes to quote@techhui.com
Like /DislikeUndo?(0 likes / 0 dislikes)";
var ooi_quote_5001_scriptArr = document.getElementsByTagName('script');
for(var i=0; i