﻿(function(F){F.blockUI=function(M){C(window,M)};F.unblockUI=function(M){G(window,M)};F.fn.block=function(M){return this.each(function(){if(F.css(this,"position")=="static"){this.style.position="relative"}if(F.browser.msie){this.style.zoom=1}C(this,M)})};F.fn.unblock=function(M){return this.each(function(){G(this,M)})};F.blockUI.version=2.09;F.blockUI.defaults={message:"<h1>Please wait...</h1>",css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},overlayCSS:{},baseZ:1000,centerX:true,centerY:true,allowBodyStretch:true,constrainTabKey:true,fadeOut:400,focusInput:true,applyPlatformOpacityRules:true,onUnblock:null};var D=F.browser.msie&&/MSIE 6.0/.test(navigator.userAgent);var B=null;var E=[];function C(O,M){var X=(O==window);var P=M&&M.message!==undefined?M.message:undefined;M=F.extend({},F.blockUI.defaults,M||{});M.overlayCSS=F.extend({},F.blockUI.defaults.overlayCSS,M.overlayCSS||{});var W=F.extend({},F.blockUI.defaults.css,M.css||{});P=P===undefined?M.message:P;if(X&&B){G(window,{fadeOut:0})}if(P&&typeof P!="string"&&(P.parentNode||P.jquery)){var R=P.jquery?P[0]:P;var V={};F(O).data("blockUI.history",V);V.el=R;V.parent=R.parentNode;V.display=R.style.display;V.position=R.style.position;V.parent.removeChild(R)}var Y=M.baseZ;var U=(F.browser.msie)?F('<iframe class="blockUI" style="z-index:'+Y+++';border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="javascript:false;"></iframe>'):F('<div class="blockUI" style="display:none"></div>');var T=F('<div class="blockUI blockOverlay" style="z-index:'+Y+++';margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');var Q=X?F('<div class="blockUI blockMsg blockPage" style="z-index:'+Y+';position:fixed"></div>'):F('<div class="blockUI blockMsg blockElement" style="z-index:'+Y+';display:none;position:absolute"></div>');if(P){Q.css(W)}if(!M.applyPlatformOpacityRules||!(F.browser.mozilla&&/Linux/.test(navigator.platform))){T.css(M.overlayCSS)}T.css("position",X?"fixed":"absolute");if(F.browser.msie){U.css("opacity","0.0")}F([U[0],T[0],Q[0]]).appendTo(X?"body":O);var a=F.browser.msie&&(!F.boxModel||F("object,embed",X?null:O).length>0);if(D||a){if(X&&M.allowBodyStretch&&F.boxModel){F("html,body").css("height","100%")}if((D||!F.boxModel)&&!X){var b=J(O,"borderTopWidth"),S=J(O,"borderLeftWidth");var Z=b?"(0 - "+b+")":0;var N=S?"(0 - "+S+")":0}F.each([U,T,Q],function(c,e){var d=e[0].style;d.position="absolute";if(c<2){X?d.setExpression("height",'document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + "px"'):d.setExpression("height",'this.parentNode.offsetHeight + "px"');X?d.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):d.setExpression("width",'this.parentNode.offsetWidth + "px"');if(N){d.setExpression("left",N)}if(Z){d.setExpression("top",Z)}}else{if(M.centerY){if(X){d.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"')}d.marginTop=0}}})}Q.append(P).show();if(P&&(P.jquery||P.nodeType)){F(P).show()}I(1,O,M);if(X){B=Q[0];E=F(":input:enabled:visible",B);if(M.focusInput){setTimeout(L,20)}}else{A(Q[0],M.centerX,M.centerY)}}function G(O,P){var N=O==window;var Q=F(O).data("blockUI.history");P=F.extend({},F.blockUI.defaults,P||{});I(0,O,P);var M=N?F("body").children().filter(".blockUI"):F(".blockUI",O);if(N){B=E=null}if(P.fadeOut){M.fadeOut(P.fadeOut);setTimeout(function(){H(M,Q,P,O)},P.fadeOut)}else{H(M,Q,P,O)}}function H(M,P,O,N){M.each(function(Q,R){if(this.parentNode){this.parentNode.removeChild(this)}});if(P&&P.el){P.el.style.display=P.display;P.el.style.position=P.position;P.parent.appendChild(P.el);F(P.el).removeData("blockUI.history")}if(typeof O.onUnblock=="function"){O.onUnblock(N,O)}}function I(M,Q,R){var P=Q==window,O=F(Q);if(!M&&(P&&!B||!P&&!O.data("blockUI.isBlocked"))){return }if(!P){O.data("blockUI.isBlocked",M)}var N="mousedown mouseup keydown keypress click";M?F(document).bind(N,R,K):F(document).unbind(N,K)}function K(P){if(P.keyCode&&P.keyCode==9){if(B&&P.data.constrainTabKey){var O=E;var N=!P.shiftKey&&P.target==O[O.length-1];var M=P.shiftKey&&P.target==O[0];if(N||M){setTimeout(function(){L(M)},10);return false}}}if(F(P.target).parents("div.blockMsg").length>0){return true}return F(P.target).parents().children().filter("div.blockUI").length==0}function L(M){if(!E){return }var N=E[M===true?E.length-1:0];if(N){N.focus()}}function A(Q,M,S){var R=Q.parentNode,P=Q.style;var N=((R.offsetWidth-Q.offsetWidth)/2)-J(R,"borderLeftWidth");var O=((R.offsetHeight-Q.offsetHeight)/2)-J(R,"borderTopWidth");if(M){P.left=N>0?(N+"px"):"0"}if(S){P.top=O>0?(O+"px"):"0"}}function J(M,N){return parseInt(F.css(M,N))||0}})(jQuery);(function(A){A.fn.lavaLamp=function(B){B=A.extend({fx:"linear",speed:500,click:function(){},linum:0},B||{});return this.each(function(){var F=A(this),E=function(){},H=A('<li class="back"><div class="left"></div><div class="bottom"></div><div class="corner"></div></li>').appendTo(F),I=A("li",this),G=A("li.current",this)[0]||A(I[B.linum]).addClass("current")[0];I.not(".back").hover(function(){C(this)},E);A(this).hover(E,function(){C(G)});I.click(function(J){D(this);return B.click.apply(this,[J,this])});D(G);function D(J){H.css({left:J.offsetLeft+"px",width:J.offsetWidth+"px",height:J.offsetHeight+"px",top:J.offsetTop+"px"});G=J}function C(J){H.stop().animate({width:J.offsetWidth,left:J.offsetLeft,height:J.offsetHeight,top:J.offsetTop},B.speed,B.fx)}})}})(jQuery);(function(B){var A;B.fn.lightbox=function(C){A=B.extend({},B.fn.lightbox.defaults,C);B.fn.lightbox.initialize();return this.each(function(){B(this).click(function(){B(this).lightbox.start(this);return false})})};B.fn.lightbox.initialize=function(){B("#overlay").remove();B("#lightbox").remove();A.inprogress=false;var C='<div id="outerImageContainer"><div id="imageContainer"><img id="lightboxImage" alt="light box image"><div id="hoverNav"><a href="javascript://" title="'+A.strings.prevLinkTitle+'" id="prevLink"></a><a href="javascript://" id="nextLink" title="'+A.strings.nextLinkTitle+'"></a></div><div id="loading"><span id="loadingSpan"><img src="'+A.fileLoadingImage+'" alt="loading"></span></div></div></div>';var E='<div id="imageDataContainer" class="clearfix"><div id="imageData"><div id="imageDetails"><span id="caption"></span><span id="numberDisplay"></span></div><div id="bottomNav">';if(A.displayHelp){E+='<span id="helpDisplay">'+A.strings.help+"</span>"}E+='<a href="javascript://" id="bottomNavClose" title="'+A.strings.closeTitle+'"><img src="'+A.fileBottomNavCloseImage+'" alt="close"></a></div></div></div>';var D;if(A.navbarOnTop){D='<div id="overlay"></div><div id="lightbox">'+E+C+"</div>";B("body").append(D);B("#imageDataContainer").addClass("ontop")}else{D='<div id="overlay"></div><div id="lightbox">'+C+E+"</div>";B("body").append(D)}B("#overlay").click(function(){B.fn.lightbox.end()}).hide();B("#lightbox").click(function(){B.fn.lightbox.end()}).hide();B("#loadingLink").click(function(){B.fn.lightbox.end();return false});B("#bottomNavClose").click(function(){B.fn.lightbox.end();return false});B("#outerImageContainer").width(A.widthCurrent).height(A.heightCurrent);B("#imageDataContainer").width(A.widthCurrent)};B.fn.lightbox.getPageSize=function(){var F,C;if(window.innerHeight&&window.scrollMaxY){F=window.innerWidth+window.scrollMaxX;C=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){F=document.body.scrollWidth;C=document.body.scrollHeight}else{F=document.body.offsetWidth;C=document.body.offsetHeight}}var E,G;if(self.innerHeight){if(document.documentElement.clientWidth){E=document.documentElement.clientWidth}else{E=self.innerWidth}G=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){E=document.documentElement.clientWidth;G=document.documentElement.clientHeight}else{if(document.body){E=document.body.clientWidth;G=document.body.clientHeight}}}if(C<G){pageHeight=G}else{pageHeight=C}if(F<E){pageWidth=F}else{pageWidth=E}var D=new Array(pageWidth,pageHeight,E,G);return D};B.fn.lightbox.getPageScroll=function(){var E,C;if(self.pageYOffset){C=self.pageYOffset;E=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){C=document.documentElement.scrollTop;E=document.documentElement.scrollLeft}else{if(document.body){C=document.body.scrollTop;E=document.body.scrollLeft}}}var D=new Array(E,C);return D};B.fn.lightbox.pause=function(E){var D=new Date();var C=null;do{C=new Date()}while(C-D<E)};B.fn.lightbox.start=function(H){B("select, embed, object").hide();var D=B.fn.lightbox.getPageSize();B("#overlay").hide().css({width:"100%",height:D[1]+"px",opacity:A.overlayOpacity}).fadeIn();A.imageArray=[];imageNum=0;var F=document.getElementsByTagName(H.tagName);if(!H.rel||(H.rel=="")){A.imageArray.push(new Array(H.href,A.displayTitle?H.title:""))}else{B("a").each(function(){if(this.href&&(this.rel==H.rel)){A.imageArray.push(new Array(this.href,A.displayTitle?this.title:""))}});for(i=0;i<A.imageArray.length;i++){for(j=A.imageArray.length-1;j>i;j--){if(A.imageArray[i][0]==A.imageArray[j][0]){A.imageArray.splice(j,1)}}}while(A.imageArray[imageNum][0]!=H.href){imageNum++}}var C=B.fn.lightbox.getPageScroll();var G=C[1]+(D[3]/10);var E=C[0];B("#lightbox").css({top:G+"px",left:E+"px"}).show();if(!A.slideNavBar){B("#imageData").hide()}B.fn.lightbox.changeImage(imageNum)};B.fn.lightbox.changeImage=function(C){if(A.inprogress==false){A.inprogress=true;A.activeImage=C;B("#loading").show();B("#lightboxImage").hide();B("#hoverNav").hide();B("#prevLink").hide();B("#nextLink").hide();if(A.slideNavBar){B("#imageDataContainer").hide();B("#imageData").hide();B.fn.doChangeImage()}else{B.fn.doChangeImage()}}};B.fn.doChangeImage=function(){imgPreloader=new Image();imgPreloader.alt="preloader";imgPreloader.onload=function(){var G=imgPreloader.width;var C=imgPreloader.height;if(A.fitToScreen){var E=B.fn.lightbox.getPageSize();var F;var D=E[2]-2*A.borderSize;var H=E[3]-200;if(imgPreloader.height>H){G=parseInt((H/imgPreloader.height)*imgPreloader.width);C=H}else{if(imgPreloader.width>D){C=parseInt((D/imgPreloader.width)*imgPreloader.height);G=D}}}B("#lightboxImage").attr("src",A.imageArray[A.activeImage][0]).width(G).height(C);B.fn.lightbox.resizeImageContainer(G,C)};imgPreloader.src=A.imageArray[A.activeImage][0]};B.fn.lightbox.end=function(){B.fn.lightbox.disableKeyboardNav();B("#lightbox").hide();B("#overlay").fadeOut();B("select, object, embed").show()};B.fn.lightbox.preloadNeighborImages=function(){if((A.imageArray.length-1)>A.activeImage){preloadNextImage=new Image();preloadNextImage.src=A.imageArray[A.activeImage+1][0]}if(A.activeImage>0){preloadPrevImage=new Image();preloadPrevImage.src=A.imageArray[A.activeImage-1][0]}};B.fn.lightbox.keyboardAction=function(F){if(F==null){var C=event.keyCode;var D=27}else{var C=F.keyCode;var D=F.DOM_VK_ESCAPE}var E=String.fromCharCode(C).toLowerCase();if((E=="x")||(E=="o")||(E=="c")||(C==D)){B.fn.lightbox.end()}else{if((E=="p")||(C==37)){if(A.activeImage!=0){B.fn.lightbox.disableKeyboardNav();B.fn.lightbox.changeImage(A.activeImage-1)}}else{if((E=="n")||(C==39)){if(A.activeImage!=(A.imageArray.length-1)){B.fn.lightbox.disableKeyboardNav();B.fn.lightbox.changeImage(A.activeImage+1)}}}}};B.fn.lightbox.resizeImageContainer=function(F,D){A.widthCurrent=document.getElementById("outerImageContainer").offsetWidth;A.heightCurrent=document.getElementById("outerImageContainer").offsetHeight;var C=(F+(A.borderSize*2));var E=(D+(A.borderSize*2));A.xScale=(C/A.widthCurrent)*100;A.yScale=(E/A.heightCurrent)*100;wDiff=A.widthCurrent-C;hDiff=A.heightCurrent-E;B("#imageDataContainer").animate({width:C},A.resizeSpeed,"linear");B("#outerImageContainer").animate({width:C},A.resizeSpeed,"linear",function(){B("#outerImageContainer").animate({height:E},A.resizeSpeed,"linear",function(){B.fn.lightbox.showImage()})});if((hDiff==0)&&(wDiff==0)){if(jQuery.browser.msie){B.fn.lightbox.pause(250)}else{B.fn.lightbox.pause(100)}}B("#prevLink").height(D);B("#nextLink").height(D)};B.fn.lightbox.showImage=function(){B("#loading").hide();B("#lightboxImage").fadeIn("fast");B.fn.lightbox.updateDetails();B.fn.lightbox.preloadNeighborImages();A.inprogress=false};B.fn.lightbox.updateDetails=function(){if(A.imageArray[A.activeImage][1]){B("#caption").html(A.imageArray[A.activeImage][1]).show()}if(A.imageArray.length>1){var D;D=A.strings.image+(A.activeImage+1)+A.strings.of+A.imageArray.length;if((A.activeImage)>0){D='<a title="'+A.strings.prevLinkTitle+'" href="#" id="prevLinkText">'+A.strings.prevLinkText+"</a>"+D}if((A.activeImage+1)<A.imageArray.length){D+='<a title="'+A.strings.nextLinkTitle+'" href="#" id="nextLinkText">'+A.strings.nextLinkText+"</a>"}B("#numberDisplay").html(D).show()}if(A.slideNavBar){B("#imageData").slideDown(A.navBarSlideSpeed)}else{B("#imageData").show()}var C=B.fn.lightbox.getPageSize();B("#overlay").height(C[1]);B.fn.lightbox.updateNav()};B.fn.lightbox.updateNav=function(){B("#hoverNav").show();if(A.activeImage!=0){B("#prevLink,#prevLinkText").show().click(function(){B.fn.lightbox.changeImage(A.activeImage-1);return false})}if(A.activeImage!=(A.imageArray.length-1)){B("#nextLink,#nextLinkText").show().click(function(){B.fn.lightbox.changeImage(A.activeImage+1);return false})}B.fn.lightbox.enableKeyboardNav()};B.fn.lightbox.enableKeyboardNav=function(){document.onkeydown=B.fn.lightbox.keyboardAction};B.fn.lightbox.disableKeyboardNav=function(){document.onkeydown=""};B.fn.lightbox.defaults={fileLoadingImage:"../img/loading.gif",fileBottomNavCloseImage:"../img/closelabel.gif",overlayOpacity:0.8,borderSize:10,imageArray:new Array,activeImage:null,inprogress:false,resizeSpeed:350,widthCurrent:250,heightCurrent:250,xScale:1,yScale:1,displayTitle:true,navbarOnTop:false,slideNavBar:false,navBarSlideSpeed:350,displayHelp:false,strings:{help:" \u2190 / P - previous image\u00a0\u00a0\u00a0\u00a0\u2192 / N - next image\u00a0\u00a0\u00a0\u00a0ESC / X - close image gallery",prevLinkTitle:"previous image",nextLinkTitle:"next image",prevLinkText:"&laquo; Previous",nextLinkText:"Next &raquo;",closeTitle:"close image gallery",image:"Image ",of:" of "},fitToScreen:false}})(jQuery);this.blankwin=function(){var B=window.location.hostname;B=B.replace("www.","").toLowerCase();var A=document.getElementsByTagName("a");this.check=function(E){var D=E.href.toLowerCase();return(D.indexOf("http://")!=-1&&D.indexOf(B)==-1)?true:false};this.set=function(D){D.target="_blank";D.className="external"};for(var C=0;C<A.length;C++){if(check(A[C])){set(A[C])}}};this.addEvent=function(C,B,A){if(C.attachEvent){C["e"+B+A]=A;C[B+A]=function(){C["e"+B+A](window.event)};C.attachEvent("on"+B,C[B+A])}else{C.addEventListener(B,A,false)}};addEvent(window,"load",blankwin);$(function(){$("#menu-list").lavaLamp({fx:"easeInOutBack",speed:700,click:function(){return true}})});function Dictionary(){this.count=0;this.Obj=new Object();this.Arr=new Array();this.exists=Dictionary_exists;this.add=Dictionary_add;this.remove=Dictionary_remove;this.removeAll=Dictionary_removeAll;this.values=Dictionary_values;this.keys=Dictionary_keys;this.items=Dictionary_items;this.getVal=Dictionary_getVal;this.setVal=Dictionary_setVal;this.setKey=Dictionary_setKey;this.toString=Dictionary_stringValues;this.lastItem=Dictionary_lastItem}function Dictionary_exists(A){return(this.Obj[A])?true:false}function Dictionary_add(C,A){var B=String(C);if(this.exists(B)){return false}this.Obj[B]=A;this.Arr[this.Arr.length]=B;this.count++;return true}function Dictionary_remove(B){var A=String(B);if(!this.exists(A)){return false}delete this.Obj[A];Arr=new Array();for(i=0;i<this.Arr.length;i++){if(this.Arr[i]!=A){Arr[Arr.length]=this.Arr[i]}}this.Arr=Arr;this.count--;return true}function Dictionary_removeAll(){for(var A in this.Obj){delete this.Obj[A]}this.count=0;this.Arr=new Array()}function Dictionary_values(){var B=new Array();for(var A in this.Obj){B[B.length]=this.Obj[A]}return B}function Dictionary_stringValues(){var A="";for(var B in this.Obj){A+=this.Obj[B]}return A}function Dictionary_lastItem(){return this.Arr[this.Arr.length-1]}function Dictionary_keys(){var B=new Array();for(var A in this.Obj){B[B.length]=A}return B}function Dictionary_items(){var D=new Array();for(var C in this.Obj){var B=new Array(C,this.Obj[C]);D[D.length]=B}return D}function Dictionary_getVal(B){var A=String(B);return this.Obj[A]}function Dictionary_setVal(C,A){var B=String(C);if(this.exists(B)){this.Obj[B]=A}else{this.add(B,A)}}function Dictionary_setKey(D,B){var A=String(D);var C=String(B);if(this.exists(A)){if(!this.exists(C)){this.add(C,this.getVal(A));this.remove(A)}}else{if(!this.exists(C)){this.add(C,null)}}}function changeCrumbs(C){var B;if(C=="clevedon-crumb"){B=$("#clevedon-content")}else{if(C=="lunartics-crumb"){B=$("#lunartics-content")}else{if(C=="privacy-crumb"){B=$("#privacy-content")}else{if(C=="randomidea-crumb"){B=$("#randomidea-content")}else{if(C=="main-crumb"||C==$("#page-header")[0].crumbs.lastItem()){B=$("#main")}else{B=$("#"+C)}}}}}var A="#"+$("#page-header")[0].crumbs.lastItem();$(A).hide();$(B).show("drop",{direction:"down"},500,function(){$(".wait").each(function(){$(this).unblock()})});if(B[0].id!="main"){$("#page-header")[0].crumbs.remove(B[0].id);$("#page-header")[0].crumbs.remove($(A)[0].id);$("#page-header")[0].crumbs.add($(A)[0].id,$(A)[0].linkcrumb);$("#page-header")[0].crumbs.add(B[0].id,B[0].crumb);$("#page-header")[0].innerHTML=$("#page-header")[0].crumbs.toString();B[0].crumbIsVisible=true;$(A)[0].crumbIsVisible=false}else{$("#page-header")[0].crumbs.removeAll();$("#page-header")[0].innerHTML=B[0].nocrumb;$(".breadcrumb").each(function(){$(this)[0].crumbIsVisible=false})}}(function(A){A.fn.displayRightSlider=function(){if(A(this).css("display")=="none"&&!this[0].crumbIsVisible){var B=this[0];A(".breadcrumb").each(function(){if(this.id!=B.id&&A(this).css("display")!="none"){A(this).hide();A(B).show("drop",{direction:"down"},500,function(){A(".wait").each(function(){A(this).unblock()})});if(this.id=="main"){A("#page-header")[0].innerHTML=this.crumb+B.crumb;A("#page-header")[0].crumbs.add(this.id,this.crumb);A("#page-header")[0].crumbs.add(B.id,B.crumb);B.crumbIsVisible=true}else{if(!B.crumbIsVisible){A("#page-header")[0].crumbs.setVal(this.id,this.linkcrumb);A("#page-header")[0].crumbs.add(B.id,B.crumb);A("#page-header")[0].innerHTML=A("#page-header")[0].crumbs.toString();B.crumbIsVisible=true}}}})}else{changeCrumbs(this[0].id)}}})(jQuery);$(document).ready(function(){$("#wrap").hide();$(".withJS").each(function(){$(this).show()});$("#sitemap-span")[0].innerHTML="<input type='button' class='linkesque' name='Sitemap' id='sitemap' value='Sitemap'/>";$("#accessibility-span")[0].innerHTML="<input type='button' class='linkesque' name='Accessibility' id='accessibility' value='Accessibility'/>";$("#privacy-policy-span")[0].innerHTML="<input type='button' class='linkesque' name='Privacy policy' id='privacy-policy' value='Privacy policy'/>";$("#portfolio")[0].innerHTML="Portfolio";$("#portfolio").addClass("point");$("#links")[0].innerHTML="Links";$("#links").addClass("point");$("#services")[0].innerHTML="Services";$("#services").addClass("point");$("#privacy-content").hide();$("#personal").before("<h1 id='privacy-policy-header'>privacy policy</h1>");$("#clevedon-content").hide();$("#lunartics-content").hide();$("#randomidea-content").hide();$("#clevedontutorials-header")[0].innerHTML="portfolio";$("#lunartics-header")[0].innerHTML="portfolio";$("#randomidea-header")[0].innerHTML="portfolio";$("#portfolio-sidemenu").show();$("#page-header")[0].crumbs=new Dictionary();$("#clevedon-content")[0].linkcrumb="<input type='button' onclick='changeCrumbs(this.id)' id='clevedon-crumb' class='linkesque link-crumb' value='&raquo; portfolio | clevedon tutorials'/>";$("#clevedon-content")[0].crumb="<h4 class='crumb'>&raquo; <i>portfolio | clevedon tutorials</i></h4>";$("#lunartics-content")[0].linkcrumb="<input type='button' onclick='changeCrumbs(this.id)' id='lunartics-crumb' class='linkesque link-crumb' value='&raquo; portfolio | lunartics'/>";$("#lunartics-content")[0].crumb="<h4 class='crumb'>&raquo; <i>portfolio | lunartics</i></h4>";$("#randomidea-content")[0].linkcrumb="<input type='button' onclick='changeCrumbs(this.id)' id='randomidea-crumb' class='linkesque link-crumb' value='&raquo; portfolio | random idea'/>";$("#randomidea-content")[0].crumb="<h4 class='crumb'>&raquo; <i>portfolio | random idea</i></h4>";$("#privacy-content")[0].linkcrumb="<input type='button' onclick='changeCrumbs(this.id)' id='privacy-crumb' class='linkesque link-crumb' value='&raquo; privacy policy'/>";$("#privacy-content")[0].crumb="<h4 class='crumb'>&raquo; <i>privacy policy</i></h4>";$("#clevedon-button").click(function(){$(".wait").each(function(){$(this).block({message:null})});$("#clevedon-content").displayRightSlider()});$("#lunartics-button").click(function(){$(".wait").each(function(){$(this).block({message:null})});$("#lunartics-content").displayRightSlider()});$("#randomidea-button").click(function(){$(".wait").each(function(){$(this).block({message:null})});$("#randomidea-content").displayRightSlider()});$("#privacy-policy").click(function(){$(".wait").each(function(){$(this).block({message:null})});$("#privacy-content").displayRightSlider()});$("#main")[0].crumb="<div style='position:relative'><input type='button' onclick='changeCrumbs(this.id)' id='main-crumb' value='"+$("#page-header")[0].title+"' class='linkesque' /></div>";$("#main")[0].nocrumb="<h1 class='float-left'>"+$("#page-header")[0].title+"</h1>";$("#portfolio").toggleAnimateHeight("#portfolio-sidemenu");$("#links").toggleAnimateHeight("#links-sidemenu");$("#accessibility").toggleAnimateHeight("#accessibility-content");$("#sitemap").toggleAnimateHeight("#sitemap-content");$("#accessibility-header").click(function(){$("#accessibility").click()});$("#sitemap-header").click(function(){$("#sitemap").click()});$(".lightbox").lightbox();$("#links").click()});(function(A){A.fn.toggleAnimateHeight=function(D){var B=A(D).css("display");var E=B=="block"||B=="inline"?"hide":"show";var C=E=="hide"?"show":"hide";A(this).toggle(function(){A(D).animate({height:E,opacity:E},"slow")},function(){A(D).animate({height:C,opacity:C},"slow")})}})(jQuery);function linkServices(A){$(document).ready(function(){$("#wrap").hide();$("#services-sidemenu").hide();$("#services").toggleAnimateHeight("#services-sidemenu");$("#wrap").show();$(A).click()})}function loadServicesJS(){$(document).ready(function(){$("#wrap").hide();$("#portfolio").click();$("#services-wrapper")[0].innerHTML="<h3 id='services' class='point'>Services</h3><ul id='services-sidemenu' class='sidemenu'><li><input type='button' class='sidebar-button' name='Complete Package' id='packages-button' value='Complete Package'/></li><li><input type='button' class='sidebar-button' name='Brochure Package' id='static-button' value='Brochure Package'/></li><li><input type='button' class='sidebar-button' name='Search Engine Optimisation' id='seo-button' value='Search Engine Optimisation'/></li><li><input type='button' class='sidebar-button' name='Accessibility' id='accessible-button' value='Accessibility'/></li><li><input type='button' class='sidebar-button' name='Website Hosting' id='webhosting-button' value='Website Hosting'/></li><li><input type='button' class='sidebar-button' name='Email Hosting' id='emailhosting-button' value='Email Hosting'/></li></ul>";$("#services").toggleAnimateHeight("#services-sidemenu");$("#packages-button").click(function(){$("#packages").displayService("#packages-button")});$("#static-button").click(function(){$("#static").displayService("#static-button")});$("#seo-button").click(function(){$("#seo").displayService("#seo-button")});$("#accessible-button").click(function(){$("#accessible").displayService("#accessible-button")});$("#webhosting-button").click(function(){$("#webhosting").displayService("#webhosting-button")});$("#emailhosting-button").click(function(){$("#emailhosting").displayService("#emailhosting-button")})});(function(A){A.fn.displayService=function(B){if(A(this).css("display")=="none"){var C=B.substring(1,B.indexOf("-"));A(".services-sidebar").each(function(){if(this.id!=C){var D=A("#"+this.id+"-button");A(this).hide();A(D).removeClass("current")}});this.show("drop",{direction:"down"},500);A(B).addClass("current")}}})(jQuery)}function submitContactForm(){center($("#center-me")[0], true, true, 209, 118);$("#center-me").hide();$("#contact-form-feedback")[0].innerHTML="<h2 id='feedback-header'>errors</h2>";var D=/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;var A=false;var F=$("#message").val();if(F==""){$("#feedback-header").after('<span class="feedback">Please enter your message.</span><br/>');A=true}var B=$("#email").val();if(B==""){$("#feedback-header").after('<span class="feedback">Please enter your email address.</span><br/>');A=true}else{if(!D.test(B)){$("#feedback-header").after('<span class="feedback">Please enter a valid email address.</span><br/>');A=true}}var E=$("#name").val();if(E==""){$("#feedback-header").after('<span class="feedback">Please enter your name.</span><br/>');A=true}if(A==false){var C=$("#contact-form").serialize();$.ajax({url:"/contact/send",data:C+"&js_enabled=true",type:"post",success:function(G){$("#contact-form-feedback")[0].innerHTML=G;$("#center-me").fadeIn("slow").fadeOut(10000);$("#contact-form")[0].reset()}})}else{$("#center-me").fadeIn("slow");}return false}function changeSearch_NumberOfResults(A){$(document).ready(function(){$("#search_numberofresults")[0].innerHTML=A})}var activex=((navigator.userAgent.indexOf("Win")!=-1)&&(navigator.userAgent.indexOf("MSIE")!=-1)&&(parseInt(navigator.appVersion)>=4));var CantDetect=((navigator.userAgent.indexOf("Safari")!=-1)||(navigator.userAgent.indexOf("Opera")!=-1)||(navigator.userAgent.indexOf("Macintosh")!=-1));function oopsPopup(){if((navigator.language&&navigator.language.indexOf("ja")!=-1)||(navigator.systemLanguage&&navigator.systemLanguage.indexOf("ja")!=-1)||(navigator.userLanguage&&navigator.userLanguage.indexOf("ja")!=-1)){var E="http://download.skype.com/share/skypebuttons/oops/oops_ja.html"}else{var E="http://download.skype.com/share/skypebuttons/oops/oops.html"}var B="oops";var D=540,G=305;var F="no";w=screen.availWidth;h=screen.availHeight;var C=(w-D)/2,A=(h-G)/2;oopswindow=window.open(E,B,"width="+D+",height="+G+",scrollbars="+F+",screenx="+C+",screeny="+A+",top="+A+",left="+C);return false}function skypeCheck(){if(CantDetect){return true}else{if(!activex){var A=navigator.mimeTypes["application/x-skype"];detected=true;if(typeof (A)=="object"){return true}else{return oopsPopup()}}else{if(isSkypeInstalled()){detected=true;return true}}}detected=true;return oopsPopup()}if(typeof (detected)=="undefined"&&activex){document.write(['<script language="VBscript">',"Function isSkypeInstalled()","on error resume next",'Set oSkype = CreateObject("Skype.Detection")',"isSkypeInstalled = IsObject(oSkype)","Set oSkype = nothing","End Function","<\/script>"].join("\n"))};function center(el, x, y, width, height) {var p = el.parentNode, s = el.style;var l = ((p.offsetWidth - width)/2);var parentHeight = p.clientHeight;s.left = l+'px';if (navigator.userAgent.indexOf("MSIE") >= 0) {s.left = '0px';}s.top = '-'+l+'px';s.width = width + "px";p.style.height = parentHeight+"px";}
function rollover(){$(".contact-label").css("color", "#000");$(".contact-input").css("color", "#000");
	<!--[if IE 6]>
        $("#contact-form-rollover").css("background-image", "url(../img/lampbackground.jpg)");
    <!--[endif]-->
}
function rollout(){$(".contact-label").css("color", "#6A6969");$(".contact-input").css("color", "#6A6969");
	<!--[if IE 6]>
        $("#contact-form-rollover").css("background-image", "url(../img/blacklamp.jpg)");
    <!--[endif]-->
}