// <!--var isAll = ( document.all ) ? true : false ;var isW3C = ( document.getElementById && !isAll ) ? true : false ;var isNN4 = (document.layers) ? true : false ;var isPrint = ( window.print ) ? 1 : 0 ;var isMac = ( navigator.userAgent.indexOf("Mac") != -1 ) ; var whiteSpace = " \t\n\r"; // whitespace characters// this is set in the Form Header :: var strCurDB = "/"+@WebDbName+"/"; var strCurURL = unescape( top.location.search );var strCurServer = top.location.hostname ;var strCurProtocol = top.location.protocol ;var isOpen = false ;var curHeight = 0 ;var curWidth = 0 ;var curLeftPos = "" ;var curElt ;var curIntervalID ;var curPx = ( isW3C ) ? "px" : "";// This is to forbid the use of Back in some specific case...var curReferrer = "";var curPage = "";function setReferrer() {	curCookie = document.cookie;	var cookieName = "prevPage=";	var i = curCookie.indexOf( cookieName );	if ( i != -1 ) {		if ( curCookie.indexOf(";", i+1) == -1 ) {			curReferrer = curCookie.substring( i+cookieName.length, curCookie.length );		} else {			curReferrer = curCookie.substring( i+cookieName.length, curCookie.indexOf(";", i+1) );		}	}	curPage = top.location.pathname;	curPage = curPage.toLowerCase();	curPage = curPage.substring( curPage.lastIndexOf( strCurDB.toLowerCase() )+strCurDB.length, curPage.length );	document.cookie = "prevPage=" + escape( curPage ) + "; path=/;";}setReferrer();var dragSwitch = 0 ;function makeHttpRequest( url, CBfunc, isXml, CBpar ) { // last is optional	var httpRequest = false;	if ( window.XMLHttpRequest ) { // Not ie...		httpRequest = new XMLHttpRequest();		if ( httpRequest.overrideMimeType ) {			httpRequest.overrideMimeType('text/xml');		}	} else if (window.ActiveXObject) { // IE		try {			httpRequest = new ActiveXObject("Msxml2.XMLHTTP");		} catch (e) {			try {				httpRequest = new ActiveXObject("Microsoft.XMLHTTP");			} catch (e) {}		}	}	if ( !httpRequest ) { return false; }	if ( CBfunc!="" ) { // Async, use a CallBack function		httpRequest.onreadystatechange = function() {			if (httpRequest.readyState == 4) {				if (httpRequest.status == 200) {					if (isXml) {						eval(CBfunc + '(httpRequest.responseXML, CBpar)');					} else {						eval(CBfunc + '(httpRequest.responseText, CBpar)');					}				}			}		};		try {			httpRequest.open('GET', url, true);			httpRequest.send(null);		} catch(e) {			alert("Error in makeHttpRequest!! " + e.name + " >> " + e.message);		} 	} else { // Direct, no Call Back function. Return the result.		try {			httpRequest.open('GET', url, false); //isAsync must be forced to no here			httpRequest.send(null);		} catch(e) {			alert("Error in makeHttpRequest!! " + e.name + " >> " + e.message);		} 		if (httpRequest.readyState == 4) {			if (httpRequest.status == 200) {				if (isXml) {					return httpRequest.responseXML;				} else {					return httpRequest.responseText;				}			}		}		return false;	}}function checkEnterKeyPress( e ) {	var evt = ( e ) ? e : ( ( event ) ? event : null ) ;	if ( isAll ) { if ( evt.keyCode == 13 ) { evt.cancelBubble = true; return true ; } }	if ( isW3C ) { if ( evt.which == 13 ) { evt.cancelBubble = true; return true ; } }	return false ;}function getValueInURL( txtToParse ) {	// Extract a value from location.search beetween "txtToParse=" and "$"	var strRight;	var strLeft;	txtToParse = txtToParse + "=" ;	if ( strCurURL.indexOf( txtToParse ) != -1 ) {		strRight = strCurURL.substring( ( strCurURL.indexOf( txtToParse ) + txtToParse.length ), strCurURL.length) ;	} else {		strRight = "";	}	strLeft = strRight.substring( 0, strRight.indexOf("$") );	if ( strLeft == "" ) { strLeft = strRight.substring (0,strRight.length ); }	return strLeft;}var strCurLan = "en";function isEmpty(s) {	return ((s == null) || (s.length == 0));}function isWhitespace(s) {	var i;	if (isEmpty(s)) return true ;	for (i = 0; i < s.length; i++) {           		var c = s.charAt(i) ;		if (whiteSpace.indexOf(c) == -1) return false ;	}	return true;}function showElt(eltID, isShow) {	var theElt = isW3C ? document.getElementById(eltID) : eval( "document.all."+eltID );	theElt.style.display = ( isShow==true ) ? "" : "none" ;}function showHideDiv(divID) {	curElt = isW3C ? document.getElementById(divID) : eval( "document.all."+divID );	curElt.style.display = ( curElt.style.display=="none" ) ? "" : "none" ;}function showHideSection( theID ) {	if( theID == "" ) { return; }	var curElt = isW3C ? document.getElementById(theID) : eval( "document.all."+theID );	curElt.className = ( curElt.className==theID+"Closed" ) ? theID+"Opened" : theID+"Closed" ;	curElt = isW3C ? document.getElementById(theID+"Details") : eval( "document.all."+theID+"Details" );	curElt.style.display = ( curElt.style.display=="none" ) ? "" : "none" ;}var cacheImagArray = new Array();function preLoadImageSet() {	for ( i=1; i<4; i++) {		cacheImagArray["set"+i] = new Image();		cacheImagArray["set"+i].src = "home-bg-set"+i+".jpg";		for ( j=1; j<=3; j++) {			cacheImagArray["set"+i+"p"+j] = new Image();			cacheImagArray["set"+i+"p"+j].src = "home-bg-set"+i+"-p"+j+".jpg";		}	}}var homeSetNb = Math.floor(Math.random()*3)+1;function switchHomeSet(newSetID) {	homeSetNb = newSetID;	for ( i=1; i<4; i++) {		var theElt = isW3C ? document.getElementById("MapSet"+i) : eval( "document.all.MapSet"+i );		theElt.style.display = ( i==newSetID ) ? "block" : "none" ;		for ( j =1; j<4; j++) {			var theElt = isW3C ? document.getElementById("Set"+j+"Link"+i) : eval( "document.all.Set"+j+"Link"+i );			theElt.className = ( i==newSetID ) ? "Active" : "Inactive" ;		}	}	return false;}function moveNextHomeSet() {	homeSetNb++;	if (homeSetNb>3) homeSetNb=1;	switchHomeSet(homeSetNb);}function switchDiv(divIntro, curShow, idxMax, idxMin) {	if( idxMin > idxMax ) { return;}	if( divIntro == "" ) { return; }	if( idxMin > curShow || idxMax < curShow ) { return; }	for( var i = idxMin; i <= idxMax; i++ ) {		var divID = divIntro+i.toString();		curElt = isW3C ? document.getElementById(divID) : eval( "document.all."+divID );		if( i == curShow ) {			if ( curElt.style.display=="none" ) { curElt.style.display=""; }		} else {			if ( curElt.style.display!="none" ) { curElt.style.display="none"; }		}	}}// SearchDefValue is set directly in the SubForm Menu Top (build from a @GetProfileField)function Search_FieldOnFocus(theInput) {	if ( theInput.value==SearchDefValue ) { theInput.value=""; }	return true;}function Search_FieldOnBlur(theInput) {	if ( theInput.value=="" ) { theInput.value=SearchDefValue; }	return true;}function Search_Launch(strValue, strTarget) {	if ( isWhitespace(strValue) ) { return; }		if (strValue==SearchDefValue ) { return; }	var strValueOrig = strValue;	if( strValue.substr(0,1) == "[" && strValue.substr(strValue.length-1,1) == "]" ) {		// Special "tag", to force a Notes FT Search		strValue = strValue.substr(1,strValue.length-2);	} else {		// Force addition of AND between each words		var allTxt = strValue.split(" ");		strValue = allTxt.join(" and ");	}	if ( strTarget=="HLP" ) {		// SearchHelpPathTgt is set in the subform...		var strURL = strCurProtocol + "//" + strCurServer + SearchHelpPathTgt + "?Open&Query=" + escape( strValue ) + "&Orig=" + escape( strValueOrig ) ;		var newWindow = window.open(strURL, '_blank');		newWindow.focus();		return false;	} else {		var strURL = strCurDB + "WebPageSearch?SearchView&Query=" + escape( strValue ) ;		window.location.href = strURL ;	}	return false;}function OpenGivenPage(strValue) {	if ( isWhitespace(strValue) ) { return; }		if ( strValue=="[DEFAULT]" ) { strValue="homepage"; }	var strURL = strCurDB + "WebPageRequest/"+strValue+"en?OpenDocument";	window.location.href = strURL ;}function setSessionInfo() {	var sRef=getValueInURL("Z1");	var sUser=getValueInURL("Z2");	 if ( sRef != "" ) {		document.cookie = "sRef=" + escape( sRef ) + "; path=/;";		document.cookie = "sUser=" + escape( sUser ) + "; path=/;";	} }function resetSessionInfo() {	var date = new Date();	date.setTime(date.getTime()-7*24*60*60*1000); // Minus 1 week, to force the deletion by the browser	document.cookie = "sRef=; expires="+date.toGMTString()+"; path=/;";	document.cookie = "sUser=; expires="+date.toGMTString()+"; path=/;";}function getRefLink() {	var curURL = unescape( top.location.pathname );	if ( curURL.indexOf("/RefLink/") == -1 ) { return; }	var sCode=strCurURL.substring(1,curURL.length) ;	if ( sCode != "" ) {		var expD = new Date();		expD.setTime(expD.getTime()+(24*60*60*1000*90));		document.cookie = "sCode=" + escape(sCode.toUpperCase())+ "; expires=" + expD.toGMTString() + "; path=/;";	}} setSessionInfo();getRefLink();if ( isAll && !isPrint && !isMac ) {	document.writeln('<OBJECT ID="WB" WIDTH="0" HEIGHT="0" CLASSID="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>');	document.writeln('<' + 'SCRIPT LANGUAGE="VBScript">');	document.writeln('Sub window_onunload');	document.writeln('	On Error Resume Next');	document.writeln('	Set WB = nothing');	document.writeln('End Sub');	document.writeln('Sub vbLaunchPrint');	document.writeln('	OLECMDID_PRINT = 6');	document.writeln('	OLECMDEXECOPT_DONTPROMPTUSER = 2');	document.writeln('	OLECMDEXECOPT_PROMPTUSER = 1');	document.writeln('	On Error Resume Next');	document.writeln('	WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER');	document.writeln('End Sub');	document.writeln('<' + '/SCRIPT>');}function showPrintOk( url ) {	var aWidth = 700 ;	var aHeight = parseInt( screen.height * 4 / 5 ) ;	var aLeft = parseInt( ( screen.width - aWidth ) / 2 ) ;		var aTop = parseInt( ( screen.height - aHeight ) / 2 ) ;	return window.open( url, "", "scrollbars=yes,width="+aWidth+",height="+aHeight+",left="+aLeft+",top="+aTop+",resizable=yes" ) ;}function launchPrint() {	if ( isPrint ) // NN, IE5		window.print();	else if ( isAll && !isMac ) // IE4 (Windows)		vbLauchPrint();	else // other browsers		alert("Sorry, your browser doesn't support this feature.");  	return false;}function RefreshSelf() {	var form = self.document.forms[0] ;	form.target = self.name ;	form.__Click.value = '$Refresh' ;	form.submit() ;}function initAnchorFades() {	var currentURL = unescape(window.location);	if (currentURL.indexOf('#')>-1) 		DoAnchorFade(19, currentURL.substring(currentURL.indexOf('#')+1,currentURL.length) );}function DoAnchorFade(colorId, targetId) {	if (colorId >= 1) {		var FadeSteps = new Array();		FadeSteps[1] = "ff";		FadeSteps[2] = "f0";		FadeSteps[3] = "ea";		FadeSteps[4] = "ee";		FadeSteps[5] = "e0";		FadeSteps[6] = "da";		FadeSteps[7] = "dd";		FadeSteps[8] = "d0";		FadeSteps[9] = "ca";		FadeSteps[10] = "cc";		FadeSteps[11] = "c0";		FadeSteps[12] = "ba";		FadeSteps[13] = "bb";		FadeSteps[14] = "b0";		FadeSteps[15] = "aa";		FadeSteps[16] = "a0";		FadeSteps[17] = "9a";		FadeSteps[18] = "90";		FadeSteps[19] = "99";		var FadeInterval = 200;		var nameId = "highlight_"+targetId;		var tgtId = document.getElementById(nameId);		if ( tgtId ) {			tgtId.style.backgroundColor = "#ffff" + FadeSteps[colorId];			if (colorId==1) {				tgtId.style.backgroundColor = "transparent";			}			colorId--;			setTimeout("DoAnchorFade("+colorId+",'"+targetId+"')", FadeInterval);		}	}}//jQuery Tools 1.2.3 - The missing UI library for the Web//[scrollable, scrollable.autoscroll, scrollable.navigator]//http://flowplayer.org/tools///File generated: Sat Jun 12 12:11:15 GMT 2010(function(e){function n(f,c){var a=e(c);return a.length<2?a:f.parent().find(c)}function t(f,c){var a=this,l=f.add(a),g=f.children(),k=0,m=c.vertical;j||(j=a);if(g.length>1)g=e(c.items,f);e.extend(a,{getConf:function(){return c},getIndex:function(){return k},getSize:function(){return a.getItems().size()},getNaviButtons:function(){return o.add(p)},getRoot:function(){return f},getItemWrap:function(){return g},getItems:function(){return g.children(c.item).not("."+c.clonedClass)},move:function(b,d){return a.seekTo(k+b,d)},next:function(b){return a.move(1,b)},prev:function(b){return a.move(-1,b)},begin:function(b){return a.seekTo(0,b)},end:function(b){return a.seekTo(a.getSize()-1,b)},focus:function(){return j=a},addItem:function(b){b=e(b);if(c.circular){e(".cloned:last").before(b);e(".cloned:first").replaceWith(b.clone().addClass(c.clonedClass))}else g.append(b);l.trigger("onAddItem",[b]);return a},seekTo:function(b,d,h){if(c.circular&&b===0&&k==-1&&d!==0)return a;if(!c.circular&&b<0||b>a.getSize()||b<-1)return a;var i=b;if(b.jquery)b=a.getItems().index(b);else i=a.getItems().eq(b);var q=e.Event("onBeforeSeek");if(!h){l.trigger(q,[b,d]);if(q.isDefaultPrevented()||!i.length)return a}i=m?{top:-i.position().top}:{left:-i.position().left};k=b;j=a;if(d===undefined)d=c.speed;g.animate(i,d,c.easing,h||function(){l.trigger("onSeek",[b])});return a}});e.each(["onBeforeSeek","onSeek","onAddItem"],function(b,d){e.isFunction(c[d])&&e(a).bind(d,c[d]);a[d]=function(h){e(a).bind(d,h);return a}});if(c.circular){var r=a.getItems().slice(-1).clone().prependTo(g),s=a.getItems().eq(1).clone().appendTo(g);r.add(s).addClass(c.clonedClass);a.onBeforeSeek(function(b,d,h){if(!b.isDefaultPrevented())if(d==-1){a.seekTo(r,h,function(){a.end(0)});return b.preventDefault()}else d==a.getSize()&&a.seekTo(s,h,function(){a.begin(0)})});a.seekTo(0,0)}var o=n(f,c.prev).click(function(){a.prev()}),p=n(f,c.next).click(function(){a.next()});!c.circular&&a.getSize()>1&&a.onBeforeSeek(function(b,d){setTimeout(function(){if(!b.isDefaultPrevented()){o.toggleClass(c.disabledClass,d<=0);p.toggleClass(c.disabledClass,d>=a.getSize()-1)}},1)});c.mousewheel&&e.fn.mousewheel&&f.mousewheel(function(b,d){if(c.mousewheel){a.move(d<0?1:-1,c.wheelSpeed||50);return false}});c.keyboard&&e(document).bind("keydown.scrollable",function(b){if(!(!c.keyboard||b.altKey||b.ctrlKey||e(b.target).is(":input")))if(!(c.keyboard!="static"&&j!=a)){var d=b.keyCode;if(m&&(d==38||d==40)){a.move(d==38?-1:1);return b.preventDefault()}if(!m&&(d==37||d==39)){a.move(d==37?-1:1);return b.preventDefault()}}});e(a).trigger("onBeforeSeek",[c.initialIndex])}e.tools=e.tools||{version:"1.2.3"};e.tools.scrollable={conf:{activeClass:"active",circular:false,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:null,items:".items",keyboard:true,mousewheel:false,next:".next",prev:".prev",speed:400,vertical:false,wheelSpeed:0}};var j;e.fn.scrollable=function(f){var c=this.data("scrollable");if(c)return c;f=e.extend({},e.tools.scrollable.conf,f);this.each(function(){c=new t(e(this),f);e(this).data("scrollable",c)});return f.api?c:this}})(jQuery);(function(c){var g=c.tools.scrollable;g.autoscroll={conf:{autoplay:true,interval:3E3,autopause:true}};c.fn.autoscroll=function(d){if(typeof d=="number")d={interval:d};var b=c.extend({},g.autoscroll.conf,d),h;this.each(function(){var a=c(this).data("scrollable");if(a)h=a;var e,i,f=true;a.play=function(){if(!e){f=false;e=setInterval(function(){a.next()},b.interval);a.next()}};a.pause=function(){e=clearInterval(e)};a.stop=function(){a.pause();f=true};b.autopause&&a.getRoot().add(a.getNaviButtons()).hover(function(){a.pause();clearInterval(i)},function(){f||(i=setTimeout(a.play,b.interval))});b.autoplay&&setTimeout(a.play,b.interval)});return b.api?h:this}})(jQuery);(function(d){function p(c,g){var h=d(g);return h.length<2?h:c.parent().find(g)}var m=d.tools.scrollable;m.navigator={conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,idPrefix:null,history:false}};d.fn.navigator=function(c){if(typeof c=="string")c={navi:c};c=d.extend({},m.navigator.conf,c);var g;this.each(function(){function h(a,b,i){e.seekTo(b);if(j){if(location.hash)location.hash=a.attr("href").replace("#","")}else return i.preventDefault()}function f(){return k.find(c.naviItem||"> *")}function n(a){var b=d("<"+(c.naviItem||"a")+"/>").click(function(i){h(d(this),a,i)}).attr("href","#"+a);a===0&&b.addClass(l);c.indexed&&b.text(a+1);c.idPrefix&&b.attr("id",c.idPrefix+a);return b.appendTo(k)}function o(a,b){a=f().eq(b.replace("#",""));a.length||(a=f().filter("[href="+b+"]"));a.click()}var e=d(this).data("scrollable"),k=p(e.getRoot(),c.navi),q=e.getNaviButtons(),l=c.activeClass,j=c.history&&d.fn.history;if(e)g=e;e.getNaviButtons=function(){return q.add(k)};f().length?f().each(function(a){d(this).click(function(b){h(d(this),a,b)})}):d.each(e.getItems(),function(a){n(a)});e.onBeforeSeek(function(a,b){setTimeout(function(){if(!a.isDefaultPrevented()){var i=f().eq(b);!a.isDefaultPrevented()&&i.length&&f().removeClass(l).eq(b).addClass(l)}},1)});e.onAddItem(function(a,b){b=n(e.getItems().index(b));j&&b.history(o)});j&&f().history(o)});return c.api?g:this}})(jQuery);//ColorBox v1.3.9 - a full featured, light-weight, customizable lightbox based on jQuery 1.3//c) 2009 Jack Moore - www.colorpowered.com - jack@colorpowered.com//Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php(function(b,gb){var v="none",t="click",N="LoadedContent",d=false,x="resize.",o="y",u="auto",f=true,M="nofollow",q="on",n="x";function e(a,c){a=a?' id="'+k+a+'"':"";c=c?' style="'+c+'"':"";return b("<div"+a+c+"/>")}function p(a,b){b=b===n?m.width():m.height();return typeof a==="string"?Math.round(a.match(/%/)?b/100*parseInt(a,10):parseInt(a,10)):a}function Q(c){c=b.isFunction(c)?c.call(h):c;return a.photo||c.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function cb(){for(var c in a)if(b.isFunction(a[c])&&c.substring(0,2)!==q)a[c]=a[c].call(h);a.rel=a.rel||h.rel||M;a.href=a.href||b(h).attr("href");a.title=a.title||h.title}function db(d){h=d;a=b.extend({},b(h).data(r));cb();if(a.rel!==M){i=b("."+H).filter(function(){return (b(this).data(r).rel||this.rel)===a.rel});g=i.index(h);if(g===-1){i=i.add(h);g=i.length-1}}else{i=b(h);g=0}if(!w){w=F=f;R=h;try{R.blur()}catch(e){}b.event.trigger(hb);a.onOpen&&a.onOpen.call(h);y.css({opacity:+a.opacity,cursor:a.overlayClose?"pointer":u}).show();a.w=p(a.initialWidth,n);a.h=p(a.initialHeight,o);c.position(0);S&&m.bind(x+O+" scroll."+O,function(){y.css({width:m.width(),height:m.height(),top:m.scrollTop(),left:m.scrollLeft()})}).trigger("scroll."+O)}T.add(I).add(J).add(z).add(U).hide();V.html(a.close).show();c.slideshow();c.load()}var eb={transition:"elastic",speed:300,width:d,initialWidth:"600",innerWidth:d,maxWidth:d,height:d,initialHeight:"450",innerHeight:d,maxHeight:d,scalePhotos:f,scrolling:f,inline:d,html:d,iframe:d,photo:d,href:d,title:d,rel:d,opacity:.9,preloading:f,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:d,loop:f,slideshow:d,slideshowAuto:f,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:d,onLoad:d,onComplete:d,onCleanup:d,onClosed:d,overlayClose:f,escKey:f,arrowKey:f},r="colorbox",k="cbox",hb=k+"_open",P=k+"_load",W=k+"_complete",X=k+"_cleanup",fb=k+"_closed",G=b.browser.msie&&!b.support.opacity,S=G&&b.browser.version<7,O=k+"_IE6",y,j,E,s,Y,Z,ab,bb,i,m,l,K,L,U,T,z,J,I,V,C,D,A,B,h,R,g,a,w,F,c,H=k+"Element";c=b.fn[r]=b[r]=function(c,d){var a=this;if(!a[0]&&a.selector)return a;c=c||{};if(d)c.onComplete=d;if(!a[0]||a.selector===undefined){a=b("<a/>");c.open=f}a.each(function(){b(this).data(r,b.extend({},b(this).data(r)||eb,c)).addClass(H)});c.open&&db(a[0]);return a};c.init=function(){var h="hover";m=b(gb);j=e().attr({id:r,"class":G?k+"IE":""});y=e("Overlay",S?"position:absolute":"").hide();E=e("Wrapper");s=e("Content").append(l=e(N,"width:0; height:0"),L=e("LoadingOverlay").add(e("LoadingGraphic")),U=e("Title"),T=e("Current"),J=e("Next"),I=e("Previous"),z=e("Slideshow"),V=e("Close"));E.append(e().append(e("TopLeft"),Y=e("TopCenter"),e("TopRight")),e().append(Z=e("MiddleLeft"),s,ab=e("MiddleRight")),e().append(e("BottomLeft"),bb=e("BottomCenter"),e("BottomRight"))).children().children().css({"float":"left"});K=e(d,"position:absolute; width:9999px; visibility:hidden; display:none");b("body").prepend(y,j.append(E,K));s.children().hover(function(){b(this).addClass(h)},function(){b(this).removeClass(h)}).addClass(h);C=Y.height()+bb.height()+s.outerHeight(f)-s.height();D=Z.width()+ab.width()+s.outerWidth(f)-s.width();A=l.outerHeight(f);B=l.outerWidth(f);j.css({"padding-bottom":C,"padding-right":D}).hide();J.click(c.next);I.click(c.prev);V.click(c.close);s.children().removeClass(h);b("."+H).live(t,function(a){if(a.button!==0&&typeof a.button!=="undefined"||a.ctrlKey||a.shiftKey||a.altKey)return f;else{db(this);return d}});y.click(function(){a.overlayClose&&c.close()});b(document).bind("keydown",function(b){if(w&&a.escKey&&b.keyCode===27){b.preventDefault();c.close()}if(w&&a.arrowKey&&!F&&i[1])if(b.keyCode===37&&(g||a.loop)){b.preventDefault();I.click()}else if(b.keyCode===39&&(g<i.length-1||a.loop)){b.preventDefault();J.click()}})};c.remove=function(){j.add(y).remove();b("."+H).die(t).removeData(r).removeClass(H)};c.position=function(f,b){function c(a){Y[0].style.width=bb[0].style.width=s[0].style.width=a.style.width;L[0].style.height=L[1].style.height=s[0].style.height=Z[0].style.height=ab[0].style.height=a.style.height}var e,h=Math.max(m.height()-a.h-A-C,0)/2+m.scrollTop(),g=Math.max(m.width()-a.w-B-D,0)/2+m.scrollLeft();e=j.width()===a.w+B&&j.height()===a.h+A?0:f;E[0].style.width=E[0].style.height="9999px";j.dequeue().animate({width:a.w+B,height:a.h+A,top:h,left:g},{duration:e,complete:function(){c(this);F=d;E[0].style.width=a.w+B+D+"px";E[0].style.height=a.h+A+C+"px";b&&b()},step:function(){c(this)}})};c.resize=function(b){if(w){b=b||{};if(b.width)a.w=p(b.width,n)-B-D;if(b.innerWidth)a.w=p(b.innerWidth,n);l.css({width:a.w});if(b.height)a.h=p(b.height,o)-A-C;if(b.innerHeight)a.h=p(b.innerHeight,o);if(!b.innerHeight&&!b.height){b=l.wrapInner("<div style='overflow:auto'></div>").children();a.h=b.height();b.replaceWith(b.children())}l.css({height:a.h});c.position(a.transition===v?0:a.speed)}};c.prep=function(o){var d="hidden";function n(t){var o,q,s,n,d=i.length,e=a.loop;c.position(t,function(){function t(){G&&j[0].style.removeAttribute("filter")}if(w){G&&p&&l.fadeIn(100);a.iframe&&b("<iframe frameborder=0"+(a.scrolling?"":" scrolling='no'")+(G?" allowtransparency='true'":"")+"/>").attr({src:a.href,name:(new Date).getTime()}).appendTo(l);l.show();U.show().html(a.title);if(d>1){T.html(a.current.replace(/\{current\}/,g+1).replace(/\{total\}/,d)).show();J[e||g<d-1?"show":"hide"]().html(a.next);I[e||g?"show":"hide"]().html(a.previous);o=g?i[g-1]:i[d-1];s=g<d-1?i[g+1]:i[0];if(a.slideshow){z.show();g===d-1&&!e&&j.is("."+k+"Slideshow_on")&&z.click()}if(a.preloading){n=b(s).data(r).href||s.href;q=b(o).data(r).href||o.href;if(Q(n))b("<img/>")[0].src=n;if(Q(q))b("<img/>")[0].src=q}}L.hide();a.transition==="fade"?j.fadeTo(f,1,function(){t()}):t();m.bind(x+k,function(){c.position(0)});b.event.trigger(W);a.onComplete&&a.onComplete.call(h)}})}if(w){var p,f=a.transition===v?0:a.speed;m.unbind(x+k);l.remove();l=e(N).html(o);l.hide().appendTo(K.show()).css({width:function(){a.w=a.w||l.width();a.w=a.mw&&a.mw<a.w?a.mw:a.w;return a.w}(),overflow:a.scrolling?u:d}).css({height:function(){a.h=a.h||l.height();a.h=a.mh&&a.mh<a.h?a.mh:a.h;return a.h}()}).prependTo(s);K.hide();b("#"+k+"Photo").css({cssFloat:v});S&&b("select").not(j.find("select")).filter(function(){return this.style.visibility!==d}).css({visibility:d}).one(X,function(){this.style.visibility="inherit"});a.transition==="fade"?j.fadeTo(f,0,function(){n(0)}):n(f)}};c.load=function(){var j,d,q,m=c.prep;F=f;h=i[g];a=b.extend({},b(h).data(r));cb();b.event.trigger(P);a.onLoad&&a.onLoad.call(h);a.h=a.height?p(a.height,o)-A-C:a.innerHeight&&p(a.innerHeight,o);a.w=a.width?p(a.width,n)-B-D:a.innerWidth&&p(a.innerWidth,n);a.mw=a.w;a.mh=a.h;if(a.maxWidth){a.mw=p(a.maxWidth,n)-B-D;a.mw=a.w&&a.w<a.mw?a.w:a.mw}if(a.maxHeight){a.mh=p(a.maxHeight,o)-A-C;a.mh=a.h&&a.h<a.mh?a.h:a.mh}j=a.href;L.show();if(a.inline){e("InlineTemp").hide().insertBefore(b(j)[0]).bind(P+" "+X,function(){b(this).replaceWith(l.children())});m(b(j))}else if(a.iframe)m(" ");else if(a.html)m(a.html);else if(Q(j)){d=new Image;d.onload=function(){var e;d.onload=null;d.id=k+"Photo";b(d).css({margin:u,border:v,display:"block",cssFloat:"left"});if(a.scalePhotos){q=function(){d.height-=d.height*e;d.width-=d.width*e};if(a.mw&&d.width>a.mw){e=(d.width-a.mw)/d.width;q()}if(a.mh&&d.height>a.mh){e=(d.height-a.mh)/d.height;q()}}if(a.h)d.style.marginTop=Math.max(a.h-d.height,0)/2+"px";setTimeout(function(){m(d)},1);i[1]&&(g<i.length-1||a.loop)&&b(d).css({cursor:"pointer"}).click(c.next);if(G)d.style.msInterpolationMode="bicubic"};d.src=j}else e().appendTo(K).load(j,function(c,a,b){m(a==="error"?"Request unsuccessful: "+b.statusText:this)})};c.next=function(){if(!F){g=g<i.length-1?g+1:0;c.load()}};c.prev=function(){if(!F){g=g?g-1:i.length-1;c.load()}};c.slideshow=function(){function f(){z.text(a.slideshowStop).bind(W,function(){d=setTimeout(c.next,a.slideshowSpeed)}).bind(P,function(){clearTimeout(d)}).one(t,function(){e()});j.removeClass(b+"off").addClass(b+q)}var e,d,b=k+"Slideshow_";z.bind(fb,function(){z.unbind();clearTimeout(d);j.removeClass(b+"off "+b+q)});e=function(){clearTimeout(d);z.text(a.slideshowStart).unbind(W+" "+P).one(t,function(){f();d=setTimeout(c.next,a.slideshowSpeed)});j.removeClass(b+q).addClass(b+"off")};if(a.slideshow&&i[1])a.slideshowAuto?f():e()};c.close=function(){if(w){w=d;b.event.trigger(X);a.onCleanup&&a.onCleanup.call(h);m.unbind("."+k+" ."+O);y.fadeTo("fast",0);j.stop().fadeTo("fast",0,function(){j.find("iframe").attr("src","about:blank");l.remove();j.add(y).css({opacity:1,cursor:u}).hide();try{R.focus()}catch(c){}setTimeout(function(){b.event.trigger(fb);a.onClosed&&a.onClosed.call(h)},1)})}};c.element=function(){return b(h)};c.settings=eb;b(c.init)})(jQuery,this)$(document).ready(function(){	$("a.cbImage").colorbox({opacity:'0.5', current:"{current}/{total}"});	$("a.cbDialog").colorbox({opacity:'0.1', initialWidth:"10", initialHeight :"10"});	$("a.cbLicense").colorbox({opacity:'0.1', iframe:true, innerWidth:"760", innerHeight:"300"});	$("a.cbUser").colorbox({opacity:'0.1', iframe:true, innerWidth:"430", innerHeight:"260"});	$("a.cbVideo").colorbox({opacity:'0.5', iframe:true, innerWidth:"770", innerHeight:"600"});		});// CrossSlide jQuery plugin v0.6.2// Copyright 2007-2010 by Tobia Conforto <tobia.conforto@gmail.com>(function(){var d=jQuery,a=(d.fn.startAnimation?"startAnimation":"animate"),c="pause plugin missing.";function e(h){for(var g=1;g<arguments.length;g++){h=h.replace(new RegExp("\\{"+(g-1)+"}","g"),arguments[g])}return h}function f(){arguments[0]="CrossSlide: "+arguments[0];throw new Error(e.apply(null,arguments))}function b(i){var g=1;var h=i.replace(/^\s*|\s*$/g,"").split(/\s+/);if(h.length>3){throw new Error()}if(h[0]=="center"){if(h.length==1){h=["center","center"]}else{if(h.length==2&&h[1].match(/^[\d.]+x$/i)){h=["center","center",h[1]]}}}if(h.length==3){g=parseFloat(h[2].match(/^([\d.]+)x$/i)[1])}var j=h[0]+" "+h[1];if(j=="left top"||j=="top left"){return{xrel:0,yrel:0,zoom:g}}if(j=="left center"||j=="center left"){return{xrel:0,yrel:0.5,zoom:g}}if(j=="left bottom"||j=="bottom left"){return{xrel:0,yrel:1,zoom:g}}if(j=="center top"||j=="top center"){return{xrel:0.5,yrel:0,zoom:g}}if(j=="center center"){return{xrel:0.5,yrel:0.5,zoom:g}}if(j=="center bottom"||j=="bottom center"){return{xrel:0.5,yrel:1,zoom:g}}if(j=="right top"||j=="top right"){return{xrel:1,yrel:0,zoom:g}}if(j=="right center"||j=="center right"){return{xrel:1,yrel:0.5,zoom:g}}if(j=="right bottom"||j=="bottom right"){return{xrel:1,yrel:1,zoom:g}}return{xrel:parseInt(h[0].match(/^(\d+)%$/)[1])/100,yrel:parseInt(h[1].match(/^(\d+)%$/)[1])/100,zoom:g}}d.fn.crossSlide=function(i,k,l){var g=this,j=this.width(),h=this.height();if(g.length!=1){f("crossSlide() must be called on exactly 1 element")}g.get(0).crossSlideArgs=[i,k,l];k=d.map(k,function(m){return d.extend({},m)});if(!i.easing){i.easing=i.variant?"swing":"linear"}if(!l){l=function(){}}(function(o){var m=0;function n(q,p){p.onload=function(r){m++;k[q].width=p.width;k[q].height=p.height;if(m==k.length){o()}};p.src=k[q].src;if(q+1<k.length){n(q+1,new Image())}}n(0,new Image())})(function(){if(!i.fade){f("missing fade parameter.")}if(i.speed&&i.sleep){f("you cannot set both speed and sleep at the same time.")}var A=Math.round(i.fade*1000);if(i.sleep){var z=Math.round(i.sleep*1000)}if(i.speed){var o=i.speed/1000,v=Math.round(A*o)}g.empty().css({overflow:"hidden",padding:0});if(!/^(absolute|relative|fixed)$/.test(g.css("position"))){g.css({position:"relative"})}if(!g.width()||!g.height()){f("container element does not have its own width and height")}if(i.shuffle){k.sort(function(){return Math.random()-0.5})}for(var t=0;t<k.length;++t){var m=k[t];if(!m.src){f("missing src parameter in picture {0}.",t+1)}if(o){switch(m.dir){case"up":m.from={xrel:0.5,yrel:0,zoom:1};m.to={xrel:0.5,yrel:1,zoom:1};var x=m.height-h-2*v;break;case"down":m.from={xrel:0.5,yrel:1,zoom:1};m.to={xrel:0.5,yrel:0,zoom:1};var x=m.height-h-2*v;break;case"left":m.from={xrel:0,yrel:0.5,zoom:1};m.to={xrel:1,yrel:0.5,zoom:1};var x=m.width-j-2*v;break;case"right":m.from={xrel:1,yrel:0.5,zoom:1};m.to={xrel:0,yrel:0.5,zoom:1};var x=m.width-j-2*v;break;default:f("missing or malformed dir parameter in picture {0}.",t+1)}if(x<=0){f("impossible animation: either picture {0} is too small or div is too large or fade duration too long.",t+1)}m.time_ms=Math.round(x/o)}else{if(!z){if(!m.from||!m.to||!m.time){f("missing either speed/sleep option, or from/to/time params in picture {0}.",t+1)}try{m.from=b(m.from)}catch(w){f('malformed "from" parameter in picture {0}.',t+1)}try{m.to=b(m.to)}catch(w){f('malformed "to" parameter in picture {0}.',t+1)}if(!m.time){f('missing "time" parameter in picture {0}.',t+1)}m.time_ms=Math.round(m.time*1000)}}if(m.from){d.each([m.from,m.to],function(p,C){C.width=Math.round(m.width*C.zoom);C.height=Math.round(m.height*C.zoom);C.left=Math.round((j-C.width)*C.xrel);C.top=Math.round((h-C.height)*C.yrel)})}var s,y;y=s=d(e('<img src="{0}"/>',m.src));if(m.href){y=d(e('<a href="{0}"></a>',m.href)).append(s)}if(m.onclick){y.click(m.onclick)}if(m.alt){s.attr("alt",m.alt)}if(m.rel){y.attr("rel",m.rel)}if(m.href&&m.target){y.attr("target",m.target)}y.appendTo(g)}delete o;function n(D,C){var E=[0,A/(D.time_ms+2*A),1-A/(D.time_ms+2*A),1][C];return{left:Math.round(D.from.left+E*(D.to.left-D.from.left)),top:Math.round(D.from.top+E*(D.to.top-D.from.top)),width:Math.round(D.from.width+E*(D.to.width-D.from.width)),height:Math.round(D.from.height+E*(D.to.height-D.from.height))}}var u=g.find("img").css({position:"absolute",visibility:"hidden",top:0,left:0,border:0});u.eq(0).css({visibility:"visible"});if(!z){u.eq(0).css(n(k[0],i.variant?0:1))}var B=i.loop;function q(O,p){if(O%2==0){if(z){var E=O/2,S=(E-1+k.length)%k.length,P=u.eq(E),M=u.eq(S);var L=function(){l(E,P.get(0));M.css("visibility","hidden");setTimeout(p,z)}}else{var H=O/2,S=(H-1+k.length)%k.length,R=u.eq(H),M=u.eq(S),F=k[H].time_ms,N=n(k[H],i.variant?3:2);var L=function(){l(H,R.get(0));M.css("visibility","hidden");R[a](N,F,i.easing,p)}}}else{var D=Math.floor(O/2),G=Math.ceil(O/2)%k.length,Q=u.eq(D),C=u.eq(G),T={},K={visibility:"visible"},J={};if(G>D){K.opacity=0;J.opacity=1;if(i.doubleFade){T.opacity=0}}else{T.opacity=0;if(i.doubleFade){K.opacity=0;J.opacity=1}}if(!z){d.extend(K,n(k[G],0));if(!i.variant){d.extend(T,n(k[D],3));d.extend(J,n(k[G],1))}}if(d.isEmptyObject(J)){var L=function(){l(G,C.get(0),D,Q.get(0));C.css(K);Q[a](T,A,"linear",p)}}else{if(d.isEmptyObject(T)){var L=function(){l(G,C.get(0),D,Q.get(0));C.css(K);C[a](J,A,"linear",p)}}else{var L=function(){l(G,C.get(0),D,Q.get(0));C.css(K);C[a](J,A,"linear");Q[a](T,A,"linear",p)}}}}if(i.loop&&O==k.length*2-2){var I=L;L=function(){if(--B){I()}}}if(O>0){return q(O-1,L)}else{return L}}var r=q(k.length*2-1,function(){return r()});r()});return g};d.fn.crossSlideFreeze=function(){this.find("img").stop()};d.fn.crossSlideStop=function(){this.find("img").stop().remove()};d.fn.crossSlideRestart=function(){this.find("img").stop().remove();d.fn.crossSlide.apply(this,this.get(0).crossSlideArgs)};d.fn.crossSlidePause=function(){if(!d.fn.pause){f(c)}this.find("img").pause()};d.fn.crossSlideResume=function(){if(!d.fn.pause){f(c)}this.find("img").resume()}})();// -->
