var OnPostData,OnGetData;function CloseControls(){if(b=document.getElementById("DV_PRESENTER")){document.body.removeChild(b)}if(a=document.getElementById("DV_PRESENTER_WINDOW")){document.body.removeChild(a)}}function AlignCenter(){if(document.getElementById("DV_PRESENTER_WINDOW")){var d=document.getElementById("DV_PRESENTER_WINDOW")}else{var d=document.createElement("DIV");document.body.appendChild(d);d.id="DV_PRESENTER_WINDOW"}axe=getPageSize();wdt=axe[0];hgt=axe[1];if(detectBrowser()){position="absolute";left="0";atop=0+(ignoreMe=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)}else{position="fixed";left="0";atop="0"}d.style.cssText="position:"+position+"; left:"+left+"; top:"+atop+" ; z-index:1999; background:#000; height:"+hgt+"px; width:100%; opacity:0.3; filter:alpha(opacity=30);";d.style.position=position;d.style.left=left;d.style.top=atop+"px";d.style.zIndex="1999";d.style.background="#000";d.style.height=hgt+"px";d.style.width="100%";d.style.opacity="0.3";d.style.filter="alpha(opacity=30)";atop=(hgt>500)?parseInt((hgt-500)/2):0;if(detectBrowser()){position="absolute";left=(wdt>500)?parseInt((wdt-500)/2):0;atop=atop+(ignoreMe=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)}else{position="fixed";left=(wdt>500)?parseInt((wdt-500)/2):0;atop=atop}if(document.getElementById("DV_PRESENTER")){var c=document.getElementById("DV_PRESENTER")}else{var c=document.createElement("DIV");document.body.appendChild(c);c.id="DV_PRESENTER"}c.style.cssText="position:"+position+"; left:"+left+"px; top:"+atop+"px; z-index:2000; width:500px; height:300px;";c.style.position=position;c.style.left=left+"px";c.style.top=atop+"px";c.style.zIndex="2000";c.style.width="500px";c.style.height="300px"}function ShowCenterContent(){AlignCenter();if(a=document.getElementById("DV_PRESENTER_WINDOW")){window.onresize=function(){if(document.getElementById("DV_PRESENTER_WINDOW")){AlignCenter()}};window.onscroll=function(){if(document.getElementById("DV_PRESENTER_WINDOW")){AlignCenter()}};presenter=document.getElementById("DV_PRESENTER");if(presenter){presenter.innerHTML='<DIV id="TOTAL_DV_CONTENT"><DIV id="DV_HEAD"></DIV><DIV id="DV_CONTENT"></DIV><DIV>';header=document.getElementById("DV_HEAD");content=document.getElementById("DV_CONTENT")}}}function PostData(c,d){prequest=false;if(window.XMLHttpRequest){prequest=new XMLHttpRequest();if(prequest.overrideMimeType){prequest.overrideMimeType("text/html")}}else{if(window.ActiveXObject){try{prequest=new ActiveXObject("Msxml2.XMLHTTP")}catch(f){try{prequest=new ActiveXObject("Microsoft.XMLHTTP")}catch(f){}}}}if(!prequest){window.location.reload()}prequest.onreadystatechange=ProcessRequest;prequest.open("POST",c,true);prequest.setRequestHeader("Content-type","application/x-www-form-urlencoded");prequest.setRequestHeader("Content-length",d.length);prequest.setRequestHeader("Connection","close");prequest.send(d)}function ProcessRequest(){if(prequest.readyState==4){if(prequest.status==200){presult=prequest.responseText;if(presult!=""){OnPostData(presult)}}}}function GetData(d){var c=false;if(window.XMLHttpRequest){c=new XMLHttpRequest();if(c.overrideMimeType){c.overrideMimeType("text/html")}}else{if(window.ActiveXObject){try{c=new ActiveXObject("Msxml2.XMLHTTP")}catch(f){try{c=new ActiveXObject("Microsoft.XMLHTTP")}catch(f){}}}}if(!c){window.location.reload()}c.open("GET",d,true);c.onreadystatechange=function(){if(c.readyState==4){gresult=c.responseText;OnGetData(gresult)}};c.send(null)}function MakeHome(d){if(document.all){document.body.style.behavior="url(#default#homepage)";document.body.setHomePage(d)}else{if(window.sidebar){if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(f){alert("This action was avioded by your browser.\nIf you want to enable, please enter about:config in your address line,\nand change the value of signed.applets.codebase_principal_support to true.")}}var c=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);c.setCharPref("browser.startup.homepage",d)}}}function PostComments(c,d){ShowCenterContent();header.innerHTML=c;OnGetData=function(e){content.innerHTML=e};content.innerHTML=loading_msg;GetData("files/postcomments.php?id="+d)}function SendComment(d){if(d.name.value==""){alert(d.name.getAttribute("error"));d.name.focus();return false}var c=new RegExp(/^(\w)+(\.(\w)+)*@(\w)+(\.(\w)+)+$/);if(!d.comment_email.value.match(c)){alert(d.comment_email.getAttribute("error"));d.comment_email.focus();d.comment_email.select();return false}if(d.comment.value==""){alert(d.comment.getAttribute("error"));d.comment.focus();return false}params="name="+d.name.value;params+="&news_id="+d.news_id.value;params+="&email="+d.comment_email.value;params+="&comment="+encodeURI(d.comment.value);if(d.show_email.checked!=false){params+="&show_email=1"}else{params+="&show_email=0"}OnPostData=function(e){content.innerHTML=e};PostData("files/postcomments.php",params);d.name.disabled=true;d.show_email.disabled=true;d.comment_email.disabled=true;d.comment.disabled=true;d.btn_submit.disabled=true;d.btn_cancel.disabled=true}function ShowMorePratrikriya(c,e,d){document.getElementById("AllComments").innerHTML=loading_msg;if(d){location.href="#AllComments"}OnGetData=function(f){document.getElementById("AllComments").innerHTML=f};GetData("files/allcomments.php?news_id="+c+"&page="+e)}function SendFeedBack(c){ShowCenterContent();header.innerHTML=c;OnGetData=function(d){content.innerHTML=d};content.innerHTML=loading_msg;GetData("files/postfeedback.php")}function SendJigyasa(d){if(d.name.value==""){alert(d.name.getAttribute("error"));d.name.focus();return false}var c=new RegExp(/^(\w)+(\.(\w)+)*@(\w)+(\.(\w)+)+$/);if(!d.email.value.match(c)){alert(d.email.getAttribute("error"));d.email.focus();d.email.select();return false}if(d.feedback.value==""){alert(d.feedback.getAttribute("error"));d.feedback.focus();return false}params="name="+d.name.value;params+="&email="+d.email.value;params+="&feedback="+encodeURI(d.feedback.value);OnPostData=function(e){content.innerHTML=e};PostData("files/postfeedback.php",params);d.name.disabled=true;d.email.disabled=true;d.feedback.disabled=true;d.btn_cancel.disabled=true;d.btn_submit.disabled=true}function VoteMe(d,g,f){var e=0;for(var c=0;c<f.poll_option_id.length;c++){if(f.poll_option_id[c].checked==true){e=f.poll_option_id[c].value;break}}if(e!=0){params="id="+g+"&option_id="+e;ShowCenterContent();header.innerHTML=d;OnGetData=function(h){content.innerHTML=h};content.innerHTML=loading_msg;GetData("files/postvote.php?"+params);for(var c=0;c<f.poll_option_id.length;c++){f.poll_option_id[c].checked=false}}else{alert(f.poll_option_id[0].getAttribute("error"));return false}}function ShowVoteResults(c,d){params="id="+d;ShowCenterContent();header.innerHTML=c;OnGetData=function(e){content.innerHTML=e};content.innerHTML=loading_msg;GetData("files/postvote.php?"+params)}function ViewTodaysStock(c,d){ShowCenterContent();header.innerHTML=c;OnGetData=function(e){content.innerHTML=e};content.innerHTML=loading_msg;GetData("files/stock.php?type="+d)}function ViewTodaysForex(c){ShowCenterContent();header.innerHTML=c;OnGetData=function(d){content.innerHTML=d};content.innerHTML=loading_msg;GetData("files/forex.php")}function ViewTodaysHoroscope(c){ShowCenterContent();header.innerHTML=c;OnGetData=function(d){content.innerHTML=d};content.innerHTML=loading_msg;GetData("files/horoscope.php")}function ViewCartoon(c){ShowCenterContent();header.innerHTML=c;OnGetData=function(d){content.innerHTML=d};content.innerHTML=loading_msg;GetData("files/cartoon.php")}function ViewTodaysWeather(c){ShowCenterContent();header.innerHTML=c;OnGetData=function(d){content.innerHTML=d};content.innerHTML=loading_msg;GetData("files/weather.php")}function videoPlay(d,f,c){var e=new SWFObject(sitecdn+"/images/flvplayer.swf","flvplayer",f,c,"8");e.addParam("allowfullscreen","true");e.addParam("wmode","opaque");e.addVariable("autostart","true");e.addVariable("autoPlay","true");e.addVariable("width",f);e.addVariable("height",c);e.addVariable("file",d);e.write("container")}function LoadVideo(c,d){ShowCenterContent();header.innerHTML=d;content.innerHTML='<div id="container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this video.</div><br /><input type="button" onclick="CloseControls();" value="&#2349;&#2367;&#2337;&#2367;&#2351;&#2379; &#2361;&#2375;&#2352;&#2375;&#2352; &#2360;&#2325;&#2367;&#2351;&#2379;" class="btn" />';location.href="#container";document.getElementById("container").style.display="block";videoPlay(c,470,330)}function fbs_click(){u=location.href;window.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(u),"sharer","toolbar=0,status=0,width=626,height=436");return false}jQuery.fn.liScroll=function(c){c=jQuery.extend({travelocity:0.02},c);return this.each(function(){var e=jQuery(this);e.addClass("newsticker");var h=0;var k=e.wrap("<div class='mask'></div>");var g=e.parent().wrap("<div class='tickercontainer'></div>");var i=e.parent().parent().width();e.find("li").each(function(l){h+=jQuery(this,l).width()});e.width(h);var d=h/c.travelocity;var f=h+i;function j(m,l){e.animate({left:"-="+m},l,"linear",function(){e.css("left",i);j(f,d)})}j(f,d);e.hover(function(){jQuery(this).stop()},function(){var n=jQuery(this).offset();var l=n.left+h;var m=l/c.travelocity;j(l,m)})})};