var base_url="http://francoisjosephgraf.com/";if(document.location.href.indexOf("www")!=-1)base_url="http://www.francoisjosephgraf.com/";var histo=[],hashIndex=0,ajax=false,currentHashIndex=0,current_hash,fr=null,htmlpage=null,htmlbody=null,ajaxtimer=null,ajaxtimertick=600,jCalix=new _$;
function _$(a,c){this.obj=a;this.isArray=false;this.onloadlist=[];this.init=false;this.isEmpty=true;if(this.obj)this.isEmpty=false;this.getObject=function(b){if(b===0)b="0";return b!=null&&this.obj.length>1?this.obj[b]:this.obj};this.get=function(b){if(this.obj==null)return null;if(b===0)b="0";return this.isArray?this.obj[b]:this.obj};this.html=function(b){if(b!=null)this.obj.innerHTML=b;else return this.obj.innerHTML};this.Display=function(b){if(b)this.obj.style.display=b;else{b=this.Attributes("style");
if(isIE7)return b.display;return b?b.toLowerCase().indexOf("display: none")!=-1?"none":b.toLowerCase().indexOf("display: block")!=-1?"block":b.toLowerCase().indexOf("display: fixed")!=-1?"fixed":b.toLowerCase().indexOf("display: inherited")?"inherited":null:null}};this.append=function(b){this.obj.appendChild(b)};this.val=function(b){if(b)this.Attributes("value",b);else return this.Attributes("value")};this.Attributes=function(b,e){if(e)jCalix_setAttributes(this.obj,b,e);else return this.obj.getAttribute(b)};
this.RemoveAttributes=function(b){isIE7&&b=="class"?this.obj.removeAttribute("className"):this.obj.removeAttribute(b)};this.RemoveClass=function(){isIE7?this.obj.removeAttribute("className"):this.obj.removeAttribute("class")};this.Class=function(b){if(b)jCalix_setClass(this.obj,b);else return jCalix_getClass(this.obj)};this.Id=function(b){if(b)jCalix_setId(this.obj,b);else return jCalix_getId(this.obj)};this.Click=function(b){this.obj.onclick=b};this.Load=function(b){this.obj.onload=b};this.Href=
function(){return this.obj.href};this.Length=function(){return this.obj.length};this.Style=function(){return this.obj.style};this.getStyle=function(){return jCalix_getStyle(this.obj)};this.getPosition=function(){return jCalix_getPosition(this.obj)};this.getWidth=function(){return this.obj.offsetWidth};this.getHeight=function(){return this.obj.offsetHeight};this.Opacity=function(b){if(b===0)b="0";if(b)jCalix_setOpacity(this.obj,b);else return jCalix_getOpacity(this.obj)};this.Clone=function(){return new _$(this.obj)};
this.Append=function(b){this.obj.appendChild(b.getObject())};if(typeof _$.initialized=="undefined"){_$.prototype.addOnLoad=function(b){this.onloadlist[this.onloadlist.length]=b};_$.prototype.onLoad=function(){jCalix_loadEvent(this.onloadlist)};_$.prototype.toArray=function(b){return jCalix_toArray(b)};_$.prototype.strContains=function(b,e){return jCalix_containsString(b,e)};_$.prototype.setCookie=function(b,e,f){jCalix_setCookie(b,e,f)};_$.prototype.getCookie=function(b){return jCalix_getCook(b)};
_$.prototype.checkNavigator=function(b){return jCalix_checkNav(b)};_$.prototype.ajaxRequest=function(b,e,f,g){return jCalix_ajax_request(b,e,f,g)};_$.prototype.ajaxSetLinks=function(b){if(b==null)b={callback_before:null,callback_in:null,callback_after:null};jCalix_setup_ajax_links(b.callback_before,b.callback_in,b.callback_after)};_$.prototype.initAjax=function(){jCalix_init_ajax()};_$.prototype.initAjaxHistory=function(){jCalix_init_history()};_$.prototype.addHistoryEntry=function(b,e){jCalix_add_history_entry(b,
e)};_$.prototype.CreateElement=function(b){return new _$(document.createElement(b))};_$.initialized=true}if(a){var d;if(typeof a=="object"||typeof a=="function")return this;else{this.init=true;if(c==null)c={node:null,index1:null,index2:null};if(a.charAt(0)==":"){a=a.split(":");a=a[1];if(c.node)if(c.index1!=null){this.obj=c.node.getElementsByTagName(a)[c.index1];return new _$(this.obj)}else{if(this.obj=c.node.getElementsByTagName(a))if(this.obj.length==1)return new _$(this.obj[0]);return jCalix_build_object_list(this.obj)}else if(c.index1!=
null){this.obj=document.getElementsByTagName(a)[c.index1];return new _$(this.obj)}else{if(this.obj=document.getElementsByTagName(a))if(this.obj.length==1)return new _$(this.obj[0]);return jCalix_build_object_list(this.obj)}}if(a.indexOf("#")!=-1)if(a.indexOf(":")!=-1){a=a.split(":");if(document.getElementById(a[0].substr(1))==null){this.obj=null;return new _$(this.obj)}if(c.index1!=null){this.obj=c.node!=null?c.node.getElementById(a[0].substr(1)).getElementsByTagName(a[1])[c.index1]:document.getElementById(a[0].substr(1)).getElementsByTagName(a[1])[c.index1];
return new _$(this.obj)}else{if(this.obj=c.node!=null?c.node.getElementById(a[0].substr(1)).getElementsByTagName(a[1]):document.getElementById(a[0].substr(1)).getElementsByTagName(a[1]))if(this.obj.length==1)return new _$(this.obj[0]);return jCalix_build_object_list(this.obj)}}else{this.obj=c.node!=null?c.node.getElementById(a.substr(1)):document.getElementById(a.substr(1));return new _$(this.obj)}else if(c.index1!=null)if(a.indexOf(":")!=-1){a=a.split(":");if(c.index2!=null){d=c.node!=null?jCalix_getElementsByClass(a[0].substr(1),
c.node):jCalix_getElementsByClass(a[0].substr(1));if(d!=null){if(d[c.index1]==null)return new _$(null);this.obj=d[c.index1].getElementsByTagName(a[1])[c.index2]}else this.obj=null;return new _$(this.obj)}else{d=c.node!=null?jCalix_getElementsByClass(a[0].substr(1),c.node):jCalix_getElementsByClass(a[0].substr(1));if(d!=null){if(d[c.index1]==null)return new _$(null);this.obj=d[c.index1].getElementsByTagName(a[1]);if(this.obj.length==1)return new _$(this.obj[0]);return jCalix_build_object_list(this.obj)}else{this.obj=
null;return new _$(this.obj)}}}else{d=c.node!=null?jCalix_getElementsByClass(a.substr(1),c.node):jCalix_getElementsByClass(a.substr(1));this.obj=d!=null?d[c.index1]:null;return new _$(this.obj)}else if(a.indexOf(":")!=-1){a=a.split(":");if(c.index2!=null){d=c.node!=null?jCalix_getElementsByClass(a[0].substr(1),c.node):jCalix_getElementsByClass(a[0].substr(1));if(d!=null){if(d[0]==null)return new _$(null);this.obj=d[0].getElementsByTagName(a[1])[c.index2]}else this.obj=null;return new _$(this.obj)}else{d=
c.node!=null?jCalix_getElementsByClass(a[0].substr(1),c.node):jCalix_getElementsByClass(a[0].substr(1));if(d!=null){if(d[0]==null)return new _$(null);this.obj=d[0].getElementsByTagName(a[1]);if(this.obj.length==1)return new _$(this.obj[0]);return jCalix_build_object_list(this.obj)}else{this.obj=null;return new _$(this.obj)}}}else{if(this.obj=c.node!=null?jCalix_getElementsByClass(a.substr(1),c.node):jCalix_getElementsByClass(a.substr(1)))if(this.obj.length==1)return new _$(this.obj[0]);return jCalix_build_object_list(this.obj)}}}}
function jCalix_build_object_list(a){if(a==null)return new _$(null);for(var c=new Array(a.length),d=0;d<a.length;d++)c[d]=new _$(a[d]);a=new _$(c);a.isArray=true;return a}function jCalix_getElementsByClass(a,c,d){if(c==null)c=document;if(d==null)d="*";var b=[];c=c.getElementsByTagName(d);a=" "+a+" ";for(j=i=0;i<c.length;i++)if((" "+c[i].className+" ").indexOf(a)!=-1)b[j++]=c[i];return b.length==0?null:b}function jCalix_do_onload(a){onloadlist[onloadlist.length]=a}
function jCalix_loadEvent(a){window.onload=function(){for(var c=0;c<a.length;c++)a[c]();return true}}function jCalix_setAttributes(a,c,d){a.setAttribute(c,d)}function jCalix_getClass(a){return isIE7?a.getAttribute("className"):a.getAttribute("class")}function jCalix_setClass(a,c,d){if(isIE7)d?a.setAttribute("className",jCalix_getClass(a)+" "+c):a.setAttribute("className",c);else d?a.setAttribute("class",jCalix_getClass(a)+" "+c):a.setAttribute("class",c)}
function jCalix_getId(a){return a.getAttribute("id")}function jCalix_setId(a,c){a.setAttribute("id",c)}function jCalix_getStyle(a){return a.getAttribute("style")}function jCalix_containsString(a,c){if(a==null)return false;return a.indexOf(c)!=-1?true:false}function jCalix_setOpacity(a,c){if(isIE){a.setAttribute("style","filter: aplha(opacity="+c*100+"); zoom:1;");a.style.filter="filter: aplha(opacity="+c*100+")";a.style.zoom=1}else a.style.opacity=c}
function jCalix_getOpacity(a){if(a.getAttribute("style")==null)return 1;if(isIE){if(isIE7){if(a.getAttribute("style").filter=="")return 1}else if(a.getAttribute("style").toLowerCase().indexOf("opacity")==-1)return 1;a=a.style.filter;a=a.split("=");a=a[1].split(")");return a[0]/100}else{if(a.getAttribute("style").indexOf("opacity")==-1)return 1;return a.style.opacity}}
function jCalix_setCookie(a,c,d){var b=new Date;b.setDate(b.getDate()+d);document.cookie=a+"="+escape(c)+(d==null?"":";expires="+b.toGMTString())}function jCalix_getCook(a){deb=document.cookie.indexOf(a+"=");if(deb>=0){deb+=a.length+1;fin=document.cookie.indexOf(";",deb);if(fin<0)fin=document.cookie.length;return unescape(document.cookie.substring(deb,fin))}return null}function jCalix_checkNav(a){place=navigator.appVersion.toLowerCase().indexOf(a)+1;thestring=a;return place}
function jCalix_getPosition(a){var c=0,d=0;if(a!=null){for(;a.offsetParent;){c+=a.offsetLeft;d+=a.offsetTop;a=a.offsetParent}c+=a.offsetLeft;d+=a.offsetTop}return{x:c,y:d}}function jCalix_toArray(a){for(var c=[],d=0;d<a.Length();d++)c[d]=a.get(d).getObject();return c}var hash="",parameters="";
function jCalix_ajax_request(a,c,d,b){http_request=true;if(window.XMLHttpRequest){http_request=new XMLHttpRequest;http_request.overrideMimeType&&http_request.overrideMimeType("text/xml")}else if(window.ActiveXObject)try{http_request=new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(e){try{http_request=new ActiveXObject("Microsoft.XMLHTTP")}catch(f){}}if(!http_request){alert("Cannot create XMLHTTP instance");return false}if(d==false){http_request.open("GET",a,true);http_request.send(null)}else{http_request.open("POST",
a,true);http_request.setRequestHeader("Content-type","application/x-www-form-urlencoded");isSafari||http_request.setRequestHeader("Connection","close");http_request.send(c)}http_request.onreadystatechange=function(){if(http_request.readyState==4)if(http_request.status==200){hash=a.replace(base_url,"");if(c)hash+="?"+c;hash="/"+hash;b(a,c)}};return http_request}
function jCalix_setup_ajax_links(a,c,d){a&&a();a=_$(":a");for(var b=0;b<a.Length();b++){a.get(b).getObject().ondblclick=function(){return false};if(!(jCalix_containsString(a.get(b).Class(),"n1")||jCalix_containsString(a.get(b).Class(),"n2")||jCalix_containsString(a.get(b).Class(),"p1")||jCalix_containsString(a.get(b).Class(),"p2")||a.get(b).Attributes("onclick"))){a.get(b).Href().split("?");if(a.get(b).Id()=="albumleft")!jCalix_containsString(_$("#bodyclass").html(),"contact")&&!jCalix_containsString(_$("#bodyclass").html(),
"creations")&&!jCalix_containsString(_$("#bodyclass").html(),"dotslide")?a.get(b).Click(slideleft):a.get(b).Click(previmg);else if(a.get(b).Id()=="albumright")!jCalix_containsString(_$("#bodyclass").html(),"contact")&&!jCalix_containsString(_$("#bodyclass").html(),"creations")&&!jCalix_containsString(_$("#bodyclass").html(),"dotslide")?a.get(b).Click(slideright):a.get(b).Click(nextimg);else a.get(b).Click(function(){if(!enableclick||ajax)return false;ajax=true;jCalix_getClass(this)&&jCalix_getClass(this).indexOf("lang")!=
-1&&jCalix_setCookie("lang",this.id,365);jCalix_ajax_request(this.href.split("?")[0],this.href.split("?")[1],true,c);return false})}}d&&d();return ajax=false}function jCalix_init_ajax(){var a=document.createElement("div");jCalix_setId(a,"content-receiver");jCalix_setClass(a,"ajaxbuffer");_$(":body",{index1:0}).append(a)}
function jCalix_init_history(){if(isIE7){fr=document.createElement("iframe");fr.setAttribute("name","histoframe");fr.setAttribute("id","histoframe");fr.setAttribute("src",base_url);fr.style.display="none";fr.style.visibility="hidden";fr.style.width="0";fr.style.height="0"}var a=document.createElement("div");a.setAttribute("id","historyindex");a.innerHTML="0";_$(":body",{index1:0}).append(a);histo=[];htmlpage=_$("#ajax");htmlbody=_$(":body",{index1:0});a.style.display="none";isIE7&&a.appendChild(fr)}
function jCalix_add_history_entry(a,c){var d=false;currentHashIndex=hashIndex;var b=hash.split("html");window.location.hash=b[1]?b[0]+"html/"+encode64(b[1].replace("//","/").replace("menu_id","mi").replace("dyn_id","di").replace("alb_id","ai")).replace("html","html/"):hash;current_hash=window.location.hash;for(b=histo.length-1;b>=0;b--)if(histo[b].key==a&&histo[b].parameters==c){d=true;break}if(!d){histo[hashIndex]=[];histo[hashIndex].html=htmlpage.html();histo[hashIndex].key=current_hash;histo[hashIndex].parameters=
c;histo[hashIndex].id=htmlbody.Class()}if(isIE7){window.frames.histoframe.document.open();window.frames.histoframe.document.write("<body>"+current_hash+"</body>");window.frames.histoframe.document.close()}document.createElement("div");histo[hashIndex].index=hashIndex;hashIndex++;if(ajaxtimer==null)ajaxtimer=window.setTimeout(jCalix_onTickCallback,ajaxtimertick);return false}
function jCalix_onTickCallback(){var a=false,c=document.location.hash;if(isIE7)c=window.frames.histoframe.document.body.innerHTML;if(current_hash!=c){current_hash=isIE7?c:document.location.hash;for(c=histo.length-1;c>=0;c--)if(current_hash==histo[c].key){currentHashIndex=histo[c].index;a=true;break}if(a)if(histo[currentHashIndex]!=null){htmlbody=_$(":body",{index1:0});htmlpage.html(histo[currentHashIndex].html);isIE6||jCalix.ajaxSetLinks({callback_in:ajaxResponse});htmlbody.Class(histo[currentHashIndex].id);
onLoad()}else{window.clearTimeout(ajaxtimer);ajaxtimer=null}}window.clearTimeout(ajaxtimer);ajaxtimer=window.setTimeout(jCalix_onTickCallback,ajaxtimertick)};