/*@cc_on @*/
/*@if (@_win32)
	var ua = navigator.userAgent;
	var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
	if (re.exec(ua) != null) {
		ie_rv = parseFloat( RegExp.$1 );
	}
/*@end @*/
function getById(a){return document.getElementById(a);}function getByTag(b,a){var b=(b=="")?document.body:b;if(!b){return new Array();}return b.getElementsByTagName(a);}function createEl(a,d,c){var b=document.createElement(a);if(d&&(d!="")){b.className=d;}if(c&&(c!="")){b.innerHTML=c;}return b;}function addClass(b,a){if(!b.className.match(new RegExp(a))){b.className+=(b.className.length>0?" ":"")+a;}}function removeClass(b,a){b.className=b.className.replace(new RegExp("( ?|^)"+a+"\\b"),"");}function addCSSRule(b,a,c){if(b.insertRule){b.insertRule(a+" {"+c+";}",b.cssRules.length);}else{if(b.addRule){b.addRule(a,c);}}}function getByClass(d,c,b){var a;if(/.*native code.*/.test(document.getElementsByClassName)){a=function(g,f,e){return f.getElementsByClassName(g);};}else{a=function(j,h,g){var f=h.getElementsByTagName(g);trimedColl=new Array;for(var e=0;f[e];e++){if(f[e].className.match(new RegExp("( ?|^)"+j+"\\b"))){trimedColl[trimedColl.length]=f[e];}}return trimedColl;};}getByClass=function(g,f,e){var f=(f=="")?document.body:f;var e=(e=="")?"*":e;return a(g,f,e);};return getByClass(d,c,b);}function getStyle(b,a){if(document.defaultView&&document.defaultView.getComputedStyle){getStyle=function(d,c){return document.defaultView.getComputedStyle(d,"").getPropertyValue(c);};}else{getStyle=function(d,c){if(d.currentStyle){c=c.replace(/\-(\w)/g,function(e,f){return f.toUpperCase();});return d.currentStyle[c];}};}return getStyle(b,a);}function findPosition(a){if(typeof(a.offsetParent)!="undefined"){for(var c=0,b=0;a;a=a.offsetParent){c+=a.offsetLeft;b+=a.offsetTop;}return[c,b];}else{return[a.x,a.y];}}function getPageY(){var a=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var b=document.documentElement.scrollTop||document.body.scrollTop;return[a,b];}var addEvent=function(){if(window.addEventListener){return function(c,b,a){c.addEventListener(b,a,false);};}else{if(window.attachEvent){return function(c,b,a){var d=function(){a.call(c,window.event);};c.attachEvent("on"+b,d);};}}}();function setLinks(e,c){var d=[];for(var a=0;e[a];a++){d[a]=getByTag(c,e[a]);for(var b=0;d[a][b];b++){if(/zoom/.test(d[a][b].getAttribute("rel"))){new Zoom(d[a][b]);}else{if(/external|corporate/.test(d[a][b].getAttribute("rel"))){d[a][b].onclick=function(f){if(!f){var f=window.event;}if(f.shiftKey||f.altKey||f.ctrlKey||f.metaKey){return true;}window.open(this.href);return false;};}}}}}function GET_XMLHTTPRequest(){var d;try{d=new ActiveXObject("Microsoft.XMLHTTP");}catch(c){try{d=new ActiveXObject("Msxml2.XMLHTTP");}catch(b){try{d=new ActiveXObject("Msxml3.XMLHTTP");}catch(a){d=null;}}}if(!d&&typeof XMLHttpRequest!="undefined"){d=new XMLHttpRequest();}return d;}function fixIE(){}function fixLowIE(){}function Zoom(b){initOverlay();this.a=b;this.overlay=getById("overlay");this.container=getById("overlayContainer");this.container.w=400;this.container.h=250;this.a.onclick=function(a){return function(){a.click(this.href);return false;};}(this);}Zoom.prototype={click:function(a){this.file=a+"&js=true";this.overlay.innerHTML='<span id="loading"></span>';getById("loading").style.top=((getPageY()[0]-36)/2)+getPageY()[1]+"px";if(getById("ie6overlay")){removeClass(getById("ie6overlay"),"hidden");}this.overlay.style.height=getById("page").offsetHeight+"px";removeClass(this.overlay,"hidden");addClass(this.container,"transparent");removeClass(this.container,"hidden");var b=GET_XMLHTTPRequest();if(b){b.open("GET",this.file,true);b.setRequestHeader("User-Agent","XMLHTTP/1.0");b.onreadystatechange=function(c){return function(d){if(b.readyState!=4){return;}if(b.status!=200&&b.status!=304){c.handleError(b);return;}if(b.readyState==4){c.handleRequest(b);}};}(this);b.send(null);}else{getById("overlayContainer").innerHTML="Unable to load content";this.createNav();this.changePosition();}},changePosition:function(){this.container.style.width=this.container.w+"px";this.container.style.height=this.container.h+"px";this.container.style.marginLeft=-(this.container.w)/2+"px";var a=((getPageY()[0]-this.container.h)/2)+getPageY()[1];if(a<0){a=0;}this.container.style.top=a+"px";this.overlay.innerHTML="";removeClass(this.container,"transparent");},handleRequest:function(a){this.container.innerHTML=a.responseText;var e=getById("overlayInnerContent");if(e){this.createNav();this.container.w=e.offsetWidth;var b=getByClass("diaporama",this.container,"div");if(b&&b[0]){setDiaporama(e,"overlay");setLinks(["a","area"],b[0]);}this.container.h=e.offsetHeight;this.changePosition();var f=getByClass("content",this.container,"div");if(f&&f[0]){setLinks(["a","area"],f[0]);initSwfObjects(f[0]);}}},handleError:function(a){this.container.innerHTML="<strong>Data error :</strong> HTTP error"+a.status+"";this.container.w=400;this.container.h=250;this.createNav();this.changePosition();},createNav:function(){if(!getById("overlayNav")){var d=document.createElement("div");d.id="overlayNav";this.container.appendChild(d);}this.nav=getById("overlayNav");this.nav.items=getByTag(this.nav,"a");for(var a=0;this.nav.items[a];a++){new Zoom(this.nav.items[a]);}var b=createEl("a","closer","");b.href="#";b.onclick=function(c){return function(){c.close();return false;};}(this);this.closer=this.nav.appendChild(b);},close:function(){addClass(this.container,"hidden");addClass(this.overlay,"hidden");if(getById("ie6overlay")){addClass(getById("ie6overlay"),"hidden");}this.container.innerHTML="";return false;}};function initOverlay(){if(!getById("overlay")){var ov=createEl("div","hidden","");ov.id="overlay";ov.style.height=getById("page").offsetHeight+"px";document.getElementsByTagName("body")[0].appendChild(ov);
/*@if (@_win32)
			if(ie_rv < 7) {
				var f = document.createElement('iframe');
				f.id= 'ie6overlay';
				f.className = 'hidden';
				document.getElementsByTagName('body')[0].appendChild(f);
			}
		/*@end @*/
}if(!getById("overlayContainer")){var ovCt=createEl("div","hidden","");ovCt.id="overlayContainer";document.getElementsByTagName("body")[0].appendChild(ovCt);}}function setDiaporama(b,c){if(!b){var b=getById("content");}var f=getByClass("diaporama",b,"div");if(!f||!f[0]){return;}for(var a=0;f[a];++a){var e=getByClass("diapo",f[a],"div");var g=(c&&(c=="overlay"))?a+"_o":a;if(e&&e[1]){new Diapo(f[a],e,g,c);}}}function Diapo(a,n,b,k){this.container=a;addClass(this.container,"diapo_"+b+"_");this.dClass=".diapo_"+b+"_";this.cId=0;this.data_h=20;var o=document.styleSheets;var c=-1;for(var e=0;e<o.length;++e){if(o[e].disabled==false){if(!/print|text/.test(o[e].href)){c=e;}}}for(var e=0;n[e];++e){if(/current/.test(n[e].className)){this.cId=e;}var j=getByClass("data",n[e],"div");if(j&&j[0]){if(e==0){var l=this.container.clientWidth-parseInt(getStyle(j[0],"padding-left"),10)-parseInt(getStyle(j[0],"padding-right"),10);if(c!=-1){addCSSRule(o[c],this.dClass+" .data","width: "+l+"px");}}if(j[0].clientHeight>this.data_h){this.data_h=j[0].clientHeight;}}}var g=14;if(document.defaultView&&document.defaultView.getComputedStyle){g=parseInt(getStyle(this.container,"font-size"),10);}else{var m=createEl("span","wai","X");this.container.appendChild(m);m.style.left="10em";g=m.style.pixelLeft/10;this.container.removeChild(m);}var f=parseInt(this.data_h,10)/g;if(c!=-1){addCSSRule(o[c],this.dClass+" .data","height: "+f+"em");}this.diapos=n;this.max=n.length;this.addNav(k);this.state="play";this.ppTxt=["<strong>||</strong>","►"];this.rotate(3000);}Diapo.prototype={addNav:function(type){var dn=createEl("div","diapoNav","");this.container.appendChild(dn);this.nav_r=dn.appendChild(createEl("button","reposition","Focus"));this.nav_pp=dn.appendChild(createEl("button","playPause","<strong>||</strong>"));this.nav_p=dn.appendChild(createEl("button","prev","&laquo;"));this.count_d=dn.appendChild(createEl("span","",this.cId+1+"/"+this.max));this.nav_n=dn.appendChild(createEl("button","next","&raquo;"));this.nav_r.onclick=function(that){return function(){that.focusOn();return false;};}(this);this.nav_p.onclick=function(that){return function(){that.budge("prev");return false;};}(this);this.nav_n.onclick=function(that){return function(){that.budge("next");return false;};}(this);this.nav_pp.onclick=function(that){return function(){that.toggleState();return false;};}(this);
/*@if (@_win32)
			if(ie_rv < 8) {
				var bs = getByTag(this.container,'button');
				if(bs&&bs[0]){
					for(var i = 0; bs[i]; ++i) {
						bs[i].onmouseover = function() {addClass(this,'hover');}
						bs[i].onmouseout = function() {removeClass(this,'hover');}
						bs[i].onfocus = function() {addClass(this,'focus');}
						bs[i].onblur = function() {removeClass(this,'focus');}
					}
				}
			}
		/*@end @*/
if(type&&(type=="overlay")){var c=getByClass("closer",getById("overlayContainer"),"a");if(c&&c[0]){this.shortcuts="on";this.addShortcuts();this.close=c[0].onclick;c[0].onclick=function(that){return function(){document.onkeydown=function(){};that.close();return false;};}(this);}this.reFocus();}},addShortcuts:function(){document.onkeydown=function(a){return function(c){if(!c){var c=window.event;}if(c.metaKey||c.ctrlKey){return;}var b=false;switch(c.keyCode){case 27:document.onkeydown=function(){};a.close();b=true;break;case 32:a.toggleState("keypress");b=true;break;case 37:a.budge("prev");b=true;break;case 39:a.budge("next");b=true;break;}if(b&&c.preventDefault){c.preventDefault();}};}(this);},shift:function(a){var b=(a=="next")?((this.cId+1==this.max)?0:this.cId+1):((this.cId-1<0)?this.max-1:this.cId-1);removeClass(this.diapos[this.cId],"current");addClass(this.diapos[b],"current");this.cId=b;this.count_d.innerHTML=this.cId+1+"/"+this.max;},rotate:function(){var a=(this.rotate.arguments.length>0)?this.rotate.arguments[0]:3500;this.rTimeout=setTimeout(function(b){return function(){b.shift("next");b.rotate();};}(this),a);},toggleState:function(a){var b=(this.state=="play");if(b){clearTimeout(this.rTimeout);}else{this.rotate(300);}if(a=="keypress"){this.nav_pp.innerHTML=(b)?this.ppTxt[0]:this.ppTxt[1];clearTimeout(this.kTimeout);this.kTimeout=setTimeout(function(c){return function(){c.nav_pp.innerHTML=(c.state!="play")?c.ppTxt[1]:c.ppTxt[0];};}(this),1600);}else{this.nav_pp.innerHTML=(b)?this.ppTxt[1]:this.ppTxt[0];}this.state=(b)?"pause":"play";this.reFocus();},budge:function(a){clearTimeout(this.rTimeout);this.shift(a);if(this.state=="play"){this.rotate();}this.reFocus();},reFocus:function(){if(window.focus){this.nav_r.focus();}},focusOn:function(){if(window.focus){this.nav_pp.focus();if(this.shortcuts=="on"){clearTimeout(this.fTimeout);this.fTimeout=setTimeout(function(a){return function(){a.nav_r.focus();};}(this),1500);}}}};var init=function(){if(arguments.callee.done){return;}arguments.callee.done=true;if(!document.getElementsByTagName){return;}addClass(document.getElementsByTagName("body")[0],"scripted");setLinks(["a","area"],"");setDiaporama();
/*@cc_on @*/
/*@if (@_win32)
		var ua = navigator.userAgent;
		var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
		if (re.exec(ua) != null) {
			rv = parseFloat( RegExp.$1 );
			if(rv < 7) fixLowIE();
			if(rv < 8) fixIE();
		}
	/*@end @*/
};if(/WebKit/i.test(navigator.userAgent)){var _timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){clearInterval(_timer);init();}},10);}else{if(document.addEventListener){document.addEventListener("DOMContentLoaded",init,null);}else{
/*@cc_on @*/
/*@if (@_win32)
	document.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>");
	var script = document.getElementById("__ie_onload");
	script.onreadystatechange = function() {
		if (this.readyState == "complete")
			init();
	};
	/*@end @*/
window.onload=init;}}
