var calobj,firstyear=1950,now=new Date,lastyear=now.getYear()+20;navigator.userAgent.indexOf("MSIE")==-1&&(lastyear+=1900);var daycell=[];function caltoday(){document.getElementById("calmonth").selectedIndex=now.getMonth();var a=now.getYear();navigator.userAgent.indexOf("MSIE")==-1&&(a+=1900);document.getElementById("calyear").value=a;updateCalender()}function refresh(){for(i=0;i<42;i++)eval(daycell[i]).innerHTML="<font color='white'>' '</font>"}
function updateCalender(){refresh();month=document.getElementById("calmonth").selectedIndex;year=document.getElementById("calyear").value;var a=(new Date(year,month,1)).getDay(),b=1,c=monthdays(month,year),d=now.getYear();navigator.userAgent.indexOf("MSIE")==-1&&(d+=1900);for(cells=0;cells<42;cells++)if(b<=c)b==now.getDate()&month==now.getMonth()&year==d?eval(daycell[a]).innerHTML="<font color='red'>"+b+"</font>":eval(daycell[a]).innerHTML=b,a++,b++}
function monthdays(a,b){var c;a==0||a==2||a==4||a==6||a==7||a==9||a==11||a==-1||a==12?c=31:a==3||a==5||a==8||a==10?c=30:a==1&&(c=leapyear(b)?29:28);return c}function leapyear(a){return a%4==0&&a%100!=0||a%400==0?true:false}function goforwardmonth(){month=document.getElementById("calmonth").selectedIndex;month++;if(month==12)month=0,document.getElementById("calmonth").selectedIndex=month,goforwardyear();document.getElementById("calmonth").selectedIndex=month;updateCalender()}
function goforwardyear(){year=document.getElementById("calyear").value;year++;year>lastyear&&(year=firstyear);document.getElementById("calyear").value=year;updateCalender()}function gobackwardmonth(){month=document.getElementById("calmonth").selectedIndex;month--;if(month==-1)month=11,document.getElementById("calmonth").selectedIndex=month,gobackwardyear();document.getElementById("calmonth").selectedIndex=month;updateCalender()}
function gobackwardyear(){year=document.getElementById("calyear").value;year--;year<firstyear&&(year=lastyear-1);document.getElementById("calyear").value=year;updateCalender()}var caption="calendar";calobj="<table border='1' cellspacing='0' cellpadding='0' class='calborder'>";calobj+="<tr><td>";calobj+="<table border='0' cellspacing='2' cellpadding='0' class='calender'>";calobj+="<tr><td><select name='calmonth' id='calmonth' onChange=updateCalender()><option>JAN</option><option>FEB</option><option>MAR</option><option>APR</option>";
calobj+="<option>MAY</option><option>JUN</option><option>JUL</option><option>AUG</option><option>SEP</option><option>OCT</option>";calobj+="<option>NOV</option><option>DEC</option></select></td>";calobj+="<td  align='right'><select name='calyear' id='calyear' onChange=updateCalender()>";for(i=firstyear;i<=lastyear;i++){var curyear=now.getYear();navigator.userAgent.indexOf("MSIE")==-1&&(curyear+=1900);calobj+=i==curyear?'<option selected value="'+i+'">'+i+"</option>":'<option value="'+i+'">'+i+"</option>"}
calobj+="</select></td></tr>";calobj+="<tr><td colspan='5'>";calobj+="<table cellspacing='0' style='BORDER-COLLAPSE: collapse' borderColor='#111111' border='1'  width='100%'>";calobj+="<tr align='center'>";calobj+="<td class='caldays'>SUN</td><td class='caldays'>MON</td><td class='caldays'>TUE</td><td class='caldays'>WED</td><td class='caldays'>THU</td><td class='caldays'>FRI</td><td class='caldays'>SAT</td>";calobj+="</tr>";
for(cal=0;cal<6;cal++)calobj+="<tr><td width='14%' class='calwknd' id=cal"+cal*7+">&nbsp;</td>",calobj+="<td width='14%' class='calwkdy' id=cal"+(1+cal*7)+">&nbsp;</td>",calobj+="<td width='14%' class='calwkdy' id=cal"+(2+cal*7)+">&nbsp;</td>",calobj+="<td width='14%' class='calwkdy' id=cal"+(3+cal*7)+">&nbsp;</td>",calobj+="<td width='14%' class='calwkdy' id=cal"+(4+cal*7)+">&nbsp;</td>",calobj+="<td width='14%' class='calwkdy' id=cal"+(5+cal*7)+">&nbsp;</td>",calobj+="<td width='14%' class='calwknd' id=cal"+
(6+cal*7)+">&nbsp;</td></tr>";calobj+="</table>";calobj+="</td></tr>";calobj+="<tr><td  colspan='2'><table border='0' width='100%'>";calobj+="<tr align='center'><td width='20%'><a name='backyear' href='javascript:gobackwardyear()' class='calbutts'>&lt;&lt;</a></td>";calobj+="<td width='20%'><a name='backmonth'  class='calbutts' href='javascript:gobackwardmonth()'>&lt;</a></td>";calobj+="<td width='20%'><a name='today'  class='calbutts' href='javascript:caltoday()'>TODAY</a></td>";calobj+="<td width='20%'><a name='forwardyear' class='calbutts' href='javascript:goforwardmonth()'>&gt;</a></td>";
calobj+="<td width='20%'><a name='forwardmonth' class='calbutts' href='javascript:goforwardyear()'>&gt;&gt;</a></td></tr>";calobj+="</table></td></tr>";calobj+="</table>";calobj+="</td>";calobj+="</tr>";calobj+="</table>";for(i=0;i<42;i++)daycell[i]="cal"+i;
function getYears(){var a="<select name='YYYY' size='1'>";a+="<option selected value='0'>YYYY</option>";var b=(new Date).getYear();navigator.userAgent.indexOf("MSIE")==-1&&(b+=1900);for(i=1900;i<=b;i++)a+='<option value="'+i+'">'+i+"</option>";a+="</select>";document.write(a)}
function getYourAge(){var a=new Date,b=document.agecal.YYYY.options[document.agecal.YYYY.selectedIndex].value,c=document.agecal.MM.options[document.agecal.MM.selectedIndex].value,d=document.agecal.DD.options[document.agecal.DD.selectedIndex].value,e=document.agecal.HH.options[document.agecal.HH.selectedIndex].value,k=document.agecal.MN.options[document.agecal.MN.selectedIndex].value,l=document.agecal.SS.options[document.agecal.SS.selectedIndex].value,f=new Date(Date.UTC(b,c-1,d,e,k,l,0)),h,g,o,p,
m,j="",f=new Date(f);h=new Date(a);if(h>=f){g=h.getUTCHours()*36E5+h.getUTCMinutes()*6E4+h.getUTCSeconds()*1E3-(f.getUTCHours()*36E5+f.getUTCMinutes()*6E4+f.getUTCSeconds()*1E3);if(h.getUTCDate()>f.getUTCDate()||h.getUTCDate()==f.getUTCDate()&&g>=0)g=new Date(Date.UTC(h.getUTCFullYear(),h.getUTCMonth(),f.getUTCDate(),f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds()));else{g=new Date(Date.UTC(h.getUTCFullYear(),h.getUTCMonth()-1,f.getUTCDate(),f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds()));
a=h.getUTCMonth()-1;for(a==-1&&(a=11);g.getUTCMonth()!=a;)g.setUTCDate(g.getUTCDate()-1)}g.getUTCMonth()>=f.getUTCMonth()?(a=g.getUTCMonth()-f.getUTCMonth(),f=g.getUTCFullYear()-f.getUTCFullYear()):(a=11-f.getUTCMonth()+g.getUTCMonth()+1,f=g.getUTCFullYear()-1-f.getUTCFullYear());g=h-g;h=Math.floor(g/6048E5);g-=h*6048E5;o=Math.floor(g/864E5);g-=o*864E5;p=Math.floor(g/36E5);g-=p*36E5;m=Math.floor(g/6E4);g-=m*6E4;g=Math.floor(g/1E3);b!=0&&(j=f>0?f>1?f.toString()+" Years":f.toString()+" Year":"");c!=
0&&a>0&&(j=a>1?j+" "+a.toString()+" Months":j+" "+a.toString()+" Month");d!=0&&(h>0&&(j=h>1?j+" "+h.toString()+" Weeks":j+" "+h.toString()+" Week"),o>0&&(j=o>1?j+" "+o.toString()+" Days":j+" "+o.toString()+" Day"));e!=0&&p>0&&(j=p>1?j+" "+p.toString()+" Hours":j+" "+p.toString()+" Hour");k!=0&&m>0&&(j=m>1?j+" "+m.toString()+" Minutes":j+" "+m.toString()+" Minute");l!=0&&g>0&&(j=g>1?j+" "+g.toString()+" Seconds":j+" "+g.toString()+" Second")}else j="Not Born Yet";document.agecal.age.value=j}
function set(a){if(document.calc.T3.value!=""){if(document.calc.T3.value!="sqrt")document.calc.T4.value=document.calc.T3.value;document.calc.T1.value="";document.calc.T3.value=""}a=="+/-"?(a=document.calc.T1.value,document.calc.T1.value=a.charAt(0)=="-"?a.substring(1,a.length):"-"+document.calc.T1.value):a=="."?document.calc.T1.value.indexOf(".")==-1&&(document.calc.T1.value+=a):document.calc.T1.value+=a;setWords(document.calc.T1.value.length)}
function setWords(a){if(a==1)document.calc.display.value="Unit";else if(a==2)document.calc.display.value="Tens";else if(a==3)document.calc.display.value="Hundred";else if(a==4)document.calc.display.value="Thousand";else if(a==5)document.calc.display.value="Ten Thousand";else if(a==6)document.calc.display.value="Lakh";else if(a==7)document.calc.display.value="Ten Lakh";else if(a==8)document.calc.display.value="Crore";else if(a==9)document.calc.display.value="Ten Crore"}
function operation(a){if(document.calc.T4.value!="=")evaluates("="),document.calc.T4.value="";if(document.calc.T1.value!=""&&document.calc.T1.value!="."&&document.calc.T1.value!="-"&&document.calc.T1.value!="-."){if(a=="p%")document.calc.T1.value=eval(document.calc.T1.value)/100,a="*";document.calc.T2.value=document.calc.T1.value;document.calc.T3.value=a;document.calc.d.value=a}}
function evaluates(a){if(a=="="&&document.calc.T4.value!=""){document.calc.T3.value=a;var b=eval(document.calc.T2.value),a=eval(document.calc.T1.value);b+=document.calc.T4.value;b+=a;document.calc.T1.value=eval(b);document.calc.d.value="";document.calc.T4.value="";setWords(document.calc.T1.value.length)}}function clr(a){if(a=="c")document.calc.T1.value="",document.calc.T2.value="",document.calc.T3.value="",document.calc.T4.value="",document.calc.d.value="",document.calc.display.value=""}
function specialOperation(a){if(a=="sqrt"&&document.calc.T1.value!=""&&document.calc.T1.value!="."&&document.calc.T1.value!="-"&&document.calc.T1.value!="-."){document.calc.T3.value=a;var b=eval(document.calc.T1.value);document.calc.T1.value=Math.sqrt(b)}if(a=="bksp")b=document.calc.T1.value,document.calc.T1.value=b.substring(0,b.length-1);if(a=="1/x"&&document.calc.T1.value!=""&&document.calc.T1.value!="."&&document.calc.T1.value!="-"&&document.calc.T1.value!="-.")document.calc.T1.value=eval(1/eval(document.calc.T1.value))}
function memoryOperation(a){if(a=="MS")document.calc.memory.value=document.calc.T1.value,document.calc.MD.value="M";else if(a=="MR")document.calc.T1.value=document.calc.memory.value,document.calc.T4.value=document.calc.T3.value,document.calc.T3.value="",document.calc.MD.value="M";else if(a=="MC")document.calc.memory.value="",document.calc.MD.value="";else if(a=="M+"&&document.calc.T1.value!=""){if(document.calc.memory.value=="")document.calc.memory.value="0";document.calc.memory.value=eval(document.calc.memory.value)+
eval(document.calc.T1.value);document.calc.MD.value="M"}}function checkDigit(){var a=document.calc.T1.value;if(isNaN(a))document.calc.T1.value=a.substring(0,a.length-1)}function setEmail(){document.form1.display.value=document.form1.emails.options[document.form1.emails.selectedIndex].text}function setPhone(){document.form2.display.value=document.form2.phones.options[document.form2.phones.selectedIndex].text}function setBirthday(){}
function setGK(){document.formGK.display.value=document.formGK.gk.options[document.formGK.gk.selectedIndex].text}function setFI(){document.formFI.display.value=document.formFI.finance.options[document.formFI.finance.selectedIndex].text}function setYahoo(){document.yahoo.p.value=document.f.q.value;document.yahoo.submit()}function setAltavista(){document.altavista.q.value=document.f.q.value;document.altavista.submit()}
function setBing(){document.bing.q.value=document.csesearchbox.q.value;document.bing.submit()}function setWP(){document.formWP.display.value=document.formWP.wp.options[document.formWP.wp.selectedIndex].text}function setGK1(){document.formGK1.display.value=document.formGK1.gk.options[document.formGK1.gk.selectedIndex].text}function setEvent(){document.formEV.display.value=document.formEV.event.options[document.formEV.event.selectedIndex].text}
function setnews(){document.newsarchieve.newsDetails.value=document.newsarchieve.archieve.options[document.newsarchieve.archieve.selectedIndex].text}function setMovie(){var a=document.moviestore.movie.options[document.moviestore.movie.selectedIndex].value.split("@");document.moviestore.movieDetails.value=document.moviestore.movie.options[document.moviestore.movie.selectedIndex].text+" - "+a[1]}
function setCode1(){document.frmsearch1.symbol.value=document.frmsearch1.code.options[document.frmsearch1.code.selectedIndex].value;document.frmsearch1.details.value=document.frmsearch1.code.options[document.frmsearch1.code.selectedIndex].text}var innerText,visibility=true;function HideDiv(a){if(visibility)document.getElementById(a).style.visibility="hidden",innerText=document.getElementById(a).innerHTML,document.getElementById(a).innerHTML="",visibility=false}
function ShowDiv(a){if(!visibility)document.getElementById(a).style.visibility="visible",document.getElementById(a).innerHTML=innerText,visibility=true}var tickerText,tickerVisibility=true;function HideTickerDiv(a){if(tickerVisibility)document.getElementById(a).style.visibility="hidden",tickerText=document.getElementById(a).innerHTML,document.getElementById(a).innerHTML="",tickerVisibility=false}
function ShowTickerDiv(a){if(!tickerVisibility)document.getElementById(a).style.visibility="visible",document.getElementById(a).innerHTML=tickerText,tickerVisibility=true}function electionResult(){window.open("election.html","Election","height=235,width=410,status=0,resizable=0,toolbar=0,menubar=0")}function watchSerial(){window.open(document.form3.serial.options[document.form3.serial.selectedIndex].value,"","height=700,width=800,status=1,resizable=1,toolbar=1,menubar=1,scrollbars=1")}
function startMovie(){var a=document.moviestore.movie.options[document.moviestore.movie.selectedIndex].value.split("@");window.open(a[0],"watchmovie","height=700,width=800,status=1,resizable=1,toolbar=1,menubar=1,scrollbars=1")}
function validate1(){testValue=new String;tstvale=frmsearch1.symbol.value;if(tstvale=="type symbol")return alert("Please enter a company code"),false;if(tstvale.length==0)return alert("Enter company code"),false;frmsearch1.selectcat.value=="News"?window.open("http://content.icicidirect.com/research/topsearchnews.asp?icicicode="+frmsearch1.symbol.value+"&category=corporate","glo11","width=500,height=500,status,scrollbars,resizable"):frmsearch1.selectcat.value=="Snapshots"?window.open("http://content.icicidirect.com/research/topsearchcompanysnap.asp?icicicode="+
frmsearch1.symbol.value+"&category=corporate","glo22","width=670,height=500,status,scrollbars,resizable"):frmsearch1.selectcat.value=="Charts"?window.open("http://content.icicidirect.com/research/chartstop.asp?icicicode="+frmsearch1.symbol.value+"&category=corporate","glo33","width=550,height=500,status,scrollbars,resizable"):window.open("http://content.icicidirect.com/research/topsearchquotes.asp?icicicode="+frmsearch1.symbol.value+"&category=corporate","glo44","width=500,height=470,status,scrollbars,resizable")}
function googleNews(){window.open("news.html","GoogleNews","height=270,width=320,status=0,resizable=0,toolbar=0,menubar=0")}function bhajanVideo(){window.open("bhajan.html","BHAJAN","width=543 height=480, status=0,resizable=0,toolbar=0,menubar=0")}function yogaVideo(){window.open("yoga.html","YOGA","width=570 height=420, status=0,resizable=0,toolbar=0,menubar=0")}function techVideo(){window.open("Technology.html","YOGA","width=570 height=420, status=0,resizable=0,toolbar=0,menubar=0")}
function nurseryRhymes(){window.open("NurseryRhymes.html","NurseryRhymes","width=543 height=530, status=0,resizable=0,toolbar=0,menubar=0")}function PlayYouTube(){window.open("YouTube.html","YouTube","width=543 height=515,status=0,resizable=0,toolbar=0,menubar=0")}function cartoon(){window.open("Cartoon.html","Cartoon","width=543 height=480, status=0,resizable=0,toolbar=0,menubar=0")}
function deals(){window.open("deals/dailydeals.html","DailyDeals","width=543 height=480, status=0,resizable=0,toolbar=0,menubar=0")}function playBabyVideo(a){var b=document.getElementById(a).value;b=="n"?nurseryRhymes():b=="c"&&cartoon();document.getElementById(a).value=""}function watchTV(){window.open("CNBC.HTML","CNBCAWAZ","height=525,width=570,status=0,resizable=0,toolbar=0,menubar=0")}
function watchCNBCTV18(){window.open("CNBCTV18.HTML","CNBCTV18","height=525,width=570,status=0,resizable=0,toolbar=0,menubar=0")}function openCalc(){window.open("http://www.myshortcut.net/CALC.html","UPSCALC","height=330,width=285,status=0,resizable=0,toolbar=0,menubar=0")}function TechNews(){window.open("technews.html","TechNews","height=270,width=320,status=0,resizable=0,toolbar=0,menubar=0")}
function openSite(){var a=document.formGK.gk.options[document.formGK.gk.selectedIndex].value;a!=""&&window.open(a,"","height=700,width=800,status=1,resizable=1,toolbar=1,menubar=1,scrollbars=1")}function moremovies(){window.open("movie.html","moremovie","height=270,width=600,status=0,resizable=0,toolbar=0,menubar=0")}function HideFeatures(){}
function addbookmark1(){bookmarkurl="http://mshortcuts.googlepages.com/MyShortcut.html";bookmarktitle="My Shortcuts - Makes our life easy";document.all&&window.external.AddFavorite(bookmarkurl,bookmarktitle)}function addbookmark(){bookmarkurl="http://www.myshortcut.net";bookmarktitle="My Shortcuts - Makes our life easy";window.external?window.external.AddFavorite(bookmarkurl,bookmarktitle):window.sidebar&&window.sidebar.addPanel(bookmarktitle,bookmarkurl,"")}
function gi(a){var b=document.getElementById(a).value;if(b=="m")window.open("googleLocal.html","GoogleLocal","height=290,width=290,status=0,resizable=0,toolbar=0,menubar=0"),document.getElementById(a).value="";else if(b!="")document.df.action=b,document.df.submit(),document.getElementById(a).value=""}function openwindow(a){var b=document.getElementById(a).value;window.open(b,"","height=700,width=800,status=1,resizable=1,toolbar=1,menubar=1,scrollbars=1");document.getElementById(a).value=""}
function getHoroscope(){window.open("http://www.rrtearoom.com/horoscope/"+document.horoscope.sign.options[document.horoscope.sign.selectedIndex].value,"","width=620,height=380,resizable=yes,scrollbars=yes,location=no")}function calculateTax(){var a=eval(24E3+0.3*(document.tax.netTaxIncome.value-25E4));document.tax.totalTax.value=a;document.tax.taxPayable.value=eval(document.tax.educess.value)+a}function compareText(a,b){return a.text<b.text?-1:a.text>b.text?1:0}
function compareValue(a,b){return a.value<b.value?-1:a.value>b.value?1:0}function compareTextAsFloat(a,b){var c=parseFloat(a.text),d=parseFloat(b.text);return c<d?-1:c>d?1:0}function compareValueAsFloat(a,b){var c=parseFloat(a.value),d=parseFloat(b.value);return c<d?-1:c>d?1:0}
function sortSelect(a,b){b||(b=compareText);for(var c=Array(a.options.length),d=0;d<c.length;d++)c[d]=new Option(a.options[d].text,a.options[d].value,a.options[d].defaultSelected,a.options[d].selected);c.sort(b);for(d=a.options.length=0;d<c.length;d++)a.options[d]=c[d]}function rbi(a){a.biw.value=navigator.appName=="Netscape"?self.innerWidth:document.body.clientWidth}function jump(a){var b=document.getElementById(a).value;location.href="#"+b;document.getElementById(a).value=""}
function down(a,b){location.href="#"+a;document.getElementById(b).value=""}function scrollWindow(a,b){window.scrollTo(a,b)}var qm_si,qm_li,qm_lo,qm_tt,qm_th,qm_ts,qm_la,qm_ic,qm_ib,qm_ff,qp="parentNode",qc="className",qm_t=navigator.userAgent,qm_o=qm_t.indexOf("Opera")+1,qm_s=qm_t.indexOf("afari")+1,qm_s2=qm_s&&qm_t.indexOf("ersion/2")+1,qm_s3=qm_s&&qm_t.indexOf("ersion/3")+1,qm_n=qm_t.indexOf("Netscape")+1,qm_v=parseFloat(navigator.vendorSub);
function qm_create(a,b,c,d,e,k,l,f,h,g,o){var p="onmouseover",m=p;if(e){if(e.indexOf("all")+1||e=="lev2"&&o>=2)p="onclick",c=0;if(e.indexOf("all")+1||e=="main")m="onclick",d=0}if(o){if(l)a.ch=1}else{o=1;qm_th=d;a=document.getElementById("ulid"+a);window.qm_pure&&(a=qm_pure(a));a[p]=function(a){try{qm_kille(a)}catch(b){}};e!="all-always-open"&&(document[m]=qm_bo);if(e=="main")qm_ib=true,a.onclick=function(a){qm_ic=true;qm_oo({},qm_la,1);qm_kille(a)},document.onmouseover=function(){qm_la=null;clearTimeout(qm_tt);
qm_tt=null};a.style.zoom=1;l&&x2("ulsh",a,1);if(!b)a.ch=1}if(e)a.oc=e;if(l)a.sh=1;if(f)a.fl=1;if(h)a.ft=1;if(k)a.rl=1;a.style.zIndex=o+"1";for(var j,a=a.childNodes,m=0;m<a.length;m++){var n=a[m];if(n.tagName=="A"){j=n;n[p]=qm_oo;if(p=="onclick")n.onmouseover=function(a){clearTimeout(qm_tt);qm_la=qm_tt=null;qm_kille(a)};n.qmts=c;if(o==1&&b)n.style.styleFloat="none",n.style.cssFloat="none"}else if(n.tagName=="DIV"){window.showHelp&&!window.XMLHttpRequest&&a[m].insertAdjacentHTML("afterBegin","<span class='ulclear'>&nbsp;</span>");
x2("hrefclass",j,1);j.cdiv=n;n.idiv=j;if(qm_n&&qm_v<8&&!n.style.width)n.style.width=n.offsetWidth+"px";new qm_create(n,null,c,d,e,k,l,f,h,g,o+1)}}}function qm_bo(){qm_ic=false;qm_la=null;clearTimeout(qm_tt);qm_tt=null;qm_li&&(qm_tt=setTimeout("x0()",qm_th))}function x0(){var a;if(a=qm_li){do qm_uo(a);while((a=a[qp])&&!qm_a(a))}qm_li=null}function qm_a(a){if(a[qc].indexOf("ulclass")+1)return 1}
function qm_uo(a,b){if(b||!a.qmtree)window.qmad&&qmad.bhide&&eval(qmad.bhide),a.style.visibility="",x2("ulactive",a.idiv)}function qa(a,b){return String.fromCharCode(a.charCodeAt(0)-(b-parseInt(b/2)*2))}
function qm_oo(a,b,c){try{if(b||(b=this),qm_la!=b||c)if(window.qmv_a&&!c&&qmv_a(b),window.qmwait)qm_kille(a);else if(clearTimeout(qm_tt),qm_tt=null,qm_la=b,!c&&b.qmts)qm_si=b,qm_tt=setTimeout("qm_oo(new Object(),qm_si,1)",b.qmts);else if(c=b,c[qp].isrun)qm_kille(a);else if(!qm_ib||qm_ic){for(var d=true;(c=c[qp])&&!qm_a(c);)c==qm_li&&(d=false);if(qm_li&&d){c=b;(!c.cdiv||c.cdiv&&c.cdiv!=qm_li)&&qm_uo(qm_li);for(c=qm_li;(c=c[qp])&&!qm_a(c);)if(c!=b[qp]&&c!=b.cdiv)qm_uo(c);else break}var c=b,e=b.cdiv;
if(c.cdiv){var k=c.offsetWidth,l=c.offsetHeight,f=c.offsetLeft,h=c.offsetTop;e[qp].ch?(k=0,e.fl&&(f=0)):(e.ft&&(h=0),e.rl&&(f-=e.offsetWidth,k=0),l=0);qm_o&&(f-=c[qp].clientLeft,h-=c[qp].clientTop);qm_s2&&!qm_s3&&(f-=qm_gcs(c[qp],"border-left-width","borderLeftWidth"),h-=qm_gcs(c[qp],"border-top-width","borderTopWidth"));if(!e.ismove)e.style.left=f+k+"px",e.style.top=h+l+"px";x2("ulactive",b,1);window.qmad&&qmad.bvis&&eval(qmad.bvis);e.style.visibility="inherit";qm_li=e}else qm_li=qm_a(c[qp])?null:
c[qp];qm_kille(a)}}catch(g){}}function qm_gcs(a,b,c){var d;document.defaultView&&document.defaultView.getComputedStyle?d=document.defaultView.getComputedStyle(a,null).getPropertyValue(b):a.currentStyle&&(d=a.currentStyle[c]);return d&&!isNaN(d=parseInt(d))?d:0}function x2(a,b,c){var d=b[qc];c?d.indexOf(a)==-1&&(b[qc]+=(d?" ":"")+a):(b[qc]=d.replace(" "+a,""),b[qc]=b[qc].replace(a,""))}
function qm_kille(a){a||(a=event);a.cancelBubble=true;a.stopPropagation&&!(qm_s&&a.type=="click")&&a.stopPropagation()}function qa(a,b){return String.fromCharCode(a.charCodeAt(0)-(b-parseInt(b/2)*2))}function qm_pure(a){if(a.tagName=="UL"){var b=document.createElement("DIV");b.qmpure=1;var c;if(c=a.style.cssText)b.style.cssText=c;qm_convert(a,b);c=document.createElement("SPAN");c.className="ulclear";c.innerHTML="&nbsp;";b.appendChild(c);a[qp].replaceChild(b,a);a=b}return a}
function qm_convert(a,b,c){c||(b[qc]=a[qc]);b.id=a.id;a=a.childNodes;for(c=0;c<a.length;c++)if(a[c].tagName=="LI")for(var d=a[c].childNodes,e=0;e<d.length;e++)if(d[e]&&(d[e].tagName=="A"||d[e].tagName=="SPAN")&&b.appendChild(a[c].removeChild(d[e])),d[e]&&d[e].tagName=="UL"){var k=document.createElement("DIV"),l;if(l=d[e].style.cssText)k.style.cssText=l;if(l=d[e].className)k.className=l;k=b.appendChild(k);new qm_convert(d[e],k,1)}};
