;(function($){var ver='Lite-1.0';$.fn.cycle=function(options){return this.each(function(){options=options||{};if(this.cycleTimeout)clearTimeout(this.cycleTimeout);this.cycleTimeout=0;this.cyclePause=0;var $cont=$(this);var $slides=options.slideExpr?$(options.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){if(window.console&&window.console.log)
window.console.log('terminating; too few slides: '+els.length);return;}
var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];opts.after.unshift(function(){opts.busy=0;});var cls=this.className;opts.width=parseInt((cls.match(/w:(\d+)/)||[])[1])||opts.width;opts.height=parseInt((cls.match(/h:(\d+)/)||[])[1])||opts.height;opts.timeout=parseInt((cls.match(/t:(\d+)/)||[])[1])||opts.timeout;if($cont.css('position')=='static')
$cont.css('position','relative');if(opts.width)
$cont.width(opts.width);if(opts.height&&opts.height!='auto')
$cont.height(opts.height);var first=0;$slides.css({position:'absolute',top:0,left:0}).hide().each(function(i){$(this).css('z-index',els.length-i)});$(els[first]).css('opacity',1).show();if($.browser.msie)els[first].style.removeAttribute('filter');if(opts.fit&&opts.width)
$slides.width(opts.width);if(opts.fit&&opts.height&&opts.height!='auto')
$slides.height(opts.height);if(opts.pause)
$cont.hover(function(){this.cyclePause=1;},function(){this.cyclePause=0;});$.fn.cycle.transitions.fade($cont,$slides,opts);$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:$el.height();this.cycleW=(opts.fit&&opts.width)?opts.width:$el.width();});$slides.not(':eq('+first+')').css({opacity:0});if(opts.cssFirst)
$($slides[first]).css(opts.cssFirst);if(opts.timeout){if(opts.speed.constructor==String)
opts.speed={slow:600,fast:200}[opts.speed]||400;if(!opts.sync)
opts.speed=opts.speed/2;while((opts.timeout-opts.speed)<250)
opts.timeout+=opts.speed;}
opts.speedIn=opts.speed;opts.speedOut=opts.speed;opts.slideCount=els.length;opts.currSlide=first;opts.nextSlide=1;var e0=$slides[first];if(opts.before.length)
opts.before[0].apply(e0,[e0,e0,opts,true]);if(opts.after.length>1)
opts.after[1].apply(e0,[e0,e0,opts,true]);if(opts.click&&!opts.next)
opts.next=opts.click;if(opts.next)
$(opts.next).bind('click',function(){return advance(els,opts,opts.rev?-1:1)});if(opts.prev)
$(opts.prev).bind('click',function(){return advance(els,opts,opts.rev?1:-1)});if(opts.timeout)
this.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.rev)},opts.timeout+(opts.delay||0));});};function go(els,opts,manual,fwd){if(opts.busy)return;var p=els[0].parentNode,curr=els[opts.currSlide],next=els[opts.nextSlide];if(p.cycleTimeout===0&&!manual)
return;if(manual||!p.cyclePause){if(opts.before.length)
$.each(opts.before,function(i,o){o.apply(next,[curr,next,opts,fwd]);});var after=function(){if($.browser.msie)
this.style.removeAttribute('filter');$.each(opts.after,function(i,o){o.apply(next,[curr,next,opts,fwd]);});};if(opts.nextSlide!=opts.currSlide){opts.busy=1;$.fn.cycle.custom(curr,next,opts,after);}
var roll=(opts.nextSlide+1)==els.length;opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}
if(opts.timeout)
p.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.rev)},opts.timeout);};function advance(els,opts,val){var p=els[0].parentNode,timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}
opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){opts.nextSlide=els.length-1;}
else if(opts.nextSlide>=els.length){opts.nextSlide=0;}
go(els,opts,1,val>=0);return false;};$.fn.cycle.custom=function(curr,next,opts,cb){var $l=$(curr),$n=$(next);$n.css({opacity:0});var fn=function(){$n.animate({opacity:1},opts.speedIn,opts.easeIn,cb)};$l.animate({opacity:0},opts.speedOut,opts.easeOut,function(){$l.css({display:'none'});if(!opts.sync)fn();});if(opts.sync)fn();};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(':eq(0)').css('opacity',0);opts.before.push(function(){$(this).show()});}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={timeout:4000,speed:1000,next:null,prev:null,before:null,after:null,height:'auto',sync:1,fit:0,pause:0,delay:0,slideExpr:null};})(jQuery);
$(document).ready(function(){var parents=["home","about","projects","gallery","conservation","contact"];var children=[];children[0]=[];children[1]=["about","team","press","gallery"];children[2]=["projects","songsaa","apartments","future"];children[3]=["g-designs","g-images","g-apartments"];var currentPage=document.body.id;$("#l_about").mouseenter(function(){show("about");});$("#l_projects").mouseenter(function(){show("projects");});$("#l_gallery").mouseenter(function(){show("gallery");});$("#content").mouseenter(function(){reset();});$("#l_contact").mouseenter(function(){reset();});$("#l_conservation").mouseenter(function(){reset();});$("#background-images").mouseenter(function(){reset();});function show(me){hide_all();$("#nav-"+me).show();if($("#nav-b").is(":visible")){$("#nav-b").show();}else{$("#nav-b").fadeIn("fast");}}
function hide_all(){for(i=0;i<parents.length;i++){var nav_id="#nav-"+parents[i];$(nav_id).hide();}}
function fade_in(me){hide_all();$("#nav-"+me).show();$("#nav-b").fadeIn("fast");}
function reset(){this_menu=which_menu(currentPage);if(this_menu){show(this_menu);}else{$("#nav-b").fadeOut("slow");}}
function init(me){var this_menu=which_menu(me);if(this_menu){if(is_parent(this_menu)){fade_in(this_menu);}else if(is_child(this_menu)){show(this_menu);}}}
function which_menu(me){if(is_parent(me)){return me;}else{for(i=0;i<children.length;i++){var in_array=jQuery.inArray(me,children[i]);if(in_array>=0){return parents[i];}}}}
function is_parent(me){if(jQuery.inArray(me,parents)>=0){return 1;}else{return 0;}}
function is_child(me){if(jQuery.inArray(me,children)>=0){return 1;}else{return 0;}}
$(function(){$("#members li").addClass("forty");$("#members li").hover(function(){$(this).fadeTo("fast",1.0);},function(){if($(this).is(".forty")){$(this).fadeTo("fast",.40);}});$("#members li").click(function(){$("#members li").removeClass("forty");$("#members li").removeClass("hundred");$("#members li").fadeTo("fast",0.4);$("#members li").addClass("forty");$(this).removeClass("forty");$(this).addClass("hundred");$(this).fadeTo("fast",1.0);$("#bios div").hide();$("#t-clicker").text("< hide");$("#p-title").show();$("#bios").show();$("#"+this.id+"-bio").show("fast");});});$(function(){$("#t-clicker").click(function(){if($(this).text()=="< hide"){$("#bios").hide("fast");$("#t-clicker").text("show >");}else{$("#bios").show("fast");$("#t-clicker").text("< hide");}});});$(function(){$("#clicker").toggle(function(){$("#copy-box").hide("fast");$("#clicker").text("show >");},function(){$("#copy-box").show("fast");$("#clicker").text("< hide");});});if(jQuery.browser.msie&&jQuery.browser.version==6){}else{$('#background-images').cycle({fx:'fade',timeout:10000,speed:500});}
init(currentPage);});