$(document).ready(function(){function t(a){var b=[];for(i=0,length=a.length;i<length;++i){b[i]=new Image();b[i].src=a[i]}}var x=function(b,j,h,f,k){var m=new google.maps.LatLng(j,h);var c=new google.maps.LatLng(j+0.005,h);var e={zoom:14,center:c,mapTypeId:google.maps.MapTypeId.ROADMAP};var d=new google.maps.Map(b,e);var a=new google.maps.InfoWindow({content:k,disableAutoPan:true});var l=new google.maps.Marker({position:m,map:d,title:f});google.maps.event.addListener(l,"click",function(){a.open(d,l)});a.open(d,l)};var z=function(){if(y){return}var a='<div style="font-family:Arial, helvetica, sans-serif; padding:6px; width:240px; height:90px">					<h3 style="font-size:15px; margin:0">Arkitek Studios</h3>					<div style="font-size:12px">4221 23rd Avenue West, #214<br />Seattle, WA 98199</div>					<div style="font-size:11px">(206) 286-0337</div>					<div style="margin-top:4px;font-size:11px"><a style="color:#0000cc; text-decoration:underline" href="http://maps.google.com/maps?daddr=4221%2023rd%20Avenue%20West,%20%23214%20Seattle,%20WA%2098199">Directions</a></div>					</div>';y=true;x($("#map_canvas").get(0),47.658315,-122.386188,"Arkitek Studios",a)};var p=function(a,b){$(".video-embed").attr("src",a);$(".overlay-left").hide();$(".overlay-bottom").hide();$(".overlay-left.overlay-"+b).fadeIn(250);$(".overlay-bottom.overlay-"+b).fadeIn(250);$(".video-container").fadeIn(333);$("#grid,#intGrid,.logo").hide()};var r=function(){$(".video-embed").attr("src","");$(".video-container").fadeOut(250);$("#grid,#intGrid,.logo").delay(100).fadeIn(250)};var v=false;var y=false;var o={"#contact":z};$("body").hide();$("body").fadeIn(1000);var A=function(b,c){var e=$("#slider").children();var d=$(b).get(0);$("#slider").cycle($.inArray(d,e));if(!c){var h=$(".action-link");for(var f=0;f<h.length;f++){if($(h[f]).attr("slideanchor")==b){c=h[f];break}}}$(".action-link").removeClass("active");$(c).addClass("active");r();var a=o[b];if(a){a()}};$(".dynamic-preview-image").click(function(){p($(this).attr("href"),$(this).attr("idx"));return false});var s=$(".video-container");$(s).prepend('<div class="video-back-button">&laquo; Back</div>');var w=$(".video-back-button");$(s).live({mouseenter:function(){w.stop(true,true).fadeIn(250)}});$(".video-back-button").click(function(){r()});$("#grid div,#intGrid div").addClass("button");$("#grid .button,#intGrid .button").hover(function(){var a=$(this).css({"z-index":"10"}).find("img").addClass("hover").stop(),b=a.data("orig-size"),c=b||{height:a.height(),width:a.width()};if(!b){a.data("orig-size",c)}a.animate({marginTop:"-10px",marginLeft:"-10px",width:c.width*1.2,height:c.height*1.2},200)},function(){var a=$(this).css({"z-index":"0"}).find("img").removeClass("hover").stop(),b=a.data("orig-size");a.animate({marginTop:"0",marginLeft:"0",width:b.width,height:b.height},400)});var u=["http://arkitek.com/main/includes/work-info.inc #arkitek_reel","http://arkitek.com/main/includes/work-info.inc #ab_sciex","http://arkitek.com/main/includes/work-info.inc #stratos_","http://arkitek.com/main/includes/work-info.inc #riken_","http://arkitek.com/main/includes/work-info.inc #scitable_","http://arkitek.com/main/includes/work-info.inc #ubc_asthma","http://arkitek.com/main/includes/work-info.inc #xcelligence_","http://arkitek.com/main/includes/work-info.inc #lbsc_geneware","http://arkitek.com/main/includes/work-info.inc #nr_micro","http://arkitek.com/main/includes/work-info.inc #genII_knee","http://arkitek.com/main/includes/work-info.inc #exiqon_","http://arkitek.com/main/includes/work-info.inc #hpi_","http://arkitek.com/main/includes/work-info.inc #plexmark_","http://arkitek.com/main/includes/work-info.inc #siscapa_","http://arkitek.com/main/includes/work-info.inc #RNAi_","http://arkitek.com/main/includes/work-info.inc #k2_","http://arkitek.com/main/includes/work-info.inc #nucleonics_","http://arkitek.com/main/includes/work-info.inc #ca125_","http://arkitek.com/main/includes/work-info.inc #cci_nursing","http://arkitek.com/main/includes/work-info.inc #cadherins_","http://arkitek.com/main/includes/work-info.inc #ascent_","http://arkitek.com/main/includes/work-info.inc #int_bcc_blast","http://arkitek.com/main/includes/work-info.inc #int_itest","http://arkitek.com/main/includes/work-info.inc #int_riken","http://arkitek.com/main/includes/work-info.inc #int_nrmicro","http://arkitek.com/main/includes/work-info.inc #int_ethos","http://arkitek.com/main/includes/work-info.inc #int_mcgraw",];$(function(){$.each(u,function(a,b){var c=a+1;$(".cell_"+c+" a").live("mouseover",function(){$("#gridInfo").delay(80).fadeIn(80).load(b); }).live("mouseout",function(){$("#gridInfo").stop(true,true).fadeOut(80)})})});if(jQuery.support.opacity){$("#slider").cycle({fx:"fade",speed:"slow",timeout:0,cleartype:"true",cleartypeNoBg:true,easeIn:"easeInExpo",easeOut:"easeOutExpo",delay:2000,pagerAnchorBuilder:function(a,b){return""}})}$(".action-link").click(function(b){var a=$(this).attr("slideanchor");v=true;location.hash=a;A(a,this)},function(a){}).click(function(a){a.preventDefault();return false});if(location.hash){A(location.hash)}$(window).bind("hashchange",function(){if(v){v=false}else{A(location.hash)}});if(jQuery.support.opacity){$(function(){$("#method-content").cycle({fx:"scrollHorz",speed:"slow",cleartype:"true",cleartypeNoBg:true,easeIn:"easeInExpo",easeOut:"easeOutExpo",timeout:0,cssBefore:{opacity:0},animIn:{opacity:1},animOut:{opacity:0},cssAfter:{opacity:1},delay:-3000,pager:"#nb_grid",pagerAnchorBuilder:function(a,b){return"#nb_grid li:eq("+a+") a"}})});function q(a){$("#method-content").cycle(a)}}if(!jQuery.support.opacity){$("#slider").cycle({fx:"none",cleartypeNoBg:true,timeout:0,pagerAnchorBuilder:function(b,a){return""}});$("#method-content").cycle({fx:"none",timeout:0,delay:-3000,pager:"#nb_grid",pagerAnchorBuilder:function(b,a){return"#nb_grid li:eq("+b+") a"}});function setSlide(a){$("#method-content").cycle(a)}};$(function(){var a=$(".current-item").attr("title");$(a).show();$("ul#pressNav li a").click(function(b){if(!$(this).hasClass("current-item")){b.preventDefault();$(a).hide();$("ul#pressNav li a").removeClass("current-item");$(this).addClass("current-item");a=$(this).attr("title");$(a).fadeIn()}})});var g=["http://arkitek.com/main/includes/testimonials_info.inc #press_nature_reviews","http://arkitek.com/main/includes/testimonials_info.inc #press_riken","http://arkitek.com/main/includes/testimonials_info.inc #press_microbes","http://arkitek.com/main/includes/testimonials_info.inc #press_biosite","http://arkitek.com/main/includes/testimonials_info.inc #press_massGen","http://arkitek.com/main/includes/testimonials_info.inc #press_nucleonics","http://arkitek.com/main/includes/testimonials_info.inc #press_nature_edu","http://arkitek.com/main/includes/testimonials_info.inc #press_lsbc","http://arkitek.com/main/includes/testimonials_info.inc #press_wgha","http://arkitek.com/main/includes/testimonials_info.inc #press_current_conceptions","http://arkitek.com/main/includes/testimonials_info.inc #press_xCelligence","http://arkitek.com/main/includes/testimonials_info.inc #press_pwap",];$(function(){$.each(g,function(a,b){var c=a+1;$(".test_"+c+" a").live("mouseover",function(){$("#testimonials_info").delay(80).fadeIn(80).load(b)}).live("mouseout",function(){$("#testimonials_info").stop(true,true).fadeOut(80)})})});});

