function showTooltip(n,t){var r,i;if(tooltipOn){hideTooltip();return}tooltipOn=!0;tooltipObj||(tooltipObj=document.createElement("DIV"),tooltipObj.style.position="absolute",tooltipObj.id="tooltipObj",document.body.appendChild(tooltipObj),r=document.createElement("DIV"),r.className="tooltip_arrow",r.id="tooltip_arrow",tooltipObj.appendChild(r),i=document.createElement("DIV"),i.className="tooltip",tooltipObj.appendChild(i),i.id="tooltip_content",tooltip_MSIE&&!1&&(tooltipObj_iframe=document.createElement('<IFRAME frameborder="0">'),tooltipObj_iframe.style.position="absolute",tooltipObj_iframe.border="0",tooltipObj_iframe.frameborder=0,tooltipObj_iframe.style.backgroundColor="#FFF",tooltipObj_iframe.src="about:blank",i.appendChild(tooltipObj_iframe),tooltipObj_iframe.style.left="0px",tooltipObj_iframe.style.top="0px"));tooltipObj.style.display="block";document.getElementById("tooltip_content").innerHTML=n;tooltip_MSIE&&!1&&(tooltipObj_iframe.style.width=tooltipObj.clientWidth+"px",tooltipObj_iframe.style.height=tooltipObj.clientHeight+"px");positionTooltip(t)}function positionTooltip(n){var t=ajaxTooltip_getLeftPos(n)+n.offsetWidth,i=ajaxTooltip_getTopPos(n),r=document.getElementById("tooltip_content").offsetWidth+document.getElementById("tooltip_arrow").offsetWidth;tooltipObj.style.left=t+"px";tooltipObj.style.top=i+"px"}function hideTooltip(){tooltipOn=!1;tooltipObj.style.display="none"}function ajaxTooltip_getTopPos(n){for(var t=n.offsetTop;(n=n.offsetParent)!=null;)n.tagName!="HTML"&&(t+=n.offsetTop);return t}function ajaxTooltip_getLeftPos(n){for(var t=n.offsetLeft;(n=n.offsetParent)!=null;)n.tagName!="HTML"&&(t+=n.offsetLeft);return t}function increaseFontSize(){var t=document.getElementsByTagName("p"),n;for(i=0;i<t.length;i++)n=t[i].style.fontSize?parseInt(t[i].style.fontSize.replace("px","")):12,n!=max&&(n+=1),t[i].style.fontSize=n+"px"}function decreaseFontSize(){var t=document.getElementsByTagName("p"),n;for(i=0;i<t.length;i++)n=t[i].style.fontSize?parseInt(t[i].style.fontSize.replace("px","")):12,n!=min&&(n-=1),t[i].style.fontSize=n+"px"}function trim(n){return n.length>0?(re=/ +$/g,newval=n.replace(re,""),re=/^ +/g,newvala=newval.replace(re,"")):""}function IsDate(n,t,i){n=parseInt(n);t=parseInt(t);i=parseInt(i);var r=!1;return i%4==0&&(r=!0),n==1?t<1||t>31?!1:!0:n==2?r?t<1||t>29?!1:!0:t<1||t>28?!1:!0:n==3?t<1||t>31?!1:!0:n==4?t<1||t>30?!1:!0:n==5?t<1||t>31?!1:!0:n==6?t<1||t>30?!1:!0:n==7?t<1||t>31?!1:!0:n==8?t<1||t>31?!1:!0:n==9?t<1||t>30?!1:!0:n==10?t<1||t>31?!1:!0:n==11?t<1||t>30?!1:!0:n==12?t<1||t>31?!1:!0:!1}function PopWindow(n,t,i){hWindow=window.open(n,t+i,"width="+i+",height="+t+",'NDTV',resize=no,resizable=no,scrollbars=yes,menubar=no,status=no");hWindow.focus()}function WinOpenS(n,t,i,r,u,f){window.open(f,n,"scrollbars=1,statusbar=no,menubar=no,toolbar=no,resize=null,top="+u+",left="+r+",width="+t+",height="+i).focus()}function WinOpenFull(n,t,i,r,u,f){window.open(f,n,"scrollbars=0,statusbar=no,menubar=no,toolbar=no,resizable=no,top="+u+",left="+r+",width="+t+",height="+i).focus()}function WinOpen_withScroll(n,t,i,r,u,f){window.open(f,n,"scrollbars=1,statusbar=no,menubar=no,toolbar=no,resize=null,top="+u+",left="+r+",width="+t+",height="+i).focus()}function WinOpen_Full(n,t,i,r,u,f){window.open(f,n,"scrollbars=0,statusbar=no,menubar=no,toolbar=no,resizable=no,top="+u+",left="+r+",width="+t+",height="+i).focus()}function IsEmailValid(n){if(n=trim(n),valid_chars_for_email="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-@.",n=="")return!1;for(i=0;i<n.length;i++)if(ch=""+n.charAt(i),num=valid_chars_for_email.indexOf(ch),num==-1)return!1;return n.indexOf("@")==-1?!1:n.indexOf(".")==-1?!1:!0}function CompareDate(n,t,i,r,u,f){return n=n*1,t=t*1,i=i*1,r=r*1,u=u*1,f=f*1,f==i&&u==t&&r==n?0:f>i||f==i&&u>t||f==i&&u==t&&r>n?2:1}function ValidateNumeric(n){var t=n.value;return t=trim(t),isNaN(t)||t==""?(alert(n.title+" Must Be A Numeric Value"),n.focus(),!1):!0}function ValidateEmpty(n){var t=n.value;return t=trim(t),t==""?(alert(n.title+" cannot be left blank"),n.focus(),!1):!0}function ValidateImage(n){if(n.value.length){var i=n.value.lastIndexOf("."),t=n.value.substring(i);return t.toUpperCase()==".JPEG"||t.toUpperCase()==".JPG"||t.toUpperCase()==".GIF"||t.toUpperCase()==".BMP"||t.toUpperCase()==".PNG"?!0:(alert("Please enter valid image."),n.focus(),n.select(),!1)}return alert("Please select the file to be uploaded"),n.focus(),n.select(),!1}function ClearCombo(n){for(len=n.options.length,i=0;i<len;i++)n.options[0]=null}function DigitsAfterDecimal(n){for(n=n+"",Digits=0,Flag=!1,i=0;i<n.length;i++)Flag&&Digits++,n.charAt(i)=="."&&(Flag=!0);return Digits}function IfContainsDecimal(n){n=n+"";var t=!1;for(i=0;i<n.length;i++)n.charAt(i)=="."&&(t=!0);return t}function ShowPicture(n,t){n.style.visibility="visible";n.src="file://"+t.value}function MoveSelectedItem(n,t){if(n.selectedIndex!=-1){var i=n.options[n.selectedIndex].value,r=n.options[n.selectedIndex].text;n.options[n.selectedIndex]=null;t.options[t.options.length]=new Option(r,i,null,null)}else alert("First select an Item")}function MoveAllItems(n,t){var r=n.options.length,e=t.options.length,u,f;if(r)for(i=0;i<r;i++)u=n.options[0].value,f=n.options[0].text,n.options[0]=null,t.options[e+i]=new Option(f,u,null,null);else alert("Source List doesnt have any Item")}function GetListValues(n){var r=n.options.length,t="";for(i=0;i<r;i++)t=t+n.options[i].value+",";return t}function NewsletterSubmitForm(){var n=!0;return IsEmailValid(document.frm_newsletter.txt_email.value)||(alert("Please write valid Email"),n=!1,document.frm_newsletter.txt_email.focus()),n}function SubmitLoginForm(){var n=!0;n&&!ValidateEmpty(document.forms[0].txt_username)&&(n=!1);n&&!ValidateEmpty(document.forms[0].txt_password)&&(n=!1);n&&(document.forms[0].action="login.aspx",document.forms[0].__VIEWSTATE.name="__null",document.forms[0].submit())}function SubmitLoginForms(n){if(n.keyCode==13){n.returnValue=!1;n.cancel=!0;var t=!0;t&&!ValidateEmpty(document.forms[0].txt_username)&&(t=!1);t&&!ValidateEmpty(document.forms[0].txt_password)&&(t=!1);t&&(document.forms[0].action="login.aspx",document.forms[0].__VIEWSTATE.name="__null",document.forms[0].submit())}}function addOnCon(n,t){var e=parseInt(n.selectedIndex),u,f,i,r;if(e<0)return!1;if(index2=parseInt(t.length),index2==0)for(i=n.options.length-1;i>=0;i--)n.options[i].selected&&(r=document.createElement("option"),t.options[t.length]=r,r.text=n.options[i].text,r.value=n.options[i].value);if(index2>0){for(j=0;j<=n.options.length-1;j++)if(u=n[j].value,f=n[j].text,n.options[j].selected)for(i=0;i<=t.length-1;i++)if(t[i].value==u)return alert(""+f+" :   Already Exist in List"),!1;for(i=n.options.length-1;i>=0;i--)n.options[i].selected&&(r=document.createElement("option"),t.options[t.length]=r,r.text=n.options[i].text,r.value=n.options[i].value)}}function removeOnCon(n){var i=parseInt(n.selectedIndex),t;if(i<0)return alert("Please Select The Module."),n.focus(),!1;for(t=n.options.length-1;t>=0;t--)n.options[t].selected&&n.remove(t)}function PollOptionCheck(){for(var i=0,r=0,t,n=0;n<document.forms[0].pollanswer.length;n++)document.forms[0].pollanswer[n].checked&&(r=document.forms[0].pollanswer[n].value,i=1);i==0?alert("Please Select Atleast One Answer."):(t="",t=document.forms[0].HiddenPollQuestion.value,window.open("ThanksPollResponse.aspx?qid="+t+"&opt="+r,"Poll","top=5,left=30,toolbars=no,maximize=yes,resize=yes,width=400,height=170,location=no,directories=no,scrollbars=no"))}function Pollresult(){var t="",n;t=document.forms[0].HiddenPollQuestion.value;n="";n=document.forms[0].HiddenPollQuestionText.value;window.open("ShowPoll.aspx?HiddenPollQuestion="+t+"&HiddenPollQuestionText="+n,"Poll","top=5,left=30,toolbars=no,maximize=yes,resize=yes,width=380,height=280,location=no,directories=no,scrollbars=no")}function ValidationOptionCheck(){for(var t=0,i=0,n=0;n<document.forms[0].radiobutton.length;n++)document.forms[0].radiobutton[n].checked&&(i=document.forms[0].radiobutton[n].value,t=1);return t==0?(alert("Please Select Atleast One Answer."),!1):!0}function ValidationOptionCheckBox(){for(var t=0,i=0,n=0;n<document.forms[0].chkb.length;n++)document.forms[0].chkb[n].checked&&(i=document.forms[0].chkb[n].value,t=1);return t==0?(alert("Please Select Atleast One Answer."),!1):!0}function Validatelogin(n){if(n!=""&&parseInt(n)>0)return!0;var t=confirm(' You need to login to view this page.Click "OK" to proceed');return t==!1?(document.getElementById("UserHeaderControl1_txt_userid").focus(),!1):(window.location.href="login.aspx",!1)}function WinOpenSS(n,t,i,r,u,f){window.open(f,n,"scrollbars=1,statusbar=no,menubar=no,toolbar=no,resize=yes,top="+u+",left="+r+",width="+t+",height="+i).focus()}function Roundof(n){var t=n;return Math.round(t*100)/100}function KeyDownHandler(n){event.keyCode==13&&(event.returnValue=!1,event.cancel=!0,n.click())}function resizeChildFrame(n){try{g=document.getElementById("childframe");g!=null&&document.getElementById(g.id)!=null&&(g.style.display="block",g.style.height=n+"px")}catch(t){}}function resizeFrame(n){try{n!=null&&document.getElementById(n.id)!=null&&(n.style.height=n.contentWindow.document.body.scrollHeight+"px")}catch(t){}}function resizeCall4Parent(){try{resizeFrame(document.getElementById("childframe"))}catch(n){}}function resizeCall4Child(){try{navigator.userAgent.indexOf("Chrome")>0?parent.resizeChildFrame(document.body.clientHeight):parent.resizeChildFrame(document.body.scrollHeight)}catch(n){}}function XMLHttpfunction(){return window.XMLHttpRequest?XMLHttp=new XMLHttpRequest:window.ActiveXObject&&(XMLHttp=new ActiveXObject("Microsoft.XMLHTTP")),XMLHttp}function stateChanged(){if(XMLHttp.readyState==4||XMLHttp.readyState=="complete")try{document.getElementById(elementid).innerHTML=XMLHttp.responseText}catch(n){alert(n.message+"Id")}else document.getElementById(elementid).innerHTML="<font face='arial' size=1>Loading data please wait.........<\/font>"}function showHintPoll(n,t,i){if(i!="-1"&&(temptd[i]="na"),elementid=t,XMLHttp=XMLHttpfunction(),XMLHttp==null){alert("Browser does not support HTTP Request");return}var r=n;r=r;XMLHttp.onreadystatechange=stateChanged;XMLHttp.open("GET",r,!0);XMLHttp.send(null)}function DocVotePoll(n,t,r,u,f,e){var o="",s=document.getElementsByName(t);for(i=0;i<s.length;i++)s[i].checked&&(o=s[i].value);if(o==""){alert("Please select an option!");return}showHintPoll(""+n+"?styl="+f+"&alg="+e+"&opt="+o+"&qid="+r+"&",u,"-1")}function DocVoteSurvey(n,t,r,u){var e="",f=document.getElementsByName(t);for(i=0;i<f.length;i++)f[i].checked&&(e=f[i].value);showHintPoll(""+n+"?_Type=S&styl=0&alg=H&opt="+e+"&qid="+r+"&",u,"-1")}var x_offset_tooltip=5,y_offset_tooltip=0,tooltipObj=!1,tooltipObj_iframe=!1,tooltipOn=!1,tooltip_MSIE=!1,min,max,temptd,XMLHttp,elementid,stepcarousel;navigator.userAgent.indexOf("MSIE")>=0&&(tooltip_MSIE=!0);min=12;max=24;temptd=[];temptd[0]="na";temptd[1]="na";temptd[2]="na";temptd[3]="na";temptd[4]="na";temptd[5]="na";temptd[6]="na";XMLHttp=null;elementid=null;jQuery.noConflict();stepcarousel={ajaxloadingmsg:'<div style="margin: 1em; font-weight: bold"><img src="../images/ajaxloader.jpg" style="vertical-align: middle" /> Please wait...<\/div>',defaultbuttonsfade:.4,configholder:{},getCSSValue:function(n){return n=="auto"?0:parseInt(n)},getremotepanels:function(n,t){t.$belt.html(this.ajaxloadingmsg);n.ajax({url:t.contenttype[1],async:!0,error:function(n){t.$belt.html("Error fetching content.<br />Server Response: "+n.responseText)},success:function(i){t.$belt.html(i);t.$panels=t.$gallery.find("."+t.panelclass);stepcarousel.alignpanels(n,t)}})},getoffset:function(n,t){return n.offsetParent?n[t]+this.getoffset(n.offsetParent,t):n[t]},getCookie:function(n){var t=new RegExp(n+"=[^;]+","i");return document.cookie.match(t)?document.cookie.match(t)[0].split("=")[1]:null},setCookie:function(n,t){document.cookie=n+"="+t},fadebuttons:function(n,t){n.$leftnavbutton.fadeTo("fast",t==0?this.defaultbuttonsfade:1);n.$rightnavbutton.fadeTo("fast",t==n.lastvisiblepanel?this.defaultbuttonsfade:1);t==n.lastvisiblepanel&&stepcarousel.stopautostep(n)},addnavbuttons:function(n,t,i){return t.$leftnavbutton=n('<img src="'+t.defaultbuttons.leftnav[0]+'">').css({zIndex:50,position:"absolute",left:t.offsets.left+t.defaultbuttons.leftnav[1]+"px",top:t.offsets.top+t.defaultbuttons.leftnav[2]+"px",cursor:"hand",cursor:"pointer"}).attr({title:"Previous"}).appendTo("body"),t.$rightnavbutton=n('<img src="'+t.defaultbuttons.rightnav[0]+'">').css({zIndex:50,position:"absolute",left:t.offsets.left+t.$gallery.get(0).offsetWidth+t.defaultbuttons.rightnav[1]+"px",top:t.offsets.top+t.defaultbuttons.rightnav[2]+"px",cursor:"hand",cursor:"pointer"}).attr({title:"Next"}).appendTo("body"),t.$leftnavbutton.bind("click",function(){stepcarousel.stepBy(t.galleryid,-t.defaultbuttons.moveby)}),t.$rightnavbutton.bind("click",function(){stepcarousel.stepBy(t.galleryid,t.defaultbuttons.moveby)}),t.panelbehavior.wraparound==!1&&this.fadebuttons(t,i),t.$leftnavbutton.add(t.$rightnavbutton)},alignpanels:function(n,t){var r=0,f,u,i,s,e,o;for(t.paneloffsets=[r],t.panelwidths=[],t.$panels.each(function(){var i=n(this);i.css({float:"none",position:"absolute",left:r+"px"});i.bind("click",function(n){return t.onpanelclick(n.target)});r+=stepcarousel.getCSSValue(i.css("marginRight"))+parseInt(i.get(0).offsetWidth||i.css("width"));t.paneloffsets.push(r);t.panelwidths.push(r-t.paneloffsets[t.paneloffsets.length-2])}),t.paneloffsets.pop(),f=0,u=t.$panels.length-1,t.lastvisiblepanel=u,i=t.$panels.length-1;i>=0;i--)f+=i==u?t.panelwidths[u]:t.paneloffsets[i+1]-t.paneloffsets[i],t.gallerywidth>f&&(t.lastvisiblepanel=i);t.$belt.css({width:r+"px"});t.currentpanel=t.panelbehavior.persist?parseInt(this.getCookie(t.galleryid+"persist")):0;t.currentpanel=typeof t.currentpanel=="number"&&t.currentpanel<t.$panels.length?t.currentpanel:0;s=t.paneloffsets[t.currentpanel]+(t.currentpanel==0?0:t.beltoffset);t.$belt.css({left:-s+"px"});t.defaultbuttons.enable==!0&&(e=this.addnavbuttons(n,t,t.currentpanel),n(window).bind("load resize",function(){t.offsets={left:stepcarousel.getoffset(t.$gallery.get(0),"offsetLeft"),top:stepcarousel.getoffset(t.$gallery.get(0),"offsetTop")};t.$leftnavbutton.css({left:t.offsets.left+t.defaultbuttons.leftnav[1]+"px",top:t.offsets.top+t.defaultbuttons.leftnav[2]+"px"});t.$rightnavbutton.css({left:t.offsets.left+t.$gallery.get(0).offsetWidth+t.defaultbuttons.rightnav[1]+"px",top:t.offsets.top+t.defaultbuttons.rightnav[2]+"px"})}));t.autostep&&t.autostep.enable&&(o=t.$gallery.add(typeof e!="undefined"?e:null),o.bind("click",function(){t.autostep.status="stopped";stepcarousel.stopautostep(t)}),o.hover(function(){stepcarousel.stopautostep(t);t.autostep.hoverstate="over"},function(){t.steptimer&&t.autostep.hoverstate=="over"&&t.autostep.status!="stopped"&&(t.steptimer=setInterval(function(){stepcarousel.autorotate(t.galleryid)},t.autostep.pause),t.autostep.hoverstate="out")}),t.steptimer=setInterval(function(){stepcarousel.autorotate(t.galleryid)},t.autostep.pause));this.createpaginate(n,t);this.statusreport(t.galleryid);t.oninit();t.onslideaction(this)},stepTo:function(n,t){var i=stepcarousel.configholder[n],t,r;typeof i!="undefined"&&(stepcarousel.stopautostep(i),t=Math.min(t-1,i.paneloffsets.length-1),r=i.paneloffsets[t]+(t==0?0:i.beltoffset),i.panelbehavior.wraparound==!1&&i.defaultbuttons.enable==!0&&this.fadebuttons(i,t),i.$belt.animate({left:-r+"px"},i.panelbehavior.speed,function(){i.onslideaction(this)}),i.currentpanel=t,this.statusreport(n))},stepBy:function(n,t,i){var r=stepcarousel.configholder[n],f,u,e;typeof r!="undefined"&&(i||stepcarousel.stopautostep(r),f=t>0?"forward":"back",u=r.currentpanel+t,r.panelbehavior.wraparound==!1?(u=f=="back"&&u<=0?0:f=="forward"?Math.min(u,r.lastvisiblepanel):u,r.defaultbuttons.enable==!0&&stepcarousel.fadebuttons(r,u)):u>r.lastvisiblepanel&&f=="forward"?u=r.currentpanel<r.lastvisiblepanel?r.lastvisiblepanel:0:u<0&&f=="back"&&(u=r.currentpanel>0?0:r.lastvisiblepanel),e=r.paneloffsets[u]+(u==0?0:r.beltoffset),u==0&&f=="forward"||r.currentpanel==0&&f=="back"&&r.panelbehavior.wraparound==!0?r.$belt.animate({left:-r.paneloffsets[r.currentpanel]-(f=="forward"?100:-30)+"px"},"normal",function(){r.$belt.animate({left:-e+"px"},r.panelbehavior.speed,function(){r.onslideaction(this)})}):r.$belt.animate({left:-e+"px"},r.panelbehavior.speed,function(){r.onslideaction(this)}),r.currentpanel=u,this.statusreport(n))},autorotate:function(n){var t=stepcarousel.configholder[n];this.stepBy(n,t.autostep.moveby,!0)},stopautostep:function(n){clearTimeout(n.steptimer)},statusreport:function(n){var t=stepcarousel.configholder[n],u,f,i,e,r;if(t.statusvars.length==3){for(u=t.currentpanel,f=0,i=u;i<t.paneloffsets.length;i++)if(f+=t.panelwidths[i],f>t.gallerywidth)break;for(u+=1,i=i+1==u?u:i,e=[u,i,t.panelwidths.length],r=0;r<t.statusvars.length;r++)window[t.statusvars[r]]=e[r],t.$statusobjs[r].text(e[r]+" ")}stepcarousel.selectpaginate(jQuery,n)},createpaginate:function(n,t){var r,u,e;if(t.$paginatediv.length==1){var i=t.$paginatediv.find('img["data-over"]:eq(0)'),o=[],s=[],f=i.attr("data-moveby")||1,h=(f==1?0:1)+Math.floor((t.lastvisiblepanel+1)/f),c=n("<div>").append(i.clone()).html();for(srcs=[i.attr("src"),i.attr("data-over"),i.attr("data-select")],r=0;r<h;r++)u=Math.min(r*f,t.lastvisiblepanel),s.push(c.replace(/>$/,' data-index="'+r+'" data-moveto="'+u+'" title="Move to Panel '+(u+1)+'">')+"\n"),o.push(u);e=n("<span><\/span>").replaceAll(i).append(s.join("")).find("img");e.css({cursor:"pointer"});t.$paginatediv.bind("click",function(i){var r=n(i.target);r.is("img")&&r.attr("data-over")&&stepcarousel.stepTo(t.galleryid,parseInt(r.attr("data-moveto"))+1)});t.$paginatediv.bind("mouseover mouseout",function(i){var r=n(i.target);r.is("img")&&r.attr("data-over")&&parseInt(r.attr("data-index"))!=t.pageinfo.curselected&&r.attr("src",srcs[i.type=="mouseover"?1:0])});t.pageinfo={controlpoints:o,$controls:e,srcs:srcs,prevselected:null,curselected:null}}},selectpaginate:function(n,t){var i=stepcarousel.configholder[t],r;if(i.$paginatediv.length==1){for(r=0;r<i.pageinfo.controlpoints.length;r++)i.pageinfo.controlpoints[r]<=i.currentpanel&&(i.pageinfo.curselected=r);typeof i.pageinfo.prevselected!=null&&i.pageinfo.$controls.eq(i.pageinfo.prevselected).attr("src",i.pageinfo.srcs[0]);i.pageinfo.$controls.eq(i.pageinfo.curselected).attr("src",i.pageinfo.srcs[2]);i.pageinfo.prevselected=i.pageinfo.curselected}},loadcontent:function(n,t){var i=stepcarousel.configholder[n];i.contenttype=["ajax",t];stepcarousel.stopautostep(i);stepcarousel.resetsettings($,i);stepcarousel.init(jQuery,i)},init:function(n,t){t.gallerywidth=t.$gallery.width();t.offsets={left:stepcarousel.getoffset(t.$gallery.get(0),"offsetLeft"),top:stepcarousel.getoffset(t.$gallery.get(0),"offsetTop")};t.$belt=t.$gallery.find("."+t.beltclass);t.$panels=t.$gallery.find("."+t.panelclass);t.$paginatediv=n("#"+t.galleryid+"-paginate");t.autostep&&(t.autostep.pause+=t.panelbehavior.speed);t.onpanelclick=typeof t.onpanelclick=="undefined"?function(){}:t.onpanelclick;t.onslideaction=typeof t.onslide=="undefined"?function(){}:function(i){n(i).stop();t.onslide()};t.oninit=typeof t.oninit=="undefined"?function(){}:t.oninit;t.beltoffset=stepcarousel.getCSSValue(t.$belt.css("marginLeft"));t.statusvars=t.statusvars||[];t.$statusobjs=[n("#"+t.statusvars[0]),n("#"+t.statusvars[1]),n("#"+t.statusvars[2])];t.currentpanel=0;stepcarousel.configholder[t.galleryid]=t;t.contenttype[0]=="ajax"&&typeof t.contenttype[1]!="undefined"?stepcarousel.getremotepanels(n,t):stepcarousel.alignpanels(n,t)},resetsettings:function(n,t){t.$gallery.unbind();t.$belt.stop();t.$panels.remove();t.$leftnavbutton&&(t.$leftnavbutton.remove(),t.$rightnavbutton.remove());t.$paginatediv.length==1&&(t.$paginatediv.unbind(),t.pageinfo.$controls.eq(0).attr("src",t.pageinfo.srcs[0]).removeAttr("data-index").removeAttr("data-moveto").removeAttr("title").end().slice(1).remove());t.autostep&&(t.autostep.status=null);t.panelbehavior.persist&&stepcarousel.setCookie(window[t.galleryid+"persist"],0)},setup:function(n){document.write('<style type="text/css">\n#'+n.galleryid+"{overflow: hidden;}\n<\/style>");jQuery(document).ready(function(t){n.$gallery=t("#"+n.galleryid);stepcarousel.init(t,n)});jQuery(window).bind("unload",function(){stepcarousel.resetsettings($,n);n.panelbehavior.persist&&stepcarousel.setCookie(n.galleryid+"persist",n.currentpanel);jQuery.each(n,function(n,t){t=null});n=null})}}