PageSourceSearch

https://monarchdunes.com/sites/js/lib/1.0/cg.min.js?v=1

js monarchdunes.com collected 2026-10-04 05:21:22 UTC 45,177 bytes, 1 lines download raw bytes

1Function.prototype.method=function(a,b){if(!this.prototype[a])return this.prototype[a]=b,this},String.method("trim",function(){return this.replace(/^\s+|\s+$/g,"")}),String.method("getTypeOf",function(){cg.getTypeOf(this)});var cg={namespace:"https://www2.cybergolf.com/js/lib/1.0/",config:{theme:"metal-silver"},tools:{},apps:{},styles:{},animate:{},effects:{},form:{},browser:{name:function(){return navigator.userAgent.indexOf("Chrome")>-1?"chrome":navigator.userAgent.indexOf("MSIE")>-1?"msie":navigator.userAgent.indexOf("Firefox")>-1?"firefox":navigator.userAgent.indexOf("Safari")>-1?"safari":"other"}()},isMobile:{Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)||navigator.userAgent.match(/WPDesktop/i)},any:function(){return this.Android()||this.BlackBerry()||this.iOS()||this.Opera()||this.Windows()}},isEmpty:function(a){switch(typeof a){case"object":for(var b in a)if(a.hasOwnProperty(b))return!1;break;case"undefined":break;default:return!1}return!0},setStyles:function(a,b){var c,d,e;if(void 0!==a.style&&b.length>0){b=b.trim(),b=b.replace(/:\/\//gi,"@//"),";"===b.charAt(b.length-1)&&(b=b.substring(0,b.length-1)),b=b.split(";");for(var f=0,g=b.length-1;f<=g;f+=1)if(b[f].indexOf(":")>0){if(c=b[f].split(":"),d=c[0].trim(),e=c[1].trim(),e=e.replace(/@\/\//,"://"),void 0!==a.style[d])try{a.style[d]=e}catch(a){console.log("Not valid css value :",e)}}else console.log("cg.setStyles >> styles is not pair"),console.log(b)}return a},createElement:function(a,b){var c=document.body||document.getElementsByTagName("body")[0],d=!1,e=document.createElement(a.type||"div");a=a||{},b=b||c;for(var f in a)switch(f){case"type":case"insert":case"insertIndex":break;case"styles":cg.setStyles(e,a[f]);break;case"oncomplete":case"oncreate":"function"==typeof a[f]&&a[f].call(e);break;default:e[f]=a[f]}return a.hasOwnProperty("insert")?"before"===a.insert&&(b.parentNode.insertBefore(e,b),d=!0):a.hasOwnProperty("insertIndex")&&"number"===cg.getTypeOf(a.insertIndex)&&(b.insertBefore(e,b.childNodes[a.insertIndex]),d=!0),d||b.appendChild(e),e},setOpacity:function(a,b){return void 0===a.style.opacity?a.style.filter="alpha(opacity="+b+")":a.style.opacity=b/100,!0},getOpacity:function(a){var b=parseFloat(a.style.opacity);return isNaN(b)?""===a.style.filter?0:parseInt(a.style.filter.substring(a.style.filter.indexOf("opacity=")+8,a.style.filter.length-1)):100*b},getBrowserSize:function(){var a=0,b=0;return"number"==typeof window.scrollWidth?(a=window.scrollWidth,b=window.scrollHeight):document.body&&(document.body.scrollWidth||document.body.scrollHeight)?(a=document.body.scrollWidth,b=document.body.scrollHeight):document.documentElement&&(document.documentElement.scrollWidth||document.documentElement.scrollHeight)&&(a=document.documentElement.scrollWidth,b=document.documentElement.scrollHeight),{width:a,height:b}},getWindowSize:function(){return{width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}},getScreenSize:function(){return{width:window.screen.width,height:window.screen.height}},getScrollXY:function(){var a=0,b=0;return"number"==typeof window.pageYOffset?(a=window.pageXOffset,b=window.pageYOffset):document.body&&(document.body.scrollLeft||document.body.scrollTop)?(a=document.body.scrollLeft,b=document.body.scrollTop):document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)&&(a=document.documentElement.scrollLeft,b=document.documentElement.scrollTop),{left:a,top:b}},getTypeOf:function(a){return void 0===a||null===a||""===a?a:Date.parse(a)?"date":!isNaN(parseFloat(a))&&isFinite(a)?"number":/true|false/.test(a.toLowerCase())?"boolean":"string"},addEvent:function(a,b,c,d){return window.addEventListener?a.addEventListener(b,c,!!d):window.attachEvent?a.attachEvent("on"+b,c):a["on"+b]=c,!0},onload:function(a,b){return this.addEvent(b||window,"load",a)},disableSelection:function(a){return void 0!==a.onselectstart?a.onselectstart=function(){return!1}:void 0!==a.style.MozUserSelect&&(a.style.MozUserSelect="none"),a.ondragstart=function(){return!1},!0},dynamicSort:function(a,b,c){return function(d,e){switch(c){case"date":d=Date.parse(d[a]),e=Date.parse(e[a]);break;case"number":d=parseInt(d[a],10),e=parseInt(e[a],10);break;default:d=d[a],e=e[a]}return"desc"===b?d>e?-1:d<e?1:0:d<e?-1:d>e?1:0}},findNumberInString:function(a,b){var f,c=[],d="",e=!1;if(b=b||0,void 0!==a)for(var g=0,h=a.length-1;g<=h;g+=1)f=a.charAt(g),isNaN(f)?(e&&(c.push(d),d=""),e=!1):(d+=f,e=!0,g===h&&(c.push(d),d=""));return c.length>0?(-1===b&&(b=c.length-1),parseInt(c[b])):null},stopEvent:function(a){"function"==typeof a.stopPropagation&&a.stopPropagation(),void 0!==a.cancelBubble&&(a.cancelBubble=!0),"function"==typeof a.preventDefault&&a.preventDefault(),void 0!==a.returnVlaue&&(a.returnValue=!1)},findHighestZIndex:function(a,b){a=a||document,b=b||"div";for(var e,c=a.getElementsByTagName(b),d=0,f=0,g=c.length;f<g;f+=1)(e="object"==typeof document.defaultView?parseInt(document.defaultView.getComputedStyle(c[f],null).getPropertyValue("z-index")):parseInt(c[f].style.zIndex))>d&&(d=e);return d},getUniqueID:function(){return(new Date).getTime()},rgbToHex:function(a){var b=function(a){return("0"+parseInt(a).toString(16)).slice(-2)};return a=a.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/),"#"+b(a[1])+b(a[2])+b(a[3])},isHexCode:function(a){return!!/^([A-F0-9]{6})$/i.test(a.replace(/#/,""))},createLoading:function(a,b){var c=a.offsetWidth,d=a.offsetHeight;return cg.createElement({styles:"position: absolute; display : block; width : 32px; height : 32px; marginLeft: "+(c-42)/2+"px; marginTop: "+(d-42)/2+"px; backgroundColor : #fff; border: 5px solid #fff; borderRadius : 8px; MozBorderRadius : 8px; WebkitBorderRadius : 8px;",innerHTML:"<img src="+cg.namespace+"/images/loading.gif />"},a)},getOffsetLeft:function(a){for(var b=0;a.offsetParent;)b+=a.offsetLeft,a=a.offsetParent;return b},getOffsetTop:function(a){for(var b=0;a.offsetParent;)b+=a.offsetTop,a=a.offsetParent;return b},getScrollLeft:function(a){var b=document.documentElement?document.documentElement.scrollLeft:document.body.scrollLeft;return this.getOffsetLeft(a)-b},getScrollTop:function(a){var b=document.documentElement?document.documentElement.scrollTop:document.body.scrollTop;return this.getOffsetTop(a)-b},fireEvent:function(a,b){if("fireEvent"in a)a.fireEvent("on"+b);else{var c=document.createEvent("HTMLEvents");c.initEvent(b,!1,!0),a.dispatchEvent(c)}},getQuery:function(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b=new RegExp("[\\?&]"+a+"=([^&#]*)"),c=b.exec(location.search);return null==c?"":decodeURIComponent(c[1].replace(/\+/g," "))},getQueryFromScript:function(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b=new RegExp("[\\?&]"+a+"=([^&#]*)"),c=document.getElementsByTagName("script"),d=c[c.length-1].src;return results=b.exec(d),null==results?"":decodeURIComponent(results[1].replace(/\+/g," "))},isImageLoaded:function(a){return!!a.complete&&(void 0===a.naturalWi
1dth||0!==a.naturalWidth)},stripHtml:function(a){var b=document.createElement("DIV");return b.innerHTML=a,b.textContent||b.innerText},displayError:function(a){var b="";for(var c in a)b+="property: "+c+" value: ["+a[c]+"]\n";b+="toString():  value: ["+a.toString()+"]",console.log(b)},setCssTransition:function(a){if(a.element&&a.property&&"undefined"!==a.max){a.callback=a.callback||function(){},a.frame=parseInt(a.frame)||25,a.time=parseFloat(a.time)||.25,a.max=parseInt(a.max),void 0!==a.min&&(a.element.style[a.property]=a.min+"px");var b=parseInt(a.element.style[a.property]),c=b>a.max?"decrease":"increase",d=Math.abs(b-a.max),e=parseInt(d/a.frame),f=parseInt(1e3*a.time/a.frame),g=function(){var k,d=(new Date).getTime(),j=d-h-f;j=j<0?0:j,h=d,k=f-j,b=parseInt(a.element.style[a.property]),"increase"===c?b<a.max?(a.max-b<e?a.element.style[a.property]=a.max+"px":a.element.style[a.property]=b+e+"px",i=setTimeout(g,k)):a.callback.call(a.element):b>a.max?(b-a.max<e?a.element.style[a.property]=a.max+"px":a.element.style[a.property]=b-e+"px",i=setTimeout(g,k)):a.callback.call(a.element)},h=(new Date).getTime(),i=setTimeout(g,f)}}};cg.ajax={request:function(url,callback,return_format){var req=new XMLHttpRequest,data;return req.open("GET",url,!0),req.onreadystatechange=function(){if(4===req.readyState&&200===req.status){"object"!=typeof JSON&&(JSON={});try{data=1===return_format?"function"==typeof JSON.parse?JSON.parse(req.responseText):eval("("+req.responseText+")"):req.responseText}catch(a){console.log(a)}"function"==typeof callback&&callback.call(void 0,data)}},req.send(null),!1}},cg.styles={"metal-silver":{DataGrid_header_cell:"background:url("+cg.namespace+"images/table_header_gradation.png) #fff repeat-x bottom; color:#000; fontFamily:arial; fontSize:11px; border: 1px solid #ddd;",DataGrid_default_font:"fontSize:12px; fontFamily:arial"}},cg.apps.DataGrid=function(){var a=0;return function(b,c,d){a+=1;var g,h,i,j,k,l,m,n,o,p,q,r,s,v,x,B,e=a+"_DataGrid",f=null,t=8,u=21,w=5,y=null,z=0,A=0,C=80,D=cg.getScreenSize().width,E=[],F=[],G="asc",H=!1,I=cg.styles[cg.config.theme],J=function(){c=c||{},void 0===d&&(d=!0),void 0===c.header&&(c.header=[]),h=0,v=b[0];for(g in v)cg.isEmpty(c.header[h])&&(c.header[h]={}),cg.isEmpty(c.header[h].name)&&(c.header[h].name=g),cg.isEmpty(c.header[h].type)&&(c.header[h].type=cg.getTypeOf(v[g])),cg.isEmpty(c.header[h].label)&&(c.header[h].label=g.toUpperCase()),!0===c.header[h].selected&&(H=!0),E[h]=C,F[h]=D,h++;if(H||(c.header[0].selected=!0),cg.isEmpty(b))console.log("cg.tools.dataGrid() >> data is empty!");else{if(f=document.getElementById(e),f||(f=document.createElement("table"),f.id=e,f.cellPadding=0,f.cellSpacing=0),d){for(m=f.insertRow(0),m.id=e+"_header",h=0,k=c.header.length-1;h<=k;h+=1)n=m.insertCell(h),n.id=e+"_header_"+h,cg.setStyles(n,I.DataGrid_header_cell),cg.setStyles(n,"whiteSpace:nowrap; minWidth:"+E[h]+"px; cursor:pointer;"),h>0&&cg.setStyles(n,"borderLeft: 0px;"),c.header[h].hasOwnProperty("styles")&&cg.setStyles(n,c.header[h].styles),n.style.minWidth&&(E[h]=parseInt(n.style.minWidth)),n.style.maxWidth&&(F[h]=parseInt(n.style.maxWidth)),n.onmouseover=function(){cg.setStyles(this,"backgroundColor:#eee;")},n.onmouseout=function(){cg.setStyles(this,"backgroundColor:#fff;")},c.header[h].sortable?n.onmousedown=function(a){P(a)}:cg.setStyles(n,"cursor:default;"),n.style.fontSize&&(u=parseInt(n.style.fontSize)+2*w),s=e+"_header_"+h+"_resizer",r=cg.createElement({id:s,styles:"width:"+t+"px; height:"+u+"px; whiteSpace:nowrap; cssFloat:right; styleFloat:right;"},n),c.header[h].resizeable&&(cg.setStyles(r,"cursor:col-resize;"),cg.addEvent(r,"mousedown",L),cg.addEvent(r,"mousedown",cg.stopEvent),cg.addEvent(r,"mouseover",cg.stopEvent),cg.addEvent(document.body,"mouseup",N),cg.addEvent(document.body,"mousemove",M)),h>0?(s=e+"_header_"+(h-1)+"_resizer",r=cg.createElement({id:s,styles:"width:"+t+"px; height:"+u+"px; whiteSpace:nowrap; cssFloat:left; styleFloat:left;"},n),c.header[h].resizeable&&(cg.setStyles(r,"cursor:col-resize;"),cg.addEvent(r,"mousedown",L),cg.addEvent(r,"mousedown",cg.stopEvent),cg.addEvent(r,"mouseover",cg.stopEvent),cg.addEvent(document.body,"mouseup",N),cg.addEvent(document.body,"mousemove",M))):r=cg.createElement({id:s,styles:"width:"+t+"px; height:"+u+"px; whiteSpace:nowrap; cssFloat:left; styleFloat:left;"},n),x=cg.createElement({id:n.id+"_inner",styles:"marginTop:"+w+"px",innerHTML:c.header[h].label},n);!function(){var a,b,d;b=f.rows[0];for(var g=0,h=b.cells.length-1;g<=h;g+=1)d=b.cells[g],a=document.createElement("img"),a.id=e+"_sortIcon_"+g,a.src=cg.namespace+"images/"+G+".png",cg.setStyles(a,"cssFloat:right; styleFloat:right; marginTop:-"+(u-2*w)+"px; display:none;"),d.appendChild(a),c.header[g].selected&&c.header[g].sortable&&cg.setStyles(a,"display:block;")}()}K()}},K=function(){for(h=0,k=b.length-1;h<=k;h+=1){if(l=b[h],m=f.insertRow(-1),p=e+"_row_"+h,m.id=p,cg.setStyles(m,I.DataGrid_default_font),c.hasOwnProperty("row"))for(j in c.row)switch(j){case"effect":c.row.effect.call(m,h);break;case"styles":cg.setStyles(m,c.row.styles);break;default:m[j]=c.row[j]}i=0;for(g in l){if(n=m.insertCell(i),q=p+"_cell_"+i,n.id=q,o=cg.createElement({id:q+"_inner",styles:"whiteSpace:nowrap; overflow:hidden"},n),c.hasOwnProperty("cell")){for(j in c.cell[i])switch(j){case"filter":o.innerHTML=c.cell[i].filter.call(o,h,l[g]);break;case"effect":c.cell[i].effect.call(o,h);break;case"styles":cg.setStyles(o,c.cell[i].styles);break;default:n[j]=c.cell[j]}c.cell[i].hasOwnProperty("filter")||(o.innerHTML=l[g])}else o.innerHTML=l[g];d&&cg.setStyles(o,"width:"+parseInt(f.rows[0].cells[i].style.width)+"px"),i++}}},L=function(a){var b;a||(a=window.event),b=a.target?a.target:a.srcElement,z=A=a.clientX,y=void 0===b.id?this:document.getElementById(b.id),B=cg.findNumberInString(y.id,-1)}
1,M=function(a){if(a||(a=window.event),null!=y){A=a.clientX,y.parentNode.style.width=O()+"px";for(var b=1,c=f.rows.length-1;b<=c;b++)f.rows[b].cells[B].childNodes[0].style.width=y.parentNode.style.width;z=A=a.clientX}},N=function(){null!=y&&(y.parentNode.style.width=O()+"px",y=null)},O=function(){var a=E[B];return null!=y&&(a=parseInt(y.parentNode.style.width),isNaN(a)&&(a=y.parentNode.scrollWidth),a+=A-z,a<E[B]&&(a=E[B]),a>F[B]&&(a=F[B])),a},P=function(a){a||(a=window.event);var e,f,g,d=a.target?a.target:a.srcElement;"number"==typeof(e=cg.findNumberInString(d.id,1))&&(G=e===R()&&"asc"===G?"desc":"asc",f=c.header[e].name,g=c.header[e].type,b.sort(cg.dynamicSort(f,G,g)),Q(),K(),S(e))},Q=function(){for(var a=0,b=f.rows.length-1;a<b;a++)f.deleteRow(1)},R=function(){var a,b,c=null;b=f.rows[0];for(var d=0,g=b.cells.length-1;d<=g;d+=1)a=document.getElementById(e+"_sortIcon_"+d),"block"===a.style.display&&(c=d);return c},S=function(a){var b,c;c=f.rows[0];for(var d=0,g=c.cells.length-1;d<=g;d+=1)b=document.getElementById(e+"_sortIcon_"+d),d===a?(b.src=cg.namespace+"images/"+G+".png",cg.setStyles(b,"display:block;")):cg.setStyles(b,"display:none;")};J(),cg.disableSelection(f),this.container=f}}(),cg.animate.makeDraggable=function(a){var c,d,e,f,g,h,i,b=null,j=function(e){return g=parseInt(a.style.top),h=parseInt(a.style.left),c=e.clientX,d=e.clientY,b=e.target,!0},k=function(c){c||(c=window.event),b===a&&(e=c.clientX,f=c.clientY,a.style.top=o()+"px",a.style.left=n()+"px")},l=function(b){b.target===a?this.style.cursor="move":this.style.cursor="default",cg.stopEvent(b)},m=function(){null!==b&&(b=null)},n=function(){var a=h;return null!==b&&(a+=e-c),a},o=function(){var a=g;return null!==b&&(a+=f-d),a};return g=parseInt(parseInt(a.style.top)),h=parseInt(a.style.left),g=isNaN(g)?0:g,h=isNaN(h)?0:h,i=parseInt(a.style.zIndex),i=isNaN(i)?cg.findHighestZIndex()+1:i,cg.setStyles(a,"position:absolute; zIndex:"+i+"; top:"+g+"px; left:"+h+"px;"),cg.addEvent(a,"mousedown",j),cg.addEvent(a,"click",cg.stopEvent),cg.addEvent(a,"mouseover",l),cg.addEvent(document.body,"mousemove",k),cg.addEvent(document.body,"mouseup",m),a.setAttribute("unselectable","on"),a},cg.animate.Move=function(a,b){b=b||{},b.direction=b.direction||"right",b.distance=b.distance||0,b.movement=b.movement||10,b.speed=b.speed||1,b.start=b.start||!1,b.fade=b.fade||!1,b.callback=b.callback||function(){},"chrome"!==cg.browser.name&&"safari"!==cg.browser.name||(b.movement=2*b.movement),""===a.style.position&&(a.style.position="absolute"),isNaN(parseInt(a.style.top))&&(a.style.top="0px"),isNaN(parseInt(a.style.left))&&(a.style.left="0px");var c=!1,e=function(){var f,h,i,j,k,l,d=parseInt(a.style.left),e=parseInt(a.style.top);b.fade&&(l=parseInt(b.distance/2),b.movement=1),c=setInterval(function(){switch(b.direction){case"top":h="top",i=parseInt(a.style[h]),j=e-b.distance,k=i>j;break;case"bottom":h="top",i=parseInt(a.style[h]),j=e+b.distance,k=i<j;break;case"left":h="left",i=parseInt(a.style[h]),j=d-b.distance,k=i>j;break;default:h="left",i=parseInt(a.style[h]),j=d+b.distance,k=i<j}k?(f=j-i,f<0&&(f=-f),f<b.movement&&(b.movement=f),"top"===b.direction||"left"===b.direction?a.style[h]=parseInt(a.style[h])-b.movement+"px":a.style[h]=parseInt(a.style[h])+b.movement+"px",b.fade&&(l<f?b.movement++:b.movement>1&&b.movement--)):g()},b.speed)},f=function(a){a&&i(a),c&&clearInterval(c),e()},g=function(){h(),b.callback.call(b)},h=function(){clearInterval(c),c=!1},i=function(a){void 0!==a.direction&&(b.direction=a.direction),void 0!==a.distance&&(b.distance=a.distance),void 0!==a.movement&&(b.movement=a.movement),void 0!==a.speed&&(b.speed=a.speed),void 0!==a.fade&&(b.fade=a.fade),void 0!==a.callback&&(b.callback=a.callback)};b.start&&f(),this.start=function(a){f(a)},this.stop=function(){g()},this.pause=function(){h()}
1,this.getStatus=function(){return!1}},cg.animate.Fade=function(a,b){b=b||{},b.direction=b.direction||"out",b.min=b.min||0,b.max=b.max||100,b.step=b.step||10,b.speed=b.speed||25,b.start=b.start||!1,b.callback=b.callback||function(){},"safari"===cg.browser.name&&(b.step=4*b.step);var c=!1,d=!1,e=function(){c=setInterval(function(){var c=b.step,d=cg.getOpacity(a);d>=b.max&&h(),b.max-d<b.step&&(c=b.max-d),cg.setOpacity(a,d+c)},b.speed)},f=function(){c=setInterval(function(){var c=b.step,d=cg.getOpacity(a);d<=b.min&&h(),d<b.step&&(c=d),cg.setOpacity(a,d-c)},b.speed)},g=function(a){d&&i(),a&&j(a),"in"===b.direction?e():f(),d=!0},h=function(){i(),b.callback.call(b)},i=function(){clearInterval(c),c=!1,d=!1},j=function(a){void 0!==a.direction&&(b.direction=a.direction),void 0!==a.min&&(b.min=a.min),void 0!==a.max&&(b.max=a.max),void 0!==a.step&&(b.step=a.step),void 0!==a.speed&&(b.speed=a.speed),void 0!==a.callback&&(b.callback=a.callback)};b.start&&g(),this.start=function(a){g(a)},this.stop=function(){h()},this.pause=function(){i()}
1,this.getStatus=function(){return d}},cg.tools.StopWatch=function(a,b){var g,h,j,c=0,d=0,e=0,f=0,i=this,k="object"==typeof a,l=function(){j=b||"#H# : #M# : #S# : #MS#",j=j.replace(/#H#/g,m(f)),j=j.replace(/#M#/g,m(e)),j=j.replace(/#S#/g,m(d)),j=j.replace(/#MS#/g,m(c)),a.innerHTML=j},m=function(a){return a<10?"0"+a.toString():a};return(this.run=function(){h=!0,c++,c>=100&&(c=0,d++),d>=60&&(d=0,e++),e>=60&&(e=0,f++),f>=24&&(f=0,day++),k&&l(),g=setTimeout(function(){i.run()},10)})(),{getTime:function(){return{hour:f,minute:e,second:d,million_second:c}},pause:function(){window.clearTimeout(g),h=!1},reset:function(){h=!1,window.clearTimeout(g),c=d=e=f=day=month=year=0,k&&l()},start:function(){h||i.run()},restart:function(){this.reset(),this.start()},getStatus:function(){return h}}},cg.apps.Slider=function(){var a=0;return function(b,c){b=b||[],c=c||{},c.type="scroller"===c.type?"scroller":"slider",c.autoRotate=c.autoRotate||!1,c.width=c.width||300,c.height=c.height||300,c.direction=c.direction||("scroller"===c.type?"top":"horizontal"),c.delay=c.delay||7,c.speed=c.speed?function(a){switch(a){case 10:return 1;case 9:return 2;case 8:return 4;case 7:return 6;case 6:return 8;case 5:return 10;case 4:return 15;case 3:return 20;case 2:return 30;case 1:return 50;default:return 10}}(c.speed):5,c.movement=c.movement||20,c.padding=c.padding||0,c.button=c.button||{},c.button.show=!1!==c.button.show,c.button.previous=c.button.previous||{},c.button.previous.width=c.button.previous.width||("vertical"===c.direction?50:25),c.button.previous.height=c.button.previous.height||("vertical"===c.direction?25:50),c.button.previous.src=c.button.previous.src||("vertical"===c.direction?cg.namespace+"images/slider_button_top.png":cg.namespace+"images/slider_button_left.png"),c.button.next=c.button.next||{},c.button.next.width=c.button.next.width||("vertical"===c.direction?50:25),c.button.next.height=c.button.next.height||("vertical"===c.direction?25:50),c.button.next.src=c.button.next.src||("vertical"===c.direction?cg.namespace+"images/slider_button_bottom.png":cg.namespace+"images/slider_button_right.png"),c.indicator=c.indicator||{},c.indicator.show=!1!==c.indicator.show,c.indicator.on=c.indicator.on||{},c.indicator.on.src=c.indicator.on.src||cg.namespace+"images/indicator_on.png",c.indicator.off=c.indicator.off||{},c.indicator.off.src=c.indicator.off.src||cg.namespace+"images/indicator_off.png",c.indicator.width=c.indicator.width||10,c.indicator.height=c.indicator.height||10,c.indicator.position=c.indicator.position||("vertical"===c.direction?"bottom right":"center"),a+=1;var e,f,h,i,j,k,l,m,n,o,p,q,t,u,x,y,z,C,D,d=a+"_cg_slider",r=null,s=1,v=this,w=new cg.tools.StopWatch,A=!1,B=!1,E=function(a){var c;b=[];for(var d=0;d<a.childNodes.length;d++)"LI"===a.childNodes[d].nodeName&&(c=a.childNodes[d],b.push(c.innerHTML))},F=function(){if(void 0===y)switch(c.direction){case"left":case"horizontal":y="left",z=c.width;break;case"right":y="right",z=c.width;break;case"top":case"vertical":y="top",z=c.height;break;case"bottom":y="bottom",z=c.height;break;default:y="top",z=c.height}switch(1===s?(t=i,u=j):(t=j,u=i),y){case"left":t.style.top="0px",t.style.left="0px",u.style.top="0px",u.style.left=c.width+"px";break;case"right":t.style.top="0px",t.style.left="0px",u.style.top="0px",u.style.left="-"+c.width+"px";break;case"top":t.style.top="0px",t.style.left="0px",u.style.top=c.height+"px",u.style.left="0px";break;case"bottom":t.style.top="0px",t.style.left="0px",u.style.top="-"+c.height+"px",u.style.left="0px"}},G=function(a){if(a)for(;a.parentNode;){if(a.id===d)return!0;if(a=a.parentNode,void 0===a.parentNode)break}return!1},H=function(a){c.button.show&&R(),A||(w.pause(),x=w.getTime().second,window.clearTimeout(k),A=!0)},I=function(a){if(!a)var a=window.event;var b=a.relatedTarget?a.relatedTarget:a.toElement;G(b)||(c.button.show&&S(),c.autoRotate&&(k=setTimeout(function(){v.rotate()},1e3*(c.delay-x)),A=!1))},J=function(){u.innerHTML=b[r]},K=function(){for(var a=C.getElementsByTagName("img"),b=0,d=a.length;b<d;b++)a[b].src=b===r?c.indicator.on.src:c.indicator.off.src},L=function(){"slider"===c.type&&(n.style.display=r<=0?"none":"block",o.style.display=r>=b.length-1?"none":"block")},M=function(){r=null===r?0:"vertical"===c.direction||"horizontal"===c.direction?"left"===y||"top"===y?r>=b.length-1?0:r+1:r<=0?b.length-1:r-1:r>=b.length-1?0:r+1},N=function(a,d){m.getStatus()||a>=0&&a<b.length&&a!=r&&(Math.abs(r-a)>
11&&"slider"===c.type?Q(a-r):(void 0===d&&(d="scroller"===c.type?c.direction:"vertical"===c.direction?a>r?"top":"bottom":a>r?"left":"right"),v.rotate(d,a)))},O=function(){"slider"===c.type?N(r-1,"vertical"===c.direction?"bottom":"right"):m.getStatus()||v.rotate("vertical"===c.direction?"bottom":"right")},P=function(){"slider"===c.type?N(r+1,"vertical"===c.direction?"top":"left"):m.getStatus()||v.rotate("vertical"===c.direction?"top":"left")},Q=function(a){var b=Math.abs(a),d=a>=0?a-1:a+1;k&&window.clearTimeout(k),y="vertical"===c.direction?a>=0?"top":"bottom":a>=0?"left":"right",r=a>=0?r+1:r-1,c.indicator.show&&K(),c.button.show&&L(),F(),J(),l.start({direction:y,distance:z,movement:c.movement*b,speed:c.speed,fade:!1}),m.start({direction:y,distance:z,movement:c.movement*b,speed:c.speed,fade:!1,callback:function(){b>1&&Q(d)}}),s>1?s=1:s++},R=function(){void 0!==p&&(p.start({direction:"in"}),q.start({direction:"in"}))},S=function(){void 0!==p&&(p.start({direction:"out"}),q.start({direction:"out"}))};if(c.id?(e=document.getElementById(c.id),"UL"!==e.nodeName&&"OL"!==e.nodeName||(E(e),f=e.parentNode,f.removeChild(e),e=cg.createElement({id:c.id},f))):e=document.body||document.getElementsByTagName("body")[0],"DIV"===e.nodeName){for(var T="",U=0,V=b.length;U<V;U++)T+=b[U];cg.createElement({id:"preload_"+a,styles:"display: none;",innerHTML:T},e)}if(h=cg.createElement({id:d,styles:"position:relative; overflow:hidden; width:"+c.width+"px; height:"+c.height+"px;"},e),i=cg.createElement({id:d+"_page1",styles:"position:absolute; overflow:hidden; width:"+(c.width-2*c.padding)+"px; height:"+(c.height-2*c.padding)+"px; marginLeft:"+c.padding+"px; marginTop:"+c.padding+"px;"},h),j=cg.createElement({id:d+"_page2",styles:"position:absolute; overflow:hidden; width:"+(c.width-2*c.padding)+"px; height:"+(c.height-2*c.padding)+"px; marginLeft:"+c.padding+"px; marginTop:"+c.padding+"px;"},h),cg.addEvent(h,"mouseover",H),cg.addEvent(h,"mouseout",I),t=i,u=j,l=new cg.animate.Move(t),m=new cg.animate.Move(u),c.indicator.show){switch(C=cg.createElement({id:d+"_indicators",styles:"position:absolute; zIndex: 1;"},h),c.indicator.position){case"bottom right":cg.setStyles(C,"width:"+c.width+"px; bottom:5px; textAlign:right;");break;default:cg.setStyles(C,"width:"+c.width+"px; bottom:5px; textAlign:center;")}for(var U=0,V=b.length;U<V;U++)D=document.createElement("img"),D.id=d+"_indicator_"+U,D.src=c.indicator.off.src,cg.setStyles(D,"width:"+c.indicator.width+"px; height:"+c.indicator.height+"px; cursor:pointer;"),0===U?cg.setStyles(D,"margin: 0px 1px 0px 5px;"):U===V-1?cg.setStyles(D,"margin: 0px 5px 0px 1px;"):cg.setStyles(D,"margin: 0px 1px 0px 1px;"),D.onclick=function(a){a||(a=window.event);var b=a.target?a.target:a.srcElement,c=cg.findNumberInString(b.id,-1);N(c)},C.appendChild(D)}"vertical"!==c.direction&&"horizontal"!==c.direction||!c.button.show||(n=cg.createElement({id:d+"_navi_prev",styles:"position:absolute; zIndex: 2; background: url('"+c.button.previous.src+"') no-repeat center center; cursor: pointer"},h),o=cg.createElement({id:d+"_navi_next",styles:"position:absolute; zIndex: 2; background: url('"+c.button.next.src+"') no-repeat center center; cursor: pointer"},h),cg.setOpacity(n,0),cg.setOpacity(o,0),p=new cg.animate.Fade(n),q=new cg.animate.Fade(o),cg.addEvent(n,"click",O),cg.addEvent(o,"click",P),"vertical"===c.direction?(cg.setStyles(n,"width: "+c.button.previous.width+"px; height: "+c.button.previous.height+"px; left: "+(c.width-c.button.previous.width)/2+"px; top: 0px;"),cg.setStyles(o,"width: "+c.button.next.width+"px; height: "+c.button.next.height+"px; left: "+(c.width-c.button.previous.width)/2+"px; top: "+(c.height-c.button.next.height)+"px;")):(cg.setStyles(n,"width: "+c.button.previous.width+"px; height: "+c.button.previous.height+"px; left: 0px; top: "+(c.height-c.button.previous.height)/2+"px;"),cg.setStyles(o,"width: "+c.button.next.width+"px; height: "+c.button.next.height+"px; left: "+(c.width-c.button.next.width)+"px; top: "+(c.height-c.button.next.height)/2+"px;"))),(this.rotate=function(a,d){k&&window.clearTimeout(k),a&&(y=a),"number"==typeof d?r=d:M(),c.indicator.show&&K(),c.button.show&&L(),F(),J(),l.start({direction:y,distance:z,movement:c.movement,speed:c.speed,fade:!0}),m.start({direction:y,distance:z,movement:c.movement,speed:c.speed,fade:!0,callback:function(){c.autoRotate&&b.length>1&&(a||(k=setTimeout(function(){v.rotate()},1e3*c.delay)))}}),B||(B=!0,l.stop(),m.stop(),t.style.left=parseInt(t.style.left)-parseInt(t.style.left)+"px",u.style.left=parseInt(u.style.left)-parseInt(u.style.left)+"px"),w.restart(),s>1?s=1:s++})(),this.container=h,this.goto=N,this.previous=O,this.next=P}}(),cg.apps.ImageRotator=function(){var a=0;
1return function(b,c){b=b||[],c=c||{},c.autoRotate=!1!==c.autoRotate,c.start=!1!==c.start,c.width=c.width||500,c.height=c.height||500,c.delay=c.delay||5,c.speed=c.speed?function(a){switch(a){case 10:return 1;case 9:return 10;case 8:return 20;case 7:return 30;case 6:return 40;case 5:return 50;case 4:return 60;case 3:return 70;case 2:return 80;case 1:return 90;default:return 50}}(c.speed):50,c.step=c.step||10,c.background_color=c.background_color||"",c.indicator=c.indicator||{},c.indicator.show=!1!==c.indicator.show,c.indicator.color=c.indicator.color||{},c.indicator.color.out=c.indicator.color.out||"#999999",c.indicator.color.over=c.indicator.color.over||"#ffffff",c.indicator.color.select=c.indicator.color.select||"#ffcc99",c.indicator.width=c.indicator.width||22,c.indicator.height=c.indicator.height||6,c.indicator.position=c.indicator.position||"bottom right",c.autoResize=c.autoResize||!1,c.minWidth=c.minWidth||0,a+=1;var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,B,E,d=a+"_cg_imageRotator",e=[],f=[],g=[],h=1,y=0,z=-1,A=this,C=new Image,D=1,F=!1,G=0,H=function(a){var c;b=[];for(var d=0;d<a.childNodes.length;d++)if("LI"===a.childNodes[d].nodeName){c=a.childNodes[d];for(var e=0;e<c.childNodes.length;e++)switch(c.childNodes[e].nodeName){case"IMG":b.push({type:"image",priority:e,src:c.childNodes[e].getAttribute("src")});break;case"DIV":b.push({type:"layer",priority:e,innerHTML:c.innerHTML})}}},I=function(){z=z>=e.length-1?0:z+1},J=function(){for(var a,b=0,f=e.length;b<f;b++)a=document.getElementById(d+"_indicator_"+b),a.style.backgroundColor=b===z?c.indicator.color.select:c.indicator.color.out},K=function(a){p.getStatus()||a!==z&&A.rotate(a)},L=function(){p.getStatus()||this.rotate(z<=0?e.length-1:z-1)},M=function(){p.getStatus()||this.rotate(z>=e.length-1?0:z+1)},O=function(){D<E&&(C.src=e[D].src,D++)},P=function(){var h,a=i.offsetWidth,b=parseInt(k.style.width),d=parseInt(k.style.height),e=0;if(a<=c.width){e=a/b,b=Math.round(b*e),d=Math.round(d*e),k.style.width=a+"px",l.style.width=a+"px",q.style.width=a+"px",r.style.width=a+"px",k.style.height=d+"px",l.style.height=d+"px",q.style.height=d+"px",r.style.height=d+"px";for(var j=0,m=f.length;j<m;j++){h=g[j].getElementsByTagName("IMG");for(var n=0,o=h.length;n<o;n++)h[n].style.width=a+"px",h[n].style.height=d+"px"}}},Q=function(){var a=document.body.offsetWidth;parseInt(k.style.width);a<=c.width&&(k.style.width=a+"px")},R=function(){i.offsetWidth>c.minWidth&&P()};c.id?(i=document.getElementById(c.id),"UL"!==i.nodeName&&"OL"!==i.nodeName||(H(i),j=i.parentNode,j.removeChild(i),i=cg.createElement({id:c.id},j))):i=document.body||document.getElementsByTagName("body")[0];for(var T=0,U=b.length;T<U;T++)"layer"===b[T].type&&f.push(b[T]),"image"===b[T].type&&(e.push(b[T]),G++);E=e.length,f.sort(cg.dynamicSort("priority","asc","number")),e.sort(cg.dynamicSort("priority","asc","number")),k=cg.createElement({id:d,styles:"position:relative; overflow:hidden; width:"+c.width+"px; height:"+c.height+"px; text-align : left;"},i),l=cg.createElement({styles:"position:relative; width:"+c.width+"px; height:"+c.height+"px; text-align : left;"},k),""!==c.background_color&&cg.setStyles(k,"backgroundColor : "+c.background_color),m=cg.createElement({id:d+"_page1",styles:"position:absolute; overflow:hidden; zIndex:"+ ++h+"; width:100%; width:100%; textAlign:left;"},l),q=document.createElement("img"),q.src=cg.namespace+"images/empty.png",q.width=c.width,q.height=c.height,q.id=m.id+"_img",m.appendChild(q),o=new cg.animate.Fade(m),n=cg.createElement({id:d+"_page2",styles:"position:absolute; overflow:hidden; zIndex:"+ ++h+"; width:100%; width:100%; textAlign:left;"},l),r=document.createElement("img"),r.src=cg.namespace+"images/empty.png",r.width=c.width,r.height=c.height,r.id=n.id+"_img",n.appendChild(r),p=new cg.animate.Fade(n);for(var T=0,U=f.length;T<U;T++)g[T]=cg.createElement({styles:"position:absolute;  zIndex:"+ ++h+"; left:"+(f[T].left||0)+"px; top:"+(f[T].top||0)+"px; textAlign:left;"},l),f[T].src?f[T].link?(s=cg.createElement({type:"a",href:f[T].link,target:f[T].target},g[T]),cg.createElement({type:"img",src:f[T].src,border:0},s)):cg.createElement({type:"img",src:f[T].src},g[T]):f[T].innerHTML&&(g[T].innerHTML=f[T].innerHTML);if(c.indicator.show){switch(t=cg.createElement({id:d+"_indicators",styles:"position:absolute; zIndex: "+ ++h+"; width:100%; bottom:15px;"},k),c.indicator.position){case"bottom right":t.align="right";break;default:t.align="center"}v=cg.createElement({type:"table",cellPadding:0,cellSpacing:0},t),w=v.insertRow(0);for(var T=0,U=e.length;T<U;T++)x=w.insertCell(T),u=cg.createElement({id:d+"_indicator_"+T,styles:"width:"+c.indicator.width+"px; height:"+c.indicator.height+"px; fontSize:1px; cursor:pointer; backgroundColor: "+c.indicator.color.out+"; margin: 0 "+(T===U-1?25:5)+"px 0 0;"},x),u.onclick=function(a){a||(a=window.event);var b=a.target?a.target:a.srcElement,c=cg.findNumberInString(b.id,-1);K(c)},u.onmouseover=function(){var a=this.style.backgroundColor;cg.isHexCode(a)||(a=cg.rgbToHex(a)),a===c.indicator.color.out&&(this.style.backgroundColor=c.indicator.color.over)},u.onmouseout=function(){var a=this.style.backgroundColor;cg.isHexCode(a)||(a=cg.rgbToHex(a)),a===c.indicator.color.over&&(this.style.backgroundColor=c.indicator.color.out)}}c.autoResize&&(3===c.autoResize?(cg.addEvent(window,"load",R),cg.addEvent(window,"resize",R)):2===c.autoResize?(cg.setStyles(l,"left : 50%; marginLeft : "+-Math.round(c.width/2)+"px;"),cg.addEvent(window,"load",Q),cg.addEvent(window,"resize",Q)):(cg.addEvent(window,"load",P),cg.addEvent(window,"resize",P))),(this.rotate=function(a){B&&window.clearTimeout(B),"number"===cg.getTypeOf(a)?z=parseInt(a):I(),c.indicator.show&&J(),1===y?(q.src=e[z].src,cg.setOpacity(m,0),cg.
1setOpacity(n,100)):(r.src=e[z].src,cg.setOpacity(m,100),cg.setOpacity(n,0)),O(),o.start({direction:1===y?"in":"out",speed:c.speed,step:c.step}),p.start({direction:1===y?"out":"in",speed:c.speed,step:c.step,callback:function(){c.autoRotate&&G>1&&(B=setTimeout(function(){A.rotate()},1e3*c.delay))}}),F||(F=!0,o.stop(),p.stop(),cg.setOpacity(m,100),cg.setOpacity(n,100)),y=0===y?1:0})(),this.container=k,this.goto=K,this.previous=L,this.next=M}}(),cg.apps.ZoomImage=function(){var a=0;return function(b){b=b||{},b.width=b.width||640,b.height=b.height||360,b.zoom_level=b.zoom_level||4,b.border=b.border||1,b.onLoad=b.onLoad||function(){},b.onZoomIn=b.onZoomIn||function(){},b.onZoomOut=b.onZoomOut||function(){},b.movement=b.movement||parseInt(b.width/5),a+=1;var c,d,e,g,h,i,f=b.zoom_level,p=(document.body||document.getElementsByTagName("body")[0],function(j){var k,l,m,n,j=j||window.event,o=cg.getScrollLeft(c),p=cg.getScrollTop(c),q=!1;e.style.width=b.width*f+"px",e.style.height=b.height*f+"px",e.setAttribute("usemap",b.usemap?"#"+b.usemap:"#cg_zoom_"+a),d.style.cursor="default",d.style.left=-(j.clientX-o)*f+b.width/2+"px",d.style.top=-(j.clientY-p)*f+b.height/2+"px",i.style.display="block",d.onclick=function(){},c.onmousedown=function(a){var a=a||window.event;a.target||a.srcElement;k=a.clientX,l=a.clientY,m=parseInt(d.style.left),n=parseInt(d.style.top),q=!0,c.style.cursor="move",d.style.cursor="move",cg.stopEvent(a)},c.onmouseup=function(){var a=cg.getOffsetLeft(d)-g,e=cg.getOffsetTop(d)-h,i=-(b.width*f-b.width),j=-(b.height*f-b.height);a>0&&(d.style.left="0px"),e>0&&(d.style.top="0px"),a<i&&(d.style.left=i+"px"),e<j&&(d.style.top=j+"px"),q=!1,c.style.cursor="default",d.style.cursor="default"},c.onmousemove=function(a){if(q){var a=a||window.event,b=m,c=n;b+=a.clientX-k,c+=a.clientY-l,d.style.left=b+"px",d.style.top=c+"px"}},c.onmouseout=function(){cg.fireEvent(c,"mouseup")},b.onZoomIn.call(b,d)}),q=function(){e.style.width=b.width+"px",e.style.height=b.height+"px",e.setAttribute("usemap",""),d.style.cursor="pointer",d.style.left="0px",d.style.top="0px",d.onclick=p,c.onmousedown=function(){},c.onmouseup=function(){},i.style.display="none",b.onZoomOut.call(b,d)},r=function(a){var c=b.movement;switch(a){case"up":d.style.top=parseInt(d.style.top)+c+"px";break;case"down":d.style.top=parseInt(d.style.top)-c+"px";break;case"left":d.style.left=parseInt(d.style.left)+c+"px";break;case"right":d.style.left=parseInt(d.style.left)-c+"px"}},s=function(a){f=a};c=b.id?document.getElementById(b.id):cg.createElement({id:"cg_zoom_div_"+a},this),d=cg.createElement({id:"cg_zoom_layer_"+a},c),e=cg.createElement({id:"cg_zoom_img_"+a,type:"img",src:b.src},d),cg.setStyles(c,"width : "+b.width+"px; height : "+b.height+"px; position : relative; zIndex : 1;  overflow : hidden; cursor : pointer; border : "+b.border+"px solid #ccc;"),cg.setStyles(d,"position : relative; zIndex : 2; left : 0px; top : 0px;"),cg.setStyles(e,"width : "+b.width+"px; height : "+b.height+"px; border : 0px;"),i=cg.createElement({id:"cg_zoom_controller_"+a,styles:"width : 62px; height : 130px; position : absolute; zIndex : 3; overflow : hidden; left : 10px; top : 10px; display : none; background : url('"+cg.namespace+"/images/zoom_controller.png') no-repeat 70%; cursor : normal;"},c),btn_up=cg.createElement({id:"cg_zoom_up_"+a,styles:"position : absolute; zIndex : 4; width : 20px; height : 20px; left : 21px; top : 1px; cursor : pointer;",onclick:function(){r("up")}},i),btn_down=cg.createElement({id:"cg_zoom_down_"+a,styles:"position : absolute; zIndex : 4; width : 20px; height : 22px; left : 21px; top : 40px; cursor : pointer;",onclick:function(){r("down")}},i),cg.createElement({id:"cg_zoom_left_"+a,styles:"position : absolute; zIndex : 4; width : 20px; height : 20px; left :1px; top : 21px; cursor : pointer;",onclick:function(){r("left")}},i),cg.createElement({id:"cg_zoom_right_"+a,styles:"position : absolute; zIndex : 4; width : 20px; height : 20px; left : 41px; top : 21px; cursor : pointer;",onclick:function(){r("right")}},i),cg.createElement({id:"cg_zoom_out_"+a,styles:"position : absolute; zIndex : 4; width : 50px; height : 50px; left : 6px; top : 77px;
1 cursor : pointer;",onclick:function(){q()}},i),d.onclick=p,g=cg.getOffsetLeft(c),h=cg.getOffsetTop(c),this.out=q,this.zoom=s,b.onLoad.call(b,d)}}(),cg.apps.PopupBox=function(){var a=0;return function(b){b=b||{},b.innerHTML=b.innerHTML||"",b.width=b.width||720,b.height=b.height||480,b.images=b.images||[],b.maxWidth=Math.min(b.maxWidth||cg.getWindowSize().width,cg.getWindowSize().width)-40,b.maxHeight=Math.min(b.maxHeight||cg.getWindowSize().height,cg.getWindowSize().height)-40,b.descriptions=b.descriptions||[],b.startIndex=b.startIndex||0,b.start=b.start||!1,b.autoResize=!0===b.autoResize,b.destroyOnClose=!(b.images.length>0)&&!1!==b.destroyOnClose,b.onLoad=b.onLoad||function(){},b.onBeforeClose=b.onBeforeClose||function(){},b.onAfterClose=b.onAfterClose||function(){},a++;var c,d,e,f,g,h,i,j,k,q,r,s,t,u,n=!1,o=!1,p=document.body||document.getElementsByTagName("body")[0],v=parseInt((cg.getWindowSize().width-b.width)/2),w=parseInt((cg.getWindowSize().height-b.height)/2),x=function(){k.style.marginLeft=parseInt(d.style.width)-4+"px"},y=function(){d.style.display="none",c.style.display="none",p.style.overflow="auto",n=!1,b.destroyOnClose&&P()},z=function(){b.images.length>0&&E(),d.style.display="block",c.style.display="block",p.style.overflow="hidden",n=!0},A=function(){b.images.length>0&&(h.width>cg.getWindowSize().width-40&&cg.setStyles(h,"maxWidth : "+(cg.getWindowSize().width-40)+"px;"),h.height>cg.getWindowSize().height-40&&cg.setStyles(h,"maxHeight : "+(cg.getWindowSize().height-40)+"px;"))},B=function(){if(n){var a=v-10,b=w-10,c=cg.getWindowSize().width-2*v,e=cg.getWindowSize().height-2*w;cg.setStyles(d,"width: "+c+"px; height: "+e+"px; left: "+a+"px; top: "+b+"px; margin: 0px;"),x(),1===j.firstChild.nodeType&&(j.firstChild.style.width=c+"px",j.firstChild.style.height=e+"px")}},C=function(){var a=b.images.length>0?h.height:b.height,c=cg.getWindowSize().height,e=cg.getScrollXY().top,f=parseInt((c-a)/2);n&&cg.setStyles(d,"top : "+e+"px; marginTop : "+(f-12)+"px;")},D=function(){var a=50,b=cg.getWindowSize().height,c=cg.getScrollXY().top,e=parseInt((b-a)/2);cg.setStyles(d,"width : 50px; height : 50px; left : 50%; marginLeft : -25px;"),cg.setStyles(d,"top : "+c+"px; marginTop : "+e+"px;")},E=function(){q.style.display="none",h.style.display="none",D(),cg.setOpacity(d,50),k.style.display="none",t.style.display="none",f.style.display="block",h.src=b.images[b.startIndex]},F=function(){f.style.display="none",cg.setOpacity(d,100),k.style.display="block",cg.setOpacity(h,0),h.style.display="block",A(),cg.setStyles(d,"width : "+this.offsetWidth+"px; height : "+this.offsetHeight+"px; marginLeft : "+-(parseInt(this.offsetWidth/2)+16)+"px;"),C(),x(),i.start({speed:50,direction:"in",callback:function(){H(),I()}})},G=function(){f.style.display="none",cg.setOpacity(d,100),k.style.display="block",h.style.display="block",cg.setStyles(d,"width :100px; height : 100px; marginLeft : "+-(parseInt(50)+10)+"px;"),C(),x(),H()},H=function(){var a;a=cg.isImageLoaded(h)?h.height:100,cg.setStyles(q,"marginTop : "+(parseInt(a/2)-20)+"px; display : block;"),b.startIndex>0?cg.setStyles(r,"display : block;"):cg.setStyles(r,"display : none;"),b.startIndex<b.images.length-1?cg.setStyles(s,"display : block;"):cg.setStyles(s,"display : none;")},I=function(){void 0!==b.descriptions[b.startIndex]&&(""===b.descriptions[b.startIndex]?cg.setStyles(t,"display : none;"):(cg.setStyles(t,"marginTop : "+(h.height-50)+"px; display : block;"),u.innerHTML=b.descriptions[b.startIndex]))},J=function(){b.startIndex>0&&L(b.startIndex-1)},K=function(){b.startIndex<b.images.length-1&&L(b.startIndex+1)},L=function(a){"number"==typeof a&&(b.startIndex=a),o?z():Q()},M=function(){cg.setOpacity(d,0),e.start({direction:"in",step:20})},N=function(a){j.innerHTML=a,C(),M()},P=function(){c.parentNode.removeChild(c),d.parentNode.removeChild(d),window.removeEventListener("resize",C),window.removeEventListener("resize",B),a--},Q=function(){n=!0,o=!0,p.style.overflow="hidden",c=cg.createElement({id:"cg_PopupBox_mask_"+a,styles:"width : 100%; height : 100%; position : fixed; zIndex : "+(cg.findHighestZIndex()+1)+"; top : 0px; left : 0px; backgroundColor : #333;"}
1),cg.setOpacity(c,80),d=cg.createElement({id:"cg_PopupBox_frame_"+a,styles:"backgroundColor : #fff; padding : 10px; border : 3px solid #333; position : absolute; zIndex : "+(cg.findHighestZIndex()+1)+"; textAlign : center; boxShadow: 0px 0px 20px #000;"}),k=cg.createElement({id:"cg_PopupBox_close_"+a,styles:"display : none; position: absolute; zIndex : "+(cg.findHighestZIndex()+1)+"; top : -8px; left : 8px; width : 25px; height : 25px; border : 3px solid #fff; borderRadius : 16px; backgroundColor : #000; color : #fff; fontFamily : arial; fontSize : 14px; fontWeight : bold; cursor : pointer; lineHeight : normal; boxShadow: 0px 0px 10px #000; textAlign : center;",innerHTML:"<img src="+cg.namespace+"/images/closeX.png style='margin-top: 0px;'>",onclick:function(){!1!==b.onBeforeClose()&&y(),b.onAfterClose()},onmouseover:function(){this.style.backgroundColor="#cc0000"},onmouseout:function(){this.style.backgroundColor="#000"},oncreate:function(){this.setAttribute("unselectable","on")}},d),b.images.length>0?(D(),f=cg.createElement({id:"cg_PopupBox_loading_"+a,styles:"padding : 9px;"},d),g=cg.createElement({type:"img",src:cg.namespace+"/images/loading.gif"},f),cg.setOpacity(d,50),h=cg.createElement({type:"img",id:"cg_PopupBox_img_"+a,styles:"display : none; maxWidth : "+b.maxWidth+"px; maxHeight : "+b.maxHeight+"px;",onload:F,onerror:G},d),i=new cg.animate.Fade(h),h.src=b.images[b.startIndex],q=cg.createElement({id:"cg_PopupBox_navigation_"+a,styles:"display : none; position : absolute; zIndex : "+(cg.findHighestZIndex()+1)+"; width : 100%; left : 0px; top : 0px;"},d),r=cg.createElement({id:"cg_PopupBox_navigation_left_"+a,styles:"styleFloat : left; cssFloat : left; width : 25px; backgroundColor : #fff; padding : 10px; fontSize : 30px; fontFamily : verdana; color : #666; cursor : pointer; borderTopRightRadius : 10px; borderBottomRightRadius : 10px;",innerHTML:"&lsaquo;",onclick:function(){J()}},q),r.setAttribute("unselectable","on"),s=cg.createElement({id:"cg_PopupBox_navigation_left_"+a,styles:"styleFloat : right; cssFloat : right; width : 25px; backgroundColor : #fff; padding : 10px; fontSize : 30px; fontFamily : verdana; color : #666; cursor : pointer; borderTopLeftRadius : 10px; borderBottomLeftRadius : 10px;",innerHTML:"&rsaquo;",onclick:function(){K()}},q),s.setAttribute("unselectable","on"),t=cg.createElement({id:"cg_PopupBox_description_"+a,styles:"display : none; position : absolute; zIndex : "+(cg.findHighestZIndex()+1)+"; width : 100%; height : 60px; backgroundColor : #fff; left : 0px; top : 0px; overflow : hidden;"},d),u=cg.createElement({id:"cg_PopupBox_description",styles:"padding : 10px 20px 10px 20px; fontFamily : arial; fontSize : 12px; color : #000;"},t),cg.setOpacity(t,70),cg.addEvent(window,"resize",C)):(k.style.display="block",cg.setStyles(d,"width : "+b.width+"px; height : "+b.height+"px; left : 50%; marginLeft : "+-(b.width/2+10)+"px;"),C(),j=cg.createElement({id:"cg_PopupBox_html_wrapper_"+a},d),j.innerHTML=b.innerHTML,x(),e=new cg.animate.Fade(d),M(),cg.addEvent(window,"resize",b.autoResize?B:C))};return b.start&&(Q(),b.onLoad()),this.start=L,this.hide=y,this.setHtml=N,this.getCounter=function(){return a},!1}}(),cg.apps.countdown=function(a){a=a||{},a.id=a.id||"",a.targetDate=a.targetDate||new Date,a.format=a.format||"#D# Days, #H# Hours, #M# Minutes, #S# Seconds",a.message=a.message||"Event will be start!",a.callback=a.callback||function(){},a.id||document.write("<div id=cg-countdown></div>");var f,b=1e3,c=60*b,d=60*c,e=24*d,g=a.id?document.getElementById(a.id):document.getElementById("cg-countdown"),h=new Date(a.targetDate),i=a.format,j=function(){var j=new Date,k=h-j,l=Math.floor(k/e),m=Math.floor(k%e/d),n=Math.floor(k%d/c),o=Math.floor(k%c/b);if(k<0)return g.innerHTML=a.message,clearInterval(f),a.callback.call(),!1;g.innerHTML=i.replace(/#D#/g,l).replace(/#H#/g,m).replace(/#M#/g,n).replace(/#S#/g,o)};return f=setInterval(j,1e3),!1};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.