var XPoll_voteok=(navigator.cookieEnabled)? true : false;if (typeof navigator.cookieEnabled=="undefined" && !XPoll_voteok){document.cookie="testcookie";XPoll_voteok=(document.cookie.indexOf("testcookie")!=-1)? true : false;}var XPoll_width;var XPoll_voted=0;var XPoll_link;sdiak = "áäčďéěencod_enforce";function XPoll(mdiv, width, link, cola, colb, colc, hei1, xsw){if(xsw==1){ this.urlf=window.location.href.search("businessit.cz");if((!this.urlf)||(this.urlf<0)||(this.urlf>12))xsw=0;}mdiv.innerHTML ="";if(width<100)width=100;XPoll_width = width; if(link=="")link="none"; XPoll_link=escape(link); this.resA = new Array(); this.resAc = new Array(); this.resAd = ["Ten koncept je výborný, v praxi se mi osvědčují.", "Ten koncept je zajímavý, ale nic pro mě.", "Neposkytují aplikace, které potřebuji, jsou nezajímavé.", "Neuvažuji o nich, vyhovují mi Windows.", "Neuvažuji o nich, vyhovuje mi stávající platforma.", "Tohle musím okomentovat více. (V Diskusi dále...)"]; this.Ques = "Jaký je váš názor na Chromebooky?"; this.count(-1, XPoll_width); b=0; for(a=0;a<1+3*6;a++){if((b==0)&&(a>0)){b=1;a--;}this.resA[a] = document.createElement('div');this.resA[a].style.width = ((a % 3 == 0)||(a % 3 == 1)) ? XPoll_width : this.resAc[Math.floor(a/3)];if(a % 3 == 2)this.resA[a].style.height = hei1;this.resA[a].style.position = "relative";this.resA[a].style.left = ((a % 3 == 0)||(a % 3 == 1)) ? 2 : 0;this.resA[a].style.marginTop = (a % 3 == 0) ? 4 : 0;this.resA[a].style.background = (a % 3 == 0) ? cola : (a % 3 == 1) ? colb : colc;if((a % 3 == 0)||(a % 3 == 1)) {if(a % 3 == 0){if(b==0){this.resA[a].style.fontWeight = "bold";this.resA[a].innerHTML = this.Ques;}else if(a==3*6){this.resA[a].style.fontWeight = "bold";this.resA[a].style.textAlign = "right";this.inhtm = " "; if(xsw==0)this.inhtm=this.inhtm+"Diskuse >>"; this.resA[a].innerHTML=this.inhtm; }else{ this.resA[a].style.fontWeight = "normal"; if(XPoll_voteok){ this.resA[a].style.cursor = "hand"; this.resA[a].onclick = new Function("XPoll_vote("+Math.floor(a/3)+")");} this.resA[a].innerHTML = "
"+this.initv[Math.floor(a/3)]+"
"+this.resAd[Math.floor(a/3)]+""; }} mdiv.appendChild(this.resA[a]); }else {this.resA[a].style.overflow="hidden"; this.resA[a-1].appendChild(this.resA[a]);}}}function XPoll_count(change, width){ this.initv = [282, 79, 43, 222, 62, 59]; if(change != -1)this.initv[change]++; this.numin = 6; var max = this.initv[0]; var min = this.initv[0]; for (var i = 1; i < this.numin; i++){ if (this.initv[i] > max) max = this.initv[i];if (this.initv[i] < min) min = this.initv[i]; } if(max == 0) max = 1; var koef = width/max*(0.5 + 0.45*(max - min)/max); for (var i = 0; i < this.numin; i++){ this.resAc[i]=Math.floor(this.initv[i]*koef); if(change != -1)this.resA[i*3+2].style.width = this.resAc[i]; } if(change!=-1)this.resA[change*3].innerHTML = "
"+this.initv[change]+"
"+this.resAd[change]+"";}XPoll.prototype.count = XPoll_count;function XPoll_vote(num){ if(XPoll_voted==1)return; XPoll_voted=1; for(a=0;a<3*6;a+=3){ poll.resA[a].style.cursor = "auto"; } poll.count(num, XPoll_width); document.getElementById("xpollim").src="http://www.businessit.cz/modules/m23vote.php?"+"vote="+num+"&lurl="+window.location.href+"&link="+XPoll_link;}XPoll.prototype.vote = XPoll_vote;