jQuery(document).ready(function($){var select=$('a[href$=".bmp"],a[href$=".gif"],a[href$=".jpg"],a[href$=".jpeg"],a[href$=".png"],a[href$=".BMP"],a[href$=".GIF"],a[href$=".JPG"],a[href$=".JPEG"],a[href$=".PNG"]');select.attr('rel','fancybox');select.fancybox({'overlayOpacity':'0.7','overlayColor':'#fff','imageScale':false,'centerOnScroll':false,'showCloseButton':true});});var cbb={init:function(){if(!document.getElementById||!document.createElement||!document.appendChild)return false;var oElement,oOuter,oI1,oI2,tempId;var arrElements=document.getElementsByTagName('*');var oRegExp=new RegExp("(^|\\s)cbb(\\s|$)");for(var i=0;i<arrElements.length;i++){oElement=arrElements[i];if(oRegExp.test(oElement.className)){oOuter=document.createElement('div');oOuter.className=oElement.className.replace(oRegExp,'$1cb$2');if(oElement.getAttribute("id")){tempId=oElement.id;oElement.removeAttribute('id');oOuter.setAttribute('id','');oOuter.id=tempId;}
oElement.className='i3';oElement.parentNode.replaceChild(oOuter,oElement);oI1=document.createElement('div');oI1.className='i1';oOuter.appendChild(oI1);oI2=document.createElement('div');oI2.className='i2';oI1.appendChild(oI2);oI2.appendChild(oElement);cbb.insertTop(oOuter);cbb.insertBottom(oOuter);}}},insertTop:function(obj){var oOuter,oInner;oOuter=document.createElement("div");oOuter.className="bt";oInner=document.createElement("div");oOuter.appendChild(oInner);obj.insertBefore(oOuter,obj.firstChild);},insertBottom:function(obj){var oOuter,oInner;oOuter=document.createElement("div");oOuter.className="bb";oInner=document.createElement("div");oOuter.appendChild(oInner);obj.appendChild(oOuter);},addEvent:function(obj,type,fn){if(obj.addEventListener)
obj.addEventListener(type,fn,false);else if(obj.attachEvent){obj["e"+type+fn]=fn;obj[type+fn]=function(){obj["e"+type+fn](window.event);}
obj.attachEvent("on"+type,obj[type+fn]);}}};cbb.addEvent(window,'load',cbb.init);