/* Slideshow functionality in header */
function slideSwitch() 
{
	if(document.getElementById('slideshow'))
	{
		var $active = $('#slideshow IMG.active');

		if($active.length == 0) 
			$active = $('#slideshow IMG:last');

		// use this to pull the images in the order they appear in the markup
		var $next = $active.next().length ? $active.next() : $('#slideshow IMG:first');

		// uncomment the 3 lines below to pull the images in random order
		var $sibs = $active.siblings();
		var rndNum = Math.floor(Math.random() * $sibs.length );
		var $next = $( $sibs[ rndNum ] );

		$active.addClass('last-active');

		$next.css({opacity: 0.0})
		.addClass('active')
		.animate({opacity: 1.0}, 1000, function() {
			$active.removeClass('active last-active');
		});
	}
}

addOnload(function() { setInterval( "slideSwitch()", 8000 ) });

function selectAllText(object)
{
	object.select();
}

function updatePatternField(object_id, id)
{
	var object = document.getElementById(object_id);
	var inputPattern = document.getElementById(id);
	if (inputPattern && object)
	{
		inputPattern.value = object.value;
	}
	if (object)
		object.style.fontStyle = 'normal';
}

var dateFormat = function () 
{
	var	token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,
		timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,
		timezoneClip = /[^-+\dA-Z]/g,
		pad = function (val, len) {
			val = String(val);
			len = len || 2;
			while (val.length < len) val = "0" + val;
			return val;
		};

	// Regexes and supporting functions are cached through closure
	return function (date, mask, utc) {
		var dF = dateFormat;

		// You can't provide utc if you skip other args (use the "UTC:" mask prefix)
		if (arguments.length == 1 && Object.prototype.toString.call(date) == "[object String]" && !/\d/.test(date)) {
			mask = date;
			date = undefined;
		}

		// Passing date through Date applies Date.parse, if necessary
		date = date ? new Date(date) : new Date;
		if (isNaN(date)) throw SyntaxError("invalid date");

		mask = String(dF.masks[mask] || mask || dF.masks["default"]);

		// Allow setting the utc argument via the mask
		if (mask.slice(0, 4) == "UTC:") {
			mask = mask.slice(4);
			utc = true;
		}

		var	_ = utc ? "getUTC" : "get",
			d = date[_ + "Date"](),
			D = date[_ + "Day"](),
			m = date[_ + "Month"](),
			y = date[_ + "FullYear"](),
			H = date[_ + "Hours"](),
			M = date[_ + "Minutes"](),
			s = date[_ + "Seconds"](),
			L = date[_ + "Milliseconds"](),
			o = utc ? 0 : date.getTimezoneOffset(),
			flags = {
				d:    d,
				dd:   pad(d),
				ddd:  dF.i18n.dayNames[D],
				dddd: dF.i18n.dayNames[D + 7],
				m:    m + 1,
				mm:   pad(m + 1),
				mmm:  dF.i18n.monthNames[m],
				mmmm: dF.i18n.monthNames[m + 12],
				yy:   String(y).slice(2),
				yyyy: y,
				h:    H % 12 || 12,
				hh:   pad(H % 12 || 12),
				H:    H,
				HH:   pad(H),
				M:    M,
				MM:   pad(M),
				s:    s,
				ss:   pad(s),
				l:    pad(L, 3),
				L:    pad(L > 99 ? Math.round(L / 10) : L),
				t:    H < 12 ? "a"  : "p",
				tt:   H < 12 ? "am" : "pm",
				T:    H < 12 ? "A"  : "P",
				TT:   H < 12 ? "AM" : "PM",
				Z:    utc ? "UTC" : (String(date).match(timezone) || [""]).pop().replace(timezoneClip, ""),
				o:    (o > 0 ? "-" : "+") + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4),
				S:    ["th", "st", "nd", "rd"][d % 10 > 3 ? 0 : (d % 100 - d % 10 != 10) * d % 10]
			};

		return mask.replace(token, function ($0) {
			return $0 in flags ? flags[$0] : $0.slice(1, $0.length - 1);
		});
	};
}();

// Some common format strings
dateFormat.masks = {
	"default":      "ddd mmm dd yyyy HH:MM:ss",
	shortDate:      "m/d/yy",
	mediumDate:     "mmm d, yyyy",
	longDate:       "mmmm d, yyyy",
	fullDate:       "dddd, mmmm d, yyyy",
	shortTime:      "h:MM TT",
	mediumTime:     "h:MM:ss TT",
	longTime:       "h:MM:ss TT Z",
	isoDate:        "yyyy-mm-dd",
	isoTime:        "HH:MM:ss",
	isoDateTime:    "yyyy-mm-dd'T'HH:MM:ss",
	isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"
};

// Internationalization strings
dateFormat.i18n = {
	dayNames: [
		"Zo", "Ma", "Di", "Wo", "Do", "Vr", "Za",
		"zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"
	],
	monthNames: [
		"Jan", "Feb", "Maa", "Apr", "Mei", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec",
		"januari", "februari", "maart", "april", "mei", "juni", "july", "augusus", "september", "oktober", "november", "december"
	]
};

// For convenience...
Date.prototype.format = function (mask, utc) {
	return dateFormat(this, mask, utc);
};

			
function showDateTime()
{
	var currentTime = new Date();
	
	document.getElementById('datetime').innerHTML = dateFormat(currentTime, "dddd d mmmm h:MM");
	
	setTimeout('showDateTime()', 1000);
} 

//addOnload(showDateTime);

// -----------------------------------------------------------------------------------
//
// VisualLightBox 4.9

(function($){$.fn.visualLightbox=function(options){var activeImage=null,badObjects=["select","object","embed"],groupName=null,imageArray=[],slideShowTimer=null,startImage=null,B=50,imgPreloader,showTimer;if(!document.getElementsByTagName){return;}options=$.extend({animate:true,autoPlay:true,borderSize:39,containerID:document,enableSlideshow:true,googleAnalytics:false,descSliding:true,imageDataLocation:"south",shadowLocation:"",closeLocation:"",initImage:"",loop:true,overlayDuration:0.2,overlayOpacity:0.7,prefix:"",classNames:"vlightbox",resizeSpeed:7,showGroupName:false,slideTime:4,strings:{closeLink:"",loadingMsg:"loading",nextLink:"",prevLink:"",startSlideshow:"",stopSlideshow:"",numDisplayPrefix:"",numDisplaySeparator:"/"},enableRightClick:false,featBrowser:true,breathingSize:20,startZoom:false,floating:true},options);if(options.animate){var overlayDuration=Math.max(options.overlayDuration,0);options.resizeSpeed=Math.max(Math.min(options.resizeSpeed,10),1);var resizeDuration=(11-options.resizeSpeed)*0.15;}else{var overlayDuration=0;var resizeDuration=0;}var enableSlideshow=options.enableSlideshow;options.overlayOpacity=Math.max(Math.min(options.overlayOpacity,1),0);var playSlides=options.autoPlay;var container=$(options.containerID);var classNames=options.classNames;updateImageList();var objBody=container.length&&container.get(0)!=document?container.get(0):document.getElementsByTagName("body").item(0);if(objBody.childNodes.length){$(objBody.childNodes[0]).before($("<div></div>"));objBody=objBody.childNodes[0];}function connectEvent(obj,name,func){$(obj)[name](func);}var objOverlay=document.createElement("div");objOverlay.setAttribute("id",getID("overlay"));objOverlay.style.display="none";objBody.appendChild(objOverlay);connectEvent(objOverlay,"click",end);var objLightbox=document.createElement("div");objLightbox.setAttribute("id",getID("lightbox"));objLightbox.style.display="none";objBody.appendChild(objLightbox);connectEvent(objLightbox,"click",end);var objImageDataContainer=document.createElement("div");objImageDataContainer.setAttribute("id",getID("imageDataContainer"));objImageDataContainer.className=getID("clearfix");var g=document.createElement("table");g.setAttribute("id",getID("outerImageContainer"));g.cellSpacing=0;objLightbox.appendChild(g);var k=g.insertRow(-1);var l=k.insertCell(-1);l.className="tl";var j=k.insertCell(-1);j.className="tc";var h=k.insertCell(-1);h.className="tr";var U=g.insertRow(-1);var d=U.insertCell(-1);d.className="ml";var T=U.insertCell(-1);T.setAttribute("id",getID("lightboxFrameBody"));var R=U.insertCell(-1);R.className="mr";var J=g.insertRow(-1);var G=J.insertCell(-1);G.className="bl";var H=J.insertCell(-1);H.className="bc";var F=J.insertCell(-1);F.className="br";if(options.imageDataLocation=="north"){T.appendChild(objImageDataContainer);}var objImageData=document.createElement("div");objImageData.setAttribute("id",getID("imageData"));objImageDataContainer.appendChild(objImageData);var a=document.createElement("div");a.setAttribute("id",getID("imageDetails"));objImageData.appendChild(a);var b=document.createElement("div");b.setAttribute("id",getID("caption"));a.appendChild(b);var Z=document.createElement("span");Z.setAttribute("id",getID("numberDisplay"));a.appendChild(Z);var V=document.createElement("span");V.setAttribute("id",getID("detailsNav"));a.appendChild(V);var W=document.createElement("a");W.setAttribute("id",getID("prevLinkDetails"));W.setAttribute("href","javascript:void(0);");W.innerHTML=options.strings.prevLink;V.appendChild(W);connectEvent(W,"click",showPrev);var c=document.createElement("a");c.setAttribute("id",getID("slideShowControl"));c.setAttribute("href","javascript:void(0);");V.appendChild(c);connectEvent(c,"click",f);var O=document.createElement("a");O.setAttribute("id",getID("closeLink"));O.setAttribute("href","javascript:void(0);");O.innerHTML=options.strings.closeLink;if(options.closeLocation=="nav"){V.appendChild(O);}else{var Q=document.createElement("div");Q.setAttribute("id",getID("close"));if(options.closeLocation=="top"){h.appendChild(Q);}else{objImageData.appendChild(Q);}Q.appendChild(O);}connectEvent(O,"click",end);var i=document.createElement("a");i.setAttribute("id",getID("nextLinkDetails"));i.setAttribute("href","javascript:void(0);");i.innerHTML=options.strings.nextLink;V.appendChild(i);connectEvent(i,"click",showNext);var objImageContainerMain=document.createElement("div");objImageContainerMain.setAttribute("id",getID("imageContainerMain"));T.appendChild(objImageContainerMain);var C=document.createElement("div");C.setAttribute("id",getID("imageContainer"));objImageContainerMain.appendChild(C);var D=document.createElement("img");D.setAttribute("id",getID("lightboxImage"));C.appendChild(D);if(!options.enableRightClick){var I=document.createElement("div");I.setAttribute("id",getID("hoverNav"));I.style.background="white";I.style.opacity=0;I.style.filter="alpha(opacity=0)";C.appendChild(I);connectEvent(I,"mousemove",hoverNav);connectEvent(I,"mouseout",outNav);}var K=document.createElement("a");K.setAttribute("id",getID("prevLinkImg"));K.setAttribute("href","javascript:void(0);");objImageContainerMain.appendChild(K);connectEvent(K,"click",showPrev);var N=document.createElement("a");N.setAttribute("id",getID("nextLinkImg"));N.setAttribute("href","javascript:void(0);");objImageContainerMain.appendChild(N);connectEvent(N,"click",showNext);var L=document.createElement("div");L.setAttribute("id",getID("loading"));C.appendChild(L);var P=document.createElement("a");P.setAttribute("id",getID("loadingLink"));P.setAttribute("href","javascript:void(0);");P.innerHTML=options.strings.loadingMsg;L.appendChild(P);connectEvent(P,"click",end);if(options.imageDataLocation!="north"){T.appendChild(objImageDataContainer);}var objShadow=document.createElement("div");objShadow.setAttribute("id",getID("shadow"));(options.shadowLocation?document.getElementById(getID(options.shadowLocation)):H).appendChild(objShadow);if(options.initImage!=""){start("#"+options.initImage);}function getHref(Node){if(Node.tagName.toLowerCase()!="a"){Node=$("A:first",Node);}return $(Node).attr("href");}function getTitle(Node){if(Node.tagName.toLowerCase()=="a"){return $(Node).attr("title")||Node.title;}return $(">*:last",Node).html();}function updateImageList(){$("."+classNames.replace(/\,/g,",."),container).each(function(){if(getHref(this)){$(this).click(function(event){event.preventDefault();start(this);return false;});}});}var t="";if(t){var c=$("<div></div>");c.css({position:"absolute",right:"0px",bottom:"0px",padding:"2px 3px",'background-color':"#EEE",'z-index':10});$(C).append(c);var d=$(document.createElement("A"));d.css({color:"#555",font:"11px Arial,Verdana,sans-serif",padding:"3px 6px",width:"auto",height:"auto",margin:"0 0 0 0",outline:"none"});d.attr({href:"http://"+t.toLowerCase()});d.html(t);d.bind("contextmenu",function(eventObject){return false;});c.append(d);}var start=this.start=function(M){S();M=$(M);$$("overlay").css({height:docWH()[1]+"px"});if(options.descSliding){$$("imageDataContainer").hide();}$$("lightboxImage").hide().attr({src:""});if(options.startZoom){$$("imageContainer").css({width:M.width()+"px",height:M.height()+"px"});if(!document.all){$$("outerImageContainer").css({opacity:0.1});}$$("lightbox").css({left:M.offset().left-options.borderSize+"px",top:M.offset().top-options.borderSize+"px",width:M.width()+options.borderSize*2+"px",height:"auto"});}else{$$("overlay").css({opacity:0}).show().fadeTo(overlayDuration*1000,options.overlayOpacity);$$("lightbox").css({left:0,width:"100%"});}$$("lightbox").show();imageArray=[];groupName=null;startImage=0;$("."+(M.attr("className")||M.get(0).className),container).each(function(){if(getHref(this)){imageArray.push({link:getHref(this),title:getTitle(this)});if(this==M.get(0)){startImage=imageArray.length-1;}}});if(imageArray.length>1){groupName=M.attr("className");}if(options.featBrowser){$(window).resize(adjustImageSizeNoEffect);}if(options.floating){$(window).scroll(adjustImageSizeNoEffect);}$(window).resize(adjustOverlay);$(window).scroll(adjustOverlay);changeImage(startImage);};function changeImage(imageNum){activeImage=imageNum;disableKeyboardNav();pauseSlideShow();showLoading();if(!options.startZoom){$$("lightboxImage").hide();}$$("prevLinkImg").hide();$$("nextLinkImg").hide();if(options.descSliding){$$("imageDataContainer").hide();}imgPreloader=new Image;imgPreloader.onload=function(){imageArray[activeImage].link=imgPreloader.src;imageArray[activeImage].width=imgPreloader.width;imageArray[activeImage].height=imgPreloader.height;adjustImageSize(false);};if(options.startZoom&&!$$("lightboxImage").attr("src")){imageArray[activeImage].width=320;imageArray[activeImage].height=240;adjustImageSize(false,true);}imgPreloader.src=imageArray[activeImage].link;if(options.googleAnalytics){urchinTracker(imageArray[activeImage].link);}}function adjustImageSize(recall,noImage){var imgWidth=imageArray[activeImage].width;var imgHeight=imageArray[activeImage].height;var arrayPageSize=m();var imageProportion=imgWidth/imgHeight;if(options.featBrowser){var winProportion=arrayPageSize.winWidth/arrayPageSize.winHeight;if(imageProportion>winProportion){var maxWidth=arrayPageSize.winWidth-options.borderSize*2-options.breathingSize*2;var maxHeight=Math.round(maxWidth/imageProportion);}else{var maxHeight=arrayPageSize.winHeight-options.borderSize*2-options.breathingSize*2-B;var maxWidth=Math.round(maxHeight*imageProportion);}if(imgWidth>maxWidth||imgHeight>maxHeight){imgWidth=maxWidth;imgHeight=maxHeight;}}var imgTop=getPageScroll().y+(m().winHeight-(imgHeight+B+options.borderSize*2))/2;var imageContainer=$$("imageContainer");if(recall==true){imageContainer.css({height:imgHeight+"px",width:imgWidth+"px"});if(options.floating){moveEffect($$("lightbox"),imgTop);}else{$$("lightbox").css({top:imgTop+"px"});}}else{var lightboxImage=$$("lightboxImage");imageContainer.stop(true,false);lightboxImage.stop(true,false);var lightboxImage2;if(options.startZoom&&lightboxImage.attr("src")){lightboxImage2=lightboxImage;lightboxImage2.attr({id:getID("lightboxImage2")});}else{lightboxImage.remove();}if(!noImage){lightboxImage=$(imgPreloader);lightboxImage.hide();lightboxImage.attr({id:getID("lightboxImage")});imageContainer.append(lightboxImage);}with(imageContainer){var resizeFactor=imageProportion/(width()/height());}if(!noImage){if(options.startZoom){if(lightboxImage2){$$("lightboxImage2").stop(true,true);}var zoomF=lightboxImage2?120:100;if(lightboxImage2){with(lightboxImage2){css({width:1>resizeFactor?"auto":width()/parent().width()*100+"%",height:1>resizeFactor?height()/parent().height()*100+"%":"auto",left:0,top:0});}}lightboxImage.css({opacity:0,display:"block",position:"absolute",width:1>resizeFactor?zoomF+"%":"auto",height:1>resizeFactor?"auto":zoomF+"%",left:(100-zoomF*(1>resizeFactor?1:resizeFactor))/2+"%",top:(100-zoomF*(1>resizeFactor?1/resizeFactor:1))/2+"%"});}if(options.startZoom){hideLoading();}}resizeImageContainer(imgTop,imgWidth,imgHeight,resizeFactor,noImage);}if(document.all){$$("imageDataContainer").css({width:imgWidth+"px"});}if(options.enableRightClick){$$("lightboxImage").mousemove(hoverNav);$$("lightboxImage").mouseout(outNav);}}function resizeImageContainer(imgTop,imgWidth,imgHeight,resizeFactor,noImage){var imageContainer=$$("imageContainer");var lightboxImage=$$("lightboxImage");var lightbox=$$("lightbox");if(!noImage){var lightboxImage2=$$("lightboxImage2");}if(options.startZoom){lightboxImage.fadeTo(resizeDuration*1000,1);if(!document.all){$$("outerImageContainer").fadeTo(resizeDuration*1000,1);}}moveEffect(lightbox,imgTop);if(options.startZoom&&!noImage){lightboxImage2.animate($.extend({opacity:0},resizeFactor<1?{height:"120%",top:"-10%",left:(100-120/resizeFactor)/2+"%"}:{width:"120%",left:"-10%",top:(100-resizeFactor*120)/2+"%"}),{queue:false,duration:resizeDuration*1000,complete:function(){$(this).remove();}});lightboxImage.animate($.extend({left:0,top:0},resizeFactor<1?{width:"100%"}:{height:"100%"}),{queue:false,duration:resizeDuration*1000});}imageContainer.animate({width:imgWidth+"px",height:imgHeight+"px"},{queue:false,duration:resizeDuration*1000,complete:!noImage?function(){showImage();}:null});}function moveEffect(lightbox,imgTop){lightbox.stop(true,false);lightbox.animate({width:"100%",left:0,top:imgTop},{queue:false,duration:resizeDuration*1000});}function showLoading(){clearTimeout(showTimer);var loading=$$("loading");loading.show();loading.css({visibility:"hidden"});showTimer=setTimeout(function(){$$("loading").css({visibility:"visible"});},300);}function hideLoading(){clearTimeout(showTimer);$$("loading").hide();}function showImage(){hideLoading();if(options.startZoom){$$("overlay:hidden").css({opacity:0}).show().fadeTo(overlayDuration*1000,options.overlayOpacity);showDetails();}else{$$("lightboxImage").css({opacity:0}).show().fadeTo(500,1,function(){showDetails();});}preloadNeighborImages();}function updateDetails(){$$("caption").html(imageArray[activeImage].title||"");if(imageArray.length>1){var num_display=options.strings.numDisplayPrefix+" "+eval(activeImage+1)+" "+options.strings.numDisplaySeparator+" "+imageArray.length;if(options.showGroupName&&groupName){num_display+=" "+options.strings.numDisplaySeparator+" "+groupName;}$$("numberDisplay").text(num_display);$$("slideShowControl").css({display:enableSlideshow?"":"none"});}}function showDetails(){updateDetails();if(options.descSliding){$$("imageDataContainer").animate({height:"show",opacity:"show"},650,null,function(){updateNav();});}else{updateNav();}}function updateNav(){var d=1/imageArray.length;B=B*(1-d)+$$("imageDataContainer").height()*d;if(imageArray.length>1){$$("prevLinkImg").show();$$("nextLinkImg").show();if(enableSlideshow){if(playSlides){startSlideShow();}else{stopSlideShow();}}}enableKeyboardNav();}function startSlideShow(){if($$("lightbox:hidden").length){return;}pauseSlideShow();playSlides=true;slideShowTimer=setTimeout(function(){showNext();},options.slideTime*1000);$$("slideShowControl").text(options.strings.stopSlideshow);$$("slideShowControl").addClass("started");}function stopSlideShow(){playSlides=false;pauseSlideShow();$$("slideShowControl").text(options.strings.startSlideshow);$$("slideShowControl").removeClass("started");}function f(){if(playSlides){stopSlideShow();}else{startSlideShow();}}function pauseSlideShow(){if(slideShowTimer){slideShowTimer=clearTimeout(slideShowTimer);}}function showNext(){if(imageArray.length>1){pauseSlideShow();if(!options.loop&&(activeImage==imageArray.length-1&&startImage==0||activeImage+1==startImage)){end();return;}if(activeImage==imageArray.length-1){changeImageWithData(0);}else{changeImageWithData(activeImage+1);}}}function changeImageWithData(imageNum){if(options.descSliding){$$("imageDataContainer").animate({height:"hide",opacity:"hide"},650,null,function(){changeImage(imageNum);});}else{changeImage(imageNum);}}function showPrev(){if(imageArray.length>1){if(activeImage==0){changeImageWithData(imageArray.length-1);}else{changeImageWithData(activeImage-1);}}}function showFirst(){if(imageArray.length>1){changeImageWithData(0);}}function showLast(){if(imageArray.length>1){changeImageWithData(imageArray.length-1);}}function enableKeyboardNav(){document.onkeydown=keyboardAction;}function disableKeyboardNav(){document.onkeydown="";}function keyboardAction(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}key=String.fromCharCode(keycode).toLowerCase();if(key=="x"||key=="o"||key=="c"){end();}else if(key=="p"||key=="%"){showPrev();}else if(key=="n"||key=="'"){showNext();}else if(key=="f"){showFirst();}else if(key=="l"){showLast();}else if(key=="s"){if(imageArray.length>0&&options.enableSlideshow){f();}}}function preloadNeighborImages(){var nextImageID=imageArray.length-1==activeImage?0:activeImage+1;(new Image).src=imageArray[nextImageID].link;var prevImageID=activeImage==0?imageArray.length-1:activeImage-1;(new Image).src=imageArray[prevImageID].link;}function end(Event){if(Event){var id=$(Event.target).attr("id");if(getID("closeLink")!=id&&getID("lightbox")!=id&&getID("overlay")!=id){return;}}$$("imageContainer").stop(true,false);$$("lightboxImage").stop(true,false);imgPreloader.onload=null;disableKeyboardNav();pauseSlideShow();$$("lightbox").hide();showBadObjects();if(options.overlayOpacity){$$("overlay").fadeOut(overlayDuration*1000);}else{$$("overlay").hide();}$(window).unbind("resize",adjustImageSizeNoEffect);$(window).unbind("scroll",adjustImageSizeNoEffect);$(window).unbind("resize",adjustOverlay);$(window).unbind("scroll",adjustOverlay);}function hoverNav(event){if(event.pageX-$$("imageContainer").offset().left<$$("imageContainer").width()/2){$$("prevLinkImg").addClass("hover");$$("nextLinkImg").removeClass("hover");}else{$$("prevLinkImg").removeClass("hover");$$("nextLinkImg").addClass("hover");}}function outNav(){$$("prevLinkImg").removeClass("hover");$$("nextLinkImg").removeClass("hover");}function adjustImageSizeNoEffect(){adjustImageSize(true);}function adjustOverlay(){$$("overlay").css({left:getPageScroll().x+"px",top:0,width:"100%",height:docWH()[1]+"px"});}function showBadObjects(){var els;var tags=badObjects;for(var i=0;i<tags.length;i++){els=document.getElementsByTagName(tags[i]);for(var j=0;j<els.length;j++){$(els[j]).css({visibility:"visible"});}}}function S(){var tags=badObjects;for(var i=0;i<tags.length;i++){$(tags[i]).css({visibility:"hidden"});}}function getPageScroll(){var x,y;if(self.pageYOffset){x=self.pageXOffset;y=self.pageYOffset;}else if(document.documentElement&&document.documentElement.scrollTop){x=document.documentElement.scrollLeft;y=document.documentElement.scrollTop;}else if(document.body){x=document.body.scrollLeft;y=document.body.scrollTop;}return{x:x,y:y};}function m(){var windowX,windowY;if(self.innerHeight){windowX=self.innerWidth;windowY=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowX=document.documentElement.clientWidth;windowY=document.documentElement.clientHeight;}else if(document.body){windowX=document.body.clientWidth;windowY=document.body.clientHeight;}return{winWidth:windowX,winHeight:windowY};}function docWH(){var b=document.body,e=document.documentElement,w=0,h=0;if(e){w=Math.max(w,e.scrollWidth,e.offsetWidth);h=Math.max(h,e.scrollHeight,e.offsetHeight);}if(b){w=Math.max(w,b.scrollWidth,b.offsetWidth);h=Math.max(h,b.scrollHeight,b.offsetHeight);if(window.innerWidth){w=Math.max(w,window.innerWidth);h=Math.max(h,window.innerHeight);}}return[w,h];}function getID(id){return options.prefix+id;}function $$(name){return $("#"+getID(name));}return this;};})(jQuery);

// VisualLightBox vlbdata

jQuery(document).ready(function(){ window.Lightbox = new jQuery().visualLightbox({borderSize:57,classNames:'vlightbox,vlightbox1',closeLocation:'top',descSliding:false,enableRightClick:true,enableSlideshow:false,resizeSpeed:7,slideTime:4,startZoom:true}) });

