var show_up_level = 3 ;var header_up_level = 2 ;var is_debug_log_enabled = 0; var sz_is_auto_layout = 1; var sz_high_sibling = 0; var sz_low_sibling = 0; var sz_custom_ratings_text = {1:"not good", 2:"so so", 3:"good", 4:"terrific", 5:"wo0T!"}; SezWho = { Version: '2.1' } ; SezWho.Utils = {} ; // class for rendering the sezwho UI for each comment SezWho.PluginCore = new function () { this.szManageEmbedUI = function () { SezWho.Utils.log("info", "called SezWho.PluginCore.szManageEmbedUI "); if (window.sz_global_config_params == null || document.getElementById('cpEmbedPageTableid') || window.sz_comment_config_params == null || window.sz_comment_config_params.comment_number == null || ((window.sz_comment_config_params.sz_enable_comment_rating != null) && (0 === sz_comment_config_params.sz_enable_comment_rating)) ) { return; } var post_id = sz_comment_config_params.post_id ; var sortScore = sz_comment_config_params.sortOrder ; var isErrorShown = "false" ; if (sortScore == '') sortScore = 0 ; if (sz_comment_config_params.comment_number != sz_comment_config_params.sz_comment_data.length) { sz_comment_config_params.comment_number = sz_comment_config_params.sz_comment_data.length; } if (!sz_comment_config_params.sz_enable_comment_filter && SezWho.BlogPlatformCallbackJS.get_platform() != "blogger") return; if (sz_comment_config_params.sz_auto_option_bar && sz_comment_config_params.sz_enable_comment_filter) { var fb = get_show_comment_dropdown_div(); var fbph = document.getElementById('szOptionBarPlaceHolder'); fbph.parentNode.replaceChild(fb, fbph); } else if (sz_comment_config_params.sz_enable_comment_filter){ var cn = SezWho.BlogPlatformCallbackJS.get_top_of_first_comment(sz_comment_config_params.sz_comment_data[0].comment_id); var showCommentDiv = get_show_comment_dropdown_div(); try { if (cn && cn.parentNode) { cn.parentNode.insertBefore(showCommentDiv, cn); } } catch (e) { if (isErrorShown == "false" ) { SezWho.Utils.log("error", "We could not handle this theme, please use the manual modification of theme as outlined in "+sz_global_config_params.cpserverurl+"/FAQ.php."); isErrorShown = "true" ; return ; } } } // loop over the comment score information passed and populate the comment header and footer var hn, fn, ccd; for (var co2 = 0 ; co2 < sz_comment_config_params.comment_number; co2++) { if (typeof(sz_comment_config_params.sz_comment_data[co2]) == "undefined" || sz_comment_config_params.sz_comment_data[co2].comment_score == 0) continue; hn = null; fn = null; ccd = null; if (SezWho.BlogPlatformCallbackJS.get_platform() == "blogger"){//insert the header etc. var at = null; var url = unescape(sz_comment_config_params.sz_comment_data[co2].comment_author_url); if (url != "") at= SezWho.BlogPlatformCallbackJS.get_comment_author_name(sz_comment_config_params.sz_comment_data[co2].comment_id, url); if (!at) continue; if (sz_comment_config_params.sz_comment_data[co2].comment_author == "") sz_comment_config_params.sz_comment_data[co2].comment_author = escape(at.innerHTML); var im = cp_comment_user_image(co2, sz_comment_config_params.sz_comment_data[co2].encoded_email, at.innerHTML, 0); var ln = cp_comment_profile_link(co2, 0); if (ln && im && at.parentNode){ at.parentNode.insertBefore(im, at); at.parentNode.insertBefore(ln, at.nextSibling); } // now the ratings bar var bb = SezWho.BlogPlatformCallbackJS.get_comment_bottom_block(sz_comment_config_params.sz_comment_data[co2].comment_id); if (!bb) continue; var rb = cp_comment_footer_content(co2, sz_comment_config_params.sz_comment_data[co2].comment_score, sz_comment_config_params.sz_comment_data[co2].rating_count); if (rb) bb.insertBefore(rb, null); } if (sz_comment_config_params.sz_enable_comment_filter && SezWho.BlogPlatformCallbackJS.get_platform() != "blogger"){// filtering not supported on blogger var comment_node = SezWho.BlogPlatformCallbackJS.get_comment_node(sz_comment_config_params.sz_comment_data[co2].comment_id); if (!comment_node) comment_node = SezWho.BlogPlatformCallbackJS.get_comment_node_by_calc(sz_comment_config_params.sz_comment_data[co2].comment_id,1); if (!comment_node) continue; try { hn = get_comment_header_div(co2); // Next create the composite Div and insert it ccd = get_composite_div(co2); while (comment_node.firstChild) { ccd.appendChild(comment_node.firstChild); } comment_node.appendChild(ccd); // Last insert the comment header node. comment_node.insertBefore(hn,ccd); } catch (e) { if (isErrorShown == "false") { SezWho.Utils.log("error", "We could not handle this theme, please use the manual modification of theme as outlined in "+sz_global_config_params.cpserverurl+"/FAQ.php ."); isErrorShown = "true" ; return ; } } } } } this.szManagePostUI = function(){ if (window.sz_global_config_params == null || 'undefined' == typeof sz_post_config_params || window.sz_post_config_params == null) return; if (SezWho.BlogPlatformCallbackJS.get_platform() == "blogger") { for (id in sz_post_config_params) { var pn = SezWho.BlogPlatformCallbackJS.get_post_node(id); if (sz_post_config_params[id].blog_author_name == "") sz_post_config_params[id].blog_author_name = "Author"; var fb = cp_post_footer_content( sz_post_config_params[id].post_id, sz_post_config_params[id].post_score, sz_post_config_params[id].rating_count, sz_post_config_params[id].blog_author_name, sz_post_config_params[id].md5email); if (!fb || !pn) continue; pn.insertBefore(fb, null); } } else { for (id in sz_post_config_params) { var pn; var sn; var sid = document.getElementById('sz_image_link_post:'+id); if (sid && sid.parentNode.tagName && sid.parentNode.tagName == 'A'){ pn = sid.parentNode.parentNode; sn = sid.parentNode; pn.insertBefore(sid, sn); } var sid = document.getElementById('sz_author_span_post:'+id); if (sid && sid.parentNode.tagName && sid.parentNode.tagName == 'A'){ pn = sid.parentNode.parentNode; sn = sid.parentNode; sn.removeChild(sid); pn.insertBefore(sid, sn.nextSibling); } } } } function get_show_comment_dropdown_div() { if ((window.sz_comment_config_params.sz_enable_comment_filter != null) && (1 === sz_comment_config_params.sz_enable_comment_filter)){ iHtml = "

Filter: What is this?

"; } else { iHtml = "
"; } if (navigator.userAgent.match(/msie (5\.5|6)/i)&&navigator.platform=="Win32") { //PNG fix iHtml = iHtml+""; } else { iHtml = iHtml+""; } iHtml = iHtml+"
"; var div = document.createElement("div"); div.innerHTML = iHtml; return div; } function get_commenter_display(i) { var comment_author_anchor ; var comment_author = unescape(sz_comment_config_params.sz_comment_data[i].comment_author); var comment_author_url = sz_comment_config_params.sz_comment_data[i].comment_author_url; if (comment_author_url && comment_author_url.length > 0 && comment_author_url != "http://") { comment_author_anchor = ""+comment_author+"" ; } else { comment_author_anchor = comment_author ; } return comment_author_anchor; } function cp_comment_profile_link(comment_iteration_num, h) { var ih = " (Check me out!)"; if (h) return ih; var ls = document.createElement("span") ; ls.innerHTML = ih; return ls; } function cp_comment_footer_content(comment_iteration_num, cs, rc) { var rb = document.createElement("div") ; var to_return; var width = Math.round(cs*10) ; to_return = ""; to_return += ""; to_return += ""; to_return += ''; to_return += '
"; to_return += "Rate this: "; to_return += ""; to_return += '
'; to_return += "
"; to_return += ''+cs/2+''; if (rc!= "" && parseInt(rc)) if (rc == '1') to_return += ' ('+rc+' person)'; else to_return += ' ('+rc+' people)'; else to_return += ''; to_return += "
'; rb.innerHTML = to_return; return rb; } function cp_post_footer_content(pid, ps, rc, aname, md5email) { var rb = document.createElement("div") ; var to_return; var width = Math.round(ps*10) ; to_return = ""; to_return += ""; to_return += ""; to_return += ""; to_return += ''; to_return += '
"; to_return += "Rate this: "; to_return += ""; to_return += '
'; to_return += "
"; to_return += ''+ps/2+''; if (rc!= "" && parseInt(rc)) if (rc == '1') to_return += ' ('+rc+' person)'; else to_return += ' ('+rc+' people)'; else to_return += ''; to_return += ""; to_return += ""; to_return += "User Image"; to_return += " "; to_return += ""+aname+" (Check me out!)"; to_return += "
'; rb.innerHTML = to_return; return rb; } function cp_comment_user_image(comment_iteration_num, md5_email, aname, h){ var ih= "no image"; if (h) return ih; var img_span = document.createElement("span") ; img_span.innerHTML = ih; return img_span; } function get_comment_header_div(i) { var iHtml = ""; iHtml += "" ; iHtml += "" ; iHtml += "" ; var div = document.createElement("div"); div.innerHTML = iHtml; return div; } function get_composite_div(i) { SezWho.Utils.log("info" , "get_composite_div called with i = "+i); var commentCompositeDiv = document.createElement("div") ; commentCompositeDiv.id = "sz_comment_collapse_div:"+i ; commentCompositeDiv.className = "cpEmbedPageCommentBodyCollapseDivCustom"; if (sz_comment_config_params.sz_show_commenter_pic==1) commentCompositeDiv.innerHTML = ""; return commentCompositeDiv ; } } /* End of SezWho.PluginCore class */ /* Start PopupWindow class */ function PopupWindow() { if (!window.popupWindowIndex) { window.popupWindowIndex = 0; } if (!window.popupWindowObjects) { window.popupWindowObjects = new Array(); } if (!window.listenerAttached) { window.listenerAttached = true; PopupWindow_attachListener(); } this.index = popupWindowIndex++; popupWindowObjects[this.index] = this; this.divName = null; this.popupWindow = null; this.event = new function() {this.type=null,this.ClientX=0,this.ClientY=0;ScreenX=0;ScreenY=0;}; this.visible = false; this.autoHideEnabled = false; this.contents = ""; if (arguments.length>0) { this.type="DIV"; this.divName = arguments[0]; } this.use_gebi = false; this.use_css = false; this.use_layers = false; if (document.getElementById) { this.use_gebi = true; } else if (document.all) { this.use_css = true; } else if (document.layers) { this.use_layers = true; } else { this.type = "WINDOW"; } // Method mappings this.refresh = PopupWindow_refresh; this.showPopup = PopupWindow_showPopup; this.hidePopup = PopupWindow_hidePopup; this.isClicked = PopupWindow_isClicked; this.autoHide = PopupWindow_autoHide; this.hideIfNotClicked = PopupWindow_hideIfNotClicked; this.updateEvent = PopupWindow_updateEvent; // Refresh the displayed contents of the popup function PopupWindow_refresh() { if (this.divName != null) { // refresh the DIV object document.getElementById(this.divName).innerHTML = this.contents; } } // Position and show the popup, relative to an anchor object function PopupWindow_showPopup() { this.x = this.event.ScreenX + this.offsetX; this.y = this.event.ScreenY + this.offsetY; if (!this.populated && (this.contents != "")) { this.populated = true; this.refresh(); } if (this.divName != null) { // Show the DIV object document.getElementById(this.divName).style.left = this.x + "px"; document.getElementById(this.divName).style.top = this.y + "px"; document.getElementById(this.divName).style.visibility = "visible"; document.getElementById(this.divName).style.display = "block"; } } // Hide the popup function PopupWindow_hidePopup() { if (this.divName != null) { SezWho.DivUtils.closediv(this.divName); } } // Check an onMouseDown event to see if we should hide function PopupWindow_hideIfNotClicked(e) { if (this.autoHideEnabled && !this.isClicked(e)) { this.hidePopup(); } } // Call this to make the DIV disable automatically when mouse is clicked outside it function PopupWindow_autoHide() { this.autoHideEnabled = true; } // Pass an event and return whether or not it was the popup DIV that was clicked function PopupWindow_isClicked(e) { if (this.divName != null) { var t = sz_cp_proto.element(e); while (t && t.parentNode) { if (t.id==this.divName) return true; t = t.parentNode; } return false; } return false; } // This global function checks all PopupWindow objects onmouseup to see if they should be hidden function PopupWindow_hidePopupWindows(e) { for (var i=0; i vp_height - div_height) { top_viewport_y = vp_height - div_height - 1; } if (top_viewport_x < 0) { top_viewport_x = 1; } if (top_viewport_x > vp_width - div_width) { top_viewport_x = vp_width - div_width - 1; } var co_ords = new Object(); co_ords[0] = shift_offset_x + (top_viewport_x - start_top_x); co_ords[1] = shift_offset_y + (top_viewport_y - start_top_y); SezWho.Utils.log("info" , "SezWho.PopupPositionUtils.get_offsets returning co-ordinates : x = "+co_ords[0]+" : y = "+co_ords[1]); return co_ords ; } function getViewportHeight() { var h=-1; var m=document.compatMode; if((m || SezWho.Utils.isIE()) && ! SezWho.Utils.isOpera()) { switch(m) { case "CSS1Compat":h=document.documentElement.clientHeight; break; default:h=document.body.clientHeight; } } else { //h=self.innerHeight; h=self.innerHeight>document.documentElement.clientHeight ? document.documentElement.clientHeight : self.innerHeight ; } return h; } function getViewportWidth() { var w=-1; var m=document.compatMode; if(m || SezWho.Utils.isIE()) { switch(m) { case "CSS1Compat":w=document.documentElement.clientWidth; break; default:w=document.body.clientWidth; } } else { w=self.innerWidth; } return w; } } ; /* end PopupPositionUtils class */ /* start SezWho.DivUtils class */ SezWho.DivUtils = new function () { this.createRatingsDiv = function () { var ratingDiv = document.createElement("div"); var htmlStr; ratingDiv.id = "ratingDiv"; ratingDiv.className = "cpPopupWrapper"; htmlStr = "
"; htmlStr += "
"; htmlStr += "

Rate Content

"; htmlStr += "
"; htmlStr += "
"; htmlStr += "
"; htmlStr += ""; htmlStr += ""; htmlStr += ""; htmlStr += ""; htmlStr += ""; htmlStr += ""; htmlStr += ""; htmlStr += ""; htmlStr += ""; htmlStr += ""; htmlStr += ""; htmlStr += ""; htmlStr += ""; htmlStr += "
Login/Register to rate  
Rate anonymously
(anonymous votes are weighted less)
"; htmlStr += ""; htmlStr += ""; htmlStr += "
"; htmlStr += "
"; htmlStr += "
"; htmlStr += "
"; ratingDiv.innerHTML = htmlStr; var bodyTag = document.getElementsByTagName("body")[0]; bodyTag.appendChild(ratingDiv); return ratingDiv; } this.createRatingsHelpDiv = function () { var ratingDiv = document.createElement("div"); var htmlStr; ratingDiv.id = "sz_ratingHelpDiv"; ratingDiv.className = "cpPopupWrapper"; htmlStr = "
"; htmlStr += "
"; htmlStr += "

Rate Content

"; htmlStr += "
"; htmlStr += "

Click on the score icons to rate this content.

By rating the content you are not only expressing your opinion but you also helping the community!

Registered and logged-in user votes count a lot more than anonymous votes - your identity as a rater is always kept private and never shown or transmitted to others.

"; htmlStr += "
"; htmlStr += "
"; ratingDiv.innerHTML = htmlStr; var bodyTag = document.getElementsByTagName("body")[0]; bodyTag.appendChild(ratingDiv); return ratingDiv; } this.activateRatingsHelpDIV = function(ev) { // create the popup irrespective of whether the cookie exists or not. This is to display show error messages var divName = "sz_ratingHelpDiv"; var ratingsHelpDiv = document.getElementById(divName); if (ratingsHelpDiv == null) { ratingsHelpDiv = SezWho.DivUtils.createRatingsHelpDiv(); } var divPopUp = PopupWindow.findPopupWindow(divName); if (!divPopUp) { divPopUp= new PopupWindow(divName); } divPopUp.updateEvent(ev); divPopUp.autoHide(); var co_ordinates = SezWho.PopupPositionUtils.get_offsets(1, divName, divPopUp); divPopUp.offsetX = co_ordinates[0]; divPopUp.offsetY = co_ordinates[1]; var mainDiv = document.getElementById(divName) ; mainDiv.style.display = 'block' ; mainDiv.style.visibility = 'visible' ; divPopUp.showPopup(); sz_cp_proto.stop(ev); } this.createProfileDiv = function () { var profileDiv = document.createElement("div"); profileDiv.id = "profilepopup"; profileDiv.className = "cpPopupWrapper"; profileDiv.innerHTML = "

Public Profile

loading
"; var bodyTag = document.getElementsByTagName("body")[0]; bodyTag.appendChild(profileDiv); return profileDiv; } this.submitRatingForm = function(form, setcookieflag) { SezWho.Utils.log("info" , "submitRatingForm called with : cppluginurl = "+sz_global_config_params.cppluginurl); var req = null; var ratingIncrement= form.ratingIncrement.value ; var postID= form.postID.value; var i= form.commentID.value; var rt = form.ratingType.value; var cid = (rt == 'C')?sz_comment_config_params.sz_comment_data[i].comment_id:0; var emailID= form.emailID.value; var formParam = 'ratingIncrement='+escape(ratingIncrement)+'&blogID='+escape(sz_global_config_params.blogid)+'&siteKEY='+escape(sz_global_config_params.sitekey)+'&postID='+escape(postID)+'&commentID='+escape(cid)+'&rating_type='+rt+'&msec='+SezWho.Utils.getTimeStamp()+'&__mode=cp_comment_rating_submit'; if(document.getElementById('sz_radio_anon').checked) emailID = "anonymous"; if (document.getElementById('sz_radio_login_reg').checked && emailID == "") { var url; url = sz_global_config_params.cpserverurl + '/login_pp.php'; url += '?ratingsubmitpath=' + encodeURIComponent(sz_global_config_params.rating_submit_path); url += '&cppluginurl=' + sz_global_config_params.cppluginurl; url += '&'; url += formParam; url += '&sz_postRating=true&return_js=true'; SezWho.Utils.openPage('login_reg', url); return ; } if (rt == 'C') SezWho.Utils.ScoreDisplay.setWait("cpEmbedCommScore:"+i); else SezWho.Utils.ScoreDisplay.setWait("cpEmbedPostScore:"+postID); // now set cookie if(setcookieflag && (emailID != "anonymous")) SezWho.Utils.setCookie("SZ_EMAIL_ENC" , emailID, 100); SezWho.Utils.makeJSCall(sz_global_config_params.rating_submit_path+"?sz_postRating=true&return_js=true&"+formParam+"&emailID="+encodeURIComponent(emailID)); } this.handleBadgeData = function(sz_badge_data_params) { var html_output; if (navigator.userAgent.match(/msie (5\.5|6)/i)&&navigator.platform=="Win32") //PNG fix html_output = ""; else html_output = "
"; var widget_placeholder = "sezwho_badge_" + sz_badge_data_params['widget_no'] + "_placeholder"; var currentLength = sz_badge_data_params['widget_no']; sz_badge_config_params.sz_badge_data[currentLength] = sz_badge_data_params; html_output = html_output + ""; html_output = html_output + ""; html_output = html_output + ""; html_output = html_output + ""; html_output = html_output + ""; html_output = html_output + "
" + sz_badge_config_params.sz_badge_data[currentLength]['formatted_name'] + "
Star Power:
" + SezWho.Utils.get_star_rating(sz_badge_config_params.sz_badge_data[currentLength]['sz_score'], "badge") + "
"; document.getElementById(widget_placeholder).innerHTML = html_output; } this.handleRedCarpetData = function(sz_rc_data_params, sz_rc_input_params) { var html_output = ''; sz_rc_config_params.sz_rc_data = sz_rc_data_params; html_output = html_output + ""; if (navigator.userAgent.match(/msie (5\.5|6)/i)&&navigator.platform=="Win32") //PNG fix html_output = html_output + ""; else html_output = html_output + ""; for(var i=0; i"; if (sz_rc_input_params['sz_use_blog_catalog_for_rc']==1) { if (sz_rc_config_params.sz_rc_data[i]['comment_author_url'] && sz_rc_config_params.sz_rc_data[i]['comment_author_url'].length > 0) html_output = html_output + ""; else html_output = html_output + ""; } else { if (sz_rc_config_params.sz_rc_data[i]['comment_author_url'] && sz_rc_config_params.sz_rc_data[i]['comment_author_url'].length > 0) html_output = html_output + ""; else html_output = html_output + ""; } html_output = html_output + ""; html_output = html_output + ""; html_output = html_output + ""; } html_output = html_output +"
Red Carpet
" + unescape(sz_rc_config_params.sz_rc_data[i]['comment_author']).replace(/\+/g, " ") + "
" + SezWho.Utils.get_star_rating(sz_rc_config_params.sz_rc_data[i]['sz_score'], "redcarpet") + "
View Comment
"; document.getElementById('cp_rc_placeholder').innerHTML = html_output; } this.handleRating = function(response, count) { var form = document.getElementById('cpEmailForm'); var ratingIncrement= form.ratingIncrement.value ; var i= form.commentID.value; var rt = form.ratingType.value; var postID = form.postID.value; var responseArr = response.split(','); var status ; if (responseArr[0]) status = responseArr[0].split('=')[1]; if (status == 'Failure' || status == 'N') { var errorMsgCode = responseArr[1].split('=')[1]; var errorMsg = "Failure in processing!"; if (errorMsgCode == "DuplicateRatingInsertion") errorMsg = "You can not rate same content again!" ; if (errorMsgCode == "NoSiteKey") errorMsg = "No Site Key found!" ; if (errorMsgCode == "InvalidSiteKey" || errorMsgCode == "SITEKEYERR") errorMsg = "Invalid Site Key found!" ; if (errorMsgCode == "EmailInsertionFailure") errorMsg = "Failure inserting your email ID!" ; if (errorMsgCode == "RatingInsertionFailure") errorMsg = "Failure inserting your rating!" ; if (errorMsgCode == "NoBlogKey") errorMsg = "No Blog Key found!" ; if (errorMsgCode == "SelfRating") errorMsg = "You can not rate your own content!" ; if (rt == 'C') SezWho.Utils.ScoreDisplay.setScore("cpEmbedCommScore:"+i,sz_comment_config_params.sz_comment_data[i].comment_score,0); else SezWho.Utils.ScoreDisplay.setScore("cpEmbedPostScore:"+postID,sz_post_config_params[postID].post_score,0); SezWho.DivUtils.activateRatingsDIV(errorMsg); } else { var score = responseArr[1].split('=')[1]; if (rt == 'C') { SezWho.Utils.ScoreDisplay.setScore("cpEmbedCommScore:"+i,score,count); sz_comment_config_params.sz_comment_data[i].comment_score = score; } else { SezWho.Utils.ScoreDisplay.setScore("cpEmbedPostScore:"+postID,score,count); sz_post_config_params[postID].post_score = score; } } } this.activateRatingsDIV = function(errorMsg) { // create the popup irrespective of whether the cookie exists or not. This is to display show error messages var divName = "ratingDiv"; if (errorMsg != ""){ var errorDiv = document.getElementById("popuperror") ; errorDiv.className = "cpPopupErrorSpanDisplayed"; errorDiv.innerHTML = errorMsg; document.getElementById('popuperror').style.visibility='visible'; } var divPopUp = PopupWindow.findPopupWindow(divName); divPopUp.autoHide(); var co_ordinates = SezWho.PopupPositionUtils.get_offsets(1, divName, divPopUp); divPopUp.offsetX = co_ordinates[0] ; divPopUp.offsetY = co_ordinates[1] ; var mainDiv = document.getElementById(divName) ; mainDiv.style.display = 'block' ; mainDiv.style.visibility = 'visible' ; divPopUp.showPopup(); } this.displayProfileData = function (name,data){ sz_cp_proto.replace(document.getElementById('cpPopupContentloadingId'), data); if (name != '') document.getElementById('cpPopupHeaderTitleTextId').innerHTML = decodeURIComponent(name); var divPopUp = PopupWindow.findPopupWindow("profilepopup"); var co_ordinates = SezWho.PopupPositionUtils.get_offsets(0, "profilepopup", divPopUp); divPopUp.offsetX = co_ordinates[0] ; divPopUp.offsetY = co_ordinates[1] ; divPopUp.showPopup(); } this.loadProfilePopUp = function(url, divName, author_name) { SezWho.Utils.log("info" , "SezWho.DivUtils.loadProfilePopUp called with cpserverurl = "+sz_global_config_params.cpserverurl+" : cppluginurl = "+sz_global_config_params.cppluginurl+" : url = "+url+" : divName = "+divName+" : author_name = "+author_name); var profileDiv = document.getElementById(divName); if (profileDiv == null) profileDiv = this.createProfileDiv(); else { if (document.getElementById('cpPopupContentBodyID')) sz_cp_proto.replace(document.getElementById('cpPopupContentBodyID'), "
loading
"); } document.getElementById('cpPopupHeaderTitleTextId').innerHTML = decodeURIComponent(author_name); var divPopUp = PopupWindow.findPopupWindow(divName); if (!divPopUp) divPopUp= new PopupWindow(divName); divPopUp.autoHide(); var co_ordinates = SezWho.PopupPositionUtils.get_offsets(0, divName, divPopUp); divPopUp.offsetX = co_ordinates[0] ; divPopUp.offsetY = co_ordinates[1] ; divPopUp.showPopup(); SezWho.Utils.makeJSCall(url); } var divpopuptimerid = 0 ; this.loadMyProfileDiv = function(url, div, author_name, delay, ev){ SezWho.Utils.log("info" , "SezWho.DivUtils.loadMyProfileDiv called with cpserverurl = "+sz_global_config_params.cpserverurl+" : cppluginurl = "+sz_global_config_params.cppluginurl+" : url = "+url+" : div = "+div+" : author_name = "+unescape(author_name)+" : delay = "+delay+" : ev = "+ev); var w = PopupWindow.findPopupWindow(div); if (!w) w = new PopupWindow(div); w.updateEvent(ev); divpopuptimerid= setTimeout("SezWho.DivUtils.loadProfilePopUp('"+url+"','"+div+"','"+author_name+"')", delay); } this.closediv = function(divid) { SezWho.Utils.log("info" ,"SezWho.DivUtils.closediv called with divid = "+divid); document.getElementById(divid).style.visibility='hidden'; //document.getElementById(divid).style.display='none'; if (divid == "ratingDiv") { document.getElementById('popuperror').style.visibility='hidden'; SezWho.Utils.ScoreDisplay.revert(); } } this.cancelPopUp = function() { SezWho.Utils.log("info" ,"SezWho.DivUtils.cancelPopUp called "); if(divpopuptimerid) clearTimeout(divpopuptimerid); } } ; /* end SezWho.DivUtils */ /* This following code has been adapted from the fabulous prototype JS framework.*/ SezWho.Utils.Prototype = function () { this.getElementsByClassName = function (node_id, className) { SezWho.Utils.log("info" ,"SezWho.Utils.Prototype.getElementsByClassName called with node_id = "+node_id+" : className = "+className); var node ; var els ; /* if (node_id == null) { node = document.body ; } else { node = document.getElementById(node_id); }*/ node = document.body ; var els = node.getElementsByTagName("*"); var a = []; var re = new RegExp("(^|\\s)" + className + "(\\s|$)") ; for(var i=0,j=els.length; i"; var half_img = ""; var zero_img = ""; if (score < 0.25) ratings_images = zero_img+zero_img+zero_img+zero_img+zero_img ; else if (score >= 0.25 && score < 0.75) ratings_images = half_img+zero_img+zero_img+zero_img+zero_img ; else if (score >= 0.75 && score < 1.25) ratings_images = full_img+zero_img+zero_img+zero_img+zero_img ; else if (score >= 1.25 && score < 1.75) ratings_images = full_img+half_img+zero_img+zero_img+zero_img ; else if (score >= 1.75 && score < 2.25) ratings_images = full_img+full_img+zero_img+zero_img+zero_img ; else if (score >= 2.25 && score < 2.75) ratings_images = full_img+full_img+half_img+zero_img+zero_img ; else if (score >= 2.75 && score < 3.25) ratings_images = full_img+full_img+full_img+zero_img+zero_img ; else if (score >= 3.25 && score < 3.75) ratings_images = full_img+full_img+full_img+half_img+zero_img ; else if (score >= 3.75 && score < 4.25) ratings_images = full_img+full_img+full_img+full_img+zero_img ; else if (score >= 4.25 && score < 4.75) ratings_images = full_img+full_img+full_img+full_img+half_img ; else if (score >= 4.75) ratings_images = full_img+full_img+full_img+full_img+full_img ; return ratings_images; } this.setLocalCookie = function(cookieName,cookieValue,nDays) { SezWho.Utils.log("info" ,"SezWho.Utils.setLocalCookie called with cookieName = "+cookieName); var today = new Date(); var expire = new Date(); if (nDays==null || nDays==0) nDays=1; expire.setTime(today.getTime() + 3600000*24*nDays); document.cookie = cookieName+"="+cookieValue+ ";expires="+expire.toGMTString()+";path=/"; } this.setCookie = function(cookieName,cookieValue,nDays) { SezWho.Utils.setLocalCookie(cookieName,cookieValue,nDays); SezWho.Utils.makeJSCall(sz_global_config_params.cpserverurl+"/SetCookieEnc/SZ_EMAIL_ENC/"+escape(cookieValue)+"/"+86400*nDays+"/"+SezWho.Utils.getTimeStamp()); //SezWho.Utils.makeJSCall(sz_global_config_params.cpserverurl+"/cookiehandler.php?op=SetCookie&user="+escape(cookieValue)+"&nDays="+nDays+"&time="+SezWho.Utils.getTimeStamp()); } this.makeJSCall = function(url) { var script = document.createElement('script'); script.src = url; document.getElementsByTagName('head')[0].appendChild(script); } this.readSZCookie = function(email) { if (email != ""){ var szForm = document.getElementById('cpEmailForm'); SezWho.Utils.setLocalCookie("SZ_EMAIL_ENC" , email, 100); szForm.emailID.value = email ; SezWho.DivUtils.submitRatingForm(szForm, 0); } else SezWho.DivUtils.activateRatingsDIV(""); } this.getTimeStamp = function(name){ var d = new Date(); return d.getTime(); } this.readCookie = function(name) { var cookieVal = null; var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) { cookieVal = c.substring(nameEQ.length,c.length); return cookieVal; } } return cookieVal; } this.cpProfileEventHandler = function(ev) { SezWho.Utils.log("info" ,"SezWho.Utils.cpProfileEventHandler called with event = "+ev); var elm = sz_cp_proto.element(ev); var a = elm.id.split(":"); var i = elm.id; var delay=0; if (ev.type == "mouseover") delay=500; SezWho.DivUtils.loadMyProfileDiv(sz_global_config_params.cpserverurl+"/webservices/ykgetprofile.php?site_key="+sz_global_config_params.sitekey+"&blog_key="+sz_global_config_params.blogkey+"&blog_id="+sz_global_config_params.blogid+"&commenter_email="+encodeURIComponent(sz_comment_config_params.sz_comment_data[a[1]].comment_author_email)+"&isplugin=true&source=comment&comment_id="+sz_comment_config_params.sz_comment_data[a[1]].comment_id+"&posting_id="+sz_comment_config_params.post_id, 'profilepopup', sz_comment_config_params.sz_comment_data[a[1]].comment_author, delay, ev); } this.cpProfileImgClickHandler = function(i, type) { if (type == 'P') SezWho.Utils.openPage("pic",sz_global_config_params.cpserverurl+"/mypublicprofile.php?commenter_email="+encodeURIComponent(sz_post_config_params[i].blog_author_email)+"&isplugin=true&viewid=0"); else SezWho.Utils.openPage("pic",sz_global_config_params.cpserverurl+"/mypublicprofile.php?commenter_email="+encodeURIComponent(sz_comment_config_params.sz_comment_data[i].comment_author_email)+"&isplugin=true&viewid=0"); } this.cpProfilePostEventHandler = function(ev) { var elm = sz_cp_proto.element(ev); var a = elm.id.split(":"); var i = elm.id; var delay=0; if (ev.type == "mouseover") delay=500; SezWho.DivUtils.loadMyProfileDiv(sz_global_config_params.cpserverurl+"/webservices/ykgetprofile.php?site_key="+sz_global_config_params.sitekey+"&blog_key="+sz_global_config_params.blogkey+"&blog_id="+sz_global_config_params.blogid+"&commenter_email="+encodeURIComponent(sz_post_config_params[a[1]].blog_author_email)+"&isplugin=true&source=post", 'profilepopup', sz_post_config_params[a[1]].blog_author_name, delay, ev); } this.cpProfileRCEventHandler = function(ev) { SezWho.Utils.log("info" ,"SezWho.Utils.cpProfileEventHandler called with event = "+ev); var elm = sz_cp_proto.element(ev); var a = elm.id.split(":"); var i = elm.id; var delay=0; if (ev.type == "mouseover") delay=500; SezWho.DivUtils.loadMyProfileDiv(sz_global_config_params.cpserverurl+"/webservices/ykgetprofile.php?site_key="+sz_global_config_params.sitekey+"&blog_key="+sz_global_config_params.blogkey+"&blog_id="+sz_global_config_params.blogid+"&commenter_email="+encodeURIComponent(sz_rc_config_params.sz_rc_data[a[1]].comment_author_email)+"&isplugin=true&source=red_carpet", 'profilepopup', sz_rc_config_params.sz_rc_data[a[1]].comment_author, delay, ev); } this.cpProfileBadgeEventHandler = function(ev) { SezWho.Utils.log("info" ,"SezWho.Utils.cpProfileBadgeEventHandler called with event = "+ev); var elm = sz_cp_proto.element(ev); var a = elm.id.split(":"); var i = elm.id; var delay=0; if (ev.type == "mouseover") delay=500; SezWho.DivUtils.loadMyProfileDiv(sz_global_config_params.cpserverurl+"/webservices/ykgetprofile.php?site_key="+sz_global_config_params.sitekey+"&blog_key="+sz_global_config_params.blogkey+"&blog_id="+sz_global_config_params.blogid+"&commenter_email="+encodeURIComponent(sz_badge_config_params.sz_badge_data[a[1]].comment_author_email)+"&isplugin=true&source=badge", 'profilepopup', sz_badge_config_params.sz_badge_data[a[1]].comment_author, delay, ev); } this.szHandleRatingButtonClicks = function(ev, value, elm){ var a = elm.id.split(":"); var divName = 'ratingDiv'; var ratingsDiv = document.getElementById(divName); if (ratingsDiv == null) { ratingsDiv = SezWho.DivUtils.createRatingsDiv (); } var szForm = document.getElementById('cpEmailForm'); if (a[0] == "cpEmbedPostScore"){ szForm.postID.value = a[1]; szForm.commentID.value = 0; szForm.ratingType.value = 'P'; } else { szForm.postID.value = sz_comment_config_params.post_id; szForm.commentID.value = a[1]; szForm.ratingType.value = 'C'; } szForm.ratingIncrement.value = value; document.getElementById('sz_radio_login_reg').checked = 1; document.getElementById('sz_radio_anon').checked = 0; // create the popup irrespective of whether the cookie exists or not. var divPopUp = PopupWindow.findPopupWindow(divName); if (!divPopUp) { divPopUp= new PopupWindow(divName); } divPopUp.updateEvent(ev); //First read the local cookie var cookieVal = SezWho.Utils.readCookie("SZ_EMAIL_ENC"); if (cookieVal) { szForm.emailID.value = cookieVal ; SezWho.DivUtils.submitRatingForm(szForm,0); } else // Read the SezWho cookie SezWho.Utils.makeJSCall(sz_global_config_params.cpserverurl+"/cookiehandler.php?op=GetCookie&plugin_version="+sz_global_config_params.plugin_version+"&time="+SezWho.Utils.getTimeStamp()); elm.blur(); } this.openPage = function(type, url) { if('undefined' == typeof url) url = null; var name, options; name=""; options=""; if (type == "home") url = sz_global_config_params.cpserverurl; else if (type == "help") { url = sz_global_config_params.cpserverurl+"/popup_help.php"; name = "Help"; options = "height=820,width=600,toolbar=no,scrollbars,resizable"; } else if (url == null) url = sz_global_config_params.cpserverurl; else if (type == "login_reg") { //name = "Login/Register into SezWho"; options = "height=355,width=400,toolbar=no,status=no,location=no,menubar=no,resizable=no"; } var newWindow = window.open(url, name, options); } this.addCSS = function(url) { if (!document.getElementById("szProfAndEmbedStyleSheet")){ var stylesheet = document.createElement("link"); stylesheet.rel = "stylesheet"; stylesheet.type = "text/css"; if (typeof(url) == "undefined" || url == "") stylesheet.href = sz_global_config_params.cpserverurl+"/widgets/profile/css_output/"+sz_global_config_params.platform+"/"+sz_global_config_params.theme+"/"+sz_global_config_params.plugin_version+"/"+sz_global_config_params.js_tag_name+"/"+sz_global_config_params.sitekey+"/"+sz_global_config_params.blogkey+".css"; else stylesheet.href = url; stylesheet.media = "screen"; stylesheet.id = "szProfAndEmbedStyleSheet"; document.lastChild.firstChild.appendChild(stylesheet); } } this.callJSFramework = function() { SezWho.Utils.log("info" ,"SezWho.Utils.callJSFramework called "); if (typeof(sz_global_config_params) == "undefined" && SezWho.BlogPlatformCallbackJS.get_platform() == "blogger" && !sz_inproc_blogger) { sz_inproc_blogger = 1; var blog_data = SezWho.BlogPlatformCallbackJS.get_blog_data() ; var blogID = blog_data["blogID"] ; var postID = blog_data["postID"] ; var firstCommentID = blog_data["firstCommentID"] ; var blog_key = blog_data["blogKey"] ; var u = blog_data["serverURL"]; var js_param_url = u+"/js_params2.php?blogid="+blogID+"&blogkey="+blog_key+"&postid="+postID+"&firstCommentID="+firstCommentID ; var css_param_url = u+"/widgets/profile/css_output/BG/default/2.0/2.0/blogger/"+blog_key+".css"; SezWho.Utils.makeJSCall(js_param_url); SezWho.Utils.addCSS(css_param_url); } if(!(typeof (sz_global_config_params) == 'undefined') && !sz_UI_rendering_done){ sz_UI_rendering_done = 1; SezWho.Utils.addCSS(""); SezWho.PluginCore.szManageEmbedUI(); SezWho.PluginCore.szManagePostUI(); if (location.hash != ""){ var id = location.hash; var n = SezWho.BlogPlatformCallbackJS.get_comment_node(id.substr(1)); if (!n) return; var p=SezWho.Utils.ScoreDisplay.abPos(n); window.scroll(0,p.Y); // horizontal and vertical scroll targets } } } this.processPost = function(id) { SezWho.Utils.addCSS(""); SezWho.PluginCore.szManagePostUI(id); } this.isSafari = function(){ return (/Safari|Konqueror|KHTML/gi).test(navigator.userAgent) ; } this.isIE = function() { return (!SezWho.Utils.isSafari() &&!navigator.userAgent.match(/opera/gi) && navigator.userAgent.match(/msie (5\.5|6|7)/gi)) ; } this.isOpera = function() { return (navigator.userAgent.match(/Opera/gi)) ; } this.log = function(type, msg) { if ((type == 'info' || type == 'debug') && !window.is_debug_log_enabled) return ; var self = arguments.callee; if (window.console) (window.console[type] || window.console.log )(msg); else if (window.opera) window.opera.postError(msg); else if ( window.Log) { self._logger = self._logger || new Log(Log.INFO, Log.popupLogger); self._logger[type](msg); } } this.szClick = function (t,url,vid,key) {window.open(sz_global_config_params.cpserverurl+'/clickhandler.php?referrer='+escape(document.location)+'&linktype='+t+'&viewid='+vid+'&key='+key+'&linkurl='+escape(url));} this.szImageSource = function(name, imgsrc){ var altt = ""; imgsrc = imgsrc.toLowerCase(); if (name != null && name != "") name = name+"'s "; if (imgsrc == 'http://s3.amazonaws.com/sz_users_images/noimg.gif') altt = "no image"; else if (imgsrc.match("gravatar")) altt = name + "image from Gravatar"; else if (imgsrc.match("blogcatalog")) altt = name + "image from Blogcatalog"; else if (imgsrc.match("sz_users_images")) altt = name + "image from SezWho"; else if (imgsrc.match("yahoo")) altt = name + "image from MyBlogLog"; else altt = "no image"; return altt; } this.szImageSourceById = function(id){ var a = id.split(":"); var elm = document.getElementById(id); elm.alt = SezWho.Utils.szImageSource(unescape(sz_comment_config_params.sz_comment_data[a[1]].comment_author),elm.src) elm.title = elm.alt; } /* function _error(){ log("error" , msg) ; } function _warn(){ log("warn" , msg) ; } function _debug(){ log("debug" , msg) ; } function _info(){ log("info" , msg) ; } */ } /* End SezWho.Utils class */ var sz_inproc_blogger = 0; var sz_UI_rendering_done = 0; /* start SezWho.Utils.CommentFilterProcessing - class for comment filter processing */ SezWho.Utils.CommentFilterProcessing = new function () { //hide = 0, show = 1, toggle = 2 this.manageComment = function(i, type) { SezWho.Utils.log("info" ,"SezWho.Utils.CommentFilterProcessing.toggleComment called with i = "+i); var hideCommCell = document.getElementById("sz_comment_collapse:"+i); var ht = document.getElementById("sz_comment_header:"+i); var commDiv = document.getElementById("sz_comment_collapse_div:"+i); if (commDiv) { if (type == 0) { if (hideCommCell) hideCommCell.className = 'cpEmbedCommentImgPlus'; commDiv.style.display = "none" ; commDiv.style.visibility = "hidden" ; if (!ht) return; ht.style.display = "block" ; ht.style.visibility = "visible" ; } else if (type == 1) { if (hideCommCell) hideCommCell.className = 'cpEmbedCommentImgMinus'; commDiv.style.display = "inline" ; commDiv.style.visibility = "visible" ; if (!ht) return; ht.style.display = "none" ; ht.style.visibility = "hidden" ; } else if (hideCommCell) //toggle { if (hideCommCell.className == 'cpEmbedCommentImgMinus') { hideCommCell.className = 'cpEmbedCommentImgPlus'; commDiv.style.display = "none" ; commDiv.style.visibility = "hidden" ; if (!ht) return; ht.style.display = "block" ; ht.style.visibility = "visible" ; } else { hideCommCell.className = 'cpEmbedCommentImgMinus'; commDiv.style.display = "inline" ; commDiv.style.visibility = "visible" ; if (!ht) return; ht.style.display = "none" ; ht.style.visibility = "hidden" ; } } } } this.cpshowFilterOptions = function(list) { SezWho.Utils.log("info" ,"SezWho.Utils.CommentFilterProcessing.cpshowFilterOptions called with list = "+list); SezWho.Utils.CommentFilterProcessing.filterCommentsByScore(list.options[list.selectedIndex].value); } this.filterCommentsByScore = function(score) { SezWho.Utils.log("info" ,"SezWho.Utils.CommentFilterProcessing.filterCommentsByScore called with score = "+score); var objectCount = sz_comment_config_params.comment_number ; for (var co2 = 0 ; co2 < objectCount; co2++) { if(score==0 || sz_comment_config_params.sz_comment_data[co2].comment_score >= score) SezWho.Utils.CommentFilterProcessing.manageComment(co2,1); else SezWho.Utils.CommentFilterProcessing.manageComment(co2,0); } sz_comment_config_params.sortOrder = score; } }; /* end SezWho.Utils.CommentFilterProcessing */ function populate_comment_star_rating(comment_score, comment_id){ var comment_ratings_images = SezWho.Utils.get_star_rating(comment_score, "comment"); document.getElementById("yk_comment-"+comment_id+"-commentscore").innerHTML = comment_ratings_images; } SezWho.Utils.ScoreDisplay = new function (){ this.abPos=function(o) { var z={X:0,Y:0}; while(o!=null) { z.X+=o.offsetLeft; z.Y+=o.offsetTop; o=o.offsetParent; } return(z); } this.getLiClass = function(id) { var a = id.split(":"); var lid = ""; if (a[0] == "cpEmbedPostScore"){ lid = "cpEmbedPostScoreLi"; } else { lid = "cpEmbedCommScoreLi"; } return lid; } this.getLi = function(id) { var a = id.split(":"); var lid = ""; if (a[0] == "cpEmbedPostScore"){ lid = "cpEmbedPostScoreLi:"+a[1]; } else { lid = "cpEmbedCommScoreLi:"+a[1]; } return document.getElementById(lid); } this.getScoreSpan = function(id) { var a = id.split(":"); var lid = ""; if (a[0] == "cpEmbedPostScore"){ lid = "cpEmbedPostScoreSpan:"+a[1]; } else { lid = "cpEmbedCommScoreSpan:"+a[1]; } return document.getElementById(lid); } this.getCountSpan = function(id) { var a = id.split(":"); var lid = ""; if (a[0] == "cpEmbedPostScore"){ lid = "cpEmbedPostCountSpan:"+a[1]; } else { lid = "cpEmbedCommCountSpan:"+a[1]; } return document.getElementById(lid); } this.getClass = function(id) { var a = id.split(":"); var lid = ""; if (a[0] == "cpEmbedPostScore"){ lid = "cpEmbedPostScoreUl"; } else { lid = "cpEmbedCommScoreUl"; } return lid; } this.getDisplay = function(s) { var a = {1:"it's bad!", 2:"it's so so!", 3:"it's good!", 4:"it's great!", 5:"it rocks!"}; if (typeof(sz_custom_ratings_text) == "undefined") return a[s]; else return sz_custom_ratings_text[s]; } /* Mouse Events */ this.cur=function(e) { o = sz_cp_proto.element(e); if (o.id != sz_utils_display_id) sz_utils_display_stop=1; if(sz_utils_display_stop) { sz_utils_display_stop=0; if (o.tagName == "LI") o = o.parentNode; sz_utils_display_id=o.id; sz_cp_proto.observe(document,"mousemove", SezWho.Utils.ScoreDisplay.mousemove); SezWho.Utils.ScoreDisplay.getLi(sz_utils_display_id).className=SezWho.Utils.ScoreDisplay.getLiClass(sz_utils_display_id)+"Hover"; //SezWho.Utils.ScoreDisplay.getCountSpan(sz_utils_display_id).style.visibility = 'hidden'; } } this.mousemove=function(e) { var n=sz_utils_display_id; var p=SezWho.Utils.ScoreDisplay.abPos(document.getElementById(n)); var x={X:sz_cp_proto.pointerX(e),Y:sz_cp_proto.pointerY(e)}; var dimensions = sz_cp_proto.getDimensions(n); var oX=x.X-p.X; var oY=x.Y-p.Y; if(oX<1 || oX>dimensions.width || oY<0 || oY>dimensions.height) { SezWho.Utils.ScoreDisplay.revert(); } else { var s = Math.round((oX/dimensions.width*5)+0.5); s=s>5?5:s; s=s<0?0:s; SezWho.Utils.ScoreDisplay.getLi(n).style.width=oX+'px'; SezWho.Utils.ScoreDisplay.getScoreSpan(n).title=s; SezWho.Utils.ScoreDisplay.getScoreSpan(n).innerHTML=SezWho.Utils.ScoreDisplay.getDisplay(s); } } this.update=function(e) { var n=sz_utils_display_id; var v=parseInt(SezWho.Utils.ScoreDisplay.getScoreSpan(n).title)*2; sz_utils_display_stop=0; sz_cp_proto.stopObserving (document, "mousemove", SezWho.Utils.ScoreDisplay.mousemove); SezWho.Utils.szHandleRatingButtonClicks(e, v, document.getElementById(n)); } this.setWait=function(id) { //To get of wait state call setScore function var o = document.getElementById(id); var oli= SezWho.Utils.ScoreDisplay.getLi(id); sz_utils_display_id = id; o.className = "cpEmbedProcessingWait"; oli.style.width = '0px'; SezWho.Utils.ScoreDisplay.getScoreSpan(id).innerHTML = "Processing"; //SezWho.Utils.ScoreDisplay.getCountSpan(sz_utils_display_id).style.visibility = 'hidden'; sz_utils_display_wait=1; } this.setScore=function(n, score, count) { var v=Math.ceil(parseFloat(score)*10/2)/10; SezWho.Utils.ScoreDisplay.getLi(n).title=v; document.getElementById(n).className = SezWho.Utils.ScoreDisplay.getClass(n); sz_utils_display_stop=1; sz_utils_display_wait=0; if (count){ var cid=SezWho.Utils.ScoreDisplay.getCountSpan(n); cid.title = count; if (count == "1") cid.innerHTML = " ("+count+" person)"; else cid.innerHTML = " ("+count+" people)"; } SezWho.Utils.ScoreDisplay.revert(); } this.revert=function() { if (sz_utils_display_wait) return; var dimensions = sz_cp_proto.getDimensions(sz_utils_display_id); var n=sz_utils_display_id; var v=parseFloat(SezWho.Utils.ScoreDisplay.getLi(n).title); SezWho.Utils.ScoreDisplay.getLi(n).style.width=Math.round(v*dimensions.width/5)+'px'; SezWho.Utils.ScoreDisplay.getScoreSpan(n).innerHTML=(v>0?v:''); sz_cp_proto.stopObserving (document, "mousemove", SezWho.Utils.ScoreDisplay.mousemove); sz_utils_display_stop=1; SezWho.Utils.ScoreDisplay.getLi(n).className=SezWho.Utils.ScoreDisplay.getLiClass(n); //SezWho.Utils.ScoreDisplay.getCountSpan(n).style.visibility = 'visible'; } }; var sz_utils_display_stop = 1; var sz_utils_display_wait = 0; var sz_utils_display_id = ""; sz_cp_proto.observe(window, "load", SezWho.Utils.callJSFramework , false ); /*@cc_on @*/ /*@if (@_win32) document.write("