var newScript = document.createElement("style");
newScript.innerHTML = "#idc-container{cursor:default;margin:1.5em 0;width:100%;max-width:800px;min-width:180px;text-align:left;letter-spacing:normal!important;position:relative;}#idc-container.idc-inline{clear:both;height:400px;margin:1.2em 0;overflow:auto;overflow-x:hidden;overflow-y:scroll;padding:0 8px 0 0;width:auto!important;}#idc-container .idc-cover,#idc-container .idc-new{background:none;float:left;padding:0;margin:0 0 1em;width:100%;}#idc-container div *{font-weight:normal;letter-spacing:0!important;margin:0;padding:0;text-indent:0;}#idc-container div div div{text-transform:none;}#idc-container img{border:none;background:none;padding:0;}#idc-container strong,#idc-container .idc-c-t b{font-weight:bold!important;}#idc-container span{display:inline;}#idc-container .idc-c-t ol,#idc-container .idc-c-t ul{clear:left;float:none;padding:0 0 0 20px!important;}#idc-container .idc-c-t li{display:list-item;float:none;list-style:disc;}#idc-container .idc-c-t ol li{list-style:decimal;}#idc-container a{background-image:none;outline:0!important;cursor:pointer!important;clear:none!important;float:none;font-weight:normal;display:inline;border:none!important;padding:0!important;}#idc-container blockquote{padding:0 0 0 10px!important;}.idc-cover div,.idc-new div{background:none;float:left;margin:0;width:auto;font-size:13px;line-height:1.3em!important;overflow:visible;}#idc-container h3,#idc-container h4,.idc h6{background:none;border:none;letter-spacing:0;padding:0;margin:0;clear:none;text-align:left;font-weight:normal;}#idc-container h3{font-size:22px;line-height:1.3em;}#idc-container .idc-text{background:#fff url(http://s.intensedebate.com/themes/universal/images/idc-grey-0926.png) no-repeat -713px -121px;border:1px solid #ccc;border-top:1px solid #b0b0b0;color:#333;float:left;padding:3px;margin:0 4px 4px 0;font-size:12px;line-height:1.3em;font:normal 12px/1.3em Helvetica,Arial,sans-serif;-moz-border-radius:4px;-khtml-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;-moz-border-radius-bottomleft:;}#idc-container textarea.idc-text{height:50px;margin:0 0 4px;min-height:50px;overflow:hidden;width:97.8%;}#idc-container textarea.idc-text_noresize{background:#fff url(http://s.intensedebate.com/themes/universal/images/idc-grey-0926.png) no-repeat -713px -121px;border:1px solid #ccc;border-top:1px solid #b0b0b0;color:#333;float:left;height:80px!important;padding:3px;margin:0 4px 4px 0;font-size:12px;line-height:1.3em;font:normal 12px/1.3em Helvetica,Arial,sans-serif;-moz-border-radius:4px;-khtml-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}#idc-container input[type=\"radio\"],#idc-container input[type=\"checkbox\"],#idc-container .idc-radio,#idc-container .idc-chk{border:none;margin:2px 2px 0 0;padding:0;}#idc-container .idc-radio{float:left;}#idc-container .idc-btn_input{background:#f2f2f2;border:1px solid#bbb;cursor:pointer;font-size:11px!important;line-height:16px!important;padding:2px 8px;text-decoration:none;-moz-border-radius:11px;-khtml-border-radius:11px;-webkit-border-radius:11px;border-radius:1;}#idc-container .idc-btn_input:hover{border-color:#909090;}#idc-container select{margin:0 4px 4px 0;}#idc-container label{clear:none;display:inline;float:left;line-height:1.3em;width:auto;}#idc-container p{clear:left;margin:0 0 8px;}#idc-container ul,#idc-container ul li{background:none;display:block;float:left;border:none;margin:0;padding:0!important;}#idc-container li{list-style-type:none;}#idc-container .idc-moremargin{margin:0 0 .8em;}#idc-container .idc-nofloat{float:none;}#idc-container .idc-right{float:right!important;}#idc-container .idc-divide{float:left;width:50%;}#idc-container .idc-secondary{font-size:11px;}.idc-measure{border:1px solid #fff!important;float:none!important;font:normal 12px/1.3em Helvetica,Arial,sans-serif!important;left:0!important;padding:3px!important;position:absolute!important;text-align:left!important;top:0!important;visibility:hidden!important;width:auto!important;z-index:-1!important;}#idc-container .idc-loading{clear:both;display:block;float:none;margin:1em 0;text-align:center;width:auto;}#idc-container .idc-loading p{line-height:16px!important;}#idc-container .idc-loading img{margin:0 0 -3px;}#idc-container .idc-close{width:15px;height:15px;background:url(http://s.intensedebate.com/themes/universal/images/idc-transparent-0916.png) no-repeat 0 -56px;float:right;}#idc-container .idc-close span{display:none;}#idc-container .idc-close:hover{background-position:0 -71px;}#idc-container .idc-sourceimg{float:left;margin:0 4px 2px 0;}#idc-container .idc-collapselink_closed,#idc-container .idc-collapselink{background:url(http://s.intensedebate.com/themes/universal/images/idc-color-1223.png) no-repeat -538px -46px;display:block;font-size:11px;line-height:16px!important;overflow:hidden;padding:0 0 0 12px!important;}#idc-container .idc-collapselink_closed,#idc-container .idc-collapse .idc-collapselink{background-position:-538px -8px;}#idc-container .idc-customtext{float:none;margin:.6em 0;}#idc-container .idc-customtext strong,#idc-container .idc-customtext b{font-weight:bold;}#idc-container .idc-customtext em,#idc-container .idc-customtext i{font-style:italic;}#idc-container .idc-customtext ul,#idc-container .idc-customtext ol,#idc-container .idc-customtext dl{float:none;padding:0 0 0 20px!important;}#idc-container .idc-customtext ul li,#idc-container .idc-customtext ol li{display:list-item;float:none;}#idc-container .idc-customtext ul li{list-style:disc;}#idc-container .idc-customtext ol li{list-style:decimal;}#idc-container .idc-message{background:url(http://s.intensedebate.com/themes/universal/images/idc-bg-1223.png) repeat-x 0 -700px;clear:both;float:left;margin:.5em 0;padding:1% 1.5%;width:97%;-moz-border-radius:4px;-khtml-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}#idc-container .idc-text:hover{border:1px solid#aaa;border-top:1px solid #909090;}#idc-container .idc-focus{border:1px solid #c9e31a;border-top:1px solid #a0b513;}#idc-container .idc-hfield{outline:2px solid #f33;}#idc-container .idc-footer{border-top:1px outset;float:left;width:100%;}#idc-container .idc-footer div{width:100%;}#idc-container .idc-footer .idc-right{margin:4px 0 0;width:auto;}#idc-container .idc-footer .idc-divider{float:none;}#idc-container .idc-head{clear:left;float:left;width:100%;}#idc-container .idc-head .idc-head{float:left;width:auto;clear:none;padding:0;}#idc-container .idc-head_action{background:url(http://s.intensedebate.com/themes/universal/images/idc-bg-1223.png) repeat-x 0 -700px;display:none;float:left;margin:0 0 6px;padding:1% 1.5%;width:97%;-moz-border-radius:4px;-khtml-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}#idc-container .idc-head_b{width:100%;}#idc-container .idc-head_action strong{display:block;margin:0 0 .4em;}#idc-container .idc-head .idc-text{width:90%;}#idc-container .idc-head .idc-tools{clear:none;margin:4px 0 0;float:right;width:auto;}#idc-container .idc-head .idc-tools a{float:right!important;}#idc-container .idc-head .idc-tools .idc-btn_s{float:right!important;margin:0 0 0 6px!important;}#idc-container .idc-head .idc-tools .idc-useopenid{float:left!important;}#idc-container .idc-user .idc-head_action.idc-user{padding:1%;width:98%;}#idc-container .idc-user .idc-user_i{padding:6px 0 0!important;}#idc-container .idc-user .idc-user .idc-right{padding:6px 6px 0!important;width:auto;}#idc-container .idc-user_admin{clear:both;float:none;margin:10px 0 0;}#idc-container .idc-user_admin p{margin:0 0 4px;}#idc-container .idc-user_i a{display:inline;}#idc-container .idc-intensedebate_info{font-size:11px;}#idc-container .idc-c-m{clear:left;}#idc-container .idc-thread{clear:both;float:left;width:100%;padding:.4em 0 0;}#idc-container .idc-thread_info,#idc-container .idc-thread-h{display:none;}#idc-container .idc-thread .idc-thread{border:none;width:auto;padding:0;}#idc-container .idc-thread-h{font-size:11px;line-height:1.3em;margin:.2em 0!important;float:left;width:100%!important;}#idc-container .idc-thread-h a{float:left;margin:0 4px 0 0;}#idc-container .idc-thread_cover{background:url(http://s.intensedebate.com/themes/chameleon/images/idc-arrow.png) no-repeat 0 6px;padding:0 0 12px 18px;float:left;}#idc-container .idc-thread_cover .idc-thread{border:1px solid #eaeaea;padding:4px!important;}#idc-container .idc-thread_cover .idc-thread .idc-thread{border:none;padding:0;}#idc-container .idc-thread_cover .idc-c{background:none;padding:0;}#idc-container .idc-tb{padding:4px 0 0;}#idc-container .idc-tb h3{font-size:15px;line-height:1.3em;}#idc-container .idc-tb .idc-tb_i{font-size:10px;line-height:1.3em;}#idc-container .idc-tb-t{margin:0 0 .3em;}#idc-container .idc-tb-b{width:100%;}#idc-container .idc-ctools{clear:both;float:none;padding:.4em 0;}#idc-container .idc-ctools div,#idc-container .idc-ctools p{float:none;}#idc-container .idc-ctools a{margin:0 3px 0 0;}#idc-container .idc-ctools .idc-sel{font-weight:bold;}#idc-container .idc-search{float:none!important;}#idc-container .idc-search form{padding:.5em 0;}#idc-container .idc-search .idc-btn_s{margin:0 5px 0 0!important;}#idc-container .idc-option{font-size:85%;line-height:19px;}#idc-container .idc-filter_search,#idc-container .idc-filter{background:url(http://s.intensedebate.com/themes/universal/images/idc-bg-1223.png) repeat-x 0 -700px;clear:left;padding:5px 8px;float:none!important;width:auto!important;-moz-border-radius:4px;-khtml-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}#idc-container .idc-filter_search{background:#ff9;border-bottom:1px solid #ff3;border-top:1px solid #ff3;}#idc-container .idc-filter_search div,#idc-container .idc-filter div{float:none;width:auto;}#idc-container .idc-search_highlight{background:#ff9;border:1px solid #ff3;padding:1px 2px;-moz-border-radius:2px;-khtml-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;}#idc-container .idc-reply .idc-header{clear:none;margin:2px 0;}#idc-container .idc-c.idc-trackback h2{font-size:15px;line-height:1.3em;}#idc-container .idc-trackbackinfo{font-size:10px;float:none;}#idc-container .idc-c_collapsed,#idc-container .idc-c{clear:both;float:left;padding:.4em 0 0;width:auto;}#idc-container .idc-c_collapsed div,#idc-container .idc-c div{float:left;width:auto;}#idc-container .idc-expandthis{background:url(http://s.intensedebate.com/themes/universal/images/idc-color-1223.png) no-repeat 0 -96px;float:left;display:inline;margin:6px 6px 5px;height:11px;width:11px;}#idc-container .idc-expandthis:hover{background-position:0 -107px;}#idc-container .idc-expandthis span{display:none;}#idc-container .idc-c_collapsed .idc-c-h,#idc-container .idc-c .idc-c-h{background:url(http://s.intensedebate.com/themes/universal/images/idc-transparent-0916.png) 100% 0;height:32px;margin:0 0 5px;float:none!important;width:auto!important;}#idc-container .idc-c .idc-c-h-inner{height:28px;margin:0 0 0 2px;padding:2px 2px 2px 0;float:none!important;width:auto!important;}#idc-container .idc-c-t{margin:0 0 .3em;clear:both;float:none!important;width:auto!important;}#idc-container .idc-c-t .idc-c-t-inner{overflow:hidden;float:none;width:auto;}#idc-container .idc-c-t .idc-c-t-inner div{float:none;}#idc-container .idc-c-t label{float:none;}#idc-container.idc .idc-c-m{clear:both;overflow:hidden;width:100%;}#idc-container .idc-c-cover{width:100%;}#idc-container.idc .idc-c-b{clear:both;float:none;width:100%;}#idc-container .idc-c-b ul{width:auto;}#idc-container .idc-c-b .idc-c-b_info{font-size:11px;line-height:22px!important;}#idc-container .idc-c-b_info a{color:inherit;cursor:inherit;text-decoration:inherit;}#idc-container .idc-c-b_info a:hover{text-decoration:underline;}#idc-container .idc-c .idc-i{clear:none;line-height:28px!important;height:28px;margin:0 0 0 8px;}#idc-container .idc-c_collapsed .idc-i a,#idc-container .idc-c_collapsed .idc-i span,#idc-container .idc-c .idc-i span,#idc-container .idc-c .idc-i a{float:left;margin:0 3px 0 0;}#idc-container .idc-reply .idc-i a{float:none;}#idc-container .idc-i ul{margin:0;}#idc-container .idc-i li{margin:0 .3em 0 0;}#idc-container .idc-a_nomenu,#idc-container .idc-a{background:none!important;float:left;display:inline;margin:0 6px 0 0;}#idc-container .idc-a img,#idc-container .idc-anonymous .idc-a img:hover{padding:1px;width:26px;height:26px;}#idc-container .idc-a img:hover{padding:0;width:28px;height:28px;}#idc-container .idc-c.idc-error h5{background:#c00;color:#fff;padding:1px 2px;}#idc-container .idc-friend .idc-c-h{background-position:100% -50px;}#idc-container .idc-admin .idc-c-h{background-position:100% -100px;}#idc-container .idc-c_collapsed{float:none;}#idc-container .idc-thread .idc-thread .idc-c_collapsed{background:url(http://s.intensedebate.com/themes/universal/images/idc-grey-0926.png) no-repeat -1533px -108px;padding:5px 0 0 18px;}#idc-container .idc-c_collapsed .idc-c-h{height:24px;}#idc-container .idc-c_collapsed .idc-i{padding:3px 0 0;}#idc-container .idc-c_collapsed .idc-c-h .idc-right{padding:2px 3px 0 0;}#idc-container .idc-c_collapsed .idc-c-h_vote li{margin:1px 1px 0;}#IDCommentsNewThreadCover .idc-thread,#IDCommentsNewThreadCover .idc-c{margin:0!important;padding:0!important;width:100%!important;}#idc-container .idc-c .idc-message{margin:0 0 .5em;width:97%;}#idc-container .idc-userbar{margin:5px 0 10px;float:none!important;width:auto!important;clear:left;height:auto!important;white-space:nowrap;}#idc-container .idc-userbar-i{clear:none!important;float:none;line-height:28px!important;height:28px;margin:0 0 0 8px;}#idc-container .idc-reply .idc-c-m{display:none;overflow:visible;}#idc-container .idc-facebook .idc-facebook,#idc-container .idc-facebook_login .idc-facebook_login,#idc-container .idc-facebook_loggedin .idc-facebook_loggedin,#idc-container .idc-loggingin .idc-loggingin,#idc-container .idc-openid .idc-openid,#idc-container .idc-openid_signup .idc-openid_signup,#idc-container .idc-notvalidated .idc-notvalidated,#idc-container .idc-signup .idc-signup,#idc-container .idc-login .idc-login,#idc-container .idc-user .idc-user{display:block;}#idc-container .idc-divide span{float:left;clear:both;margin:0 0 .4em;}#idc-container .idc-c-m .idc-text,#idc-container .idc-c-m label{width:45%;clear:none;float:left;display:block;overflow:hidden;vertical-align:baseline;}#idc-container .idc-c-m label{padding:4px 0 0;}#idc-container .idc-c-m .idc-text{clear:left;}#idc-container .idc-c-m .idc-create{clear:both;padding:0 0 15px;white-space:nowrap;width:100%;}#idc-container .idc-c-m .idc-create *{display:inline;float:none;padding:0;white-space:nowrap;}#idc-container .idc-info.idc-disable{background:url(http://s.intensedebate.com/themes/chameleon/images/id-fade2.png);z-index:4500;position:relative;width:100%;float:left;}#idc-container .idc-info.idc-disable div p{margin:0 0 2px;}#idc-container .idc-info.idc-disable{position:relative;}#idc-container .idc-info{float:left;left:50%;margin:0 0 0 -156px;position:fixed;top:20%;width:313px;z-index:8000;}#idc-container .idc-info div{width:auto;position:relative;}#idc-container .idc-head .idc-comments-main .idc-info div{background:none;}#idc-container .idc-info div div{background:url(http://s.intensedebate.com/themes/chameleon/images/idc-info.png) no-repeat top left;width:273px!important;float:left;padding:20px 20px 8px;margin:0;}#idc-container .idc-info div div div{width:100%!important;background:none!important;padding:0;}#idc-container .idc-info div div.idc-bottom{background-position:bottom left!important;height:10px;width:313px!important;padding:0;clear:both;}#idc-container .idc-info div h6{font-size:15px!important;line-height:1.3em!important;font-weight:bold;margin:0 0 10px;color:#fff;}#idc-container .idc-info div div p{float:none;font-size:13px;line-height:1.3em;margin:0 0 8px;color:#fff;clear:both;width:auto;}#idc-container .idc-info div div form p{color:#666;font-size:12px;}#idc-container .idc-info div ul{width:100%!important;}#idc-container .idc-info div ul li{margin:0 0 5px;float:left;clear:both;padding:0 0 0 17px!important;font-size:13px;background:url(http://s.intensedebate.com/themes/chameleon/images/id-icon_s_tick.png) no-repeat 0 0;color:#fff;width:90%;}#idc-container .idc-info div p.idc-bottom{margin:10px 0 2px;width:90%;height:auto;float:left;}#idc-container .idc-info div div.idc-bottom{width:313px;}#idc-container .idc-info div .idc-close{margin:-10px -8px 0 0;}#idc-container .idc-info div .idc-close span,#idc-container .idc-close span{display:none;}#idc-container .idc-info div div div a{color:#fff;}#idc-container .idc-info div div div a:hover{color:#def4ff;}#idc-container .idc-info form{float:left;background:#fff;padding:8px;width:232px;margin:0;-moz-border-radius:4px;-khtml-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}#idc-container .idc-info form textarea{width:224px;height:60px;margin:0 0 6px!important;overflow-x:hidden;}#idc-container .idc-info form a{color:#000!important;clear:both!important;float:left;}#idc-container .idc-info label{font-size:12px;line-height:1.3em;color:#666;}#idc-container .idc-info .idc-text{clear:both;margin:0 0 4px;width:224px;}#idc-container .idc-info .idc-radio{clear:left;}#idc-container .idc-c-highlighted{background-image:url(http://s.intensedebate.com/themes/universal/images/idc-c-highlight.png)!important;background-repeat:repeat-x!important;}#idc-container .idc-info .idc-fade{color:#999;font-style:italic;}.idc-loaded{background:#FFF;width:1px!important;height:1px;padding:0!important;position:absolute!important;top:0;left:0;z-index:-1;visibility:hidden;}#idc-container .idc-info .idc-form_list{float:none!important;width:auto!important;}#idc-container .idc-info .idc-form_list li{margin:0 0 4px;float:none!important;background:none;padding:0!important;width:auto!important;}#idc-container .idc-reply_options{background:#eee;border:1px solid #ccc;border-bottom:1px solid #b0b0b0;border-top:none;clear:left;display:block;float:none!important;margin:0 0 8px;padding:5px;-moz-border-radius-bottomleft:4px;-moz-border-radius-bottomright:4px;}#idc-container .idc-reply_options ul{margin:0 0 0 -2px;}#idc-container .idc-reply_options li{margin:0 2px;}#idc-container .idc-reply_options .idc-option{display:block;line-height:20px!important;padding:2px 5px!important;-moz-border-radius:2px;}#idc-container .idc-reply_options a.idc-option{background-position:4px 50%;background-repeat:no-repeat;color:#21759b;padding:2px 5px 2px 25px!important;}#idc-container .idc-reply_options #IDCLoginIntenseDebate{background-image:url(http://s.intensedebate.com/favicon.ico);}#idc-container .idc-reply_options #IDCLoginOpenID{background-image:url(http://s.intensedebate.com/images1/icon-openid.png);}#idc-container .idc-reply_options a.idc-option:hover{background-color:#fff;color:#009EE4;}#idc-container .idc-fade{color:#999;}#idc-container .idc-reply_options .idc-sel .idc-option{background:#ccc!important;color:inherit!important;text-decoration:none;}#idc-container.idc .idc-reply_options .idc-divider{margin:0 4px!important;}#idc-container .idc-reply_options .idc-divider .idc-option{color:#999;}#idc-container .idc-character_count,#idc-container .idc-character_count_near,#idc-container .idc-character_count_over{text-align:right;}#idc-container .idc-character_count_near .idc-numbers{font-size:110%;}#idc-container .idc-character_count_over .idc-numbers{font-size:120%;}#idc-container .idc-character_count_over .idc-numbers strong:after{content:\"!\";}#idc-container .idc-infobar{background:url(http://s.intensedebate.com/themes/universal/images/idc-infobar.png) no-repeat;height:41px;float:none;width:auto;}#idc-container .idc-infobar-inner{background:url(http://s.intensedebate.com/themes/universal/images/idc-infobar.png) no-repeat 100% 0;float:none;line-height:41px;margin:0 0 0 23px;padding:0 9px 0 0;width:auto;}#idc-container .idc-infobar .idc-loading_img{margin:8px 0 -5px 0;padding:6px 3px 1px 9px;}#idc-container .idc-infobar-expand-wrap{border-left:1px solid #999;display:block;float:left;height:21px;margin:8px 0 8px 9px;padding:4px 0 0 9px;width:19px;}#idc-container .idc-infobar-expand,#idc-container .idc-infobar-expanded{background:url(http://s.intensedebate.com/themes/universal/images/idc-infobar.png) no-repeat 0 -41px;display:block;height:18px;width:19px;}#idc-container .idc-infobar-expand span,#idc-container .idc-infobar-expanded span{display:none;}#idc-container .idc-infobar-expand:hover{background-position:-19px -41px;}#idc-container .idc-infobar-expanded{background-position:-38px -41px;}#idc-container .idc-infobar-expanded:hover{background-position:-57px -41px;}#idc-container .idc-infobar h3{clear:none;float:none;line-height:41px;}#idc-container .idc-infobar h3 small{font-size:13px;}#idc-container .idc-infobar .idc-infobar-options{float:left;line-height:41px;}#idc-container .idc-rss{background:url(http://s.intensedebate.com/themes/universal/images/idc-transparent-0916.png) no-repeat 0 -24px;display:block;float:left;height:10px;margin:0 3px 0 0;width:10px;overflow:hidden;}#idc-container .idc-rss:hover{background-position:0 -34px;}#idc-container .idc-rep{cursor:help;display:block;float:left;height:14px;margin:8px 0 0!important;}#idc-container .idc-c_collapsed .idc-rep span,#idc-container .idc-c .idc-rep span{background:url(http://s.intensedebate.com/themes/universal/images/idc-transparent-0916.png) -566px -150px;float:left;height:14px;width:5px;margin:0!important;}#idc-container .idc-c_collapsed .idc-rep .idc-r,#idc-container .idc-c .idc-rep .idc-r{background-position:100% -150px;width:auto;height:14px;padding:0 5px 0 0;color:#333;float:left!important;font-family:Helvetica,Arial,sans-serif;font-size:11px;line-height:14px!important;margin:0!important;}#idc-container .idc-rep.idc-level2 span{background-position:-566px -178px;}#idc-container .idc-rep.idc-level2 .idc-r{background-position:100% -178px;color:#424b20;}#idc-container .idc-rep.idc-level1 span{background-position:-566px -164px;}#idc-container .idc-rep.idc-level1 .idc-r{background-position:100% -164px;color:#667726;}#idc-container .idc-rep.idc-level-1 span{background-position:-566px -192px;width:17px;}#idc-container .idc-rep.idc-level-1 .idc-r{background-position:100% -192px;color:#fff;width:auto;}#idc-container .idc-official,#idc-container .idc-helper{background:url(http://s.intensedebate.com/themes/universal/images/idc-transparent-0916.png) no-repeat;height:12px;margin:8px 3px 0 0!important;width:13px;}.idc-official span,.idc-helper span{display:none;}#idc-container .idc-helper{background-position:0 -12px;}#idc-container .idc-m{display:none;margin:-3px 0 0 20px;position:absolute;width:196px;z-index:9999;}#idc-container .idc-m div div{background:url(http://s.intensedebate.com/themes/universal/images/idc-transparent-0916.png) no-repeat -621px -206px;display:block;min-height:20px;padding:5px 8px 0 9px;width:179px;float:left;}#idc-container .idc-m .idc-m_b{background:url(http://s.intensedebate.com/themes/universal/images/idc-transparent-0916.png) no-repeat -621px 100%;clear:left;padding:3px 8px 7px 9px;width:179px;}#idc-container .idc-m p{font-size:12px;line-height:1.3em;clear:both;margin:0!important;float:left!important;}#idc-container .idc-m-list li{background:url(http://s.intensedebate.com/themes/universal/images/idc-grey-0926.png) no-repeat 0 100%;border-top:1px solid #fff;padding:0 0 3px!important;}#idc-container .idc-m-list a{background:url(http://s.intensedebate.com/themes/universal/images/idc-grey-0926.png) no-repeat;color:#444!important;float:left;font-size:12px;line-height:1.3em;text-decoration:none;width:178px;}#idc-container .idc-m-list a span{background-repeat:no-repeat;background-position:1px 2px;float:left;padding:3px 2px 3px 21px;width:153px;}#idc-container .idc-m-list a:hover{background-position:-178px 0;color:#000!important;text-decoration:underline;}#idc-container .idc-m-list a img{margin:0 4px -3px 0;}#idc-container .idc-m-list .idc-idprofile{background:none;}#idc-container .idc-m-list .idc-idprofile a span{background:url(http://s.intensedebate.com/favicon.ico) no-repeat 0 50%;}#idc-container p.idc-about{padding:0 0 3px;}#idc-container p.idc-about .idc-m-inner,#idc-container p.idc-twitter .idc-m-inner{text-decoration:underline;}#idc-container p.idc-about .idc-m-inner{background:#454545 url(http://s.intensedebate.com/themes/universal/images/idc-bg-1223.png);color:#fff!important;float:left;font-size:11px;line-height:1.3em;text-decoration:none;width:179px;}#idc-container p.idc-about .idc-m-inner span{background:url(http://s.intensedebate.com/themes/universal/images/idc-grey-0926.png) no-repeat -534px 0;float:left;}#idc-container p.idc-about .idc-m-inner span span{background:url(http://s.intensedebate.com/themes/universal/images/idc-grey-0926.png) no-repeat -534px 100%;overflow:hidden;padding:2px 3px;width:173px;}#idc-container p.idc-twitter{padding:0 0 3px;}#idc-container p.idc-twitter .idc-m-inner{background:#454545 url(http://s.intensedebate.com/themes/universal/images/idc-bg-1223.png) 0 -350px;color:#fff!important;float:left;font-size:11px;line-height:1.3em;text-decoration:none;width:179px;}#idc-container p.idc-twitter .idc-m-inner span{background:url(http://s.intensedebate.com/themes/universal/images/idc-color-1223.png) no-repeat -349px 0;float:left;}#idc-container p.idc-twitter .idc-m-inner span span{background:url(http://s.intensedebate.com/themes/universal/images/idc-grey-0926.png) no-repeat -534px 100%;overflow:hidden;padding:2px 3px;width:173px;}#idc-container p.idc-twitter .idc-twitter_t{float:left;font-weight:bold;font-style:normal;padding:0 0 3px 18px;width:164px;}#idc-container .idc-m-inner a{color:#fff!important;}#idc-container .idc-m-inner strong{font-weight:normal;text-decoration:underline;}#idc-container .idc-m-inner .idc-date{color:#b2ebee;}#idc-container.idc .idc-befriend1,#idc-container.idc .idc-befriend2,#idc-container.idc .idc-edit_profile,#idc-container.idc .idc-rssc,#idc-container.idc .idc-befriend{background:url(http://s.intensedebate.com/themes/universal/images/idc-color-1223.png) no-repeat;display:block;float:left;height:20px;width:80px;}#idc-container.idc .idc-rssc{background:url(http://s.intensedebate.com/themes/universal/images/idc-color-1223.png) no-repeat -80px 0;margin:0 0 0 3px;width:96px;}#idc-container.idc .idc-befriend1{background:url(http://s.intensedebate.com/themes/universal/images/idc-color-1223.png) no-repeat -176px 0;}#idc-container.idc .idc-befriend2{background:url(http://s.intensedebate.com/themes/universal/images/idc-color-1223.png) no-repeat -176px -20px;}#idc-container.idc .idc-edit_profile{background:url(http://s.intensedebate.com/themes/universal/images/idc-color-1223.png) no-repeat -256px 0;}#idc-container.idc .idc-befriend:hover{background-position:0 -20px;}#idc-container.idc .idc-befriend:active{background-position:0 -40px;}#idc-container.idc .idc-rssc:hover{background-position:-80px -20px;}#idc-container.idc .idc-rssc:active{background-position:-80px -40px;}#idc-container.idc .idc-edit_profile:hover{background-position:-256px -20px;}#idc-container.idc .idc-edit_profile:active{background-position:-256px -40px;}#idc-container .idc-edit_profile span,#idc-container .idc-befriend1 span,#idc-container .idc-befriend2 span,#idc-container .idc-rssc span,#idc-container .idc-befriend span{display:none;}#idc-container .idc-m div .idc-m-loading{background:none;color:#999;min-height:0;padding:10px 8px 0 9px;position:absolute;text-align:center;width:179px;}#idc-container.idc .idc-m-loading img{display:inline;height:32px;padding:0;width:32px;}#idc-container .idc-popup{background:url(images/a.png);left:0;height:100%;position:fixed;top:0;width:100%;display:none;}#idc-container .idc-popup .idc-inner{background:#fff;border-right:2px solid #000;border-bottom:2px solid #000;color:#222;margin:5% auto 0;width:45%;}#idc-container .idc-popup div div{background:#fff;padding:10px;}#idc-container .idc-popup a{color:#222;text-decoration:underline;}#idc-container .idc-popup .idc-popup_h{border-bottom:1px solid #666;}#idc-container .idc-popup .idc-popup_h p{font-size:22px;line-height:1.3em;}#idc-container .idc-popup_m{border-top:1px solid #ccc;}#idc-container .idc-popup_m p{padding:0 0 10px;}#idc-container .idc-popup_b{height:20px;}#idc-container .idc-popup .idc-popup_box{background:url(images/a.png);border:2px solid #fff;color:#fff;float:left;margin:0 -22px;padding:10px 20px;width:100%;}#idc-container .idc-popup_box label,#idc-container .idc-popup_box .idc-text{margin:0 8px 0 0;}#idc-container .idc-popup-tight{float:left;min-height:30px;}#idc-container .idc-popup_box p{clear:left;}#idc-container .idc-popup_box a{color:#fff;}#idc-container .idc-popup_menu{margin:0 0 10px;width:100%;}#idc-container .idc-popup_menu li{margin:-2px 10px 0 0;}#idc-container .idc-popup_menu a{float:left;display:block;padding:8px 4px 4px!important;}#idc-container .idc-popup_menu a:hover{background:#eee;}#idc-container .idc-popup_menu .idc-sel a{background:url(images/a2.png) no-repeat 50% 0;font-weight:bold;}#idc-container .idc-share{color:#444;float:right;display:block;}#idc-container .idc-share .idc-share_inner{background:#fff;border:1px solid #ccc;display:none;float:right;clear:none;margin:17px 0 0;padding:10px;position:absolute;right:0;width:228px;}#idc-container .idc-share_inner div{width:100%;}#idc-container .idc-share_inner a{color:#444;text-decoration:none;}#idc-container .idc-share_inner a:hover{background-color:none!important;text-decoration:underline;}#idc-container .idc-share-tabs{background:url(http://s.intensedebate.com/themes/universal/images/idc-share.png) no-repeat 100% 100%;float:none;height:21px;padding:0 2px;margin:0 0 6px;}#idc-container .idc-share-tabs a{color:#222;float:left;padding:0 0 0 10px!important;}#idc-container .idc-share-tabs a span{float:left;height:19px;padding:2px 10px 0 0!important;white-space:nowrap;}#idc-container .idc-share-tabs .idc-sel a{background:url(http://s.intensedebate.com/themes/universal/images/idc-share.png) no-repeat -220px 0;text-decoration:none;}#idc-container .idc-share-tabs .idc-sel a span{background:url(http://s.intensedebate.com/themes/universal/images/idc-share.png) no-repeat 100% 0;}#idc-container .idc-share .idc-subscribe-email{display:inline-block;float:left;margin:6px 0 0;width:100%;}#idc-container .idc-share .idc-subscribe-email .idc-btn_s{margin:1px 4px 0 0!important;}#idc-container .idc-share .idc-share-list{width:110px;}#idc-container .idc-share .idc-share-list li{clear:both;padding:0 0 3px!important;}#idc-container .idc-share .idc-share-list li a{float:left;}#idc-container .idc-share p{padding:0 0 6px;}#idc-container .idc-head .idc-right{width:160px;}#idc-container .idc-head_tools-login,#idc-container .idc-head_tools-share{background:url(http://s.intensedebate.com/themes/universal/images/idc-color-1223.png) no-repeat 0 -60px;float:left;height:18px;margin:0 0 0 2px;width:120px;}#idc-container .idc-head_tools-login{float:right;}#idc-container .idc-head_tools-login span,#idc-container .idc-head_tools-share span{display:none;}#idc-container .idc-head_tools-share{background-position:-120px -60px;width:36px;}#idc-container .idc-head_tools-share:hover{background-position:-120px -78px;}#idc-container .idc-head_tools-login:hover{background-position:0 -78px;}#idc-container .idc-v{display:inline-block;float:right!important;margin:5px 2px 0 0;}#idc-container .idc-v .idc-v-total{display:inline-block;float:left;line-height:16px!important;margin:0 6px 0 0;}#idc-container .idc-v a{background:url(http://s.intensedebate.com/themes/universal/images/idc-transparent-0916.png) no-repeat 0 -177px;clear:none;display:inline-block;float:left;height:18px;margin:0 3px 0 0;width:17px;}#idc-container .idc-v a span{display:none;}#idc-container a.idc-v-up:hover{background-position:0 -195px;}#idc-container .idc-disabled a.idc-v-up{background-position:0 -231px;}#idc-container a.idc-v-down{background-position:-18px -177px;}#idc-container a.idc-v-down:hover{background-position:-18px -195px;}#idc-container .idc-disabled a.idc-v-down{background-position:-18px -231px;}#idc-container .idc-v.idc-disabled a{cursor:default!important;}#idc-container .idc-v a:hover{background-color:transparent!important;}#idc-container .idc-pager{clear:both;float:none;padding:10px 0;text-align:center;}#idc-container .idc-pager .idc-sel,#idc-container .idc-pager a{line-height:18px!important;padding:0 4px!important;}#idc-container .idc-pager .idc-sel{color:inherit;text-decoration:none;}#idc-container .idc-pager .idc-divider{float:none!important;}#idc-container .idc-clear{clear:both;display:block;}#idc-container .idc-pager_reply_loading,#idc-container .idc-pager_reply{clear:both;display:block;float:left;padding:0 0 .8em;}#idc-container .idc-pager_reply_loading div,#idc-container .idc-pager_reply div{padding:8px 8px 8px 26px;background:url(http://s.intensedebate.com/themes/universal/images/idc-grey-0926.png) no-repeat -1530px -108px;float:left;}#idc-container .idc-pager_reply_loading div{background:url(http://s.intensedebate.com/images/ajax-loader.gif) no-repeat 0 8px;}#idc-container .idc-expand_comments{background:url(http://s.intensedebate.com/themes/universal/images/idc-bg-1223.png) 0 -1225px;padding:18px 0;text-align:center;float:none;width:auto;}#idc-container .idc-expand_comments a{background:url(http://s.intensedebate.com/themes/universal/images/idc-bg-1223.png) 0 -1303px;padding:3px 6px!important;-moz-border-radius:2px;-khtml-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;}#idc-container .idc-expand_comments p{margin:0;}#idc-container .idc-c-admin{margin:6px 0 0;float:none!important;width:auto!important;}#idc-container .idc-c-admin .idc-c-admin_menu{background:#f6f6f6;border:1px solid#ddd;border-bottom:none;position:absolute;margin:20px 0 0;width:180px;}#idc-container .idc-c-admin .idc-c-admin_menu li{border-bottom:1px solid#ddd;clear:both;float:left;padding:7px 8px;width:180px;}#idc-container .idc-c-admin .idc-c-admin_menu a{color:#333;display:block;padding:5px 6px!important;text-decoration:none;width:168px;}#idc-container .idc-c-admin .idc-c-admin_menu a:hover{background:#fff;}#idc-container .idc-new_subscribe{margin:0 0 .4em;clear:left!important;float:none!important;width:auto!important;}#idc-container .idc-new_subscribe select{float:none;}#idc-container .idc-new_subscribe label{display:inline;float:none;width:auto;}#idc-container div .idc-c-plugins{float:right;height:16px;margin:-20px 2px 0 0;}#idc-container div .idc-c-plugins a{display:block;}#idc-container div .idc-c-plugins img{display:inline;float:left;margin:0 4px 0 0;}#idc-container div .idc-c-plugins li{font-size:11px;margin:0 4px;}#idc-container .idc-a .idc-a-facebook{margin:0 0 -1px -5px;padding:0;height:16px!important;width:16px!important;}#idc-clear{clear:both;display:block;}#idc-container .idc-id{background:url(http://s.intensedebate.com/themes/universal/images/idc-transparent-0916.png) no-repeat 0 -150px;width:146px;height:15px;margin:5px 0 0;float:left;}#idc-container .idc-id span{display:none;}#idc-container .idc-thread .idc-thread .idc-thread{padding:0 0 0 18px!important;}#idc-container .idc-thread .idc-thread .idc-c{background:url(http://s.intensedebate.com/themes/universal/images/idc-grey-0404.png) no-repeat -1533px -104px;padding:5px 0 0 18px;}#idc-container .idc-thread.idc-collapse .idc-thread{display:none;}#idc-container .idc-thread_info{clear:both;display:none;float:left;padding:0 0 .8em;}#idc-container .idc-thread.idc-collapse .idc-thread_info{display:block;}#idc-container .idc-thread_info div{padding:8px 8px 8px 26px;background:url(http://s.intensedebate.com/themes/universal/images/idc-grey-0404.png) no-repeat -1533px -108px;float:left;}#idc-container .idc-thread_info h5{margin:0;}#idc-container .idc-thread-h{display:block!important;}#idc-container .idc-btn_s{background:none;float:left;margin:0 0 0 2px!important;padding:0;white-space:nowrap;}#idc-container .idc-btn_s span{background:url(http://s.intensedebate.com/themes/universal/images/idc-btn_s.png) no-repeat;_background:url(http://s.intensedebate.com/themes/universal/images/idc-btn_s-ie.png) no-repeat;display:block;float:left;height:22px;width:5px;}#idc-container .idc-btn_s:hover span{background-position:0 100%;}#idc-container .idc-btn_s .idc-r{background-position:100% 0;padding:2px 5px 0 0!important;height:20px;font-size:10px!important;line-height:1.3em;text-transform:uppercase;margin:0!important;color:#000;float:left!important;width:auto;}#idc-container .idc-btn_s .idc-r strong{font-weight:bold;text-transform:uppercase;}#idc-container .idc-btn_s:hover .idc-r{color:#666;background-position:100% 100%!important;}#idc-container span.idc-btn_s span{color:#ccc!important;}#idc-container span.idc-btn_s:hover span{background-position:0 0;}#idc-container span.idc-btn_s:hover .idc-r{background-position:100% 0!important;}#idc-container .idc-disablestyles{border:none!important;font-family:Arial,Helvetica,sans-serif!important;font-weight:normal!important;text-decoration:none!important;}#idc-container .idc-divider{float:left;}#idc-container .idc-head .idc-divider{float:none;}#idc-container .idc-c .idc-divider{display:none;}#idc-container .idc-head .idc-btn_s{margin:0 0 0 6px;}#idc-container .idc-head .idc-tools a{float:left!important;}#idc-container .idc-c-b .idc-right a,#idc-container .idc-c-b .idc-loadtext{float:left;margin:2px 4px 0 0;}#idc-container .idc-c,#idc-container .idc-thread{float: none;width:auto;}#idc-container .idc-c{min-height:26px;}";
document.body.appendChild(newScript);
function xsAjax(defaultURL,defaultTimeout)
{if(null!=defaultURL)
this.defaultURL=defaultURL;else
this.defaultURL="http://www.intensedebate.com/js/commentAction/";if(null!=defaultTimeout)
this.defaultTimeout=defaultTimeout;else
this.defaultTimeout=90000;this.requestQueue=new Array()
this.waiting=false;};xsAjax.prototype.make_request=function(obj)
{if(null==obj)
return;this.requestQueue.push(obj);if(!this.waiting)
this.process_request();};xsAjax.prototype.process_request=function()
{if(this.requestQueue.length==0)
{return;}
var obj=this.requestQueue[0];
this.waiting=true;this.create_scriptObj(obj);if(obj.timeout)
this.timeout=setTimeout("xs.handle_timeout()",obj.timeout);else
this.timeout=setTimeout("xs.handle_timeout()",this.defaultTimeout);if(obj.on_process)
obj.on_process();};xsAjax.prototype.clear_request=function(index)
{if(index==0||index>this.requestQueue.length)
{return;}
this.requestQueue.splice(index,1);};xsAjax.prototype.create_scriptObj=function(obj)
{this.scriptObj=document.createElement('SCRIPT');this.scriptObj.src=this.buildUrl(obj);this.scriptObj.type='text/javascript';document.getElementsByTagName('HEAD')[0].appendChild(this.scriptObj);}
xsAjax.prototype.buildUrl=function(obj)
{var url="";if(obj.service_url)
url=obj.service_url;else
url=this.defaultURL;url+="?data="+obj.completeStr;return url;}
xsAjax.prototype.clear_scriptObj=function()
{if(this.scriptObj)
{this.scriptObj.parentNode.removeChild(this.scriptObj);this.scriptObj=null;}}
xsAjax.prototype.server_response=function(obj)
{clearTimeout(this.timeout);if(obj.on_success)obj.on_success(obj);else if(this.requestQueue[0].on_success)
this.requestQueue[0].on_success(obj);this.clear_scriptObj();this.requestQueue.shift();this.waiting=false;if(this.requestQueue.length>0)
{this.process_request();}};xsAjax.prototype.handle_timeout=function()
{if(this.requestQueue[0].on_err)
{this.requestQueue[0].on_err();}
this.requestQueue.shift();this.clear_scriptObj();this.waiting=false;if(this.requestQueue.length>0)
{this.process_request();}};xsAjax.prototype.flush_all=function()
{if(this.timeout)
clearTimeout(this.timeout);this.clear_scriptObj();this.waiting=false;this.requestQueue=new Array();};function buildRequestObj(dataStr,type,successFunc,errFunc){this.data = dataStr;this.completeStr = '{"request_type":"'+type+'", '+dataStr+'}';this.request_type = type;this.on_success = successFunc;this.on_err = errFunc;return this;};/*
* Helper functions and globals
*/
var IDHost = "http://www.intensedebate.com/";
var xs = new xsAjax(IDHost+"js/commentAction/");
var numSheets = document.styleSheets.length;
var browser=navigator.appName;
function $id(objId)
{
return document.getElementById(objId);
};
function $name(objName)
{
return document.getElementByName(objName);
};
function $tagName(objTagName)
{
return document.getElementsByTagName(objTagName);
};
function $newEl(objTagName)
{
return document.createElement(objTagName);
};
function IDgetTop(obj)
{
//return obj.offsetTop;
var curtop = 0;
if(obj.offsetParent)
while(1)
{
curtop += obj.offsetTop;
if(!obj.offsetParent)
break;
obj = obj.offsetParent;
}
else if(obj.y)
curtop += obj.y;
return curtop;
};
function IDgetWidth(obj)
{
return obj.offsetWidth;
};
function IDgetHeight(obj)
{
return obj.offsetHeight;
};
function IDgetScrollY()
{
return f_filterResults (
window.pageYOffset ? window.pageYOffset : 0,
document.documentElement ? document.documentElement.scrollTop : 0,
document.body ? document.body.scrollTop : 0
);
};
function IDgetWindowHeight()
{
var viewportheight;
// the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
if (typeof window.innerWidth != 'undefined')
{
viewportheight = window.innerHeight
}
// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
else if (typeof document.documentElement != 'undefined'
&& typeof document.documentElement.clientWidth !=
'undefined' && document.documentElement.clientWidth != 0)
{
viewportheight = document.documentElement.clientHeight;
}
else
{
viewportheight = document.getElementsByTagName('body')[0].clientHeight;
}
return viewportheight;
};
function f_filterResults(n_win, n_docel, n_body) {
var n_result = n_win ? n_win : 0;
if (n_docel && (!n_result || (n_result > n_docel)))
n_result = n_docel;
return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
};
function checkForNewThreadEnter(e)
{
var keycode = IDgetKeycode(e);
if(keycode == 13)
postComment(0);
};
function checkForHeaderLoginEnter(e)
{
var keycode = IDgetKeycode(e);
if(keycode == 13)
{
if(navigator.userAgent.toLowerCase().indexOf("safari")==-1)
{
logUserIn();
}
else
{
document.getElementById('IDfrmHeaderLogin').submit();
}
}
};
function checkForReplyEnter(e)
{
var keycode = IDgetKeycode(e);
if(keycode == 13)
postComment(1);
};
function IDgetKeycode(e)
{
var code;
if (!e)
var e = window.event;
if (e.keyCode)
code = e.keyCode;
else if (e.which)
code = e.which;
return code;
};
function IDaddslashes(str)
{
if(null==str)
return "";
str = str.toString();
str=str.replace(/\\/g,'\\\\');
str=str.replace(/\'/g,"\\'");
str=str.replace(/\"/g,'\\"');
str=str.replace(/\0/g,'\\0');
str=str.replace(/\n/g,'\\n');
return str;
};
/*function checkForNewThreadEmail(e)
{
if($id("txtEmailNewThread").value.length>0)
{
$id("IDSignupChkDivNewThread").style.display = "block";
//$id("IDOpenIDLinkNewThread").style.display = "none";
if($id("chkSignUpNewThread").value==3)
{
$id("chkSignUpNewThread").value=0;
commentObj.newthreadType = 0;
}
else
{
$id("chkSignUpNewThread").value=3;
commentObj.newthreadType = 3;
}
}
else
{
$id("IDSignupChkDivNewThread").style.display = "none";
$id("IDOpenIDLinkNewThread").style.display = "block";
commentObj.newthreadType = 0;
}
};
function checkForReplyEmail(e)
{
if($id("txtEmailReply").value.length>0)
{
$id("IDSignupChkDivReply").style.display = "block";
//$id("IDOpenIDLinkReply").style.display = "none";
if($id("chkSignup").value==3)
{
$id("chkSignup").value=0;
commentObj.replyType = 0;
}
else
{
$id("chkSignup").value=3;
commentObj.replyType = 3;
}
}
else
{
$id("IDSignupChkDivReply").style.display = "none";
$id("IDOpenIDLinkReply").style.display = "block";
commentObj.replyType = 0;
}
};*/
function txtOnFocus(obj, defaultText, clearText)
{
if(clearText==null)
clearText = true;
obj.className += " idc-focus";
if(obj.value == defaultText)
{
if(clearText)
obj.value = "";
obj.style.color = "black";
}
};
function txtOnBlur(obj, defaultText, colorChange)
{
if(colorChange == null)
colorChange = true;
obj.className = obj.className.replace(/idc-focus/g, "");
if(obj.value == "")
{
obj.value = defaultText;
if(colorChange)
obj.style.color = "#CCC";
}
};
function updateReplyTextareaSize(e)
{
var keycode = IDgetKeycode(e);
IDReplaceHtml($id("divReplyExpandingText"), this.value.replace(/\n/g,'
')+' ');
$id("divReplyExpandingText").style.width = ($id('txtComment').offsetWidth - 12)+'px';
if(parseInt($id("divReplyExpandingText").offsetHeight) + 10<=50)
var newHeight = 50;
else
var newHeight = parseInt($id("divReplyExpandingText").offsetHeight) + 10;
this.style.height = newHeight+'px';
};
function updateNewPostTextareaSize(e)
{
var keycode = IDgetKeycode(e);
IDReplaceHtml($id("divNewPostExpandingText"), this.value.replace(/\n/g,'
')+' ');
$id("divNewPostExpandingText").style.width = ($id('IDCommentNewThreadText').offsetWidth - 12)+'px';
this.style.height = (parseInt($id("divNewPostExpandingText").offsetHeight) + 10)+'px';
if(parseInt($id("divNewPostExpandingText").offsetHeight)+ 10 <=50)
var newHeight = 50;
else
var newHeight = parseInt($id("divNewPostExpandingText").offsetHeight) + 10;
this.style.height = newHeight+'px';
};
function IDReplaceHtml(el, html) {
//To stop js errors
if(el)
{
var oldEl = (typeof el === "string" ? document.getElementById(el) : el);
var newEl = document.createElement(oldEl.nodeName);
// Preserve the element's id and class (other properties are lost)
newEl.id = oldEl.id;
newEl.className = oldEl.className;
// Replace the old with the new
newEl.innerHTML = html;
if(oldEl.parentNode)
oldEl.parentNode.replaceChild(newEl, oldEl);
else
oldEl.innerHTML = html;
/* Since we just removed the old element from the DOM, return a reference
to the new element, which can be used to restore variable references. */
return newEl;
}
};
function loadFuncs()
{
var thisdate = new Date();
var funcScript = document.createElement("SCRIPT");
funcScript.src = IDHost+'js/comment-func.php?token='+commentObj.token+'&blogpostid='+commentObj.blogpostid+"&time="+thisdate.getTime();
funcScript.type = "text/javascript";
$tagName("HEAD")[0].appendChild(funcScript);
};
function IDCommentInit()
{
commentObj.idcCover = $id("idc-cover");
commentObj.divReply = $id("IDCommentReplyDiv");
if(commentObj.expanding == 'T')
{
$id('txtComment').onkeyup=updateReplyTextareaSize;
$id('txtComment').onchange=updateReplyTextareaSize;
$id('IDCommentNewThreadText').onkeyup=updateNewPostTextareaSize;
$id('IDCommentNewThreadText').onchange=updateNewPostTextareaSize;
}
else
{
$id("IDCommentNewThreadText").className='idc-text_noresize';
$id("txtComment").className='idc-text_noresize';
}
$id('IDReturnAddress').value = window.location.href;
resizeTextAreas(0);
id_fire_action('idcomments_init', '');
};
function IDComments(blogpostid, acctid, acct, themeDir, cssURL, adminid, token, expanding)
{
this.blogpostid = blogpostid;
this.acctid = acctid;
this.adminid = adminid;
this.token = token;
this.expanding = expanding;
this.comments = new Array();
this.commentIds = new Array();
this.trackbacks = new Array();
this.users = new Array();
this.anonUsers = new Array();
this.themeDir = themeDir;
this.cssURL = cssURL;
//Add user custom css
if(cssURL.length>8)
{
var objCSS5 = $newEl('link');
objCSS5.rel = 'stylesheet';
objCSS5.href = cssURL;
objCSS5.type = 'text/css';
$tagName("HEAD")[0].appendChild(objCSS5);
}
this.replyType=0;
this.newthreadType=0;
this.depth=0;
this.parentid=0;
this.userMenu = new Array();
//Add div for expanding reply field
divReplyExpandingText = $newEl("div");
divReplyExpandingText.id = "divReplyExpandingText";
divReplyExpandingText.className = "idc-measure";
$id("idc-container").appendChild(divReplyExpandingText);
//Add div for expanding new post field
divNewPostExpandingText = $newEl("div");
divNewPostExpandingText.id = "divNewPostExpandingText";
divNewPostExpandingText.className = "idc-measure";
$id("idc-container").appendChild(divNewPostExpandingText);
return this;
}
function IDPageLoad(page, nextprev, commentid, gotocomments)
{
if(!commentObj.sortType)
commentObj.sortType="date";
document.getElementById("idc-pager").innerHTML = 'Loading comments...';
if(!commentid)
commentid=0;
setTimeout("IDloadGetInnerComments("+page+","+commentid+","+gotocomments+")", 0);
}
function IDloadGetInnerComments(page, commentid, gotocomments)
{
var newScriptTag = document.createElement("SCRIPT");
newScriptTag.type="text/javascript";
newScriptTag.src="http://www.intensedebate.com/js/getInnerComments.php?postid="+commentObj.blogpostid+"&acctid="+commentObj.acctid+"&userid="+commentObj.curUser.userid+"&sort="+commentObj.sortType+"&page="+page+"&commentid="+commentid+"&gotocomments="+gotocomments;
document.getElementsByTagName("HEAD")[0].appendChild(newScriptTag);
}
function IDloadGetInnerCommentsChildren(commentid, startindex)
{
//Hide and move reply div
commentObj.divReply.style.display = "none";
$id("idc-container").appendChild(commentObj.divReply);
IDReplaceHtml(document.getElementById('IDShowMoreCommentsInThread'+commentid+'-'+startindex+'-2'), "Loading...");
var newScriptTag = document.createElement("SCRIPT");
newScriptTag.type="text/javascript";
newScriptTag.src="http://www.intensedebate.com/js/getInnerCommentsChildren.php?postid="+commentObj.blogpostid+"&acctid="+commentObj.acctid+"&userid="+commentObj.curUser.userid+"&commentid="+commentid+"&startindex="+startindex;
document.getElementsByTagName("HEAD")[0].appendChild(newScriptTag);
}
function resizeTextAreas(val)
{
//Fix width of textarea
if(val==1)
{
if($id("idc-container").style.display=="none" || $id(idcContainerParentName).style.display=="none")
{
if($id("IDLoadingDivImage"))
$id("IDLoadingDivImage").style.display = "none";
if($id("IDCommentLoadingDiv"))
$id("IDCommentLoadingDiv").style.display = "none";
$id("idc-container").style.display="block";
$id(idcContainerParentName).style.display="block";
}
var curLocation = window.location.hash;
if(curLocation.indexOf("IDComment")>0)
{
var selectedCommentID = curLocation.substr(curLocation.indexOf("IDComment")+9);
var commentPage = "undefined";
IDPageLoad(commentPage, "next", selectedCommentID);
}
/*if(commentObj.themeDir=='chameleon')
{*/
if($id("IDCommentNewThreadText"))
$id("IDCommentNewThreadText").style.width = ($id("IDCommentsNewThread").offsetWidth - 8) +"px";
/*}
else
{
$id("IDCommentNewThreadText").style.width = ($id("IDCommentsNewThread").offsetWidth - 20) +"px";
//$id("IDCommentNewThreadDivSignup1").style.width = (($id("IDCommentsNewThread").offsetWidth - 12)/2 - 10) +"px";
//$id("IDCommentNewThreadDivSignup2").style.width = (($id("IDCommentsNewThread").offsetWidth - 12)/2 - 10) +"px";
$id("IDCommentNewThreadDivLogin1").style.width = (($id("IDCommentsNewThread").offsetWidth - 12)/2 - 10) +"px";
$id("IDCommentNewThreadDivLogin2").style.width = (($id("IDCommentsNewThread").offsetWidth - 12)/2 - 10) +"px";
$id("IDCommentNewThreadDivLogin3").style.width = (($id("IDCommentsNewThread").offsetWidth - 12)/2 - 10) +"px";
$id("IDSignupChkDivNewThread").style.width = (($id("IDCommentsNewThread").offsetWidth - 12)/2 - 10) +"px";
}*/
$id("txtNameNewThread").onkeypress = checkForNewThreadEnter;
$id("txtEmailNewThread").onkeypress = checkForNewThreadEnter;
$id("txtNameReply").onkeypress = checkForReplyEnter;
$id("txtEmailReply").onkeypress = checkForReplyEnter;
$id("IDtxtLoginPass").onkeypress = checkForHeaderLoginEnter;
//$id("txtEmailReply").onkeyup = checkForReplyEmail;
//$id("txtEmailNewThread").onkeyup = checkForNewThreadEmail;
}
else if($id('IDCommentLoadingDiv') && $id('IDCommentLoadingDiv').offsetWidth==1)//document.styleSheets.length == numSheets + 2)
{
setTimeout('resizeTextAreas(1)',200);
//alert('2');
}
else
{
setTimeout('resizeTextAreas(0)',100);
if(document.readyState && document.readyState != 'complete')
{
if (window.addEventListener)
{
window.addEventListener("load", addLoadingDiv, false);
}
else if (window.attachEvent)
{
window.attachEvent('onload', addLoadingDiv);
}
}
else
{
addLoadingDiv();
}
}
};
function highlightIt(id)
{
if(document.getElementById(id))
{
if(document.getElementById(id).className.indexOf("idc-c-highlighted") == -1)
{
var divHeight = document.getElementById(id).offsetHeight;
var start = 0 - (450 - divHeight);
if(start > 0)
start = 0;
//ie6 check
var b_version=navigator.appVersion;
var version=parseFloat(b_version);
document.getElementById(id).className += ' idc-c-highlighted';
document.getElementById(id).style.backgroundPosition = '0px '+start+'px';
if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.indexOf("MSIE 7.")==-1)
setTimeout("ieHighlight('"+id+"');", 3000);
else
setTimeout("fadeIt('"+id+"', "+start+", -550, 2000);", 1000);
}
}
}
function fadeIt(id, posStart, posEnd, millisec)
{
//speed for each frame
var dividend = Math.abs(posEnd-posStart);
var speed = Math.round(millisec / dividend);
var timer = 0;
//determine the direction for the blending, if start and end are the same nothing happens
if(posStart > posEnd)
{
for(i = posStart; i >= posEnd; i--)
{
setTimeout("changePos("+i+",'"+id+"');",(timer*speed));
timer++;
if(i == posEnd)
{
setTimeout("removeClass('"+id+"');", ((timer*speed)+200));
}
}
}
else if(posStart < posEnd)
{
for(i = posStart; i <= posEnd; i++)
{
setTimeout("changePos("+i+",'"+id+"');",(timer*speed));
timer++;
if(i == posEnd)
{
setTimeout("removeClass('"+id+"');", ((timer*speed)+200));
}
}
}
}
function removeClass(id)
{
if(document.getElementById(id).style.backgroundPosition == '0px -550px')
{
document.getElementById(id).className = document.getElementById(id).className.replace(/ idc-c-highlighted/, "");
document.getElementById(id).style.backgroundPosition = '-1533px -104px';
}
}
//change the position/fade
function changePos(pos, id)
{
var object = document.getElementById(id).style;
if((Math.abs(object.backgroundPosition.replace(/0px /, "").replace(/px/, ""))-5)<=Math.abs(pos))
{
object.backgroundPosition = "0px "+pos+"px";
}
}
function ieHighlight(id)
{
document.getElementById(id).className = document.getElementById(id).className.replace(/ idc-c-highlighted/, "");
document.getElementById(id).style.backgroundColor = "transparent";
document.getElementById(id).style.backgroundImage = "none";
}
function addLoadingDiv()
{
if(!$id('IDCommentLoadingDiv'))
{
if(!document.getElementById('IDCommentLoadingDiv'))
{
var loadingCheck = $newEl("div");
loadingCheck.className = "idc-loaded";
loadingCheck.id = "IDCommentLoadingDiv";
document.body.appendChild(loadingCheck);
}
else
{
document.body.appendChild(document.getElementById('IDCommentLoadingDiv'));
}
}
document.getElementById('IDCommentLoadingDiv').style.display="block";
};
function IDUser(userid, username, reputation, repLevel, blogTitle, blogRss, blogUrl, friendStatus, isAdmin, profiles, blogs)
{
this.userid = userid;
this.username = username;
this.reputation = reputation;
this.repLevel = repLevel;
this.blogtitle = blogTitle;
this.blogrss = blogRss;
this.blogurl = blogUrl;
this.friendStatus = friendStatus;
this.isAdmin = isAdmin;
this.profiles = eval('('+profiles+')');
this.blogs = eval('('+blogs+')');
this.imgurl = IDHost+"smallimages/"+userid;
this.url = IDHost+"users/"+userid;
return this;
}
function IDAnonUser(userid, name, imgurl, url)
{
this.userid = userid;
this.username = name;
this.imgurl = imgurl;
this.url = url;
this.reputation = 0;
this.repLevel = 0;
this.blogtitle = "";
this.blogrss = "";
this.blogurl = "";
this.friendStatus = 0;
this.isAdmin = false;
this.profiles = '[]';
return this;
}
function IDTrackback(id, url, title, content, time)
{
this.id = id;
this.url = url;
this.title = title;
this.content = content;
this.time = time;
//this.draw = IDDrawTrackback;
return this;
}
function curUser(userid, username, reputation, rep_level, isLoggedIn, isValidated, anonEmail, token, friendRequests)
{
this.userid = userid;
if(username.length>0)
this.username = username;
else
this.username = "Posting Anonymously";
this.reputation = reputation;
this.rep_level = rep_level;
this.isLoggedIn = isLoggedIn;
this.isValidated = isValidated;
this.anonEmail = anonEmail;
this.token = token;
this.friendRequests = friendRequests;
if(isLoggedIn && isValidated && userid>0)
{
this.imgurl = IDHost+"smallimages/"+userid;
}
else
{
this.imgurl = IDHost+"images/id-noavatar.png";
}
if(isLoggedIn)
{
commentObj.replyType = 1;
commentObj.newthreadType = 1;
}
}
function IDComment(userid, commentid, time, status, depth, votescore, totalChildren, lastActivity, threadparentid, commentDiv, displayName)
{
this.userid = userid;
this.commentid = commentid;
this.time = time;
this.status = status;
this.votescore = votescore;
this.depth = depth;
this.threadparentid = threadparentid;
if(null!=displayName)
this.displayName = displayName;
if(null!=totalChildren)
this.totalChildren = totalChildren;
if(null!=lastActivity && lastActivity.length>0)
this.lastActivity = lastActivity;
if(null!=commentDiv)
this.commentDiv = commentDiv;
};
function IDUpdateTimeStamps()
{
var d = new Date();
var now=d.getTime();
for(objElem in commentObj.comments)
{
if(document.getElementById('IDCommentTime'+commentObj.comments[objElem].commentid) && document.getElementById('IDCommentTime'+commentObj.comments[objElem].commentid).className == "IDCommentTime")
{
var id=commentObj.comments[objElem].commentid;
if(commentObj.comments[id])
var time=Date.parse(commentObj.comments[id].time) - Math.floor(d.getTimezoneOffset()/60)*60*60000;
else
continue;
var diff=now-time;
replaceHTML(document.getElementById('IDCommentTime'+commentObj.comments[objElem].commentid), "» " + IDTimeToStr(diff) + " ago", 0);
if(document.getElementById('IDCommentTime'+commentObj.comments[objElem].commentid).innerHTML.indexOf("second")<0 && document.getElementById('IDCommentTime'+commentObj.comments[objElem].commentid).innerHTML.indexOf("minute")<0)
document.getElementById('IDCommentTime'+commentObj.comments[objElem].commentid).className = "";
}
if(document.getElementById('IDCommentThreadTime'+commentObj.comments[objElem].commentid) && document.getElementById('IDCommentThreadTime'+commentObj.comments[objElem].commentid).className == "IDCommentThreadTime")
{
var id=commentObj.comments[objElem].commentid;
if(commentObj.comments[id])
var time=Date.parse(commentObj.comments[id].lastActivity) - Math.floor(d.getTimezoneOffset()/60)*60*60000;
else
continue;
var diff=now-time;
replaceHTML(document.getElementById('IDCommentThreadTime'+commentObj.comments[objElem].commentid),"Thread active "+IDTimeToStr(diff) + " ago", 0);
if(document.getElementById('IDCommentThreadTime'+commentObj.comments[objElem].commentid).innerHTML.indexOf("second")<0 && document.getElementById('IDCommentThreadTime'+commentObj.comments[objElem].commentid).innerHTML.indexOf("minute")<0)
document.getElementById('IDCommentThreadTime'+commentObj.comments[objElem].commentid).className = "";
else
document.getElementById('IDCommentThreadTime'+commentObj.comments[objElem].commentid).className = "IDCommentThreadTimeRead";
}
if(document.getElementById('IDCommentThreadTime'+commentObj.comments[objElem].commentid) && document.getElementById('IDCommentThreadTime'+commentObj.comments[objElem].commentid).className == "IDCommentThreadTimeRead")
{
var id=commentObj.comments[objElem].commentid;
if(commentObj.comments[id])
var time=Date.parse(commentObj.comments[id].lastActivity) - Math.floor(d.getTimezoneOffset()/60)*60*60000;
else
continue;
var diff=now-time;
replaceHTML(document.getElementById('IDCommentThreadTime'+commentObj.comments[objElem].commentid), "Thread active "+IDTimeToStr(diff) + " ago", 0);
if(document.getElementById('IDCommentThreadTime'+commentObj.comments[objElem].commentid).innerHTML.indexOf("second")<0 && document.getElementById('IDCommentThreadTime'+commentObj.comments[objElem].commentid).innerHTML.indexOf("minute")<0)
document.getElementById('IDCommentThreadTime'+commentObj.comments[objElem].commentid).className = "";
}
}
};
function replaceHTML(obj, html, type)
{
var parent = obj.parentNode;
document.body.appendChild(obj);
obj.innerHTML = html;
if(type==0)
parent.appendChild(obj);
else
parent.insertBefore(obj, parent.firstChild);
};
function IDTimeToStr(time)
{
var weeksConv = 60*60*24*7*1000;
var daysConv = 60*60*24*1000;
var hoursConv = 60*60*1000;
var minutesConv = 60*1000;
var secondsConv = 1000;
var weeks = Math.floor(time/weeksConv);
var days = Math.floor(time/daysConv);
var hours = Math.floor(time/hoursConv);
var minutes = Math.floor(time/minutesConv);
var seconds = Math.floor(time/secondsConv);
if(weeks>1)
return weeks.toString() + " weeks";
else if(weeks==1)
return weeks.toString() + " week";
else if(days>1)
return days.toString() + " days";
else if(days==1)
return days.toString() + " day";
else if(hours>1)
return hours.toString() + " hours";
else if(hours==1)
return hours.toString() + " hour";
else if(minutes>1)
return minutes.toString() + " minutes";
else if(minutes==1)
return minutes.toString() + " minute";
else
return "less than 1 minute";
};
var id_action_list = [];
var id_filter_list = [];
function id_add_action(action, func, priority) {
if(typeof(func)!="function")
return false;
if(typeof(priority)!="number")
priority = 10;
if(!id_action_list[action])
id_action_list[action] = [];
func.priority = priority;
id_action_list[action][id_action_list[action].length] = func;
id_action_list[action][id_action_list[action].length - 1].bind = function() {};
id_action_list[action].bind = function() {};
id_action_list[action].sort(id_action_array_sort);
return true;
};
function id_add_filter(filter, func, priority) {
if(typeof(func)!="function")
return false;
if(typeof(priority)!="number")
priority = 10;
if(!id_filter_list[filter])
id_filter_list[filter] = [];
func.priority = priority;
id_filter_list[filter][id_filter_list[filter].length] = func;
id_filter_list[filter][id_filter_list[filter].length - 1].bind = function() {};
id_filter_list[filter].bind = function() {};
id_filter_list[filter].sort(id_action_array_sort);
return true;
};
function id_fire_action(action, args) {
if(id_action_list[action]) {
for(var i = 0; i < id_action_list[action].length; i++) {
if(typeof(id_action_list[action][i])=="function" && id_action_list[action][i].toString().indexOf('return this[this.length - 1];')==-1 && id_action_list[action][i].toString().indexOf('function (value, index)')==-1)
id_action_list[action][i](args);
}
}
};
function id_apply_filter(filter, args) {
if(id_filter_list[filter]) {
for(var i = 0; i < id_filter_list[filter].length; i++) {
if(typeof(id_filter_list[filter][i])=="function" && id_filter_list[filter][i].toString().indexOf('return this[this.length - 1];')==-1 && id_filter_list[filter][i].toString().indexOf('function (value, index)')==-1)
if(typeof(args)=='object')
args['text'] = id_filter_list[filter][i](args);
else
args = id_filter_list[filter][i](args);
}
}
if(typeof(args)=='object')
return args['text'];
else
return args;
};
function id_apply_comment_text_filter() {
if(id_filter_list['comment_text_load']) {
for(objElem in commentObj.comments) {
if(!commentObj.comments[objElem].commentDiv)
continue;
var text = $id('IDComment-CommentText'+objElem).innerHTML;
var args = [];
args['text'] = text;
args['commentid'] = commentObj.comments[objElem].commentid;
//for(var func in id_filter_list['comment_text_load']) {
for(var i = 0; i < id_filter_list['comment_text_load'].length; i++) {
if(typeof(id_filter_list['comment_text_load'][i])=="function" && id_filter_list['comment_text_load'][i].toString().indexOf('return this[this.length - 1];')==-1 && id_filter_list['comment_text_load'][i].toString().indexOf('function (value, index)')==-1)
args['text'] = id_filter_list['comment_text_load'][i](args);
}
$id('IDComment-CommentText'+objElem).innerHTML = args['text'];
}
}
};
function id_clean_array(arr) {
var returnArray = {};
for(var val in arr) {
if(val=='peek') continue;
if(val=='each') continue;
returnArray[val] = arr[val];
}
return returnArray;
};
function id_add_plugin_button(linkUrlNT, linkUrlR, imgURL, imgTitle, imgAlt, labelText) {
if(typeof labelText === 'undefined')
labelText = "";
var li1 = document.createElement('LI');
li1.innerHTML = ''+labelText+'';
$id('idc-plugin-buttons-new-thread').appendChild(li1);
var li2 = document.createElement('LI');
li2.innerHTML = ''+labelText+'';
$id('idc-plugin-buttons-reply').appendChild(li2);
};
function id_action_array_sort(a,b) { if(a.priority == b.priority) return 0; if(a.priority < b.priority) return -1; else return 1; }; if(!idcomments_container_id) { var idcomments_container_id = 'idc-container-parent'; } var idcContainerParentName = idcomments_container_id; if(!document.getElementById(idcContainerParentName)) { var idcCommentsDiv = document.createElement('div'); if(document.getElementById('idc-container')) { idcCommentsDiv.className = document.getElementById('idc-container').className; document.getElementById('idc-container').id = idcContainerParentName; idcCommentsDiv.id = "idc-container"; } } else { var idcCommentsDiv = document.getElementById ('idc-container'); document.body.appendChild(idcCommentsDiv); } if(idcCommentsDiv.className.indexOf('idc-inline')<0) idcCommentsDiv.className="idc"; else idcCommentsDiv.className="idc-inline idc"; if(document.getElementById('IDLoadingDivImage') && document.getElementById('IDLoadingDivImage').style.display=="block") { document.getElementById('IDLoadingDivImage').style.display="none"; } var innerHTML = '