home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 September / Chip_2001-09_cd1.bin / internet / ukazky / 17xsoubory / onlineopinion.js < prev    next >
Text File  |  2001-07-20  |  13KB  |  36 lines

  1. <!--// OnlineOpinion v2.2
  2. var O_impth="/onlineopinion/";
  3. var O_tmoff=3600000;
  4. var O_Url='http://rate.o-pinion.com/';
  5. var O_Url2='http://ccc00.opinionlab.com/';
  6. var O_Color='black';
  7. var O_Lang=0;
  8. var O_RollOver=1;
  9. var O_Feedback=0;
  10. var O_Comment=1;
  11. var O_Style=1;
  12. var O_Tph=-1;var O_Tcnt=0;
  13. var st="";var _d=document;var _w=window;var O_NS5up=((navigator.userAgent.toLowerCase().indexOf('mozilla')!=-1)&&(parseInt(navigator.appVersion)>=5));var O_NS4=(_d.layers)?1:0;var O_IE4=(_d.all)?1:0;var O_MAC=(navigator.appVersion.indexOf("Macintosh")>-1);var O_Key=escape(_w.location.href);var O_final=0;var O_Prev=_d.referrer;var O_xdelta=0;var O_ydelta=0;var O_CData="";var _b=(O_IE4)?_d.body:null;var _vH=(O_IE4)?"none":"hidden";var _vS=(O_IE4)?"block":"visible";var Over_C="#BBBBBB";var Out_C="#FFFFFF";var O_t=new Array('english','Very Negative','Negative','Neutral','Positive','Very Positive','Questions About OnlineOpinion?','Comments');if(O_NS4||O_NS5up){var _oW=innerWidth;var _oH=innerHeight;var _rW=screen.width;var _rH=screen.height;IEBR="";}if(O_IE4){var _oW=_b.clientWidth;var _oH=_b.clientHeight;var _rW=screen.width;var _rH=screen.height;IEBR="<BR>";}O_Key=O_Rpl(O_Key,"/","%2F");O_Key=O_Rpl(O_Key,".","%2E");O_Key=O_Rpl(O_Key,"-","%2D");O_Key=O_Rpl(O_Key,"_","%5F");O_Key=O_Rpl(O_Key,"+","");
  14. function O_Rpl(sr,sf,ss){var a=sr.split(sf);return a.join(ss)}
  15. function O_setTimer(){vistimerID=setTimeout("O_makeVisible()",500)}
  16. function O_makeVisible(){if(O_IE4&&parseInt(O_CData)!=1&&parseInt(O_CData)!=0)o1.style.display="block";clearTimeout(vistimerID);vistimerID=null}
  17. function _Sh(l,s){var g=(O_IE4)?eval("_d.all('o"+l+"')"):eval("_d.o"+l);if(O_NS4&&g)g.visibility=(s)?_vS:_vH;if(O_NS5up)var j=eval("document.getElementById('o"+l+"')");if(O_NS5up&&j)j.style.visibility=(s)?_vS:_vH;if(O_IE4&&g)g.style.display=(s)?_vS:_vH;}
  18. function _Ps(l,x,y){var g=(O_IE4)?eval("_d.all('o"+l+"')"):eval("_d.o"+l);if(O_NS4&&g){g.left=x;g.top=y;}if(O_NS5up)j=eval("document.getElementById('o"+l+"')");if(O_NS5up&&j){j.style.left=x+'px';j.style.top=y+'px'}if(O_IE4&&g){g.style.left=x;g.style.top=y;}}
  19. function O_Pop1(){if(O_Style){_Sh(1,0);_Sh(4,1);_Sh(5,1)}else{_Sh(1,0);_Sh(2,1)}}
  20. function O_Pop2(){_Sh(3,1)}
  21. function O_CommentPop1(){_Sh(5,1)}
  22. function O_Move(O_x){if(O_x==1){O_Tcnt+=100;if(O_Tcnt==O_Tph){_Sh(1,0)}if(O_NS4)_Ps(1,_w.innerWidth-_d.o1.clip.width-46+self.pageXOffset+O_xdelta,_w.innerHeight-_d.o1.clip.height-28+self.pageYOffset+O_ydelta);if(O_NS5up)_Ps(1,_w.innerWidth-19-46+self.pageXOffset+O_xdelta,_w.innerHeight-17-28+self.pageYOffset+O_ydelta);if(O_IE4)_Ps(1,_b.clientWidth+_b.scrollLeft-49+O_xdelta,_b.clientHeight+_b.scrollTop-45);if(O_IE4&&O_MAC)_Ps(7,_b.clientWidth+_b.scrollLeft-208,_b.clientHeight+_b.scrollTop-206);otimerID=setTimeout("O_Move(1)",100);}if(O_x==3){if(O_NS4){_Ps(2,_w.innerWidth-_d.o2.clip.width-46+self.pageXOffset,_w.innerHeight-_d.o2.clip.height-28+self.pageYOffset);_Ps(3,_w.innerWidth-_d.o3.clip.width-64+self.pageXOffset,_w.innerHeight-_d.o3.clip.height-28+self.pageYOffset);}if(O_NS5up){_Ps(2,_w.innerWidth-19-46+self.pageXOffset,_w.innerHeight-110-28+self.pageYOffset);_Ps(3,_w.innerWidth-121-64+self.pageXOffset,_w.innerHeight-91-28+self.pageYOffset);}if(O_IE4){_Ps(2,_b.clientWidth+_b.scrollLeft-49,_b.clientHeight+_b.scrollTop-138);_Ps(3,_b.clientWidth+_b.scrollLeft-169,_b.clientHeight+_b.scrollTop-119);}otimerID=setTimeout("O_Move(3)",100)}}
  23. function O_CommentMove(O_x){if(O_x==1){if(O_NS4)_Ps(4,_w.innerWidth-_d.o4.clip.width-46+self.pageXOffset,_w.innerHeight-_d.o4.clip.height-28+self.pageYOffset);if(O_NS5up)_Ps(4,_w.innerWidth-19-46+self.pageXOffset,_w.innerHeight-17-28+self.pageYOffset);if(O_IE4)_Ps(4,_b.clientWidth-_b.scrollLeft-49,_b.clientHeight+_b.scrollTop-45);otimerID=setTimeout("O_CommentMove(1)",100);}if(O_x==3){if(O_NS4)_Ps(5,_w.innerWidth-_d.o5.clip.width-64+self.pageXOffset,_w.innerHeight-_d.o5.clip.height-27+self.pageYOffset);if(O_NS5up)_Ps(5,_w.innerWidth-122-64+self.pageXOffset,_w.innerHeight-57-27+self.pageYOffset);if(O_IE4)_Ps(5,_b.clientWidth-_b.scrollLeft-170,_b.clientHeight+_b.scrollTop-84);otimerID=setTimeout("O_CommentMove(3)",100)}}
  24. function O_Config(O_x){if(O_x==1){_Sh(1,1);_Sh(4,0);}if(O_x==2){_Sh(1,0);_Sh(4,1)}}
  25. function O_GetData(label){labelLen=label.length;cLen=_d.cookie.length;i=0;while(i<cLen){j=i+labelLen;if(_d.cookie.substring(i,j)==label){cEnd=_d.cookie.indexOf(";",j);if(cEnd==-1)cEnd=_d.cookie.length;return unescape(_d.cookie.substring(j+1,cEnd));}i++;}return ""}
  26. function O_SetData(name,value){O_newdate=new Date((new Date()).getTime()+O_tmoff);_d.cookie=name+"="+escape(value)+";path=/;expires="+O_newdate.toGMTString()}
  27. function O_Rdr(O_id){ocDate2=new Date();oend_date=ocDate2.getTime();if(O_id>0&&O_id<6){O_SetData(O_Key,O_Comment);if(O_NS5up||O_NS4||O_MAC){url=O_Url+"rate20.asp?rating="+O_id+"&time1="+O_CDate+"&time2="+oend_date+"&prev="+ escape(_d.referrer)+"&referer="+O_Key+"&height="+_rH+"&width="+_rW;_w.location.href=url;}if(O_IE4&&!O_MAC){if(_d.O_IEF==null)return;if(_d.O_IEF.O_Frm==null)return;O_SetData('cookieOn',1);if(O_GetData('cookieOn')==1){O_final=1;}if(O_GetData('submitted')!=1){with(_d.O_IEF.O_Frm){action=O_Url+"rate20.asp";method="post";rating.value=O_id;time1.value=O_CDate;time2.value=oend_date;prev.value=O_Prev;referer.value=_w.location.href;height.value=_rH;width.value=_rW;submit();O_SetData('submitted',1);}}O_CData=O_Comment;O_hideAll();if(O_CData==1)O_Config(2);}}if(O_id==6){rdr_url=O_Url2+"about20.asp?lang="+O_Lang;msgWindow=_w.open(rdr_url,'OnlineOpinion','width=330,height=248,screenX='+((_rW-330)/2)+',screenY='+((_rH-248)/2)+',top='+((_rH-248)/2)+',left='+((_rW-330)/2));}if(O_id==7){O_SetData(O_Key,0);myurl=O_impth+"comments_form.html?lang="+O_Lang+"&time1="+O_CDate+"&time2="+oend_date+"&prev="+escape(_d.referrer)+"&referer="+O_Key+"&height="+_rH+"&width="+_rW;_w.open(myurl,'Comments','width=535,height=192,screenX='+((_rW-535)/2)+',screenY='+((_rH-192)/2)+',top='+((_rH-192)/2)+',left='+((_rW-535)/2)+',resizable=yes,copyhistory=yes,scrollbars=no');O_hideAll();O_Tcnt=O_Tph;history.go(0)}}
  28. function O_Over(image_num){over_graphic=1;O_Tcnt=0;if(O_Style){_Sh(4,1);_Sh(5,1)}else{if(image_num<6&&O_RollOver){if(O_NS4){_Ps(8,_d.o2.x,_d.o2.y+(5-image_num)*18);_Sh(8,1);}if(O_NS5up)eval("_d.getElementById('td"+image_num+"').style.backgroundColor='"+Over_C+"';");if(O_IE4)eval("td"+image_num+".style.backgroundColor='"+Over_C+"';");}_Sh(3,0);if(image_num==6){if(O_NS5up)eval("_d.getElementById('td1').style.backgroundColor='"+Out_C+"';");if(O_IE4)eval("td1.style.backgroundColor='"+Out_C+"';");if(O_NS4){_Sh(8,0);_Ps(9,_d.o2.x,_d.o2.y);_Sh(9,1);}}else{O_Out(6);}over_graphic=1}}
  29. function O_Out(image_num){O_Tcnt=0;if(image_num<6&&O_RollOver){if(O_NS5up)eval("_d.getElementById('td"+image_num+"').style.backgroundColor='"+Out_C+"';");if(O_IE4)eval("td"+image_num+".style.backgroundColor='"+Out_C+"';");if(O_NS4)_Sh(8,0);}O_layerOut()}
  30. function O_layerOut(){over_graphic=0;setTimeout("O_layerTimeout();",100)}
  31. function O_layerTimeout(){if(over_graphic==0)O_hideAll()}
  32. function O_hideAll(){over_graphic=1;if(parseInt(O_CData)!=1){if(O_NS4){_Sh(8,0);_Sh(9,0);_Sh(1,1);_Sh(2,0);_Sh(3,0);}if(O_IE4||O_NS5up){if(O_final)_Sh(1,0);else _Sh(1,1);_Sh(2,0);_Sh(3,0);}}else{if(O_NS4){_Sh(4,1);_Sh(5,0);}if(O_IE4||O_NS5up){_Sh(1,0);_Sh(2,0);_Sh(3,0);_Sh(4,1);_Sh(5,0)}}if(O_Style){_Sh(1,1);_Sh(4,0);_Sh(5,0)}}
  33. function O_Resize(){if(O_NS4){if(innerWidth==_oW&&innerHeight==_oH)return;_oW=innerWidth;_oH=innerHeight;history.go(0);}if(O_IE4){if(_b.clientWidth==_oW&&_b.clientHeight==_oH) return;_oW=_b.clientWidth;_oH=_b.clientHeight}}
  34. function O_Go(color,rollover,language,feedback,comment,style){if(O_MAC!=(navigator.appVersion.indexOf("Macintosh")>-1))history.go(0);if(parseFloat(navigator.appVersion)<4||(navigator.appName!="Microsoft Internet Explorer" && navigator.appName!="Netscape"))return;if(O_NS4)_w.onresize=O_Resize;if(O_IE4)onresize=O_Resize;O_CTime=new Date();O_CDate=O_CTime.getTime();O_CData=O_GetData(O_Key);a1=(O_CData==1)?"hidden":"visible";if(O_NS4||O_NS5up)st=".oparent {position:absolute; visibility:"+a1+"; z-index:1000} .ochild {position:absolute; visibility:hidden; z-index:1000}";if(O_IE4)st=".oparent {display:none; z-index:1000} .ochild {display:none; z-index:1000}";_d.write("<STYLE TYPE='text/css'>"+st+"</STYLE>");if(parseInt(O_CData)==0)_d.write("<DIV ID='o3' CLASS='ochild'></DIV><DIV ID='o2' CLASS='ochild'></DIV><DIV ID='o1' CLASS='oparent'></DIV>");if(parseInt(O_CData)==1||parseInt(O_CData)!=0){O_impthbak=O_impth;if(color)O_Color=color;O_impth=O_impth+O_Color+"_";if(rollover==0)O_RollOver=false;if(language){O_Lang=language}else{language=0}if(feedback)O_Feedback=(feedback==1);if(comment==1){O_Comment=1};if(O_Feedback){if(O_NS4){O_xdelta=12+16;O_ydelta=15;}if(O_IE4||O_NS5up)O_xdelta=-12-16;};if(style){O_Style=1;O_Comment=1}if(O_Color=="white"){Over_C="#444444";Out_C="#000000";}_St=" STYLE='position:absolute;top:15%;left:95%'>";_Et="</TD></TR></TABLE></DIV>";_Tb="<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0";O_cmt=(O_Style)?"popns_":"popcomment_";var _MNS4o=(O_NS4&&O_MAC)?"<A HREF='#' ONMOUSEOUT='O_layerOut();'>":"";var _MNS4c=(O_NS4&&O_MAC)?"</A>":"";if(O_Comment==1)_d.write("<DIV ID='o5' CLASS='ochild'"+_St+"<A HREF='#' onMouseOver='over_graphic=1;O_Tcnt=0;' onMouseOut='O_layerOut();O_Tcnt=0;' onClick='O_Rdr(7);return false;'><IMG SRC='"+O_impth+O_cmt+O_t[0+language*8]+".gif' WIDTH=121 HEIGHT=56 NAME='im' BORDER=0></A>"+_Tb+"><TR><TD>"+IEBR+_Et+"<DIV ID='o4' CLASS='ochild'"+_St+"<A HREF='#' onMouseOver='over_graphic=1;O_Tcnt=0;O_CommentPop1();' onMouseOut='O_layerOut();O_Tcnt=0;' onClick='O_Rdr(7);return false;'><IMG SRC='"+O_impth+"comment.gif' ALT='"+O_t[7+language*8]+"' TITLE='"+O_t[7+language*8]+"' BORDER=0></A></DIV>");st="<DIV ID='o3' CLASS='ochild'"+_St+_Tb+"><TR><TD>"+_MNS4o+"<IMG SRC='"+O_impth+"pop_"+O_t[0+language*8]+".gif' WIDTH=121 HEIGHT=91 NAME='im' BORDER=0 USEMAP='#O.Map'><MAP NAME='O.Map'><AREA SHAPE=RECT COORDS='0,0,121,72' HREF='#' onMouseOver='over_graphic=1;' onMouseOut='O_layerOut();'><AREA SHAPE=RECT COORDS='0,72,121,91' HREF='#' onMouseOver='over_graphic=1;' onMouseOut='O_layerOut();' onClick='O_Rdr(7); return false;'></MAP>"+_MNS4c+IEBR+_Et;_d.write(st);if(O_NS4)_d.write("<DIV ID='o8' STYLE='position:absolute;z-index:999;visibility:hidden;'>"+_Tb+" BGCOLOR='"+Over_C+"'><TR><TD WIDTH=19 HEIGHT=18> "+_Et+"<DIV ID='o9' STYLE='position:absolute;z-index:998;visibility:hidden;'>"+_Tb+" BGCOLOR='"+Out_C+"'><TR><TD WIDTH=19 HEIGHT=90> "+_Et);if(O_IE4&&O_MAC){_d.write("<DIV id='o7' STYLE='position:absolute;z-index:-10;width:192;height:190;background-color:transparent;'> </DIV>");}st="<DIV ID='o2' CLASS='ochild'"+_St+_Tb+" WIDTH=19><TR><TD WIDTH=19>";for(i=5;i>0;i--){if(i==1){h=19;}else{h=18};if(O_IE4||O_NS5up)st+="<DIV ID='td"+i+"' STYLE='position:relative;background-color:"+Out_C+";' onClick='O_Rdr("+i+"); return false;' onMouseOver='O_Over("+i+"); return true;' onMouseOut='O_Out("+i+"); return true;' TITLE='"+O_t[i+language*8]+"'>";st+="<A HREF='#' onClick='O_Rdr("+i+"); return false;' onMouseOver='O_Over("+i+"); return true;' onMouseOut='O_Out("+i+"); return true;' TITLE='"+O_t[i+language*8]+"'><IMG BORDER=0 SRC='"+O_impth+i+".gif' NAME='im"+i+"' HEIGHT="+h+" WIDTH=19 ALT='"+O_t[i+language*8]+"' TITLE='"+O_t[i+language*8]+"'></A><BR>";if(O_IE4||O_NS5up)st+="</DIV>";}st+="<A HREF='#' onClick='O_Rdr(1); return false;' onMouseOver='O_Over(1); return true;'><IMG BORDER=0 SRC='"+O_impth+"space.gif' HEIGHT=2 WIDTH=19></A><BR><A HREF='#' onMouseOver='O_Over(6); O_Pop2(); return true;' onMouseOut='O_layerOut();' onClick='O_Rdr(6); return false;'><IMG SRC='"+O_impth+"ques.gif' NAME='im6' HEIGHT=17 WIDTH=19 ALT='"+O_t[6+language*8]+"' TITLE='"+O_t[6+language*8]+"' BORDER=0></A>"+_Et;_d.write (st);st="<DIV ID='o1' CLASS='oparent'"+_St+_Tb+"><TR><TD ALIGN=CENTER><A HREF='#' onMouseOver='O_Pop1();' onMouseOut='O_layerOut();'><IMG SRC='"+O_impth+"o.gif' ALT='"+O_t[6+language*8]+"' TITLE='"+O_t[6+language*8]+"' BORDER=0 onLoad=O_setTimer();></A>";if(O_Feedback)st+="<BR><IMG SRC='"+O_impth+"fb_"+O_t[0+language*8]+".gif' BORDER=0 WIDTH=75 onLoad=O_setTimer();></A>";_d.write(st+_Et);O_impth=O_impthbak;if(O_IE4&&!O_MAC){_d.write("<DIV ID='ifrm'"+_St+"<IFRAME NAME='O_IEF' SRC='"+O_impth+"o_ief.html' WIDTH=0 HEIGHT=0 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no></IFRAME></DIV>");}if((O_Comment==1)){O_CommentMove(1);O_CommentMove(3);}O_Move(1);O_Move(3);if(parseInt(O_CData)==1){O_Config(2);}else{O_Config(1);}}}
  35. //-->
  36.