function reloadLightWindow(){var a=document.getElementById("lightwindowcontainer");if(a){var c=(document.documentElement.clientHeight-a.offsetHeight)/2,b=(document.documentElement.clientWidth-a.offsetWidth)/2;a.style.top=c+"px";a.style.left=b+"px"}}function activateLightWindow(f,e,d){deactivateLightWindow();deactivateRestoreDiv();var c=document.createElement("div");c.id="lightwindowwrapper";c.className="lightwindowwrapper";var b=document.createElement("div");b.id="lightwindowcontainer";b.className="lightwindowcontainer";b.style.position="absolute";b.style.width=e+"px";b.style.height=d+"px";b.style.top=(document.documentElement.clientHeight-d)/2+"px";b.style.left=(document.documentElement.clientWidth-e)/2+"px";var a=document.createElement("iframe");a.setAttribute("id","lightwindowiframe");a.setAttribute("src",f);a.setAttribute("scrolling","no");a.setAttribute("frameborder","0",0);a.setAttribute("allowtransparency","true");a.style.width=e+"px";a.style.height=d+"px";a.style.position="absolute";a.style.margin="0px";a.style.padding="0px";a.style.border="0px";a.style.top="0px";a.style.left="0px";a.style.overflow="hidden";b.appendChild(a);c.appendChild(b);document.body.appendChild(c)}function deactivateLightWindow(){var a=document.getElementById("lightwindowwrapper");a&&a.parentNode.removeChild(a)}function refreshLightWindow(a,c,b){deactivateLightWindow();activateLightWindow(a,c,b)}function hideLightWindow(){var a=document.getElementById("lightwindowwrapper");if(a)a.style.display="none";activateRestoreDiv()}function restoreLightWindow(){var a=document.getElementById("lightwindowwrapper");if(a)a.style.display="block";deactivateRestoreDiv()}function cancelLightWindow(){deactivateLightWindow();deactivateRestoreDiv()}function activateRestoreDiv(){var a=document.getElementById("restoreDiv");if(a)a.style.display="block"}function deactivateRestoreDiv(){var a=document.getElementById("restoreDiv");if(a)a.style.display="none"}function JsFormat(a){a=a.replace(/<br([^>]*)>/gi,"\r\n");a=a.replace(/<BR([^>]*)>/gi,"\r\n");a=a.replace(/&lt;/gi,"<");a=a.replace(/&gt;/gi,">");a=a.replace(/&acute;/gi,"'");a=a.replace(/&#39;/gi,"'");a=a.replace(/&quot;/gi,'"');a=a.replace(/&nbsp;/gi," ");a=a.replace(/&amp;/gi,"&");return a}function FormatHtml(a){a=a.replace(/\t/gi,"");a=a.replace(/\r/gi,"");a=a.replace(/\n/gi,"");a=a.replace(/\r\n/gi,"");a=a.replace(/<font/gi,"<span");a=a.replace(/<\/font>/gi,"</span>");a=a.replace(/<div([^>]*)><\/div>/gi,"");a=a.replace(/<p([^>]*)><\/p>/gi,"");a=a.replace(/<ul([^>]*)><\/ul>/gi,"");a=a.replace(/<li([^>]*)><\/li>/gi,"");a=a.replace(/<u([^>]*)><\/u>/gi,"");a=a.replace(/<i([^>]*)><\/i>/gi,"");a=a.replace(/<em([^>]*)><\/em>/gi,"");a=a.replace(/<strong([^>]*)><\/strong>/gi,"");a=a.replace(/<b><\/b>/gi,"");a=a.replace(/<strike([^>]*)><\/strike>/gi,"");a=a.replace(/<sub([^>]*)><\/sub>/gi,"");a=a.replace(/<sup([^>]*)><\/sup>/gi,"");a=a.replace(/<span([^>]*)><\/span>/gi,"");return a}function BuildHpyLink(b,d,c){var a='<a href="'+d+'"';if(b!="")a+=' class="'+b+'"';a+=">";a+=c;a+="</a>";return a}function ExpandClose(a,b){for(var d=a.parentNode.parentNode.parentNode,e=null,c=0;c<d.childNodes.length;c++)if(d.childNodes[c].tagName!=undefined&&d.childNodes[c].tagName.toLowerCase()=="ul")if(d.childNodes[c].className.indexOf("level")>-1){e=d.childNodes[c];break}if(e)if(e.className.indexOf("dnone")>-1){e.className="level dblock";a.src=b.toCloseSrc;a.alt=b.toCloseAlt;a.title=b.toCloseAlt}else{e.className="level dnone";a.src=b.toOpenSrc;a.alt=b.toOpenAlt;a.title=b.toOpenAlt}return false}var dataheader=[];function ReadyLoading(){ResetDataHeaderUnits();ResetDataHeaderItems();ResetHeaderContents()}function ResetDataHeaderUnits(){for(var b=document.getElementsByTagName("a"),a=0;a<b.length;a++)if(b[a].className.indexOf("splitlink")>-1){for(var f=FindHeaderUnit(b[a]),e=true,d=0;d<dataheader.length;d++)if(dataheader[d].Unit==f){e=false;break}if(e){var c={};c.Unit=f;c.Items=[];dataheader[dataheader.length]=c}}}function ResetDataHeaderItems(){for(var e=0;e<dataheader.length;e++)for(var g=-1,f=-1,j=null,c=null,k=-1,m=0;m<dataheader[e].Unit.childNodes.length;m++){var d=dataheader[e].Unit.childNodes[m];if(d.tagName!=undefined&&d.tagName.toLowerCase()=="div"&&d.className.indexOf("block_row")>-1){var a=GetRowType(d);if(a==0){g=-1;f=-1;j=null;c=null;k=k+1}else if(a==1||a==2){if(a==1)g=3;else if(a==2)g=4;f=f+1;for(var l=d.getElementsByTagName("a"),i=0;i<l.length;i++)if(l[i].className.indexOf("splitlink")>-1){c=l[i];break}if(c){var h=FindHeaderBlock(c);if(h.tagName!=undefined&&h.tagName.toLowerCase()=="div"&&h.id.toLowerCase().indexOf("divblock")>-1)j=h.id.toLowerCase().replace("divblock_","")}}else c=null;if(f!=-1){var b={};b.Index=f;b.HeaderID=j;b.Link=c;b.Group=k;b.Row=d;if(a==1)b.RowType=a;else if(a==2)b.RowType=a;else b.RowType=g;dataheader[e].Items[dataheader[e].Items.length]=b}}}}function ResetHeaderContents(){for(var b=0;b<dataheader.length;b++){for(var e=[],d=null,p=null,a=0;a<dataheader[b].Items.length;a++){var c=dataheader[b].Items[a].Row,f=parseInt(dataheader[b].Items[a].RowType,10),i=parseInt(dataheader[b].Items[a].HeaderID,10),m=parseInt(dataheader[b].Items[a].Index,10);if(f==1){var g=dataheader[b].Items[a].Link,o=window["data"+i];g&&SetHeaderFadeLink(g,o)}else if(f==2){if(m==0){d=document.createElement("div");d.style.cssText="float:left;width:100%;";c.parentNode.insertBefore(d,c)}if(d){var k=c.cloneNode(true);d.appendChild(k);c.parentNode.removeChild(c);for(var l=null,j=k.getElementsByTagName("a"),h=0;h<j.length;h++)if(j[h].className.indexOf("splitlink")>-1){l=j[h];break}dataheader[b].Items[a].Row=k;dataheader[b].Items[a].Link=l;if(m==0){var n={};n.Link=l;n.HeaderID=i;e[e.length]=n}}}else if(f==3)c.style.display="none";else if(f==4)if(m==0)c.style.display="block";else c.style.display="none"}for(var a=0;a<e.length;a++){var g=e[a].Link,i=parseInt(e[a].HeaderID,10);g&&SetHeaderTabs(g,i)}}}function FindHeaderBlock(b){var a=b;while(a.parentNode.className.indexOf("block_row")==-1)a=a.parentNode;return a}function FindHeaderRow(b){var a=b;while(a.className.indexOf("block_row")==-1)a=a.parentNode;return a}function FindHeaderUnit(b){var a=b;while(a.id.toLowerCase().indexOf("divunit_")==-1)a=a.parentNode;return a}function GetRowType(c){var a=3;if(a==3){var f=c.getElementsByTagName("h1");if(f.length>0)a=0}if(a==3){var g=c.getElementsByTagName("h2");if(g.length>0)a=0}if(a==0)for(var d=c.getElementsByTagName("a"),b=0;b<d.length;b++)if(d[b].className.indexOf("splitlink")>-1){a=2;break}if(a==2)for(var e=c.getElementsByTagName("img"),b=0;b<e.length;b++)if(e[b].className.indexOf("splitimg")>-1){a=1;break}return a}function SetHeaderFadeLink(h,a){if(a){for(var b=null,e=h.getElementsByTagName("img"),c=0;c<e.length;c++)if(e[c].className.indexOf("splitimg")>-1){b=e[c];break}for(var f=null,d=h.getElementsByTagName("span"),c=0;c<d.length;c++)if(d[c].className.indexOf("splittext")>-1){f=d[c];break}var g=0;if(b.src.indexOf(a.fadeoutUrl)>-1)g=1;if(g==0){f.innerHTML="("+a.fadeoutText+")";if(a.fadeoutCache){b.src=a.fadeoutCache.src;b.alt=a.fadeoutText;b.title=a.fadeoutText;b.width=a.fadeoutWidth;b.height=a.fadeoutHeight}else{b.src=a.fadeoutUrl;b.alt=a.fadeoutText;b.title=a.fadeoutText;b.width=a.fadeoutWidth;b.height=a.fadeoutHeight}}else{f.innerHTML="("+a.fadeinText+")";if(a.fadeinCache){b.src=a.fadeinCache.src;b.alt=a.fadeinText;b.title=a.fadeinText;b.width=a.fadeinWidth;b.height=a.fadeinHeight}else{b.src=a.fadeinUrl;b.alt=a.fadeinText;b.title=a.fadeinText;b.width=a.fadeinWidth;b.height=a.fadeinHeight}}}}function SetHeaderFade(i,l,a){if(a){for(var b=null,g=i.getElementsByTagName("img"),c=0;c<g.length;c++)if(g[c].className.indexOf("splitimg")>-1){b=g[c];break}for(var h=null,f=i.getElementsByTagName("span"),c=0;c<f.length;c++)if(f[c].className.indexOf("splittext")>-1){h=f[c];break}var e=0;if(b.src.indexOf(a.fadeoutUrl)>-1)e=1;if(e==0){h.innerHTML="("+a.fadeoutText+")";if(a.fadeoutCache){b.src=a.fadeoutCache.src;b.alt=a.fadeoutText;b.title=a.fadeoutText;b.width=a.fadeoutWidth;b.height=a.fadeoutHeight}else{b.src=a.fadeoutUrl;b.alt=a.fadeoutText;b.title=a.fadeoutText;b.width=a.fadeoutWidth;b.height=a.fadeoutHeight}}else{h.innerHTML="("+a.fadeinText+")";if(a.fadeinCache){b.src=a.fadeinCache.src;b.alt=a.fadeinText;b.title=a.fadeinText;b.width=a.fadeinWidth;b.height=a.fadeinHeight}else{b.src=a.fadeinUrl;b.alt=a.fadeinText;b.title=a.fadeinText;b.width=a.fadeinWidth;b.height=a.fadeinHeight}}for(var n=FindHeaderUnit(b),c=0;c<dataheader.length;c++)if(dataheader[c].Unit==n){for(var d=0;d<dataheader[c].Items.length;d++){var m=parseInt(dataheader[c].Items[d].RowType,10),j=dataheader[c].Items[d].Row,k=parseInt(dataheader[c].Items[d].HeaderID,10);if(m==3&&k==l)if(e==0)j.style.display="block";else j.style.display="none"}break}}return false}function SetHeaderTabsLink(a,b){if(b==1)if(a.className.indexOf("nonlink")>-1)a.className="splitlink active nonlink";else a.className="splitlink active";else if(a.className.indexOf("nonlink")>-1)a.className="splitlink normal nonlink";else a.className="splitlink normal"}function SetHeaderTabs(i,e){for(var k=FindHeaderUnit(i),h=false,g=-1,l=FindHeaderRow(i),a=0;a<dataheader.length;a++)if(dataheader[a].Unit==k){for(var b=0;b<dataheader[a].Items.length;b++){var f=parseInt(dataheader[a].Items[b].RowType,10),c=dataheader[a].Items[b].Row,d=parseInt(dataheader[a].Items[b].HeaderID,10);if(f==2&&c==l&&d==e){h=true;g=parseInt(dataheader[a].Items[b].Group);break}}break}if(h)for(var a=0;a<dataheader.length;a++)if(dataheader[a].Unit==k){for(var b=0;b<dataheader[a].Items.length;b++){var f=parseInt(dataheader[a].Items[b].RowType,10),c=dataheader[a].Items[b].Row,j=dataheader[a].Items[b].Link,d=parseInt(dataheader[a].Items[b].HeaderID,10),m=parseInt(dataheader[a].Items[b].Group);if(m==g)if(f==2){c.style.cssText="float:left;width:auto;";if(d==e)SetHeaderTabsLink(j,1);else SetHeaderTabsLink(j,0)}else if(f==4)if(d==e)c.style.display="block";else c.style.display="none"}break}return false}window.onresize=function(){typeof reloadLightWindow=="function"&&reloadLightWindow()};window.onscroll=function(){typeof reloadMoveBlockWindow=="function"&&reloadMoveBlockWindow()};function TableGroupExpand(d,e){var b=d.parentNode.parentNode.parentNode,c=d.getElementsByTagName("div")[0];if(c.className=="collapse")c.className="expand";else c.className="collapse";for(var a=e+2;a<b.rows.length;a++){if(b.rows[a].cells[0].className=="grouphead")break;if(b.rows[a].className=="dnone")b.rows[a].className="";else b.rows[a].className="dnone"}}function CollapseGroupRows(b,a){var c=document.getElementById(b);TableGroupExpand(c,a)}function OpenLightWindowVideo(a){var e=document.createElement("div");e.id="divlightboxwrapper";e.style.cssText="position:fixed;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:100000;";var f=document.createElement("div");f.style.cssText="position:absolute;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:99999;";f.style.filter="Alpha(opacity="+a.LightboxTransparency+")";f.style.opacity=parseInt(a.LightboxTransparency)/100;f.style.backgroundColor="#"+a.LightboxColor;var g=document.createElement("div");g.style.cssText="position:absolute;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:100001;";var c=document.createElement("div");c.style.cssText="position:relative;margin:100px auto 0 auto;overflow:hidden;z-index:100002;text-align:right;";c.style.width=a.PlayerWidth+"px";c.style.height=a.TitlebarHeight+"px";c.style.lineHeight=a.TitlebarHeight+"px";c.style.background="#"+a.TitlebarColor;c.onclick=function(){return false};var h=document.createElement("img");h.src=a.CloseUrl;h.style.cssText="cursor:pointer;margin:3px;vertical-align:middle;";h.onclick=function(){return CloseLightWindowVideo()};var d=document.createElement("div");d.style.cssText="position:relative;margin:0 auto;overflow:hidden;z-index:100002;text-align:center;";d.style.width=a.PlayerWidth+"px";d.style.height=a.PlayerHeight+"px";d.onclick=function(){return false};var b="";b+='<object type="'+a.ObjectType+'" data="'+a.PlayerUrl+'" width="'+a.PlayerWidth+'" height="'+a.PlayerHeight+'">';b+='<param name="movie" value="'+a.PlayerUrl+'" />';b+='<param name="menu" value="false" />';b+='<param name="scale" value="noScale" />';b+='<param name="allowFullscreen" value="true" />';b+='<param name="allowScriptAccess" value="always" />';b+='<param name="quality" value="high" />';b+='<param name="wmode" value="opaque" />';b+='<param name="bgcolor" value="#'+a.PlayerColor.replace("#","")+'" />';b+='<param name="flashvars" value="'+a.FlashVars+'" />';b+='<video controls="controls "';if(a.AutoPlay.toLowerCase()=="true")b+='autoplay="autoplay"';b+=' width="'+a.PlayerWidth+'" height="'+a.PlayerHeight+'" poster="'+a.PosterUrl+'">';b+='<source src="'+a.VideoUrl+'" type="video/mp4" />';b+="</video>";b+='<img src="'+a.PlaceUrl+'" alt="'+a.PlaceAlt+'" title="'+a.PlaceAlt+'" width="'+a.PlaceWidth+'" height="'+a.PlaceHeight+'" />';b+="</object>";d.innerHTML=b;c.appendChild(h);g.appendChild(c);g.appendChild(d);e.appendChild(g);e.appendChild(f);document.body.appendChild(e);return false}function CloseLightWindowVideo(){var a=document.getElementById("divlightboxwrapper");a&&document.body.removeChild(a);return false}var date_today=new Date,date_current=null,checked_yy=null,checked_mm=null,textbox_year=null,textbox_month=null,textbox_day=null,calender_top=0,calender_left=0,from_year=date_today.getFullYear()-24,to_year=date_today.getFullYear()+25;function CancelBubble(a){var c=navigator.appName=="Microsoft Internet Explorer"?true:false,b=a?a:window.event;if(c)b.cancelBubble=true;else b.stopPropagation()}function $$(a){return document.getElementById(a)}function Clearcalendar(){var a=$$("calendar_wrap");a&&document.body.removeChild(a)}function Buildercalendar(){var a="";a+='<div style="float:left;border:1px solid #5C6B85">';a+='<table cellspacing="1" cellpadding="2" bgcolor="#FFFFFF" width="200" style="text-align:center;font-size:12px;line-height:120%;color:#313131;">';a+='<tr align="center" bgcolor="#7A89A4"><td><a href="#" onclick="RefreshCalendar(checked_yy, checked_mm-1);return false" title="" style="text-decoration: none;color:#FFFFFF;">&lt;&lt;</a></td><td colspan="5" style="text-align: center"><a href="#" onclick="showdiv(\'calendar_year\');return false" title="" id="current_year" style="text-decoration: none;color:#FFFFFF;"></a>&nbsp; <span style="color:#FFFFFF;">-</span> &nbsp;<a id="current_month" title="" href="#" onclick="showdiv(\'calendar_month\');return false" style="text-decoration: none;color:#FFFFFF;"></a></td><td><a href="#" onclick="RefreshCalendar(checked_yy, checked_mm+1);return false" title="" style="text-decoration: none;color:#FFFFFF;">&gt;&gt;</a></td></tr>';a+='<tr bgcolor="#D2D5DB"><td width="25">'+SundayText+'</td><td width="25">'+MondayText+'</td><td width="25">'+TuesdayText+'</td><td width="25">'+WednesdayText+'</td><td width="25">'+ThursdayText+'</td><td width="25">'+FridayText+'</td><td width="25">'+SaturdayText+"</td></tr>";for(var f=0;f<6;f++){a+="<tr>";for(var g=1;g<=7;g++)a+="<td id=d"+(f*7+g)+">0</td>";a+="</tr>"}a+='<tr id="calendar_close" bgcolor="#FAFAFA"><td colspan="6" align="left">&nbsp;</td><td onclick="Clearcalendar()" style="font-weight:bold;cursor:pointer;">X</td></tr>';a+="</table></div>";a+='<div id="calendar_year" style="display:none;font-size:12px;line-height:120%;background:#FFF;border:1px solid #333;padding:4px 1px;position:absolute;z-index:1000;top:0;left:0;">';a+='<div style="float:left;padding:4px 1px">';for(var e=0,c=from_year;c<=to_year;c++){a+=e!=0&&e%10==0?'</div><div style="float:left;padding:4px 1px">':"";a+='<a href="#" onclick="RefreshCalendar('+c+', checked_mm);return false" style="text-decoration: none;color:#313131;"><span style="padding:0 3px" id="calendar_year_'+c+'">'+c+"</span></a><br />";e+=1}a+="</div></div>";a+='<div id="calendar_month" style="display:none;font-size:12px;line-height:120%;background:#FFF;border:1px solid #333;padding:4px 1px;position:absolute;z-index:1001;top:0;left:110px;">';for(var c=1;c<=12;c++)a+='<a href="#" onclick="RefreshCalendar(checked_yy, '+(c-1)+');return false" style="text-decoration: none;color:#313131;"><span style="padding:0 3px" id="calendar_month_'+(c<10?"0":"")+c+'">'+(c<10?"0":"")+c+"</span></a><br />";a+="</div>";var d=document.createElement("div");d.id="calendar_wrap";d.style.zIndex="999";d.style.display="block";d.style.position="absolute";d.style.left=calender_left+"px";d.style.top=calender_top+"px";d.innerHTML=a;d.onclick=function(a){CancelBubble(a)};var b=document.createElement("iframe");b.setAttribute("id","calendar_iframe");b.setAttribute("scrolling","no");b.setAttribute("frameborder","0",0);b.setAttribute("allowtransparency","true");b.style.width="200px";b.style.height="180px";b.style.position="absolute";b.style.margin="0px";b.style.padding="0px";b.style.border="0px";b.style.top="0px";b.style.left="0px";b.style.zIndex="-1";d.appendChild(b);document.body.appendChild(d);$$("calendar_year_"+date_today.getFullYear()).style.backgroundColor="#A7E137";$$("calendar_year_"+date_today.getFullYear()).title="year";$$("calendar_month_"+zerofill(date_today.getMonth()+1)).style.backgroundColor="#A7E137";$$("calendar_month_"+zerofill(date_today.getMonth()+1)).title="month";if(checked_yy!=null&&$$("calendar_year_"+checked_yy)!=null){$$("calendar_year_"+checked_yy).style.backgroundColor="#FF0000";$$("calendar_year_"+checked_yy).title="selected"}if(checked_mm!=null&&$$("calendar_month_"+checked_mm)!=null){$$("calendar_month_"+zerofill(checked_mm)).style.backgroundColor="#FF0000";$$("calendar_month_"+zerofill(checked_mm)).title="selected"}if($$("calendar_year_"+date_current.getFullYear())!=null)$$("calendar_year_"+date_current.getFullYear()).style.backgroundColor="#FF0000";if($$("calendar_month_"+zerofill(date_current.getMonth()+1))!=null)$$("calendar_month_"+zerofill(date_current.getMonth()+1)).style.backgroundColor="#FF0000";RefreshCalendar(date_current.getFullYear(),date_current.getMonth())}function Showcalendar(d,b,a,c){textbox_day=$$(c);textbox_month=$$(a);textbox_year=$$(b);calender_top=textbox_year.getBoundingClientRect().top+40;calender_left=textbox_year.getBoundingClientRect().left;if(document.documentElement.scrollTop>0)calender_top+=document.documentElement.scrollTop;if(document.documentElement.scrollLeft>0)calender_left+=document.documentElement.scrollLeft;if(document.body.scrollTop>0)calender_top+=document.body.scrollTop;if(document.body.scrollLeft>0)calender_left+=document.body.scrollLeft;if(textbox_year.value!=""&&textbox_month.value!=""&&textbox_day.value!=""){date_current=parsedate(textbox_year.value+"-"+textbox_month.value+"-"+textbox_day.value);checked_yy=date_current.getFullYear();checked_mm=date_current.getMonth()+1}else{date_current=date_today;checked_yy=null;checked_mm=null}Clearcalendar();CancelBubble(d);Buildercalendar()}function RefreshCalendar(g,f){var b=new Date(g,f,1),d=b.getDay(),c=b.getDate(),a=null;checked_yy=b.getFullYear();checked_mm=b.getMonth();$$("current_year").innerHTML=checked_yy;$$("current_month").innerHTML=checked_mm+1>9?checked_mm+1:"0"+(checked_mm+1);for(var e=1;e<=d;e++){a=$$("d"+e);a.innerHTML="&nbsp;";a.style.backgroundColor="#FAFAFA"}while(b.getMonth()==checked_mm){a=$$("d"+(c+d));a.innerHTML='<a href="#" onclick="settime('+c+');return false" style="text-decoration: none;color:#313131;">'+c+"</a>";if(b.getTime()<date_today.getTime())a.style.backgroundColor="#F4F4F4";else a.style.backgroundColor="#FAFAFA";if(b.getFullYear()==date_current.getFullYear()&&b.getMonth()==date_current.getMonth()&&b.getDate()==date_current.getDate()){a.style.backgroundColor="#FF0000";a.firstChild.title="selected"}if(b.getFullYear()==date_today.getFullYear()&&b.getMonth()==date_today.getMonth()&&b.getDate()==date_today.getDate()){a.style.backgroundColor="#A7E137";a.firstChild.title="today"}b.setDate(++c)}while(c+d<=42){a=$$("d"+(c+d));a.innerHTML="&nbsp;";a.style.backgroundColor="#FAFAFA";c++}$$("calendar_month").style.display="none";$$("calendar_year").style.display="none"}function showdiv(a){$$("calendar_month").style.display="none";$$("calendar_year").style.display="none";$$(a).style.display="block"}function settime(a){textbox_day.value=zerofill(a);textbox_month.value=zerofill(checked_mm+1);textbox_year.value=checked_yy;Clearcalendar()}function zerofill(a){var a=parseFloat(a.toString().replace(/(^[\s0]+)|(\s+$)/g,""));a=isNaN(a)?0:a;return (a<10?"0":"")+a.toString()}function parsedate(f){/(\d+)\-(\d+)\-(\d+)\s*(\d*):?(\d*)/.exec(f);var a=RegExp.$1&&RegExp.$1>0?parseFloat(RegExp.$1):date_today.getFullYear(),b=RegExp.$2&&(RegExp.$2>0&&RegExp.$2<13)?parseFloat(RegExp.$2):date_today.getMonth()+1,c=RegExp.$3&&(RegExp.$3>0&&RegExp.$3<32)?parseFloat(RegExp.$3):date_today.getDate(),d=RegExp.$4&&(RegExp.$4>-1&&RegExp.$4<24)?parseFloat(RegExp.$4):0,e=RegExp.$5&&(RegExp.$5>-1&&RegExp.$5<60)?parseFloat(RegExp.$5):0;/(\d+)\-(\d+)\-(\d+)\s*(\d*):?(\d*)/.exec("0000-00-00 00:00");return new Date(a,b-1,c,d,e)}document.onclick=function(){Clearcalendar()};function OpenLightWindowImage(a,e){var s=parseInt(a.images[e].imageWidth)+parseInt(a.borderWidth),v=parseInt(a.images[e].imageHeight)+parseInt(a.borderHeight),n=document.createElement("div");n.id="divlightboxwrapper";n.style.cssText="position:fixed;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:100000;";var o=document.createElement("div");o.style.cssText="position:absolute;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:99999;";o.style.filter="Alpha(opacity="+a.opacity+")";o.style.opacity=parseInt(a.opacity)/100;o.style.backgroundColor=a.bgColor;var r=document.createElement("div");r.style.cssText="position:absolute;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:100001;";var j=document.createElement("div");j.style.cssText="position:relative;margin:50px auto auto auto;overflow:hidden;";j.style.width=s+"px";j.style.height=v+"px";var f=document.createElement("div");f.style.cssText="position:relative;overflow:hidden;";f.style.width=s+"px";f.style.height=v+"px";var g=document.createElement("img");if(a.images[e].imageCache)g.src=a.images[e].imageCache.src;else g.src=a.images[e].imageUrl;g.width=a.images[e].imageWidth;g.height=a.images[e].imageHeight;g.style.cursor="pointer";g.style.filter="Alpha(opacity=0)";g.style.opacity=0;g.onclick=function(){return CloseLightWindowImage()};if(parseInt(a.CaptionMode)==1){var c=document.createElement("span");c.style.display="block";c.style.position="absolute";c.style.zIndex="6666";c.style.overflow="hidden";c.style.background="#"+a.CaptionColor.replace("#","");c.style.filter="Alpha(opacity="+parseInt(a.CaptionOpacity,10)+")";c.style.opacity=parseInt(a.CaptionOpacity,10)/100;if(parseInt(a.CaptionPosition,10)==1){c.style.top="0px";c.style.right="0px";c.style.width=a.CaptionWidth+"px";c.style.height="100%"}else if(parseInt(a.CaptionPosition,10)==2){c.style.top="0px";c.style.left="0px";c.style.height=a.CaptionHeight+"px";c.style.width="100%"}else if(parseInt(a.CaptionPosition,10)==3){c.style.bottom="0px";c.style.left="0px";c.style.height=a.CaptionHeight+"px";c.style.width="100%"}else{c.style.top="0px";c.style.left="0px";c.style.width=a.CaptionWidth+"px";c.style.height="100%"}var b=document.createElement("span");b.style.display="block";b.style.position="absolute";b.style.zIndex="7777";b.style.overflow="hidden";b.style.wordWrap="break-word";b.style.whiteSpace="normal";if(parseInt(a.CaptionPosition,10)==1){b.style.top="0px";b.style.right="0px";b.style.width=a.CaptionWidth+"px";b.style.height="100%"}else if(parseInt(a.CaptionPosition,10)==2){b.style.top="0px";b.style.left="0px";b.style.height=a.CaptionHeight+"px";b.style.width="100%"}else if(parseInt(a.CaptionPosition,10)==3){b.style.bottom="0px";b.style.left="0px";b.style.height=a.CaptionHeight+"px";b.style.width="100%"}else{b.style.top="0px";b.style.left="0px";b.style.width=a.CaptionWidth+"px";b.style.height="100%"}var q=document.createElement("span");q.style.cssText="display:block;padding:2px;text-align:center;font-weight:bold;"+a.CaptionHeadline;q.innerHTML=a.images[e].imageAlt;var p=document.createElement("span");p.style.cssText="display:block;padding:2px;text-align:left;"+a.CaptionDescription;p.innerHTML=a.images[e].imageTitle;b.appendChild(q);b.appendChild(p)}var d=document.createElement("img");if(a.closeCache)d.src=a.closeCache.src;else d.src=a.closeUrl;d.alt=a.closeAlt;d.title=a.closeTitle;d.width=a.closeWidth;d.height=a.closeHeight;d.style.position="absolute";d.style.zIndex="8888";d.style.top=2+"px";d.style.right=2+"px";d.style.cursor="pointer";d.onclick=function(){return CloseLightWindowImage()};if(parseInt(a.borderType)==1){var i=document.createElement("div");i.style.cssText="position:relative;float:left;"+a.defaultBorder;i.appendChild(g);i.appendChild(d);if(parseInt(a.CaptionMode)==1){i.appendChild(c);i.appendChild(b)}f.appendChild(i)}else if(parseInt(a.borderType)==2){var k=document.createElement("div");k.style.cssText="clear:both;margin:0;padding:0;overflow:hidden;";var x=document.createElement("div");x.style.cssText="float:left;"+a.imageBorder.topleft;var B=document.createElement("div");B.style.cssText="float:left;"+a.imageBorder.top+"width:"+a.images[e].imageWidth+"px;";var w=document.createElement("div");w.style.cssText="float:left;"+a.imageBorder.topright;k.appendChild(x);k.appendChild(B);k.appendChild(w);var l=document.createElement("div");l.style.cssText="clear:both;margin:0;padding:0;overflow:hidden;";var A=document.createElement("div");A.style.cssText="float:left;"+a.imageBorder.left+"height:"+a.images[e].imageHeight+"px;line-height:"+a.images[e].imageHeight+"px;";var h=document.createElement("div");h.style.cssText="position:relative;float:left;overflow:hidden;background:#ffffff;";h.appendChild(g);h.appendChild(d);if(parseInt(a.CaptionMode)==1){h.appendChild(c);h.appendChild(b)}var z=document.createElement("div");z.style.cssText="float:left;"+a.imageBorder.right+"height:"+a.images[e].imageHeight+"px;line-height:"+a.images[e].imageHeight+"px;";l.appendChild(A);l.appendChild(h);l.appendChild(z);var m=document.createElement("div");m.style.cssText="clear:both;margin:0;padding:0;overflow:hidden;";var u=document.createElement("div");u.style.cssText="float:left;"+a.imageBorder.bottomleft;var y=document.createElement("div");y.style.cssText="float:left;"+a.imageBorder.bottom+"width:"+a.images[e].imageWidth+"px;";var t=document.createElement("div");t.style.cssText="float:left;"+a.imageBorder.bottomright;m.appendChild(u);m.appendChild(y);m.appendChild(t);f.appendChild(k);f.appendChild(l);f.appendChild(m)}else{f.appendChild(g);f.appendChild(d);if(parseInt(a.CaptionMode)==1){f.appendChild(c);f.appendChild(b)}}j.appendChild(f);r.appendChild(j);n.appendChild(r);n.appendChild(o);document.body.appendChild(n);LightBoxImage(j,g,s);return false}function LightBoxImage(c,e,a){c.style.width="0px";var b=0,g=3.2,f=function(){if(b<a){c.style.width=b+"px";b=a-parseInt((a-b)/g,10)}else{c.style.width=a+"px";d&&window.clearInterval(d);LightBoxFilter(e)}},d=window.setInterval(f,10)}function LightBoxFilter(a){var b=10,d=function(){if(b<100){a.style.filter="Alpha(opacity="+b+")";a.style.opacity=b/100;b+=34}else{a.style.filter="Alpha(opacity=100)";a.style.opacity=1;c&&window.clearInterval(c)}},c=window.setInterval(d,50)}function CloseLightWindowImage(){var a=document.getElementById("divlightboxwrapper");a&&document.body.removeChild(a);return false}function SetHover(e,h,g,f){var d=document.getElementById("iamge_"+e);if(d)d.src=h;var a=document.getElementById("caption_wrap_"+e);if(a){var c=document.createElement("span");c.className="text caption_head";c.innerHTML=g;var b=document.createElement("span");b.className="text caption_desc";b.innerHTML=f;a.innerHTML="";a.appendChild(c);a.appendChild(b)}}function SetCaption(d,c){var a=document.getElementById("caption_mask_"+d);if(a){a.style.filter="Alpha(opacity="+parseInt(c,10)+")";a.style.opacity=parseInt(c,10)/100}var b=document.getElementById("caption_wrap_"+d);if(b){b.style.wordWrap="break-word";b.style.whiteSpace="normal"}}var SlideShow=function(a){this._options=a;this._index=0;this._timer=null;this._timer1=null;this._instance=null;this._opacity=100;this._cache=[];this._nav=null;this._img=null;this._link=null;this._div=null;this._interval=null;this.NewGuid=function(){for(var b="",a=1;a<=32;a++){var c=Math.floor(Math.random()*16).toString(16);b+=c;if(a==8||a==12||a==16||a==20)b+="-"}return b};this.Run=function(){for(var b=0;b<this._options.Files.length;b++){this._cache[b]=new Image;this._cache[b].loaded=false;this._cache[b].onload=function(){this.loaded=true};this._cache[b].src=this._options.Files[b].URL}var a=this._options.Files.length;this._cache[a+1]=new Image;this._cache[a+1].loaded=false;this._cache[a+1].onload=function(){this.loaded=true};this._cache[a+1].src=this._options.ActiveSrc;this._cache[a+2]=new Image;this._cache[a+2].loaded=false;this._cache[a+2].onload=function(){this.loaded=true};this._cache[a+2].src=this._options.NotActiveSrc;this._cache[a+3]=new Image;this._cache[a+3].loaded=false;this._cache[a+3].onload=function(){this.loaded=true};this._cache[a+3].src=this._options.OpenSrc;this._nav=document.getElementById(this._options.NavID);this._img=document.getElementById(this._options.ImgID);this._link=document.getElementById(this._options.LinkID);this._div=document.getElementById(this._options.DivID);this._interval=parseInt(this._options.Interval,10)*1e3;this._instance=this.NewGuid();window[this._instance]=this;this._options.Files.length>1&&this.Next(-1)};this.Next=function(a){this._index=parseInt(a,10)+1;if(this._index>this._options.Files.length-1)this._index=0;if(this._timer1){window.clearTimeout(this._timer1);this._timer1=null}if(this._timer){window.clearTimeout(this._timer);this._timer=null}this.SetBg();this.SetNav();this.SetLink();this.SetCaption();this.SetOpacity()};this.SetBg=function(){var a=this._options.Files[this._index];if(this._cache[this._index])this._div.style.backgroundImage="url("+this._cache[this._index].src+")";else this._div.style.backgroundImage="url("+a.URL+")";this._div.style.backgroundRepeat="no-repeat";this._div.style.backgroundPosition=a.Left+"px "+a.Top+"px"};this.SetNav=function(){if(parseInt(this._options.ControlMode,10)==1)if(this._options.ActiveSrc!=""&&this._options.NotActiveSrc!=""){var e=this;if(this._nav){this._nav.innerHTML="";for(var c=0;c<this._options.Files.length;c++){var a=document.createElement("a");a.target="_self";a.href="#";if(parseInt(this._options.IsViewMode,10)==1){a.index=c-1;a.onclick=function(){e.Next(this.index);return false}}else{a.className="slidelink";a.setAttribute("ctrl",this._options.ObjID);a.setAttribute("index",c-1)}var b=document.createElement("img");if(c==this._index){var d=this._options.Files.length;if(this._cache[d+1])b.src=this._cache[d+1].src;else b.src=this._options.ActiveSrc}else{var d=this._options.Files.length;if(this._cache[d+2])b.src=this._cache[d+2].src;else b.src=this._options.NotActiveSrc}a.appendChild(b);this._nav.appendChild(a)}}}};this.SetImage=function(){var a=this._options.Files[this._index];this._img.className="img_"+a.IndexID;if(this._cache[this._index])this._img.src=this._cache[this._index].src;else this._img.src=a.URL;this._img.style.position="absolute";this._img.style.border="0";this._img.style.width=a.Width+"px";this._img.style.height=a.Height+"px";this._img.style.left=a.Left+"px";this._img.style.top=a.Top+"px";this._img.alt=JsFormat(a.Alt);this._img.title=JsFormat(a.Title)};this.SetLink=function(){var b=this._options.Files[this._index];if(parseInt(this._options.EffectMode,10)==1&&parseInt(b.LinkMode,10)==4){if(parseInt(this._options.IsViewMode,10)==1){this._link.href="#";this._link.target="_self";this._link.className="hpylink";this._link.style.cursor="pointer";this._link.data=this._options.Data;this._link.index=this._index;this._link.onclick=function(){OpenLightWindowImage(this.data,this.index);return false}}else{this._link.href="#";this._link.target="_self";this._link.className="hpylink imagelink";this._link.style.cursor="pointer";this._link.setAttribute("data","data"+this._options.BlockID);this._link.setAttribute("index",this._index)}var a=document.getElementById(this._options.HpyID);if(a){a.target="_self";a.href="#";if(parseInt(this._options.IsViewMode,10)==1){a.className="lightbox_button";a.data=this._options.Data;a.index=this._index;a.onclick=function(){OpenLightWindowImage(this.data,this.index);return false}}else{a.className="lightbox_button imagelink";a.setAttribute("data","data"+this._options.BlockID);a.setAttribute("index",this._index)}}else{a=document.createElement("a");a.id=this._options.HpyID;a.target="_self";a.href="#";if(parseInt(this._options.IsViewMode,10)==1){a.className="lightbox_button";a.data=this._options.Data;a.index=this._index;a.onclick=function(){OpenLightWindowImage(this.data,this.index);return false}}else{a.className="lightbox_button imagelink";a.setAttribute("data","data"+this._options.BlockID);a.setAttribute("index",this._index)}var b=document.createElement("img"),c=this._options.Files.length;if(this._cache[c+3])b.src=this._cache[c+3].src;else b.src=this._options.OpenSrc;b.alt=this._options.OpenTitle;b.title=this._options.OpenTitle;b.width=16;b.height=16;a.appendChild(b);this._div.appendChild(a)}}else{var a=document.getElementById(this._options.HpyID);a&&this._div.removeChild(a);if(parseInt(b.LinkMode,10)==0){this._link.style.cursor="default";this._link.href="#";this._link.target="_self";if(parseInt(this._options.IsViewMode,10)==1){this._link.className="hpylink";this._link.data=this._options.Data;this._link.index=this._index;this._link.onclick=function(){return false}}else{this._link.className="hpylink nonlink";this._link.setAttribute("data","data"+this._options.BlockID);this._link.setAttribute("index",this._index)}}else{if(parseInt(b.LinkMode,10)==1)if(parseInt(this._options.IsViewMode,10)==1){this._link.href=b.LinkPath;this._link.target=b.LinkTarget}else{this._link.href="index.aspx?pageID="+b.LinkID;this._link.target=b.LinkTarget}else if(parseInt(b.LinkMode,10)==5)if(b.LinkSubject!=""){this._link.href="mailto:"+b.LinkPath+"?subject="+b.LinkSubject;this._link.target="_self"}else{this._link.href="mailto:"+b.LinkPath;this._link.target="_self"}else{this._link.href=b.LinkPath;this._link.target=b.LinkTarget}this._link.className="hpylink";this._link.style.cursor="pointer";if(parseInt(this._options.IsViewMode,10)==1){this._link.data=this._options.Data;this._link.index=this._index}else{this._link.setAttribute("data","data"+this._options.BlockID);this._link.setAttribute("index",this._index)}if(b.LinkPath=="")this._link.onclick=function(){return false};else this._link.onclick=function(){return true}}}};this.SetCaption=function(){var g=this._options.Files[this._index],e=document.getElementById("caption_mask_"+this._options.BlockID);e&&e.parentNode.removeChild(e);var f=document.getElementById("caption_wrap_"+this._options.BlockID);f&&f.parentNode.removeChild(f);if(parseInt(this._options.CaptionMode,10)==1)if(!(parseInt(this._options.EffectMode,10)==1&&parseInt(g.LinkMode,10)==4)){var b=document.createElement("span");b.id="caption_mask_"+this._options.BlockID;b.className="caption_mask";b.style.filter="Alpha(opacity="+parseInt(this._options.CaptionOpacity,10)+")";b.style.opacity=parseInt(this._options.CaptionOpacity,10)/100;var a=document.createElement("span");a.id="caption_wrap_"+this._options.BlockID;a.className="caption_wrap";a.style.wordWrap="break-word";a.style.whiteSpace="normal";var d=document.createElement("span");d.className="text caption_head";d.innerHTML=g.Alt.replace(/&nbsp;/gi," ");var c=document.createElement("span");c.className="text caption_desc";c.innerHTML=g.Title.replace(/&nbsp;/gi," ");a.appendChild(d);a.appendChild(c);this._link.appendChild(b);this._link.appendChild(a)}};this.SetOpacity=function(){this._opacity=this._opacity-12;if(this._timer){window.clearTimeout(this._timer);this._timer=null}if(this._opacity>100){this._opacity=100;this._img.style.filter="alpha(opacity=100)";this._img.style.MozOpacity=1;this._img.style.opacity=1;if(this._timer1){window.clearTimeout(this._timer1);this._timer1=null}}else if(this._opacity<0){this.SetImage();this._opacity=100;this._img.style.filter="alpha(opacity=100)";this._img.style.MozOpacity=1;this._img.style.opacity=1;this._div.style.backgroundImage="";if(this._timer1){window.clearTimeout(this._timer1);this._timer1=null}this._timer=window.setTimeout('window["'+this._instance+'"].Next("'+this._index+'")',this._interval)}else{this._img.style.filter="alpha(opacity="+this._opacity+")";this._img.style.MozOpacity=this._opacity/100;this._img.style.opacity=this._opacity/100;this._timer1=window.setTimeout('window["'+this._instance+'"].SetOpacity()',30)}}},data_gallery={},cache_gallery={};function BuildThumbItems(a,d,e,k,f){if(k)for(var c=0;c<d.length;c++){var b=document.createElement("div");b.className="gallery_item";var l=d[c].thumbUrl;if(cache_gallery["thumb_"+a.blockID+"_"+d[c].thumbIndex])l=cache_gallery["thumb_"+a.blockID+"_"+d[c].thumbIndex].src;else{cache_gallery["thumb_"+a.blockID+"_"+d[c].thumbIndex]=new Image;cache_gallery["thumb_"+a.blockID+"_"+d[c].thumbIndex].loaded=false;cache_gallery["thumb_"+a.blockID+"_"+d[c].thumbIndex].onload=function(){this.loaded=true};cache_gallery["thumb_"+a.blockID+"_"+d[c].thumbIndex].src=d[c].thumbUrl}var g=document.createElement("a");if(parseInt(a.isViewMode)==0)g.className="thumbimage";g.href="#";g.innerHTML='<img src="'+l+'" alt="'+JsFormat(d[c].thumbAlt)+'" title="'+JsFormat(d[c].thumbTitle)+'" width="'+d[c].thumbWidth+'" height="'+d[c].thumbHeight+'"  />';g._data=a;g._index=d[c].thumbIndex;if(parseInt(a.isViewMode)==1)g.onclick=function(){if(parseInt(a.effect)==1)return OpenLightWindowGallery(this._data,this._index,1,1);else return OpenLightWindowScale(this._data,this._index,1)};b.appendChild(g);k.appendChild(b)}if(parseInt(a.itemPageCount)>0&&parseInt(a.imageCount)>parseInt(a.itemPageCount))if(f){f.innerHTML="";if(parseInt(e)>1)if(parseInt(a.scrollMode1)==1){var b=document.createElement("a");if(parseInt(a.isViewMode)==0)b.className="normal1 thumblink";else b.className="normal1";b.href="#";b.innerHTML=a.spanPrev1;b._data=a;b._index=parseInt(e)-1;if(parseInt(a.isViewMode)==1)b.onclick=function(){return BuildGalleryThumb(this._data,this._index)};f.appendChild(b)}else if(parseInt(a.scrollMode1)==2){var m=a.leftCache1?a.leftCache1.src:a.leftUrl1,b=document.createElement("a");if(parseInt(a.isViewMode)==0)b.className="thumblink";b.href="#";b.innerHTML='<img src="'+m+'" alt="'+a.leftAlt1+'" title="'+a.leftTitle1+'" width="'+a.leftWidth1+'" height="'+a.leftHeight1+'"  />';b._data=a;b._index=parseInt(e)-1;if(parseInt(a.isViewMode)==1)b.onclick=function(){return BuildGalleryThumb(this._data,this._index)};f.appendChild(b)}var h=1;if(parseInt(a.imageCount)%parseInt(a.itemPageCount)==0)h=parseInt(parseInt(a.imageCount)/parseInt(a.itemPageCount));else h=parseInt(parseInt(a.imageCount)/parseInt(a.itemPageCount))+1;var i=0,j=h;if(parseInt(e)-6>0)i=parseInt(e)-6;if(i+11<h)j=i+11;if(j-11>0)i=j-11;for(var c=i;c<j;c++)if(c==parseInt(e)-1){var b=document.createElement("span");b.className="active1";b.innerHTML=c+1;f.appendChild(b)}else{var b=document.createElement("a");if(parseInt(a.isViewMode)==0)b.className="normal1 thumblink";else b.className="normal1";b.href="#";b.innerHTML=c+1;b._data=a;b._index=c+1;if(parseInt(a.isViewMode)==1)b.onclick=function(){return BuildGalleryThumb(this._data,this._index)};f.appendChild(b)}if(parseInt(e)<h)if(parseInt(a.scrollMode1)==1){var b=document.createElement("a");if(parseInt(a.isViewMode)==0)b.className="normal1 thumblink";else b.className="normal1";b.href="#";b.innerHTML=a.spanNext1;b._data=a;b._index=parseInt(e)+1;if(parseInt(a.isViewMode)==1)b.onclick=function(){return BuildGalleryThumb(this._data,this._index)};f.appendChild(b)}else if(parseInt(a.scrollMode1)==2){var n=a.rightCache1?a.rightCache1.src:a.rightUrl1,b=document.createElement("a");if(parseInt(a.isViewMode)==0)b.className="thumblink";b.href="#";b.innerHTML='<img src="'+n+'" alt="'+a.rightAlt1+'" title="'+a.rightTitle1+'" width="'+a.rightWidth1+'" height="'+a.rightHeight1+'"  />';b._data=a;b._index=parseInt(e)+1;if(parseInt(a.isViewMode)==1)b.onclick=function(){return BuildGalleryThumb(this._data,this._index)};f.appendChild(b)}}}function BuildGalleryThumb(a,b){var e=0,d=parseInt(a.imageCount);if(parseInt(a.itemPageCount)>0&&parseInt(a.imageCount)>parseInt(a.itemPageCount)){e=(parseInt(b)-1)*parseInt(a.itemPageCount);d=e+parseInt(a.itemPageCount);if(d>parseInt(a.imageCount))d=parseInt(a.imageCount)}var c=document.getElementById(a.divID),f=document.getElementById(a.navID);if(c){c.innerHTML="";if(data_gallery["thumb_"+a.blockID+"_"+b]){var g=data_gallery["thumb_"+a.blockID+"_"+b];BuildThumbItems(a,g,b,c,f)}else websitebox.web.GalleryOperations.GetThumbData(a.blockID,b,a.isViewMode,function(e){var d=eval("("+e+")");data_gallery["thumb_"+a.blockID+"_"+b]=d;BuildThumbItems(a,d,b,c,f)})}return false}function BuidlScaleItems(a,h,e,q){var s=document.getElementById("divBlock_"+a.blockID);s&&q.removeChild(s);var d=document.getElementById("tempBlock_"+a.blockID),c=document.createElement("div");c.id="divBlock_"+a.blockID;c.className=d.className;if(parseInt(a.isViewMode)==0){c.setAttribute("blockID",d.attributes["blockID"].value);c.setAttribute("blockType",d.attributes["blockType"].value);c.setAttribute("elementID",d.attributes["elementID"].value);c.setAttribute("elementType",d.attributes["elementType"].value);c.setAttribute("elementInherit",d.attributes["elementInherit"].value);c.setAttribute("borderType",d.attributes["borderType"].value);c.setAttribute("elementUrl",d.attributes["elementUrl"].value);c.setAttribute("url",d.attributes["url"].value);c.setAttribute("isAdapt",d.attributes["isAdapt"].value);c.setAttribute("onlySupper",d.attributes["onlySupper"].value);c.setAttribute("parentID",d.attributes["parentID"].value);c.setAttribute("elementAdapt",d.attributes["elementAdapt"].value);c.setAttribute("realMarginLeft",d.attributes["realMarginLeft"].value);c.setAttribute("realMarginRight",d.attributes["realMarginRight"].value);c.setAttribute("realMarginTop",d.attributes["realMarginTop"].value);c.setAttribute("realMarginBottom",d.attributes["realMarginBottom"].value);c.setAttribute("realPaddingLeft",d.attributes["realPaddingLeft"].value);c.setAttribute("realPaddingRight",d.attributes["realPaddingRight"].value);c.setAttribute("realPaddingTop",d.attributes["realPaddingTop"].value);c.setAttribute("realPaddingBottom",d.attributes["realPaddingBottom"].value);c.setAttribute("realBorderLeft",d.attributes["realBorderLeft"].value);c.setAttribute("realBorderRight",d.attributes["realBorderRight"].value);c.setAttribute("realBorderTop",d.attributes["realBorderTop"].value);c.setAttribute("realBorderBottom",d.attributes["realBorderBottom"].value);c.style.cssText=d.style.cssText}c.style.display="block";c.style.clear="both";c.style.overflow="hidden";c.style.position="relative";if(parseInt(a.titleMode)==1){var o=document.createElement("div");o.style.cssText="clear:both;margin:0;padding:3px 10px;overflow:hidden;text-align:center;font-weight:bold;"+a.titleStyle;o.innerHTML=h.scaleAlt;c.appendChild(o)}var k=document.createElement("div");k.style.cssText="clear:both;overflow:hidden;padding:3px 10px;margin:0;text-align:center;position:relative;";var t=h.scaleUrl;if(cache_gallery["scale_"+a.blockID+"_"+e])t=cache_gallery["scale_"+a.blockID+"_"+e].src;else{cache_gallery["scale_"+a.blockID+"_"+e]=new Image;cache_gallery["scale_"+a.blockID+"_"+e].loaded=false;cache_gallery["scale_"+a.blockID+"_"+e].onload=function(){this.loaded=true};cache_gallery["scale_"+a.blockID+"_"+e].src=h.scaleUrl}var g=document.createElement("a");if(parseInt(a.isViewMode)==0)g.className="scaleimage";g.style.cssText="position:relative;";g.href="#";g.innerHTML='<img src="'+t+'" width="'+h.scaleWidth+'" height="'+h.scaleHeight+'" />';g._data=a;g._index=parseInt(e);if(parseInt(a.isViewMode)==1)g.onclick=function(){return OpenLightWindowScale(this._data,this._index,0)};k.appendChild(g);if(parseInt(e)>0){var p=a.prevCache?a.prevCache.src:a.prevUrl,b=document.createElement("a");if(parseInt(a.isViewMode)==0)b.className="scalelink";b.style.cssText="position:absolute;top:48%;left:10px;";b.href="#";b.innerHTML='<img src="'+p+'" alt="'+a.prevAlt+'" title="'+a.prevTitle+'" width="'+a.prevWidth+'" height="'+a.prevHeight+'" />';b._data=a;b._index=parseInt(e)-1;if(parseInt(a.isViewMode)==1)b.onclick=function(){return OpenLightWindowScale(this._data,this._index,1)};k.appendChild(b)}if(parseInt(e)<parseInt(a.imageCount)-1){var r=a.nextCache?a.nextCache.src:a.nextUrl,b=document.createElement("a");if(parseInt(a.isViewMode)==0)b.className="scalelink";b.style.cssText="position:absolute;top:48%;right:10px;";b.href="#";b.innerHTML='<img src="'+r+'" alt="'+a.nextAlt+'" title="'+a.nextTitle+'" width="'+a.nextWidth+'" height="'+a.nextHeight+'" />';b._data=a;b._index=parseInt(e)+1;if(parseInt(a.isViewMode)==1)b.onclick=function(){return OpenLightWindowScale(this._data,this._index,1)};k.appendChild(b)}c.appendChild(k);if(parseInt(a.descMode)==1){var n=document.createElement("div");n.style.cssText="overflow:hidden;padding:3px 10px;;margin:0;text-align:center;"+a.descStyle;n.innerHTML=h.scaleTitle;c.appendChild(n)}if(parseInt(a.indexMode)==1)if(parseInt(a.backMode)==1){var i=document.createElement("div");i.style.cssText="clear:both;margin:0;padding:3px 10px;text-align:center;";var b=document.createElement("a");if(parseInt(a.isViewMode)==0)b.className="scaleimage";b.style.cssText=a.styleNormal2;b.href="#";b.innerHTML=a.spanBack;b._data=a;b._index=parseInt(e);b.onmouseover=function(){this.style.cssText=this._data.styleHover2};b.onmouseout=function(){this.style.cssText=this._data.styleNormal2};if(parseInt(a.isViewMode)==1)b.onclick=function(){return OpenLightWindowScale(this._data,this._index,0)};i.appendChild(b);c.appendChild(i)}else if(parseInt(a.backMode)==2){var i=document.createElement("div");i.style.cssText="clear:both;margin:0;padding:3px 10px;text-align:center;";var p=a.backCache?a.backCache.src:a.backUrl,b=document.createElement("a");if(parseInt(a.isViewMode)==0)b.className="scaleimage";b.href="#";b.innerHTML='<img src="'+p+'" alt="'+a.backAlt+'" title="'+a.backTitle+'" width="'+a.backWidth+'" height="'+a.backHeight+'" />';b._data=a;b._index=parseInt(e);if(parseInt(a.isViewMode)==1)b.onclick=function(){return OpenLightWindowScale(this._data,this._index,0)};i.appendChild(b);c.appendChild(i)}if(parseInt(a.indexMode)==1){var f=document.createElement("div");f.style.cssText="clear:none;margin:0;padding:3px 10px;text-align:center;";if(parseInt(e)>0)if(parseInt(a.scrollMode2)==1){var b=document.createElement("a");if(parseInt(a.isViewMode)==0)b.className="scalelink";b.style.cssText=a.styleNormal2;b.href="#";b.innerHTML=a.spanPrev2;b._data=a;b._index=parseInt(e)-1;b.onmouseover=function(){this.style.cssText=this._data.styleHover2};b.onmouseout=function(){this.style.cssText=this._data.styleNormal2};if(parseInt(a.isViewMode)==1)b.onclick=function(){return OpenLightWindowScale(this._data,this._index,1)};f.appendChild(b)}else if(parseInt(a.scrollMode2)==2){var p=a.leftCache2?a.leftCache2.src:a.leftUrl2,b=document.createElement("a");if(parseInt(a.isViewMode)==0)b.className="scalelink";b.style.cssText="cursor:pointer;";b.href="#";b.innerHTML='<img src="'+p+'" alt="'+a.leftAlt2+'" title="'+a.leftTitle2+'" width="'+a.leftWidth2+'" height="'+a.leftHeight2+'"  />';b._data=a;b._index=parseInt(e)-1;if(parseInt(a.isViewMode)==1)b.onclick=function(){return OpenLightWindowScale(this._data,this._index,1)};f.appendChild(b)}var l=0,m=parseInt(a.imageCount);if(e-5>0)l=e-5;if(l+11<parseInt(a.imageCount))m=l+11;if(m-11>0)l=m-11;for(var j=l;j<m;j++)if(j==parseInt(e)){var b=document.createElement("span");b.style.cssText=a.styleActive2;b.innerHTML=j+1;f.appendChild(b)}else{var b=document.createElement("a");if(parseInt(a.isViewMode)==0)b.className="scalelink";b.style.cssText=a.styleNormal2;b.href="#";b.innerHTML=j+1;b._data=a;b._index=j;b.onmouseover=function(){this.style.cssText=this._data.styleHover2};b.onmouseout=function(){this.style.cssText=this._data.styleNormal2};if(parseInt(a.isViewMode)==1)b.onclick=function(){return OpenLightWindowScale(this._data,this._index,1)};f.appendChild(b)}if(parseInt(e)<parseInt(a.imageCount)-1)if(parseInt(a.scrollMode2)==1){var b=document.createElement("a");if(parseInt(a.isViewMode)==0)b.className="scalelink";b.style.cssText=a.styleNormal2;b.href="#";b.innerHTML=a.spanNext2;b._data=a;b._index=parseInt(e)+1;b.onmouseover=function(){this.style.cssText=this._data.styleHover2};b.onmouseout=function(){this.style.cssText=this._data.styleNormal2};if(parseInt(a.isViewMode)==1)b.onclick=function(){return OpenLightWindowScale(this._data,this._index,1)};f.appendChild(b)}else if(parseInt(a.scrollMode2)==2){var r=a.rightCache2?a.rightCache2.src:a.rightUrl2,b=document.createElement("a");if(parseInt(a.isViewMode)==0)b.className="scalelink";b.style.cssText="cursor:pointer;";b.href="#";b.innerHTML='<img src="'+r+'" alt="'+a.rightAlt2+'" title="'+a.rightTitle2+'" width="'+a.rightWidth2+'" height="'+a.rightHeight2+'"  />';b._data=a;b._index=parseInt(e)+1;if(parseInt(a.isViewMode)==1)b.onclick=function(){return OpenLightWindowScale(this._data,this._index,1)};f.appendChild(b)}c.appendChild(f)}q.appendChild(c)}function OpenLightWindowScale(a,b,g){if(g==0){var c=document.getElementById("divBlock_"+a.blockID),e=c.parentNode,d=document.getElementById("tempBlock_"+a.blockID);if(d){d.id="divBlock_"+a.blockID;d.style.display="block";c&&e.removeChild(c)}var f=1;if(parseInt(a.itemPageCount)>0&&parseInt(a.imageCount)>parseInt(a.itemPageCount))if((parseInt(b)+1)%parseInt(a.itemPageCount)==0)f=parseInt((parseInt(b)+1)/parseInt(a.itemPageCount));else f=parseInt((parseInt(b)+1)/parseInt(a.itemPageCount))+1;BuildGalleryThumb(a,f)}else{var c=document.getElementById("divBlock_"+a.blockID),e=c.parentNode,d=document.getElementById("tempBlock_"+a.blockID);if(d){d.style.display="none";c.style.display="block"}else{c.id="tempBlock_"+a.blockID;c.style.display="none"}if(data_gallery["scale_"+a.blockID+"_"+b]){var h=data_gallery["scale_"+a.blockID+"_"+b];BuidlScaleItems(a,h,b,e)}else websitebox.web.GalleryOperations.GetScaleData(a.blockID,b,a.isViewMode,function(d){var c=eval("("+d+")");data_gallery["scale_"+a.blockID+"_"+b]=c;BuidlScaleItems(a,c,b,e)})}return false}var GalleryAutoID=null,GalleryEffectID=null,GalleryImageHeight=200,GalleryTempWidth=500,GalleryTempHeight=null;function BuidlLightboxItems(a,f,d,n,o,m,h){var k=parseInt(d)-1,j=parseInt(d)+1;if(k<0)k=parseInt(a.imageCount)-1;if(j>parseInt(a.imageCount)-1)j=0;if(parseInt(a.titleMode)==1){var l=document.createElement("div");l.style.cssText="clear:both;margin:0;padding:3px 10px;overflow:hidden;text-align:center;font-weight:bold;"+a.titleStyle;l.innerHTML=f.lightboxAlt;h.appendChild(l)}var g=document.createElement("div");g.style.cssText="clear:both;overflow:hidden;padding:3px 10px;margin:0;text-align:center;position:relative;";g.style.height=GalleryImageHeight+"px";var e=document.createElement("img");if(cache_gallery["lightbox_"+a.blockID+"_"+d])e.src=cache_gallery["lightbox_"+a.blockID+"_"+d].src;else{e.src=f.lightboxUrl;cache_gallery["lightbox_"+a.blockID+"_"+d]=new Image;cache_gallery["lightbox_"+a.blockID+"_"+d].loaded=false;cache_gallery["lightbox_"+a.blockID+"_"+d].onload=function(){this.loaded=true};cache_gallery["lightbox_"+a.blockID+"_"+d].src=f.lightboxUrl}e.width=f.lightboxWidth;e.height=f.lightboxHeight;e.style.cssText="margin:0; vertical-align:middle;cursor:pointer;";e.style.filter="Alpha(opacity=0)";e.style.opacity=0;g.appendChild(e);if(parseInt(d)>0){var c=document.createElement("img");if(a.prevCache)c.src=a.prevCache.src;else c.src=a.prevUrl;c.alt=a.prevAlt;c.title=a.prevTitle;c.width=a.prevWidth;c.height=a.prevHeight;c.style.cssText="position:absolute;top:48%;left:10px;cursor:pointer;";c._data=a;c._index=k;c.onclick=function(){return OpenLightWindowGallery(this._data,this._index,0,0)};g.appendChild(c)}if(parseInt(d)<parseInt(a.imageCount)-1){var b=document.createElement("img");if(a.nextCache)b.src=a.nextCache.src;else b.src=a.nextUrl;b.alt=a.nextAlt;b.title=a.nextTitle;b.width=a.nextWidth;b.height=a.nextHeight;b.style.cssText="position:absolute;top:48%;right:10px;cursor:pointer;";b._data=a;b._index=j;b.onclick=function(){return OpenLightWindowGallery(this._data,this._index,0,0)};g.appendChild(b)}h.appendChild(g);if(parseInt(a.descMode)==1){var i=document.createElement("div");i.style.cssText="clear:both;overflow:hidden;text-align:center;padding:3px 10px;margin:0;"+a.descStyle;i.innerHTML=f.lightboxTitle;h.appendChild(i)}LightBoxGallery(m,h,g,e,f.lightboxWidth,f.lightboxHeight)}function OpenLightWindowGallery(a,e,m,r){GalleryEffectID&&window.clearInterval(GalleryEffectID);var s=parseInt(e)-1,o=parseInt(e)+1;if(s<0)s=parseInt(a.imageCount)-1;if(o>parseInt(a.imageCount)-1)o=0;var l=null,k=null,n=null,f=null,g=null,d=null,h=null;if(m==1){l=document.createElement("div");l.id="divlightboxwrapper";l.style.cssText="position:fixed;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:100000;";k=document.createElement("div");k.id="divlightboxmask";k.style.cssText="position:absolute;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:99999;";k.style.filter="Alpha(opacity="+a.opacity+")";k.style.opacity=parseInt(a.opacity)/100;k.style.backgroundColor=a.bgColor;n=document.createElement("div");n.id="divlightboxcontainer";n.style.cssText="position:absolute;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:100001;";f=document.createElement("div");f.id="divlightboxcurrent";f.style.cssText="position:relative;margin:50px auto auto auto;overflow:hidden;background-color:"+a.inColor+";";g=document.createElement("div");g.id="divlightboxcontent";g.style.cssText="clear:both;margin:0;padding:0;overflow:hidden;";g.innerHTML="";d=document.createElement("div");d.id="divlightboxheader";d.style.cssText="clear:both;margin:0;padding:3px 10px;;overflow:hidden;";d.style.height=a.barHeight+"px";d.style.backgroundColor=a.barColor;d.innerHTML="";h=document.createElement("div");h.id="divlightboxfooter";h.style.cssText="clear:both;margin:0;padding:3px 10px;text-align:center;";h.innerHTML=""}else{l=document.getElementById("divlightboxwrapper");k=document.getElementById("divlightboxmask");n=document.getElementById("divlightboxcontainer");f=document.getElementById("divlightboxcurrent");g=document.getElementById("divlightboxcontent");d=document.getElementById("divlightboxheader");h=document.getElementById("divlightboxfooter")}f.style.width=GalleryTempWidth+"px";if(GalleryTempHeight)g.style.height=GalleryTempHeight+"px";if(g)g.innerHTML="";if(d)d.innerHTML="";if(h)h.innerHTML="";var u=document.createElement("div");u.style.cssText="float:left;width:30px;margin:0;padding:2px 0 0 0;text-align:left;";if(parseInt(a.playMode)==1){var c=document.createElement("img");if(r==1){if(a.pauseCache)c.src=a.pauseCache.src;else c.src=a.pauseUrl;c.alt=a.pauseAlt;c.title=a.pauseTitle;c.width=a.pauseWidth;c.height=a.pauseHeight}else{if(a.playCache)c.src=a.playCache.src;else c.src=a.playUrl;c.alt=a.playAlt;c.title=a.playTitle;c.width=a.playWidth;c.height=a.playHeight}c.style.cursor="pointer";c._data=a;c._index=o;c._auto=r;c._interval=a.palyInterval;c.onclick=function(){if(this._auto==1){if(this._data.playCache)this.src=this._data.playCache.src;else this.src=this._data.playUrl;this.alt=this._data.playAlt;this.title=this._data.playTitle;this.width=this._data.playWidth;this.height=this._data.playHeight;this._auto=0;GalleryAutoID&&window.clearTimeout(GalleryAutoID)}else{if(this._data.pauseCache)this.src=this._data.pauseCache.src;else this.src=this._data.pauseUrl;this.alt=this._data.pauseAlt;this.title=this._data.pauseTitle;this.width=this._data.pauseWidth;this.height=this._data.pauseHeight;this._auto=1;return AutoLightWindowGallery(this._data,this._index,0,1,this._interval)}};u.appendChild(c)}var v=document.createElement("div");v.style.cssText="float:right;width:30px;margin:0;padding:2px 0 0 0;text-align:right;";var i=document.createElement("img");if(a.closeCache)i.src=a.closeCache.src;else i.src=a.closeUrl;i.alt=a.closeAlt;i.title=a.closeTitle;i.width=a.closeWidth;i.height=a.closeHeight;i.style.cursor="pointer";i.onclick=function(){return CloseLightWindowGallery()};v.appendChild(i);var j=document.createElement("div");j.style.cssText="clear:none;margin:0 30px;padding:2px 0 0 0;text-align:center;";if(parseInt(a.indexMode)==1){if(parseInt(e)>0)if(parseInt(a.scrollMode2)==1){var b=document.createElement("a");b.style.cssText=a.styleNormal2;b.href="#";b.innerHTML=a.spanPrev2;b._data=a;b._index=s;b.onmouseover=function(){this.style.cssText=this._data.styleHover2};b.onmouseout=function(){this.style.cssText=this._data.styleNormal2};b.onclick=function(){return OpenLightWindowGallery(this._data,this._index,0,0)};j.appendChild(b)}else if(parseInt(a.scrollMode2)==2){var x=a.leftCache2?a.leftCache2.src:a.leftUrl2,b=document.createElement("a");b.style.cssText="cursor:pointer;";b.href="#";b.innerHTML='<img src="'+x+'" alt="'+a.leftAlt2+'" title="'+a.leftTitle2+'" width="'+a.leftWidth2+'" height="'+a.leftHeight2+'"  />';b._data=a;b._index=s;b.onclick=function(){return OpenLightWindowGallery(this._data,this._index,0,0)};j.appendChild(b)}var q=0,t=parseInt(a.imageCount);if(parseInt(e)-5>0)q=parseInt(e)-5;if(q+11<parseInt(a.imageCount))t=q+11;if(t-11>0)q=t-11;for(var p=q;p<t;p++)if(p==parseInt(e)){var b=document.createElement("span");b.style.cssText=a.styleActive2;b.innerHTML=p+1;j.appendChild(b)}else{var b=document.createElement("a");b.style.cssText=a.styleNormal2;b.href="#";b.innerHTML=p+1;b._data=a;b._index=p;b.onmouseover=function(){this.style.cssText=this._data.styleHover2};b.onmouseout=function(){this.style.cssText=this._data.styleNormal2};b.onclick=function(){return OpenLightWindowGallery(this._data,this._index,0,0)};j.appendChild(b)}if(parseInt(e)<parseInt(a.imageCount)-1)if(parseInt(a.scrollMode2)==1){var b=document.createElement("a");b.style.cssText=a.styleNormal2;b.href="#";b.innerHTML=a.spanNext2;b._data=a;b._index=o;b.onmouseover=function(){this.style.cssText=this._data.styleHover2};b.onmouseout=function(){this.style.cssText=this._data.styleNormal2};b.onclick=function(){return OpenLightWindowGallery(this._data,this._index,0,0)};j.appendChild(b)}else if(parseInt(a.scrollMode1)==2){var y=a.rightCache2?a.rightCache2.src:a.rightUrl2,b=document.createElement("a");b.style.cssText="cursor:pointer;";b.href="#";b.innerHTML='<img src="'+y+'" alt="'+a.rightAlt2+'" title="'+a.rightTitle2+'" width="'+a.rightWidth2+'" height="'+a.rightHeight2+'"  />';b._data=a;b._index=o;b.onclick=function(){return OpenLightWindowGallery(this._data,this._index,0,0)};j.appendChild(b)}}d.appendChild(u);d.appendChild(v);d.appendChild(j);m==1&&f.appendChild(d);m==1&&f.appendChild(g);if(data_gallery["lightbox_"+a.blockID+"_"+e]){var w=data_gallery["lightbox_"+a.blockID+"_"+e];BuidlLightboxItems(a,w,e,m,r,f,g)}else websitebox.web.GalleryOperations.GetLightboxData(a.blockID,e,a.isViewMode,function(c){var b=eval("("+c+")");data_gallery["lightbox_"+a.blockID+"_"+e]=b;BuidlLightboxItems(a,b,e,m,r,f,g)});if(parseInt(a.indexMode)==1)if(parseInt(a.backMode)==1){var b=document.createElement("a");b.style.cssText=a.styleNormal2;b.href="#";b.innerHTML=a.spanBack;b._data=a;b.onmouseover=function(){this.style.cssText=this._data.styleHover2};b.onmouseout=function(){this.style.cssText=this._data.styleNormal2};b.onclick=function(){return CloseLightWindowGallery()};h.appendChild(b);f.appendChild(h)}else if(parseInt(a.backMode)==2){var z=a.backCache?a.backCache.src:a.backUrl,b=document.createElement("a");b.href="#";b.innerHTML='<img src="'+z+'" alt="'+a.backAlt+'" title="'+a.backTitle+'" width="'+a.backWidth+'" height="'+a.backHeight+'" />';b.onclick=function(){return CloseLightWindowGallery()};h.appendChild(b)}m==1&&f.appendChild(h);if(m==1){n.appendChild(f);l.appendChild(n);l.appendChild(k);document.body.appendChild(l)}if(parseInt(a.playMode)==1&&r==1)AutoLightWindowGallery(a,o,0,1,parseInt(a.palyInterval));else GalleryAutoID&&window.clearTimeout(GalleryAutoID);return false}function AutoLightWindowGallery(f,c,b,e,a){var d=function(){return OpenLightWindowGallery(f,c,b,e)};GalleryAutoID=window.setTimeout(d,a*1e3)}function CloseLightWindowGallery(){GalleryEffectID&&window.clearInterval(GalleryEffectID);GalleryAutoID&&window.clearTimeout(GalleryAutoID);var a=document.getElementById("divlightboxwrapper");a&&document.body.removeChild(a);return false}function LightBoxGallery(d,f,e,i,h,g){f.style.height="auto";var b=parseInt(h)+22<500?500:parseInt(h)+22,a=parseInt(g)<100?100:parseInt(g),c=3.2,j=function(){var g=false,h=false;if(GalleryTempWidth<b){d.style.width=GalleryTempWidth+"px";GalleryTempWidth=b-parseInt((b-GalleryTempWidth)/c,10)}else if(GalleryTempWidth>b){d.style.width=GalleryTempWidth+"px";GalleryTempWidth=b+parseInt((GalleryTempWidth-b)/c,10)}else{g=true;d.style.width=b+"px";if(GalleryImageHeight<a){e.style.height=GalleryImageHeight+"px";GalleryImageHeight=a-parseInt((a-GalleryImageHeight)/c,10)}else if(GalleryImageHeight>a){e.style.height=GalleryImageHeight+"px";GalleryImageHeight=a+parseInt((GalleryImageHeight-a)/c,10)}else{h=true;e.style.height=a+"px"}}if(g&&h){GalleryTempHeight=f.offsetHeight;GalleryEffectID&&window.clearInterval(GalleryEffectID);LightBoxFilter(i)}};GalleryEffectID=window.setInterval(j,10)}function LightBoxFilter(a){var b=10,d=function(){if(b<100){a.style.filter="Alpha(opacity="+b+")";a.style.opacity=b/100;b+=34}else{a.style.filter="Alpha(opacity=100)";a.style.opacity=1;c&&window.clearInterval(c)}},c=window.setInterval(d,50)}
