/* * jquery.tools 1.0.2 - The missing UI library * * [tools.scrollable-1.0.5] * * Copyright (c) 2009 Tero Piirainen * http://flowplayer.org/tools/ * * Dual licensed under MIT and GPL 2+ licenses * http://www.opensource.org/licenses * * ----- * * Build: Fri Jun 12 13:55:52 GMT+00:00 2009 */ (function(b){b.tools=b.tools||{version:{}};b.tools.version.scrollable="1.0.5";var c=null;function a(p,m){var s=this;if(!c){c=s}function n(t,u){b(s).bind(t,function(w,v){if(u&&u.call(this,v.index)===false&&v){v.proceed=false}});return s}b.each(m,function(t,u){if(b.isFunction(u)){n(t,u)}});var d=!m.vertical;var f=b(m.items,p);var j=0;function l(u,t){return u.indexOf("#")!=-1?b(u).eq(0):t.siblings(u).eq(0)}var q=l(m.navi,p);var g=l(m.prev,p);var i=l(m.next,p);var h=l(m.prevPage,p);var o=l(m.nextPage,p);b.extend(s,{getIndex:function(){return j},getConf:function(){return m},getSize:function(){return s.getItems().size()},getPageAmount:function(){return Math.ceil(this.getSize()/m.size)},getPageIndex:function(){return Math.ceil(j/m.size)},getRoot:function(){return p},getItemWrap:function(){return f},getItems:function(){return f.children()},getVisibleItems:function(){return s.getItems().slice(j,j+m.size)},seekTo:function(w,u,A){if(u===undefined){u=m.speed}if(b.isFunction(u)){A=u;u=m.speed}if(w<0){w=0}if(w>s.getSize()-m.size){return s}var B=s.getItems().eq(w);if(!B.length){return s}var t={index:w,proceed:true};b(s).trigger("onBeforeSeek",t);if(!t.proceed){return s}if(d){var v=-B.position().left;f.animate({left:v},u,m.easing,A?function(){A.call(s)}:null)}else{var z=-B.position().top;f.animate({top:z},u,m.easing,A?function(){A.call(s)}:null)}if(q.length){var x=m.activeClass;var y=Math.ceil(w/m.size);y=Math.min(y,q.children().length-1);q.children().removeClass(x).eq(y).addClass(x)}if(w===0){g.add(h).addClass(m.disabledClass)}else{g.add(h).removeClass(m.disabledClass)}if(w>=s.getSize()-m.size){i.add(o).addClass(m.disabledClass)}else{i.add(o).removeClass(m.disabledClass)}c=s;j=w;b(s).trigger("onSeek",{index:w});return s},move:function(v,u,t){var w=j+v;if(m.loop&&w>(s.getSize()-m.size)){w=0}return this.seekTo(w,u,t)},next:function(u,t){return this.move(1,u,t)},prev:function(u,t){return this.move(-1,u,t)},movePage:function(v,u,t){return this.move(m.size*v,u,t)},setPage:function(x,y,v){var u=m.size;var t=u*x;var w=t+u>=this.getSize();if(w){t=this.getSize()-m.size}return this.seekTo(t,y,v)},prevPage:function(u,t){return this.setPage(this.getPageIndex()-1,u,t)},nextPage:function(u,t){return this.setPage(this.getPageIndex()+1,u,t)},begin:function(u,t){return this.seekTo(0,u,t)},end:function(u,t){return this.seekTo(this.getSize()-m.size,u,t)},reload:function(){return r()},click:function(u,x,v){var w=s.getItems().eq(u);var t=m.activeClass;if(u<0||u>=this.getSize()){return s}if(m.size==2){if(u==s.getIndex()){u--}s.getItems().removeClass(t);w.addClass(t);return this.seekTo(u,x,v)}if(!w.hasClass(t)){s.getItems().removeClass(t);w.addClass(t);var z=Math.floor(m.size/2);var y=u-z;if(y>s.getSize()-m.size){y=s.getSize()-m.size}if(y!==u){return this.seekTo(y,x,v)}}return s},onBeforeSeek:function(t){return n("onBeforeSeek",t)},onSeek:function(t){return n("onSeek",t)}});if(b.isFunction(b.fn.mousewheel)){p.bind("mousewheel.scrollable",function(u,v){var t=b.browser.opera?1:-1;s.move(v>0?t:-t,50);return false})}g.addClass(m.disabledClass).click(function(){s.prev()});i.click(function(){s.next()});o.click(function(){s.nextPage()});h.addClass(m.disabledClass).click(function(){s.prevPage()});if(m.keyboard){b(document).unbind("keydown.scrollable").bind("keydown.scrollable",function(t){var u=c;if(!u||t.altKey||t.ctrlKey){return}if(d&&(t.keyCode==37||t.keyCode==39)){u.move(t.keyCode==37?-1:1);return t.preventDefault()}if(!d&&(t.keyCode==38||t.keyCode==40)){u.move(t.keyCode==38?-1:1);return t.preventDefault()}return true})}function r(){if(q.is(":empty")||q.data("me")==s){q.empty();q.data("me",s);for(var u=0;u").attr("href",u).click(function(x){var w=b(this);w.parent().children().removeClass(m.activeClass);w.addClass(m.activeClass);s.setPage(w.attr("href"));return x.preventDefault()});if(u===0){v.addClass(m.activeClass)}q.append(v)}}else{var t=q.children();t.each(function(w){var x=b(this);x.attr("href",w);if(w===0){x.addClass(m.activeClass)}x.click(function(){q.find("."+m.activeClass).removeClass(m.activeClass);x.addClass(m.activeClass);s.setPage(x.attr("href"))})})}if(m.clickable){s.getItems().each(function(x,w){var y=b(this);if(!y.data("set")){y.bind("click.scrollable",function(){s.click(x)});y.data("set",true)}})}if(m.hoverClass){s.getItems().hover(function(){b(this).addClass(m.hoverClass)},function(){b(this).removeClass(m.hoverClass)})}return s}r();var e=null;function k(){if(e){return}e=setInterval(function(){if(m.interval===0){clearInterval(e);e=0;return}s.next()},m.interval)}if(m.interval>0){p.hover(function(){clearInterval(e);e=0},function(){k()});k()}}b.fn.scrollable=function(d){var e=this.eq(typeof d=="number"?d:0).data("scrollable");if(e){return e}var f={size:5,vertical:false,clickable:true,loop:false,interval:0,speed:400,keyboard:true,activeClass:"active",disabledClass:"disabled",hoverClass:null,easing:"swing",items:".items",prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",navi:".navi",naviItem:"a",api:false,onBeforeSeek:null,onSeek:null};b.extend(f,d);this.each(function(){e=new a(b(this),f);b(this).data("scrollable",e)});return f.api?e:this}})(jQuery); /* ------------------------------------------------------------------------ Class: prettyPhoto Use: Lightbox clone for jQuery Author: Stephane Caron (http://www.no-margin-for-errors.com) Version: 3.1.4 ------------------------------------------------------------------------- */ (function($){$.prettyPhoto={version:'3.1.4'};$.fn.prettyPhoto=function(pp_settings){pp_settings=jQuery.extend({hook:'rel',animation_speed:'fast',ajaxcallback:function(){},slideshow:5000,autoplay_slideshow:false,opacity:0.80,show_title:true,allow_resize:true,allow_expand:true,default_width:500,default_height:344,counter_separator_label:'/',theme:'pp_default',horizontal_padding:20,hideflash:false,wmode:'opaque',autoplay:true,modal:false,deeplinking:true,overlay_gallery:true,overlay_gallery_max:30,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,markup:'
\
 
\
\
\
\
\
\
\
\
\
\
\
\ Expand \
\ next \ previous \
\
\
\
\ Previous \

0/0

\ Next \
\

\
{pp_social}
\ Close \
\
\
\
\
\
\
\
\
\
\
\
\
',gallery_markup:'',image_markup:'',flash_markup:'',quicktime_markup:'',iframe_markup:'',inline_markup:'
{content}
',custom_markup:'',social_tools:'
'},pp_settings);var matchedObjects=this,percentBased=false,pp_dimensions,pp_open,pp_contentHeight,pp_contentWidth,pp_containerHeight,pp_containerWidth,windowHeight=$(window).height(),windowWidth=$(window).width(),pp_slideshow;doresize=true,scroll_pos=_get_scroll();$(window).unbind('resize.prettyphoto').bind('resize.prettyphoto',function(){_center_overlay();_resize_overlay();});if(pp_settings.keyboard_shortcuts){$(document).unbind('keydown.prettyphoto').bind('keydown.prettyphoto',function(e){if(typeof $pp_pic_holder!='undefined'){if($pp_pic_holder.is(':visible')){switch(e.keyCode){case 37:$.prettyPhoto.changePage('previous');e.preventDefault();break;case 39:$.prettyPhoto.changePage('next');e.preventDefault();break;case 27:if(!settings.modal) $.prettyPhoto.close();e.preventDefault();break;};};};});};$.prettyPhoto.initialize=function(){settings=pp_settings;if(settings.theme=='pp_default')settings.horizontal_padding=16;if(settings.ie6_fallback&&$.browser.msie&&parseInt($.browser.version)==6)settings.theme="light_square";theRel=$(this).attr(settings.hook);galleryRegExp=/\[(?:.*)\]/;isSet=(galleryRegExp.exec(theRel))?true:false;pp_images=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr(settings.hook).indexOf(theRel)!=-1)return $(n).attr('href');}):$.makeArray($(this).attr('href'));pp_titles=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr(settings.hook).indexOf(theRel)!=-1)return($(n).find('img').attr('alt'))?$(n).find('img').attr('alt'):"";}):$.makeArray($(this).find('img').attr('alt'));pp_descriptions=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr(settings.hook).indexOf(theRel)!=-1)return($(n).attr('title'))?$(n).attr('title'):"";}):$.makeArray($(this).attr('title'));if(pp_images.length>settings.overlay_gallery_max)settings.overlay_gallery=false;set_position=jQuery.inArray($(this).attr('href'),pp_images);rel_index=(isSet)?set_position:$("a["+settings.hook+"^='"+theRel+"']").index($(this));_build_overlay(this);if(settings.allow_resize) $(window).bind('scroll.prettyphoto',function(){_center_overlay();});$.prettyPhoto.open();return false;} $.prettyPhoto.open=function(event){if(typeof settings=="undefined"){settings=pp_settings;if($.browser.msie&&$.browser.version==6)settings.theme="light_square";pp_images=$.makeArray(arguments[0]);pp_titles=(arguments[1])?$.makeArray(arguments[1]):$.makeArray("");pp_descriptions=(arguments[2])?$.makeArray(arguments[2]):$.makeArray("");isSet=(pp_images.length>1)?true:false;set_position=(arguments[3])?arguments[3]:0;_build_overlay(event.target);} if($.browser.msie&&$.browser.version==6)$('select').css('visibility','hidden');if(settings.hideflash)$('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','hidden');_checkPosition($(pp_images).size());$('.pp_loaderIcon').show();if(settings.deeplinking) setHashtag();if(settings.social_tools){facebook_like_link=settings.social_tools.replace('{location_href}',encodeURIComponent(location.href));$pp_pic_holder.find('.pp_social').html(facebook_like_link);} if($ppt.is(':hidden'))$ppt.css('opacity',0).show();$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);$pp_pic_holder.find('.currentTextHolder').text((set_position+1)+settings.counter_separator_label+$(pp_images).size());if(typeof pp_descriptions[set_position]!='undefined'&&pp_descriptions[set_position]!=""){$pp_pic_holder.find('.pp_description').show().html(unescape(pp_descriptions[set_position]));}else{$pp_pic_holder.find('.pp_description').hide();} movie_width=(parseFloat(getParam('width',pp_images[set_position])))?getParam('width',pp_images[set_position]):settings.default_width.toString();movie_height=(parseFloat(getParam('height',pp_images[set_position])))?getParam('height',pp_images[set_position]):settings.default_height.toString();percentBased=false;if(movie_height.indexOf('%')!=-1){movie_height=parseFloat(($(window).height()*parseFloat(movie_height)/100)-150);percentBased=true;} if(movie_width.indexOf('%')!=-1){movie_width=parseFloat(($(window).width()*parseFloat(movie_width)/100)-150);percentBased=true;} $pp_pic_holder.fadeIn(function(){(settings.show_title&&pp_titles[set_position]!=""&&typeof pp_titles[set_position]!="undefined")?$ppt.html(unescape(pp_titles[set_position])):$ppt.html(' ');imgPreloader="";skipInjection=false;switch(_getFileType(pp_images[set_position])){case'image':imgPreloader=new Image();nextImage=new Image();if(isSet&&set_position<$(pp_images).size()-1)nextImage.src=pp_images[set_position+1];prevImage=new Image();if(isSet&&pp_images[set_position-1])prevImage.src=pp_images[set_position-1];$pp_pic_holder.find('#pp_full_res')[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]);imgPreloader.onload=function(){pp_dimensions=_fitToViewport(imgPreloader.width,imgPreloader.height);_showContent();};imgPreloader.onerror=function(){alert('Image cannot be loaded. Make sure the path is correct and image exist.');$.prettyPhoto.close();};imgPreloader.src=pp_images[set_position];break;case'youtube':pp_dimensions=_fitToViewport(movie_width,movie_height);movie_id=getParam('v',pp_images[set_position]);if(movie_id==""){movie_id=pp_images[set_position].split('youtu.be/');movie_id=movie_id[1];if(movie_id.indexOf('?')>0) movie_id=movie_id.substr(0,movie_id.indexOf('?'));if(movie_id.indexOf('&')>0) movie_id=movie_id.substr(0,movie_id.indexOf('&'));} movie='http://www.youtube.com/embed/'+movie_id;(getParam('rel',pp_images[set_position]))?movie+="?rel="+getParam('rel',pp_images[set_position]):movie+="?rel=1";if(settings.autoplay)movie+="&autoplay=1";toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case'vimeo':pp_dimensions=_fitToViewport(movie_width,movie_height);movie_id=pp_images[set_position];var regExp=/http:\/\/(www\.)?vimeo.com\/(\d+)/;var match=movie_id.match(regExp);movie='http://player.vimeo.com/video/'+match[2]+'?title=0&byline=0&portrait=0';if(settings.autoplay)movie+="&autoplay=1;";vimeo_width=pp_dimensions['width']+'/embed/?moog_width='+pp_dimensions['width'];toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,movie);break;case'quicktime':pp_dimensions=_fitToViewport(movie_width,movie_height);pp_dimensions['height']+=15;pp_dimensions['contentHeight']+=15;pp_dimensions['containerHeight']+=15;toInject=settings.quicktime_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case'flash':pp_dimensions=_fitToViewport(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf('flashvars')+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf('?'));toInject=settings.flash_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+'?'+flash_vars);break;case'iframe':pp_dimensions=_fitToViewport(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf('iframe')-1);toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,frame_url);break;case'ajax':doresize=false;pp_dimensions=_fitToViewport(movie_width,movie_height);doresize=true;skipInjection=true;$.get(pp_images[set_position],function(responseHTML){toInject=settings.inline_markup.replace(/{content}/g,responseHTML);$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();});break;case'custom':pp_dimensions=_fitToViewport(movie_width,movie_height);toInject=settings.custom_markup;break;case'inline':myClone=$(pp_images[set_position]).clone().append('
').css({'width':settings.default_width}).wrapInner('
').appendTo($('body')).show();doresize=false;pp_dimensions=_fitToViewport($(myClone).width(),$(myClone).height());doresize=true;$(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,$(pp_images[set_position]).html());break;};if(!imgPreloader&&!skipInjection){$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();};});return false;};$.prettyPhoto.changePage=function(direction){currentGalleryPage=0;if(direction=='previous'){set_position--;if(set_position<0)set_position=$(pp_images).size()-1;}else if(direction=='next'){set_position++;if(set_position>$(pp_images).size()-1)set_position=0;}else{set_position=direction;};rel_index=set_position;if(!doresize)doresize=true;if(settings.allow_expand){$('.pp_contract').removeClass('pp_contract').addClass('pp_expand');} _hideContent(function(){$.prettyPhoto.open();});};$.prettyPhoto.changeGalleryPage=function(direction){if(direction=='next'){currentGalleryPage++;if(currentGalleryPage>totalPage)currentGalleryPage=0;}else if(direction=='previous'){currentGalleryPage--;if(currentGalleryPage<0)currentGalleryPage=totalPage;}else{currentGalleryPage=direction;};slide_speed=(direction=='next'||direction=='previous')?settings.animation_speed:0;slide_to=currentGalleryPage*(itemsPerPage*itemWidth);$pp_gallery.find('ul').animate({left:-slide_to},slide_speed);};$.prettyPhoto.startSlideshow=function(){if(typeof pp_slideshow=='undefined'){$pp_pic_holder.find('.pp_play').unbind('click').removeClass('pp_play').addClass('pp_pause').click(function(){$.prettyPhoto.stopSlideshow();return false;});pp_slideshow=setInterval($.prettyPhoto.startSlideshow,settings.slideshow);}else{$.prettyPhoto.changePage('next');};} $.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find('.pp_pause').unbind('click').removeClass('pp_pause').addClass('pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});clearInterval(pp_slideshow);pp_slideshow=undefined;} $.prettyPhoto.close=function(){if($pp_overlay.is(":animated"))return;$.prettyPhoto.stopSlideshow();$pp_pic_holder.stop().find('object,embed').css('visibility','hidden');$('div.pp_pic_holder,div.ppt,.pp_fade').fadeOut(settings.animation_speed,function(){$(this).remove();});$pp_overlay.fadeOut(settings.animation_speed,function(){if($.browser.msie&&$.browser.version==6)$('select').css('visibility','visible');if(settings.hideflash)$('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','visible');$(this).remove();$(window).unbind('scroll.prettyphoto');clearHashtag();settings.callback();doresize=true;pp_open=false;delete settings;});};function _showContent(){$('.pp_loaderIcon').hide();projectedTop=scroll_pos['scrollTop']+((windowHeight/2)-(pp_dimensions['containerHeight']/2));if(projectedTop<0)projectedTop=0;$ppt.fadeTo(settings.animation_speed,1);$pp_pic_holder.find('.pp_content').animate({height:pp_dimensions['contentHeight'],width:pp_dimensions['contentWidth']},settings.animation_speed);$pp_pic_holder.animate({'top':projectedTop,'left':((windowWidth/2)-(pp_dimensions['containerWidth']/2)<0)?0:(windowWidth/2)-(pp_dimensions['containerWidth']/2),width:pp_dimensions['containerWidth']},settings.animation_speed,function(){$pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(pp_dimensions['height']).width(pp_dimensions['width']);$pp_pic_holder.find('.pp_fade').fadeIn(settings.animation_speed);if(isSet&&_getFileType(pp_images[set_position])=="image"){$pp_pic_holder.find('.pp_hoverContainer').show();}else{$pp_pic_holder.find('.pp_hoverContainer').hide();} if(settings.allow_expand){if(pp_dimensions['resized']){$('a.pp_expand,a.pp_contract').show();}else{$('a.pp_expand').hide();}} if(settings.autoplay_slideshow&&!pp_slideshow&&!pp_open)$.prettyPhoto.startSlideshow();settings.changepicturecallback();pp_open=true;});_insert_gallery();pp_settings.ajaxcallback();};function _hideContent(callback){$pp_pic_holder.find('#pp_full_res object,#pp_full_res embed').css('visibility','hidden');$pp_pic_holder.find('.pp_fade').fadeOut(settings.animation_speed,function(){$('.pp_loaderIcon').show();callback();});};function _checkPosition(setCount){(setCount>1)?$('.pp_nav').show():$('.pp_nav').hide();};function _fitToViewport(width,height){resized=false;_getDimensions(width,height);imageWidth=width,imageHeight=height;if(((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight))&&doresize&&settings.allow_resize&&!percentBased){resized=true,fitting=false;while(!fitting){if((pp_containerWidth>windowWidth)){imageWidth=(windowWidth-200);imageHeight=(height/width)*imageWidth;}else if((pp_containerHeight>windowHeight)){imageHeight=(windowHeight-200);imageWidth=(width/height)*imageHeight;}else{fitting=true;};pp_containerHeight=imageHeight,pp_containerWidth=imageWidth;};_getDimensions(imageWidth,imageHeight);if((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight)){_fitToViewport(pp_containerWidth,pp_containerHeight)};};return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(pp_containerHeight),containerWidth:Math.floor(pp_containerWidth)+(settings.horizontal_padding*2),contentHeight:Math.floor(pp_contentHeight),contentWidth:Math.floor(pp_contentWidth),resized:resized};};function _getDimensions(width,height){width=parseFloat(width);height=parseFloat(height);$pp_details=$pp_pic_holder.find('.pp_details');$pp_details.width(width);detailsHeight=parseFloat($pp_details.css('marginTop'))+parseFloat($pp_details.css('marginBottom'));$pp_details=$pp_details.clone().addClass(settings.theme).width(width).appendTo($('body')).css({'position':'absolute','top':-10000});detailsHeight+=$pp_details.height();detailsHeight=(detailsHeight<=34)?36:detailsHeight;if($.browser.msie&&$.browser.version==7)detailsHeight+=8;$pp_details.remove();$pp_title=$pp_pic_holder.find('.ppt');$pp_title.width(width);titleHeight=parseFloat($pp_title.css('marginTop'))+parseFloat($pp_title.css('marginBottom'));$pp_title=$pp_title.clone().appendTo($('body')).css({'position':'absolute','top':-10000});titleHeight+=$pp_title.height();$pp_title.remove();pp_contentHeight=height+detailsHeight;pp_contentWidth=width;pp_containerHeight=pp_contentHeight+titleHeight+$pp_pic_holder.find('.pp_top').height()+$pp_pic_holder.find('.pp_bottom').height();pp_containerWidth=width;} function _getFileType(itemSrc){if(itemSrc.match(/youtube\.com\/watch/i)||itemSrc.match(/youtu\.be/i)){return'youtube';}else if(itemSrc.match(/vimeo\.com/i)){return'vimeo';}else if(itemSrc.match(/\b.mov\b/i)){return'quicktime';}else if(itemSrc.match(/\b.swf\b/i)){return'flash';}else if(itemSrc.match(/\biframe=true\b/i)){return'iframe';}else if(itemSrc.match(/\bajax=true\b/i)){return'ajax';}else if(itemSrc.match(/\bcustom=true\b/i)){return'custom';}else if(itemSrc.substr(0,1)=='#'){return'inline';}else{return'image';};};function _center_overlay(){if(doresize&&typeof $pp_pic_holder!='undefined'){scroll_pos=_get_scroll();contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width();projectedTop=(windowHeight/2)+scroll_pos['scrollTop']-(contentHeight/2);if(projectedTop<0)projectedTop=0;if(contentHeight>windowHeight) return;$pp_pic_holder.css({'top':projectedTop,'left':(windowWidth/2)+scroll_pos['scrollLeft']-(contentwidth/2)});};};function _get_scroll(){if(self.pageYOffset){return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset};}else if(document.documentElement&&document.documentElement.scrollTop){return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft};}else if(document.body){return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft};};};function _resize_overlay(){windowHeight=$(window).height(),windowWidth=$(window).width();if(typeof $pp_overlay!="undefined")$pp_overlay.height($(document).height()).width(windowWidth);};function _insert_gallery(){if(isSet&&settings.overlay_gallery&&_getFileType(pp_images[set_position])=="image"&&(settings.ie6_fallback&&!($.browser.msie&&parseInt($.browser.version)==6))){itemWidth=52+5;navWidth=(settings.theme=="facebook"||settings.theme=="pp_default")?50:30;itemsPerPage=Math.floor((pp_dimensions['containerWidth']-100-navWidth)/itemWidth);itemsPerPage=(itemsPerPage";};toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find('#pp_full_res').after(toInject);$pp_gallery=$('.pp_pic_holder .pp_gallery'),$pp_gallery_li=$pp_gallery.find('li');$pp_gallery.find('.pp_arrow_next').click(function(){$.prettyPhoto.changeGalleryPage('next');$.prettyPhoto.stopSlideshow();return false;});$pp_gallery.find('.pp_arrow_previous').click(function(){$.prettyPhoto.changeGalleryPage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_content').hover(function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeIn();},function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeOut();});itemWidth=52+5;$pp_gallery_li.each(function(i){$(this).find('a').click(function(){$.prettyPhoto.changePage(i);$.prettyPhoto.stopSlideshow();return false;});});};if(settings.slideshow){$pp_pic_holder.find('.pp_nav').prepend('Play') $pp_pic_holder.find('.pp_nav .pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});} $pp_pic_holder.attr('class','pp_pic_holder '+settings.theme);$pp_overlay.css({'opacity':0,'height':$(document).height(),'width':$(window).width()}).bind('click',function(){if(!settings.modal)$.prettyPhoto.close();});$('a.pp_close').bind('click',function(){$.prettyPhoto.close();return false;});if(settings.allow_expand){$('a.pp_expand').bind('click',function(e){if($(this).hasClass('pp_expand')){$(this).removeClass('pp_expand').addClass('pp_contract');doresize=false;}else{$(this).removeClass('pp_contract').addClass('pp_expand');doresize=true;};_hideContent(function(){$.prettyPhoto.open();});return false;});} $pp_pic_holder.find('.pp_previous, .pp_nav .pp_arrow_previous').bind('click',function(){$.prettyPhoto.changePage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_next, .pp_nav .pp_arrow_next').bind('click',function(){$.prettyPhoto.changePage('next');$.prettyPhoto.stopSlideshow();return false;});_center_overlay();};if(!pp_alreadyInitialized&&getHashtag()){pp_alreadyInitialized=true;hashIndex=getHashtag();hashRel=hashIndex;hashIndex=hashIndex.substring(hashIndex.indexOf('/')+1,hashIndex.length-1);hashRel=hashRel.substring(0,hashRel.indexOf('/'));setTimeout(function(){$("a["+pp_settings.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger('click');},50);} return this.unbind('click.prettyphoto').bind('click.prettyphoto',$.prettyPhoto.initialize);};function getHashtag(){url=location.href;hashtag=(url.indexOf('#prettyPhoto')!==-1)?decodeURI(url.substring(url.indexOf('#prettyPhoto')+1,url.length)):false;return hashtag;};function setHashtag(){if(typeof theRel=='undefined')return;location.hash=theRel+'/'+rel_index+'/';};function clearHashtag(){if(location.href.indexOf('#prettyPhoto')!==-1)location.hash="prettyPhoto";} function getParam(name,url){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(url);return(results==null)?"":results[1];}})(jQuery);var pp_alreadyInitialized=false;/* Slimbox v2.04 - The ultimate lightweight Lightbox clone for jQuery (c) 2007-2010 Christophe Beyls MIT-style license. */ (function(w){var E=w(window),u,f,F=-1,n,x,D,v,y,L,r,m=!window.XMLHttpRequest,s=[],l=document.documentElement,k={},t=new Image(),J=new Image(),H,a,g,p,I,d,G,c,A,K;w(function(){w("body").append(w([H=w('
')[0],a=w('
')[0],G=w('
')[0]]).css("display","none"));g=w('
').appendTo(a).append(p=w('
').append([I=w('').click(B)[0],d=w('').click(e)[0]])[0])[0];c=w('
').appendTo(G).append([w('').add(H).click(C)[0],A=w('
')[0],K=w('
')[0],w('
')[0]])[0]});w.slimbox=function(O,N,M){u=w.extend({loop:false,overlayOpacity:0.8,overlayFadeDuration:200,resizeDuration:200,resizeEasing:"swing",initialWidth:250,initialHeight:250,imageFadeDuration:200,captionAnimationDuration:200,counterText:"",closeKeys:[27,88,67],previousKeys:[37,80],nextKeys:[39,78]},M);if(typeof O=="string"){O=[[O,N]];N=0}y=E.scrollTop()+(E.height()/2);L=u.initialWidth;r=u.initialHeight;w(a).css({top:Math.max(0,y-(r/2)),width:L,height:r,marginLeft:-L/2}).show();v=m||(H.currentStyle&&(H.currentStyle.position!="fixed"));if(v){H.style.position="absolute"}w(H).css("opacity",u.overlayOpacity).fadeIn(u.overlayFadeDuration);z();j(1);f=O;u.loop=u.loop&&(f.length>1);return b(N)};w.fn.slimbox=function(M,P,O){P=P||function(Q){return[Q.href,Q.title]};O=O||function(){return true};var N=this;return N.unbind("click").click(function(){var S=this,U=0,T,Q=0,R;T=w.grep(N,function(W,V){return O.call(S,W,V)});for(R=T.length;Q=0)?C():(M(N,u.nextKeys)>=0)?e():(M(N,u.previousKeys)>=0)?B():false}function B(){return b(x)}function e(){return b(D)}function b(M){if(M>=0){F=M;n=f[F][0];x=(F||(u.loop?f.length:0))-1;D=((F+1)%f.length)||(u.loop?0:-1);q();a.className="lbLoading";k=new Image();k.onload=i;k.src=n}return false}function i(){a.className="";w(g).css({backgroundImage:"url("+n+")",visibility:"hidden",display:""});w(p).width(k.width);w([p,I,d]).height(k.height);w(A).html(f[F][1]||"");w(K).html((((f.length>1)&&u.counterText)||"").replace(/{x}/,F+1).replace(/{y}/,f.length));if(x>=0){t.src=f[x][0]}if(D>=0){J.src=f[D][0]}L=g.offsetWidth;r=g.offsetHeight;var M=Math.max(0,y-(r/2));if(a.offsetHeight!=r){w(a).animate({height:r,top:M},u.resizeDuration,u.resizeEasing)}if(a.offsetWidth!=L){w(a).animate({width:L,marginLeft:-L/2},u.resizeDuration,u.resizeEasing)}w(a).queue(function(){w(G).css({width:L,top:M+r,marginLeft:-L/2,visibility:"hidden",display:""});w(g).css({display:"none",visibility:"",opacity:""}).fadeIn(u.imageFadeDuration,h)})}function h(){if(x>=0){w(I).show()}if(D>=0){w(d).show()}w(c).css("marginTop",-c.offsetHeight).animate({marginTop:0},u.captionAnimationDuration);G.style.visibility=""}function q(){k.onload=null;k.src=t.src=J.src=n;w([a,g,c]).stop(true);w([I,d,g,G]).hide()}function C(){if(F>=0){q();F=x=D=-1;w(a).hide();w(H).stop().fadeOut(u.overlayFadeDuration,j)}return false}})(jQuery); // AUTOLOAD CODE BLOCK (MAY BE CHANGED OR REMOVED) if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) { jQuery(function($) { $("a[rel^='lightbox']").slimbox({resizeDuration:50}, null, function(el) { return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel)); }); }); }(function($){ $.fn.popupWindow = function(instanceSettings){ return this.each(function(){ $(this).click(function(){ $.fn.popupWindow.defaultSettings = { centerBrowser:0, // center window over browser window? {1 (YES) or 0 (NO)}. overrides top and left centerScreen:0, // center window over entire screen? {1 (YES) or 0 (NO)}. overrides top and left height:500, // sets the height in pixels of the window. left:0, // left position when the window appears. location:0, // determines whether the address bar is displayed {1 (YES) or 0 (NO)}. menubar:0, // determines whether the menu bar is displayed {1 (YES) or 0 (NO)}. resizable:0, // whether the window can be resized {1 (YES) or 0 (NO)}. Can also be overloaded using resizable. scrollbars:0, // determines whether scrollbars appear on the window {1 (YES) or 0 (NO)}. status:0, // whether a status line appears at the bottom of the window {1 (YES) or 0 (NO)}. width:500, // sets the width in pixels of the window. windowName:null, // name of window set from the name attribute of the element that invokes the click windowURL:null, // url used for the popup top:0, // top position when the window appears. toolbar:0 // determines whether a toolbar (includes the forward and back buttons) is displayed {1 (YES) or 0 (NO)}. }; settings = $.extend({}, $.fn.popupWindow.defaultSettings, instanceSettings || {}); var windowFeatures = 'height=' + settings.height + ',width=' + settings.width + ',toolbar=' + settings.toolbar + ',scrollbars=' + settings.scrollbars + ',status=' + settings.status + ',resizable=' + settings.resizable + ',location=' + settings.location + ',menuBar=' + settings.menubar; settings.windowName = this.name || settings.windowName; settings.windowURL = this.href || settings.windowURL; var centeredY,centeredX; if(settings.centerBrowser){ if ($.browser.msie) {//hacked together for IE browsers centeredY = (window.screenTop - 120) + ((((document.documentElement.clientHeight + 120)/2) - (settings.height/2))); centeredX = window.screenLeft + ((((document.body.offsetWidth + 20)/2) - (settings.width/2))); }else{ centeredY = window.screenY + (((window.outerHeight/2) - (settings.height/2))); centeredX = window.screenX + (((window.outerWidth/2) - (settings.width/2))); } window.open(settings.windowURL, settings.windowName, windowFeatures+',left=' + centeredX +',top=' + centeredY).focus(); }else if(settings.centerScreen){ centeredY = (screen.height - settings.height)/2; centeredX = (screen.width - settings.width)/2; window.open(settings.windowURL, settings.windowName, windowFeatures+',left=' + centeredX +',top=' + centeredY).focus(); }else{ window.open(settings.windowURL, settings.windowName, windowFeatures+',left=' + settings.left +',top=' + settings.top).focus(); } return false; }); }); }; })(jQuery); /** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ /** * Create a cookie with the given name and value and other optional parameters. * * @example $.cookie('the_cookie', 'the_value'); * @desc Set the value of a cookie. * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true }); * @desc Create a cookie with all available options. * @example $.cookie('the_cookie', 'the_value'); * @desc Create a session cookie. * @example $.cookie('the_cookie', null); * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain * used when the cookie was set. * * @param String name The name of the cookie. * @param String value The value of the cookie. * @param Object options An object literal containing key/value pairs to provide optional cookie attributes. * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object. * If a negative value is specified (e.g. a date in the past), the cookie will be deleted. * If set to null or omitted, the cookie will be a session cookie and will not be retained * when the the browser exits. * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie). * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie). * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will * require a secure protocol (like HTTPS). * @type undefined * * @name $.cookie * @cat Plugins/Cookie * @author Klaus Hartl/klaus.hartl@stilbuero.de */ /** * Get the value of a cookie with the given name. * * @example $.cookie('the_cookie'); * @desc Get the value of a cookie. * * @param String name The name of the cookie. * @return The value of the cookie. * @type String * * @name $.cookie * @cat Plugins/Cookie * @author Klaus Hartl/klaus.hartl@stilbuero.de */ jQuery.cookie = function(name, value, options) { if (typeof value != 'undefined') { // name and value given, set cookie options = options || {}; if (value === null) { value = ''; options.expires = -1; } var expires = ''; if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { var date; if (typeof options.expires == 'number') { date = new Date(); date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); } else { date = options.expires; } expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE } // CAUTION: Needed to parenthesize options.path and options.domain // in the following expressions, otherwise they evaluate to undefined // in the packed version for some reason... var path = options.path ? '; path=' + (options.path) : ''; var domain = options.domain ? '; domain=' + (options.domain) : ''; var secure = options.secure ? '; secure' : ''; document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); } else { // only name given, get cookie var cookieValue = null; if (document.cookie && document.cookie != '') { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = jQuery.trim(cookies[i]); // Does this cookie string begin with the name we want? if (cookie.substring(0, name.length + 1) == (name + '=')) { cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); break; } } } return cookieValue; } };/** * Copyright (c) 2007-2012 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com * Dual licensed under MIT and GPL. * @author Ariel Flesler * @version 1.4.3.1 */ ;(function($){var h=$.scrollTo=function(a,b,c){$(window).scrollTo(a,b,c)};h.defaults={axis:'xy',duration:parseFloat($.fn.jquery)>=1.3?0:1,limit:true};h.window=function(a){return $(window)._scrollable()};$.fn._scrollable=function(){return this.map(function(){var a=this,isWin=!a.nodeName||$.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!isWin)return a;var b=(a.contentWindow||a).document||a.ownerDocument||a;return/webkit/i.test(navigator.userAgent)||b.compatMode=='BackCompat'?b.body:b.documentElement})};$.fn.scrollTo=function(e,f,g){if(typeof f=='object'){g=f;f=0}if(typeof g=='function')g={onAfter:g};if(e=='max')e=9e9;g=$.extend({},h.defaults,g);f=f||g.duration;g.queue=g.queue&&g.axis.length>1;if(g.queue)f/=2;g.offset=both(g.offset);g.over=both(g.over);return this._scrollable().each(function(){if(e==null)return;var d=this,$elem=$(d),targ=e,toff,attr={},win=$elem.is('html,body');switch(typeof targ){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(targ)){targ=both(targ);break}targ=$(targ,this);if(!targ.length)return;case'object':if(targ.is||targ.style)toff=(targ=$(targ)).offset()}$.each(g.axis.split(''),function(i,a){var b=a=='x'?'Left':'Top',pos=b.toLowerCase(),key='scroll'+b,old=d[key],max=h.max(d,a);if(toff){attr[key]=toff[pos]+(win?0:old-$elem.offset()[pos]);if(g.margin){attr[key]-=parseInt(targ.css('margin'+b))||0;attr[key]-=parseInt(targ.css('border'+b+'Width'))||0}attr[key]+=g.offset[pos]||0;if(g.over[pos])attr[key]+=targ[a=='x'?'width':'height']()*g.over[pos]}else{var c=targ[pos];attr[key]=c.slice&&c.slice(-1)=='%'?parseFloat(c)/100*max:c}if(g.limit&&/^\d+$/.test(attr[key]))attr[key]=attr[key]<=0?0:Math.min(attr[key],max);if(!i&&g.queue){if(old!=attr[key])animate(g.onAfterFirst);delete attr[key]}});animate(g.onAfter);function animate(a){$elem.animate(attr,f,g.easing,a&&function(){a.call(this,e,g)})}}).end()};h.max=function(a,b){var c=b=='x'?'Width':'Height',scroll='scroll'+c;if(!$(a).is('html,body'))return a[scroll]-$(a)[c.toLowerCase()]();var d='client'+c,html=a.ownerDocument.documentElement,body=a.ownerDocument.body;return Math.max(html[scroll],body[scroll])-Math.min(html[d],body[d])};function both(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery);/* * Slides, A Slideshow Plugin for jQuery * Intructions: http://slidesjs.com * By: Nathan Searles, http://nathansearles.com * Version: 1.1.9 * Updated: September 5th, 2011 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ (function($){ $.fn.slides = function( option ) { // override defaults with specified option option = $.extend( {}, $.fn.slides.option, option ); return this.each(function(){ // wrap slides in control container, make sure slides are block level $('.' + option.container, $(this)).children().wrapAll('
'); var elem = $(this), control = $('.slides_control',elem), total = control.children().size(), width = control.children().outerWidth(), height = control.children().outerHeight(), start = option.start - 1, effect = option.effect.indexOf(',') < 0 ? option.effect : option.effect.replace(' ', '').split(',')[0], paginationEffect = option.effect.indexOf(',') < 0 ? effect : option.effect.replace(' ', '').split(',')[1], next = 0, prev = 0, number = 0, current = 0, loaded, active, clicked, position, direction, imageParent, pauseTimeout, playInterval; // is there only one slide? if (total < 2) { // Fade in .slides_container $('.' + option.container, $(this)).fadeIn(option.fadeSpeed, option.fadeEasing, function(){ // let the script know everything is loaded loaded = true; // call the loaded funciton option.slidesLoaded(); }); // Hide the next/previous buttons $('.' + option.next + ', .' + option.prev).fadeOut(0); return false; } // animate slides function animate(direction, effect, clicked) { if (!active && loaded) { active = true; // start of animation option.animationStart(current + 1); switch(direction) { case 'next': // change current slide to previous prev = current; // get next from current + 1 next = current + 1; // if last slide, set next to first slide next = total === next ? 0 : next; // set position of next slide to right of previous position = width*2; // distance to slide based on width of slides direction = -width*2; // store new current slide current = next; break; case 'prev': // change current slide to previous prev = current; // get next from current - 1 next = current - 1; // if first slide, set next to last slide next = next === -1 ? total-1 : next; // set position of next slide to left of previous position = 0; // distance to slide based on width of slides direction = 0; // store new current slide current = next; break; case 'pagination': // get next from pagination item clicked, convert to number next = parseInt(clicked,10); // get previous from pagination item with class of current prev = $('.' + option.paginationClass + ' li.'+ option.currentClass +' a', elem).attr('href').match('[^#/]+$'); // if next is greater then previous set position of next slide to right of previous if (next > prev) { position = width*2; direction = -width*2; } else { // if next is less then previous set position of next slide to left of previous position = 0; direction = 0; } // store new current slide current = next; break; } // fade animation if (effect === 'fade') { // fade animation with crossfade if (option.crossfade) { // put hidden next above current control.children(':eq('+ next +')', elem).css({ zIndex: 10 // fade in next }).fadeIn(option.fadeSpeed, option.fadeEasing, function(){ if (option.autoHeight) { // animate container to height of next control.animate({ height: control.children(':eq('+ next +')', elem).outerHeight() }, option.autoHeightSpeed, function(){ // hide previous control.children(':eq('+ prev +')', elem).css({ display: 'none', zIndex: 0 }); // reset z index control.children(':eq('+ next +')', elem).css({ zIndex: 0 }); // end of animation option.animationComplete(next + 1); active = false; }); } else { // hide previous control.children(':eq('+ prev +')', elem).css({ display: 'none', zIndex: 0 }); // reset zindex control.children(':eq('+ next +')', elem).css({ zIndex: 0 }); // end of animation option.animationComplete(next + 1); active = false; } }); } else { // fade animation with no crossfade control.children(':eq('+ prev +')', elem).fadeOut(option.fadeSpeed, option.fadeEasing, function(){ // animate to new height if (option.autoHeight) { control.animate({ // animate container to height of next height: control.children(':eq('+ next +')', elem).outerHeight() }, option.autoHeightSpeed, // fade in next slide function(){ control.children(':eq('+ next +')', elem).fadeIn(option.fadeSpeed, option.fadeEasing); }); } else { // if fixed height control.children(':eq('+ next +')', elem).fadeIn(option.fadeSpeed, option.fadeEasing, function(){ // fix font rendering in ie, lame if($.browser.msie) { $(this).get(0).style.removeAttribute('filter'); } }); } // end of animation option.animationComplete(next + 1); active = false; }); } // slide animation } else { // move next slide to right of previous control.children(':eq('+ next +')').css({ left: position, display: 'block' }); // animate to new height if (option.autoHeight) { control.animate({ left: direction, height: control.children(':eq('+ next +')').outerHeight() },option.slideSpeed, option.slideEasing, function(){ control.css({ left: -width }); control.children(':eq('+ next +')').css({ left: width, zIndex: 5 }); // reset previous slide control.children(':eq('+ prev +')').css({ left: width, display: 'none', zIndex: 0 }); // end of animation option.animationComplete(next + 1); active = false; }); // if fixed height } else { // animate control control.animate({ left: direction },option.slideSpeed, option.slideEasing, function(){ // after animation reset control position control.css({ left: -width }); // reset and show next control.children(':eq('+ next +')').css({ left: width, zIndex: 5 }); // reset previous slide control.children(':eq('+ prev +')').css({ left: width, display: 'none', zIndex: 0 }); // end of animation option.animationComplete(next + 1); active = false; }); } } // set current state for pagination if (option.pagination) { // remove current class from all $('.'+ option.paginationClass +' li.' + option.currentClass, elem).removeClass(option.currentClass); // add current class to next $('.' + option.paginationClass + ' li:eq('+ next +')', elem).addClass(option.currentClass); } } } // end animate function function stop() { // clear interval from stored id clearInterval(elem.data('interval')); } function pause() { if (option.pause) { // clear timeout and interval clearTimeout(elem.data('pause')); clearInterval(elem.data('interval')); // pause slide show for option.pause amount pauseTimeout = setTimeout(function() { // clear pause timeout clearTimeout(elem.data('pause')); // start play interval after pause playInterval = setInterval( function(){ animate("next", effect); },option.play); // store play interval elem.data('interval',playInterval); },option.pause); // store pause interval elem.data('pause',pauseTimeout); } else { // if no pause, just stop stop(); } } // 2 or more slides required if (total < 2) { return; } // error corection for start slide if (start < 0) { start = 0; } if (start > total) { start = total - 1; } // change current based on start option number if (option.start) { current = start; } // randomizes slide order if (option.randomize) { control.randomize(); } // make sure overflow is hidden, width is set $('.' + option.container, elem).css({ overflow: 'hidden', // fix for ie position: 'relative' }); // set css for slides control.children().css({ position: 'absolute', top: 0, left: control.children().outerWidth(), zIndex: 0, display: 'none' }); // set css for control div control.css({ position: 'relative', // size of control 3 x slide width width: (width * 3), // set height to slide height height: height, // center control to slide left: -width }); // show slides $('.' + option.container, elem).css({ display: 'block' }); // if autoHeight true, get and set height of first slide if (option.autoHeight) { control.children().css({ height: 'auto' }); control.animate({ height: control.children(':eq('+ start +')').outerHeight() },option.autoHeightSpeed); } // checks if image is loaded if (option.preload && control.find('img:eq(' + start + ')').length) { // adds preload image $('.' + option.container, elem).css({ background: 'url(' + option.preloadImage + ') no-repeat 50% 50%' }); // gets image src, with cache buster var img = control.find('img:eq(' + start + ')').attr('src') + '?' + (new Date()).getTime(); // check if the image has a parent if ($('img', elem).parent().attr('class') != 'slides_control') { // If image has parent, get tag name imageParent = control.children(':eq(0)')[0].tagName.toLowerCase(); } else { // Image doesn't have parent, use image tag name imageParent = control.find('img:eq(' + start + ')'); } // checks if image is loaded control.find('img:eq(' + start + ')').attr('src', img).load(function() { // once image is fully loaded, fade in control.find(imageParent + ':eq(' + start + ')').fadeIn(option.fadeSpeed, option.fadeEasing, function(){ $(this).css({ zIndex: 5 }); // removes preload image $('.' + option.container, elem).css({ background: '' }); // let the script know everything is loaded loaded = true; // call the loaded funciton option.slidesLoaded(); }); }); } else { // if no preloader fade in start slide control.children(':eq(' + start + ')').fadeIn(option.fadeSpeed, option.fadeEasing, function(){ // let the script know everything is loaded loaded = true; // call the loaded funciton option.slidesLoaded(); }); } // click slide for next if (option.bigTarget) { // set cursor to pointer control.children().css({ cursor: 'pointer' }); // click handler control.children().click(function(){ // animate to next on slide click animate('next', effect); return false; }); } // pause on mouseover if (option.hoverPause && option.play) { control.bind('mouseover',function(){ // on mouse over stop stop(); }); control.bind('mouseleave',function(){ // on mouse leave start pause timeout pause(); }); } // generate next/prev buttons if (option.generateNextPrev) { $('.' + option.container, elem).after('Prev'); $('.' + option.prev, elem).after('Next'); } // next button $('.' + option.next ,elem).click(function(e){ e.preventDefault(); if (option.play) { pause(); } animate('next', effect); }); // previous button $('.' + option.prev, elem).click(function(e){ e.preventDefault(); if (option.play) { pause(); } animate('prev', effect); }); // generate pagination if (option.generatePagination) { // create unordered list if (option.prependPagination) { elem.prepend('
    '); } else { elem.append('
      '); } // for each slide create a list item and link control.children().each(function(){ $('.' + option.paginationClass, elem).append('
    • '+ (number+1) +'
    • '); number++; }); } else { // if pagination exists, add href w/ value of item number to links $('.' + option.paginationClass + ' li a', elem).each(function(){ $(this).attr('href', '#' + number); number++; }); } // add current class to start slide pagination $('.' + option.paginationClass + ' li:eq('+ start +')', elem).addClass(option.currentClass); // click handling $('.' + option.paginationClass + ' li a', elem ).click(function(){ // pause slideshow if (option.play) { pause(); } // get clicked, pass to animate function clicked = $(this).attr('href').match('[^#/]+$'); // if current slide equals clicked, don't do anything if (current != clicked) { animate('pagination', paginationEffect, clicked); } return false; }); // click handling $('a.link', elem).click(function(){ // pause slideshow if (option.play) { pause(); } // get clicked, pass to animate function clicked = $(this).attr('href').match('[^#/]+$') - 1; // if current slide equals clicked, don't do anything if (current != clicked) { animate('pagination', paginationEffect, clicked); } return false; }); if (option.play) { // set interval playInterval = setInterval(function() { animate('next', effect); }, option.play); // store interval id elem.data('interval',playInterval); } }); }; // default options $.fn.slides.option = { preload: false, // boolean, Set true to preload images in an image based slideshow preloadImage: '/img/loading.gif', // string, Name and location of loading image for preloader. Default is "/img/loading.gif" container: 'slides_container', // string, Class name for slides container. Default is "slides_container" generateNextPrev: false, // boolean, Auto generate next/prev buttons next: 'next', // string, Class name for next button prev: 'prev', // string, Class name for previous button pagination: true, // boolean, If you're not using pagination you can set to false, but don't have to generatePagination: true, // boolean, Auto generate pagination prependPagination: false, // boolean, prepend pagination paginationClass: 'pagination', // string, Class name for pagination currentClass: 'current', // string, Class name for current class fadeSpeed: 350, // number, Set the speed of the fading animation in milliseconds fadeEasing: '', // string, must load jQuery's easing plugin before http://gsgd.co.uk/sandbox/jquery/easing/ slideSpeed: 350, // number, Set the speed of the sliding animation in milliseconds slideEasing: '', // string, must load jQuery's easing plugin before http://gsgd.co.uk/sandbox/jquery/easing/ start: 1, // number, Set the speed of the sliding animation in milliseconds effect: 'slide', // string, '[next/prev], [pagination]', e.g. 'slide, fade' or simply 'fade' for both crossfade: false, // boolean, Crossfade images in a image based slideshow randomize: false, // boolean, Set to true to randomize slides play: 0, // number, Autoplay slideshow, a positive number will set to true and be the time between slide animation in milliseconds pause: 0, // number, Pause slideshow on click of next/prev or pagination. A positive number will set to true and be the time of pause in milliseconds hoverPause: false, // boolean, Set to true and hovering over slideshow will pause it autoHeight: false, // boolean, Set to true to auto adjust height autoHeightSpeed: 350, // number, Set auto height animation time in milliseconds bigTarget: false, // boolean, Set to true and the whole slide will link to next slide on click animationStart: function(){}, // Function called at the start of animation animationComplete: function(){}, // Function called at the completion of animation slidesLoaded: function() {} // Function is called when slides is fully loaded }; // Randomize slide order on load $.fn.randomize = function(callback) { function randomizeOrder() { return(Math.round(Math.random())-0.5); } return($(this).each(function() { var $this = $(this); var $children = $this.children(); var childCount = $children.length; if (childCount > 1) { $children.hide(); var indices = []; for (i=0;i 8) && (this.rel == el.rel)); }); $("div#slides a:first").trigger("click"); }); return false; } }); return false; } function headerFiles() { $("div[id^=headerFiles]").slideUp(); prod = $(this).attr("rel"); $("div#headerFiles" + prod).slideDown(); $("div[id^=filesLink]").css("background","#EFEFEF").css("border-top","1px solid #CCCCCC").css("border-right","1px solid #CCCCCC").css("border-bottom","none").css("border-left","1px solid #CCCCCC"); $("div#filesLink" + prod).css("border-top","1px solid #ABABAB").css("border-right","1px solid #ABABAB").css("border-bottom","1px solid #FFFFFF").css("border-left","1px solid #ABABAB").css("background","#FFFFFF"); return false; } function productFly() { reldata = $(this).attr("rel").split("|"); currentproductID = reldata[0]; page = reldata[1] + ".php"; $.ajax({ url: "/_includes/js/ajax/productLink" + page, data: "currentproductID=" + currentproductID, error: function () { return true; }, success: function (jsonOBJ) { newWindowHandling(jsonOBJ.data); return false; } }); return false; } $(function() { function changeSlide( newSlide ) { // cancel any timeout clearTimeout( slideTimeout ); // change the currSlide value currSlide = newSlide; // make sure the currSlide value is not too low or high if ( currSlide > maxSlide ) currSlide = 0; else if ( currSlide < 0 ) currSlide = maxSlide; // animate the slide reel $slideReel.animate({ left : currSlide * -930 }, 400, 'swing', function() { // hide / show the arrows depending on which frame it's on // if ( currSlide == 0 ) $slideLeftNav.hide(); // else $slideLeftNav.show(); // if ( currSlide == maxSlide ) $slideRightNav.hide(); // else $slideRightNav.show(); // set new timeout if active // if ( activeSlideshow ) slideTimeout = setTimeout(nextSlide, 6000); }); // animate the navigation indicator $activeNavItem.animate({ left : currSlide * 70 }, 400, 'swing'); } function nextSlide() { changeSlide( currSlide + 1 ); } // define some variables / DOM references var activeSlideshow = true, currSlide = 0, slideTimeout, $slideshow = $('#slideshow'), $slideReel = $slideshow.find('#slideshow-reel'), maxSlide = $slideReel.children().length - 1, $slideLeftNav = $slideshow.find('#slideshow-left'), $slideRightNav = $slideshow.find('#slideshow-right'), $activeNavItem = $slideshow.find('#active-nav-item'); // set navigation click events // left arrow $slideLeftNav.click(function(ev) { ev.preventDefault(); // activeSlideshow = false; changeSlide( currSlide - 1 ); }); // right arrow $slideRightNav.click(function(ev) { ev.preventDefault(); // activeSlideshow = false; changeSlide( currSlide + 1 ); }); // main navigation $slideshow.find('#slideshow-nav a.nav-item').click(function(ev) { ev.preventDefault(); // activeSlideshow = false; changeSlide( $(this).index() ); }); // start the animation // slideTimeout = setTimeout(nextSlide, 6000); }); function family() { b = $(this).attr("id"); c = b.substr(6,b.length); //minus "family" bits = c.split("|"); designation = bits[0]; path = bits[1]; $("div#familyBoxBarrierPic").empty().append(""); } function headerSlide() { slide = $(this).attr("id"); slideboxid = "headerSlide" + $(this).attr("id"); $("div[id^=headerSlide]").slideUp(); if($("div#" + slideboxid).css("display") == "none") { $("div#" + slideboxid).slideDown(); $("body").click(function(event) { if ($(event.target).closest("#" + slideboxid).length) return; $("#" + slideboxid).slideUp(); }); } else { $("div#" + slideboxid).slideUp(); } return false; } function morewho() { $(this).css("display","none"); $("div.morewho").slideDown(); return false; } function scrollslide() { name = $(this).attr("href"); n = name.substr(1,name.length); if(n) { $("html,body").animate({scrollTop: $("a[name=" + n + "]").offset().top},"slow"); return false; } } function unlock() { $.ajax({ url: "/_includes/js/ajax/unlock.php", error: function () { return true; }, success: function (jsonOBJ) { if(jsonOBJ.dlok == true) { window.open(jsonOBJ.refer); } } }); return true; } function warranty() { $.ajax({ url: "/_includes/js/ajax/warranty.php", error: function () { return true; }, success: function (jsonOBJ) { if(jsonOBJ.data !== "") { newWindowHandling(jsonOBJ.data); } return false; } }); return false; } function cfd() { $.ajax({ url: "/_includes/js/ajax/cfd.php", error: function () { return true; }, success: function (jsonOBJ) { if(jsonOBJ.data !== "") { newWindowHandling(jsonOBJ.data); } return false; } }); return false; } function cfp() { $.ajax({ url: "/_includes/js/ajax/cfp.php", data: "cdata=" + $("form[name=cf] textarea[name=comments]").val() + "&firstname=" + $("form[name=cf] input[name=firstname]").val() + "&lastname=" + $("form[name=cf] input[name=lastname]").val() + "&email=" + $("form[name=cf] input[name=email]").val() + "&phone=" + $("form[name=cf] input[name=phone]").val() + "&company=" + $("form[name=cf] input[name=company]").val() + "&leadType=" + $("form[name=cf] input:radio[name=leadType]:checked").val(), error: function () { return true; }, success: function (jsonOBJ) { if(jsonOBJ.data === true) { $("div#cfm").empty().append("
      Your message has been submitted. We'll be in touch soon!
      ").attr("class","banner"); // $("form[name=cf] textarea[name=comments]").val(""); } else { $("div#cfm").empty().append("Oops... something strange happened. Please try again.").attr("class","redbanner"); } return false; } }); return false; } function purchase() { $.ajax({ url: "/_includes/js/ajax/purchase.php", error: function () { return true; }, success: function (jsonOBJ) { newWindowHandling(jsonOBJ.data); return false; } }); return false; } function newWindowHandling(output,classname) { if(classname == undefined) { classname = "flyout"; } $("#glassDiv").fadeIn("slow"); $("body").append("
      "); $("#flyout").empty().append(output).show().css("zIndex", 10); if(classname == "flyout") { $("body").click(function(event) { if ($(event.target).closest("#flyout").length) return; $("#flyout").fadeOut("slow").remove(); $("#glassDiv").fadeOut(); }); } else { $("body").click(function(event) { if ($(event.target).closest("#slides").length) return; $("#flyout").fadeOut("slow").remove(); $("#slides").remove(); $("#glassDiv").fadeOut(); }); } $("a[name=closepopup]").bind("click",closepopup); $("a[rel^='lightbox']").slimbox({resizeDuration:50}, null, function(el) { return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel)); }); $("a[rel=prettyPhoto]").prettyPhoto({deeplinking:false}); } function newWindowHandling2(output) { $("body").append("
      "); $("#flyout2").empty().append(output).show().css("zIndex", -10); $("body").click(function(event) { if ($(event.target).closest("#slides").length) return; $("#flyout2").fadeOut("slow").remove(); $("#slides").remove(); }); } function closepopup() { $("#flyout").fadeOut("slow").remove(); $("#glassDiv").fadeOut(); return false; } function od() { link = $(this).val(); if( (link == "") || (link == "0") ) { alert("Please try again!"); } else { window.open("http://www.rssi.com/downloads/docs/" + link); } $("form[name=docform] select[name=doc]").val('0'); return false; } function translateTo(destLang){ $(".content").translate("english", destLang); $.cookie("destLang",destLang, { path: "/" }); return false; } function lang() { if($("div#lang").css("display") == "none") { //if clicked section is HIDDEN... $("div#lang").empty(); for (x=0;x " + languageName[x] + "
      "); } $("a[name=translate]").bind("click",translate); $("div#lang").slideDown(); //open it! $("body").mousedown(function(event) { if ($(event.target).closest("#lang").length) return; $("#lang").hide(); event.stopPropagation(); }); } else { //else, if clicked section is OPEN... $("div#lang").slideUp("slow",function(){ $("div#lang").empty(); }); //HIDE it! } return false; } function translate() { $("div#lang").hide(); updateflag($(this).attr("rel")); translateTo($(this).attr("rel")); return false; } function updateflag(f) { $("img#flagicon").attr("src","../gfx/flags/" + languageAbbr[f] + ".gif"); $("span[name=clang]").empty().append(f); return false; } function specBox() { target = $(this).attr("rel"); $("div[id^=specBox]").hide(); $("div#specBox" + target).show(); $("div[id^=specLink]").attr("class","sizeContentOFF"); $("div#specLink" + target).attr("class","sizeContentON"); $("img#specimg").attr("src","../gfx/spec/2000" + target + ".jpg"); return false; } function initialize_location() { if( $("div#map_canvas_location").is("div") ) { var latlng = new google.maps.LatLng(30.152922, -85.577006); var myOptions = { zoom: 8, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map_canvas_location"),myOptions); var marker = new google.maps.Marker({ position: latlng, map: map, title:"RSSI" }); } } function initialize_about() { if( $("div#map_canvas_about").is("div") ) { if($("div#map_canvas_about").attr("class") == "map_canvas") { zoom = 1; } else { zoom = 3; } var latlng = new google.maps.LatLng(0,0); var myOptions = { zoom: zoom, center: latlng, mapTypeId: google.maps.MapTypeId.TERRAIN }; var thismap = new google.maps.Map(document.getElementById("map_canvas_about"),myOptions); var infowindow = new google.maps.InfoWindow(); var latlngbounds = new google.maps.LatLngBounds(); marker0 = new google.maps.Marker({position: new google.maps.LatLng(40.712938,-74.003818),map: thismap,title: "1 Centre Street",icon: "../gfx/legend.png",height: 100});marker0.setMap(thismap);latlngbounds.extend(marker0.position); marker1 = new google.maps.Marker({position: new google.maps.LatLng(34.533333,69.133333),map: thismap,title: "Afghanistan Army Base",icon: "../gfx/legend.png",height: 100});marker1.setMap(thismap);latlngbounds.extend(marker1.position); marker2 = new google.maps.Marker({position: new google.maps.LatLng(38.990556,-104.860556),map: thismap,title: "Air Force Academy",icon: "../gfx/legend.png",height: 100});marker2.setMap(thismap);latlngbounds.extend(marker2.position); marker3 = new google.maps.Marker({position: new google.maps.LatLng(33.519550,-86.813601),map: thismap,title: "Alabama Power HQ",icon: "../gfx/legend.png",height: 100});marker3.setMap(thismap);latlngbounds.extend(marker3.position); marker4 = new google.maps.Marker({position: new google.maps.LatLng(34.663887,-99.273888),map: thismap,title: "Altus AFB",icon: "../gfx/legend.png",height: 100});marker4.setMap(thismap);latlngbounds.extend(marker4.position); marker5 = new google.maps.Marker({position: new google.maps.LatLng(61.130833,-146.348333),map: thismap,title: "Alyeska Pipeline",icon: "../gfx/legend.png",height: 100});marker5.setMap(thismap);latlngbounds.extend(marker5.position); marker6 = new google.maps.Marker({position: new google.maps.LatLng(33.629389,-85.967222),map: thismap,title: "Anniston Army Depot - Fish Hatchery Gate",icon: "../gfx/legend.png",height: 100});marker6.setMap(thismap);latlngbounds.extend(marker6.position); marker7 = new google.maps.Marker({position: new google.maps.LatLng(38.885624,-77.080712),map: thismap,title: "Arlington Cemetery, Henderson Hall",icon: "../gfx/legend.png",height: 100});marker7.setMap(thismap);latlngbounds.extend(marker7.position); marker8 = new google.maps.Marker({position: new google.maps.LatLng(15.332360,38.926170),map: thismap,title: "Asmara, Africa",icon: "../gfx/legend.png",height: 100});marker8.setMap(thismap);latlngbounds.extend(marker8.position); marker9 = new google.maps.Marker({position: new google.maps.LatLng(-25.282197,-57.635100),map: thismap,title: "Asuncion",icon: "../gfx/legend.png",height: 100});marker9.setMap(thismap);latlngbounds.extend(marker9.position); marker10 = new google.maps.Marker({position: new google.maps.LatLng(33.325000,44.422000),map: thismap,title: "Baghdad, Iraq",icon: "../gfx/legend.png",height: 100});marker10.setMap(thismap);latlngbounds.extend(marker10.position); marker11 = new google.maps.Marker({position: new google.maps.LatLng(34.966667,69.283333),map: thismap,title: "Bagram AB",icon: "../gfx/legend.png",height: 100});marker11.setMap(thismap);latlngbounds.extend(marker11.position); marker12 = new google.maps.Marker({position: new google.maps.LatLng(39.290425,-76.616990),map: thismap,title: "Baltimore Gas & Electric",icon: "../gfx/legend.png",height: 100});marker12.setMap(thismap);latlngbounds.extend(marker12.position); marker13 = new google.maps.Marker({position: new google.maps.LatLng(33.261403,-111.857858),map: thismap,title: "Bank of America",icon: "../gfx/legend.png",height: 100});marker13.setMap(thismap);latlngbounds.extend(marker13.position); marker14 = new google.maps.Marker({position: new google.maps.LatLng(39.099335,-94.583241),map: thismap,title: "Bank of America",icon: "../gfx/legend.png",height: 100});marker14.setMap(thismap);latlngbounds.extend(marker14.position); marker15 = new google.maps.Marker({position: new google.maps.LatLng(32.981821,-96.767592),map: thismap,title: "Bank of America",icon: "../gfx/legend.png",height: 100});marker15.setMap(thismap);latlngbounds.extend(marker15.position); marker16 = new google.maps.Marker({position: new google.maps.LatLng(37.634430,-77.463570),map: thismap,title: "Bank of America",icon: "../gfx/legend.png",height: 100});marker16.setMap(thismap);latlngbounds.extend(marker16.position); marker17 = new google.maps.Marker({position: new google.maps.LatLng(39.389907,-120.096309),map: thismap,title: "Boca Dam",icon: "../gfx/legend.png",height: 100});marker17.setMap(thismap);latlngbounds.extend(marker17.position); marker18 = new google.maps.Marker({position: new google.maps.LatLng(33.919180,-118.416465),map: thismap,title: "Boeing",icon: "../gfx/legend.png",height: 100});marker18.setMap(thismap);latlngbounds.extend(marker18.position); marker19 = new google.maps.Marker({position: new google.maps.LatLng(38.879970,-77.106770),map: thismap,title: "Boeing ADF East",icon: "../gfx/legend.png",height: 100});marker19.setMap(thismap);latlngbounds.extend(marker19.position); marker20 = new google.maps.Marker({position: new google.maps.LatLng(38.842806,-77.016162),map: thismap,title: "Bolling AFB WHCA",icon: "../gfx/legend.png",height: 100});marker20.setMap(thismap);latlngbounds.extend(marker20.position); marker21 = new google.maps.Marker({position: new google.maps.LatLng(38.842778,-77.016111),map: thismap,title: "Bolling AFB WHCA",icon: "../gfx/legend.png",height: 100});marker21.setMap(thismap);latlngbounds.extend(marker21.position); marker22 = new google.maps.Marker({position: new google.maps.LatLng(29.400000,-94.933889),map: thismap,title: "BP",icon: "../gfx/legend.png",height: 100});marker22.setMap(thismap);latlngbounds.extend(marker22.position); marker23 = new google.maps.Marker({position: new google.maps.LatLng(29.383845,-94.902700),map: thismap,title: "BP",icon: "../gfx/legend.png",height: 100});marker23.setMap(thismap);latlngbounds.extend(marker23.position); marker24 = new google.maps.Marker({position: new google.maps.LatLng(28.954137,-95.359662),map: thismap,title: "BP",icon: "../gfx/legend.png",height: 100});marker24.setMap(thismap);latlngbounds.extend(marker24.position); marker25 = new google.maps.Marker({position: new google.maps.LatLng(28.959444,-95.356944),map: thismap,title: "BP #2",icon: "../gfx/legend.png",height: 100});marker25.setMap(thismap);latlngbounds.extend(marker25.position); marker26 = new google.maps.Marker({position: new google.maps.LatLng(39.714532,-104.771405),map: thismap,title: "Buckley AFB",icon: "../gfx/legend.png",height: 100});marker26.setMap(thismap);latlngbounds.extend(marker26.position); marker27 = new google.maps.Marker({position: new google.maps.LatLng(42.074167,-89.281944),map: thismap,title: "Byron Nuclear Generating Station",icon: "../gfx/legend.png",height: 100});marker27.setMap(thismap);latlngbounds.extend(marker27.position); marker28 = new google.maps.Marker({position: new google.maps.LatLng(3.866667,11.516667),map: thismap,title: "Cameron LNG",icon: "../gfx/legend.png",height: 100});marker28.setMap(thismap);latlngbounds.extend(marker28.position); marker29 = new google.maps.Marker({position: new google.maps.LatLng(43.922467,-90.271519),map: thismap,title: "Camp Douglas",icon: "../gfx/legend.png",height: 100});marker29.setMap(thismap);latlngbounds.extend(marker29.position); marker30 = new google.maps.Marker({position: new google.maps.LatLng(41.671507,-70.564738),map: thismap,title: "Camp Edwards MSBs",icon: "../gfx/legend.png",height: 100});marker30.setMap(thismap);latlngbounds.extend(marker30.position); marker31 = new google.maps.Marker({position: new google.maps.LatLng(39.433936,-77.424313),map: thismap,title: "Cancer Center",icon: "../gfx/legend.png",height: 100});marker31.setMap(thismap);latlngbounds.extend(marker31.position); marker32 = new google.maps.Marker({position: new google.maps.LatLng(39.439167,-77.374722),map: thismap,title: "Cancer Research Center",icon: "../gfx/legend.png",height: 100});marker32.setMap(thismap);latlngbounds.extend(marker32.position); marker33 = new google.maps.Marker({position: new google.maps.LatLng(38.977158,-77.193337),map: thismap,title: "Carderock",icon: "../gfx/legend.png",height: 100});marker33.setMap(thismap);latlngbounds.extend(marker33.position); marker34 = new google.maps.Marker({position: new google.maps.LatLng(40.693649,-89.588986),map: thismap,title: "Caterpiller Plant",icon: "../gfx/legend.png",height: 100});marker34.setMap(thismap);latlngbounds.extend(marker34.position); marker35 = new google.maps.Marker({position: new google.maps.LatLng(7.369722,12.354722),map: thismap,title: "Center for Disease Control",icon: "../gfx/legend.png",height: 100});marker35.setMap(thismap);latlngbounds.extend(marker35.position); marker36 = new google.maps.Marker({position: new google.maps.LatLng(32.776566,-79.939220),map: thismap,title: "Charleston AFB",icon: "../gfx/legend.png",height: 100});marker36.setMap(thismap);latlngbounds.extend(marker36.position); marker37 = new google.maps.Marker({position: new google.maps.LatLng(29.884950,-93.939947),map: thismap,title: "Chevron",icon: "../gfx/legend.png",height: 100});marker37.setMap(thismap);latlngbounds.extend(marker37.position); marker38 = new google.maps.Marker({position: new google.maps.LatLng(29.691063,-95.209101),map: thismap,title: "Chevron",icon: "../gfx/legend.png",height: 100});marker38.setMap(thismap);latlngbounds.extend(marker38.position); marker39 = new google.maps.Marker({position: new google.maps.LatLng(35.662800,101.401700),map: thismap,title: "Chevron Phillips",icon: "../gfx/legend.png",height: 100});marker39.setMap(thismap);latlngbounds.extend(marker39.position); marker40 = new google.maps.Marker({position: new google.maps.LatLng(40.801262,-73.960994),map: thismap,title: "ConEdison",icon: "../gfx/legend.png",height: 100});marker40.setMap(thismap);latlngbounds.extend(marker40.position); marker41 = new google.maps.Marker({position: new google.maps.LatLng(33.761391,-118.264029),map: thismap,title: "Conoco-Phillips Carson Refinery",icon: "../gfx/legend.png",height: 100});marker41.setMap(thismap);latlngbounds.extend(marker41.position); marker42 = new google.maps.Marker({position: new google.maps.LatLng(33.773333,-118.288611),map: thismap,title: "Conoco-Phillips Main Gate",icon: "../gfx/legend.png",height: 100});marker42.setMap(thismap);latlngbounds.extend(marker42.position); marker43 = new google.maps.Marker({position: new google.maps.LatLng(37.930000,-121.950000),map: thismap,title: "Contra Costa Project",icon: "../gfx/legend.png",height: 100});marker43.setMap(thismap);latlngbounds.extend(marker43.position); marker44 = new google.maps.Marker({position: new google.maps.LatLng(35.198760,-114.569490),map: thismap,title: "Davis Dam",icon: "../gfx/legend.png",height: 100});marker44.setMap(thismap);latlngbounds.extend(marker44.position); marker45 = new google.maps.Marker({position: new google.maps.LatLng(35.187036,-114.585558),map: thismap,title: "Davis Dam",icon: "../gfx/legend.png",height: 100});marker45.setMap(thismap);latlngbounds.extend(marker45.position); marker46 = new google.maps.Marker({position: new google.maps.LatLng(38.889297,-76.975207),map: thismap,title: "DC Armory",icon: "../gfx/legend.png",height: 100});marker46.setMap(thismap);latlngbounds.extend(marker46.position); marker47 = new google.maps.Marker({position: new google.maps.LatLng(38.868262,-77.208373),map: thismap,title: "Defense Health HQ",icon: "../gfx/legend.png",height: 100});marker47.setMap(thismap);latlngbounds.extend(marker47.position); marker48 = new google.maps.Marker({position: new google.maps.LatLng(33.809708,-117.917007),map: thismap,title: "Disneyland - Gate 4",icon: "../gfx/legend.png",height: 100});marker48.setMap(thismap);latlngbounds.extend(marker48.position); marker49 = new google.maps.Marker({position: new google.maps.LatLng(33.816705,-117.920439),map: thismap,title: "Disneyland - Gate 7",icon: "../gfx/legend.png",height: 100});marker49.setMap(thismap);latlngbounds.extend(marker49.position); marker50 = new google.maps.Marker({position: new google.maps.LatLng(33.912998,-84.517723),map: thismap,title: "Dobbins AFB, Gate 4",icon: "../gfx/legend.png",height: 100});marker50.setMap(thismap);latlngbounds.extend(marker50.position); marker51 = new google.maps.Marker({position: new google.maps.LatLng(9.030000,38.740000),map: thismap,title: "DOS - Addis Ababa",icon: "../gfx/legend.png",height: 100});marker51.setMap(thismap);latlngbounds.extend(marker51.position); marker52 = new google.maps.Marker({position: new google.maps.LatLng(-18.909669,47.523809),map: thismap,title: "DS 40 - Antananarivo",icon: "../gfx/legend.png",height: 100});marker52.setMap(thismap);latlngbounds.extend(marker52.position); marker53 = new google.maps.Marker({position: new google.maps.LatLng(-4.275190,15.256418),map: thismap,title: "DS 40 - Brazzaville",icon: "../gfx/legend.png",height: 100});marker53.setMap(thismap);latlngbounds.extend(marker53.position); marker54 = new google.maps.Marker({position: new google.maps.LatLng(25.271139,55.307485),map: thismap,title: "DS 40 - Dubai",icon: "../gfx/legend.png",height: 100});marker54.setMap(thismap);latlngbounds.extend(marker54.position); marker55 = new google.maps.Marker({position: new google.maps.LatLng(-15.423811,28.311309),map: thismap,title: "DS 40 - Lusaka",icon: "../gfx/legend.png",height: 100});marker55.setMap(thismap);latlngbounds.extend(marker55.position); marker56 = new google.maps.Marker({position: new google.maps.LatLng(6.300774,-10.797160),map: thismap,title: "DS 40 - Monrovia",icon: "../gfx/legend.png",height: 100});marker56.setMap(thismap);latlngbounds.extend(marker56.position); marker57 = new google.maps.Marker({position: new google.maps.LatLng(40.851775,14.268124),map: thismap,title: "DS 40 - Naples",icon: "../gfx/legend.png",height: 100});marker57.setMap(thismap);latlngbounds.extend(marker57.position); marker58 = new google.maps.Marker({position: new google.maps.LatLng(43.857324,18.400199),map: thismap,title: "DS 40 - Sarajevo",icon: "../gfx/legend.png",height: 100});marker58.setMap(thismap);latlngbounds.extend(marker58.position); marker59 = new google.maps.Marker({position: new google.maps.LatLng(33.886900,35.513100),map: thismap,title: "DS, Beirut",icon: "../gfx/legend.png",height: 100});marker59.setMap(thismap);latlngbounds.extend(marker59.position); marker60 = new google.maps.Marker({position: new google.maps.LatLng(34.533300,69.166700),map: thismap,title: "DS, Kabul",icon: "../gfx/legend.png",height: 100});marker60.setMap(thismap);latlngbounds.extend(marker60.position); marker61 = new google.maps.Marker({position: new google.maps.LatLng(39.974078,-82.894039),map: thismap,title: "DSCC (Defense Supply Center, Columbus)",icon: "../gfx/legend.png",height: 100});marker61.setMap(thismap);latlngbounds.extend(marker61.position); marker62 = new google.maps.Marker({position: new google.maps.LatLng(38.875000,77.402500),map: thismap,title: "Dulles Discovery 3",icon: "../gfx/legend.png",height: 100});marker62.setMap(thismap);latlngbounds.extend(marker62.position); marker63 = new google.maps.Marker({position: new google.maps.LatLng(32.419998,-99.856410),map: thismap,title: "Dyess AFB",icon: "../gfx/legend.png",height: 100});marker63.setMap(thismap);latlngbounds.extend(marker63.position); marker64 = new google.maps.Marker({position: new google.maps.LatLng(41.033986,-73.762910),map: thismap,title: "Eastview Reservoir",icon: "../gfx/legend.png",height: 100});marker64.setMap(thismap);latlngbounds.extend(marker64.position); marker65 = new google.maps.Marker({position: new google.maps.LatLng(36.624030,-78.556945),map: thismap,title: "EDS Data Center",icon: "../gfx/legend.png",height: 100});marker65.setMap(thismap);latlngbounds.extend(marker65.position); marker66 = new google.maps.Marker({position: new google.maps.LatLng(29.595492,-95.168531),map: thismap,title: "Ellington Field, Main Gate",icon: "../gfx/legend.png",height: 100});marker66.setMap(thismap);latlngbounds.extend(marker66.position); marker67 = new google.maps.Marker({position: new google.maps.LatLng(44.146400,103.074700),map: thismap,title: "Ellsworth - Barrier Upgrade",icon: "../gfx/legend.png",height: 100});marker67.setMap(thismap);latlngbounds.extend(marker67.position); marker68 = new google.maps.Marker({position: new google.maps.LatLng(44.143736,-103.075564),map: thismap,title: "Ellsworth AFB",icon: "../gfx/legend.png",height: 100});marker68.setMap(thismap);latlngbounds.extend(marker68.position); marker69 = new google.maps.Marker({position: new google.maps.LatLng(39.099275,-76.848306),map: thismap,title: "Emerson Building",icon: "../gfx/legend.png",height: 100});marker69.setMap(thismap);latlngbounds.extend(marker69.position); marker70 = new google.maps.Marker({position: new google.maps.LatLng(32.298757,-90.184810),map: thismap,title: "Entergy Data Center",icon: "../gfx/legend.png",height: 100});marker70.setMap(thismap);latlngbounds.extend(marker70.position); marker71 = new google.maps.Marker({position: new google.maps.LatLng(39.759258,-76.268733),map: thismap,title: "Exelon Peach Bottom Station",icon: "../gfx/legend.png",height: 100});marker71.setMap(thismap);latlngbounds.extend(marker71.position); marker72 = new google.maps.Marker({position: new google.maps.LatLng(41.726389,-90.310000),map: thismap,title: "Exelon Quad Cities Nuclear Plant",icon: "../gfx/legend.png",height: 100});marker72.setMap(thismap);latlngbounds.extend(marker72.position); marker73 = new google.maps.Marker({position: new google.maps.LatLng(41.726389,-90.310000),map: thismap,title: "Exelon Quad Cities Nuclear Plant II",icon: "../gfx/legend.png",height: 100});marker73.setMap(thismap);latlngbounds.extend(marker73.position); marker74 = new google.maps.Marker({position: new google.maps.LatLng(33.858143,-118.337937),map: thismap,title: "Exxon-Mobil",icon: "../gfx/legend.png",height: 100});marker74.setMap(thismap);latlngbounds.extend(marker74.position); marker75 = new google.maps.Marker({position: new google.maps.LatLng(35.149534,-90.048980),map: thismap,title: "FAA",icon: "../gfx/legend.png",height: 100});marker75.setMap(thismap);latlngbounds.extend(marker75.position); marker76 = new google.maps.Marker({position: new google.maps.LatLng(38.522450,-77.289687),map: thismap,title: "FBI Bypass Rd",icon: "../gfx/legend.png",height: 100});marker76.setMap(thismap);latlngbounds.extend(marker76.position); marker77 = new google.maps.Marker({position: new google.maps.LatLng(43.692461,-106.560633),map: thismap,title: "FE Warren",icon: "../gfx/legend.png",height: 100});marker77.setMap(thismap);latlngbounds.extend(marker77.position); marker78 = new google.maps.Marker({position: new google.maps.LatLng(40.720833,-89.609444),map: thismap,title: "Fermi Nuclear Facility",icon: "../gfx/legend.png",height: 100});marker78.setMap(thismap);latlngbounds.extend(marker78.position); marker79 = new google.maps.Marker({position: new google.maps.LatLng(30.438256,-84.280733),map: thismap,title: "Florida State Capital",icon: "../gfx/legend.png",height: 100});marker79.setMap(thismap);latlngbounds.extend(marker79.position); marker80 = new google.maps.Marker({position: new google.maps.LatLng(37.636132,-99.754016),map: thismap,title: "Ford County, Kansas",icon: "../gfx/legend.png",height: 100});marker80.setMap(thismap);latlngbounds.extend(marker80.position); marker81 = new google.maps.Marker({position: new google.maps.LatLng(38.709710,-77.146988),map: thismap,title: "Fort Belvoir",icon: "../gfx/legend.png",height: 100});marker81.setMap(thismap);latlngbounds.extend(marker81.position); marker82 = new google.maps.Marker({position: new google.maps.LatLng(38.719737,-77.154582),map: thismap,title: "Fort Belvoir",icon: "../gfx/legend.png",height: 100});marker82.setMap(thismap);latlngbounds.extend(marker82.position); marker83 = new google.maps.Marker({position: new google.maps.LatLng(38.719737,-77.154582),map: thismap,title: "Fort Belvoir, DLA",icon: "../gfx/legend.png",height: 100});marker83.setMap(thismap);latlngbounds.extend(marker83.position); marker84 = new google.maps.Marker({position: new google.maps.LatLng(38.719737,-77.154582),map: thismap,title: "Fort Belvoir, NGA Facility",icon: "../gfx/legend.png",height: 100});marker84.setMap(thismap);latlngbounds.extend(marker84.position); marker85 = new google.maps.Marker({position: new google.maps.LatLng(38.719737,-77.154582),map: thismap,title: "Fort Belvoir, South Loop",icon: "../gfx/legend.png",height: 100});marker85.setMap(thismap);latlngbounds.extend(marker85.position); marker86 = new google.maps.Marker({position: new google.maps.LatLng(38.719737,-77.154582),map: thismap,title: "Fort Belvoir, Telegraph",icon: "../gfx/legend.png",height: 100});marker86.setMap(thismap);latlngbounds.extend(marker86.position); marker87 = new google.maps.Marker({position: new google.maps.LatLng(38.719737,-77.154582),map: thismap,title: "Fort Belvoir, Telegraph",icon: "../gfx/legend.png",height: 100});marker87.setMap(thismap);latlngbounds.extend(marker87.position); marker88 = new google.maps.Marker({position: new google.maps.LatLng(38.719737,-77.154582),map: thismap,title: "Fort Belvoir, West North Gate",icon: "../gfx/legend.png",height: 100});marker88.setMap(thismap);latlngbounds.extend(marker88.position); marker89 = new google.maps.Marker({position: new google.maps.LatLng(40.029835,-74.618490),map: thismap,title: "Fort Dix",icon: "../gfx/legend.png",height: 100});marker89.setMap(thismap);latlngbounds.extend(marker89.position); marker90 = new google.maps.Marker({position: new google.maps.LatLng(40.019200,74.522800),map: thismap,title: "Fort Dix - Barrier Upgrade",icon: "../gfx/legend.png",height: 100});marker90.setMap(thismap);latlngbounds.extend(marker90.position); marker91 = new google.maps.Marker({position: new google.maps.LatLng(44.037065,-90.658333),map: thismap,title: "Fort McCoy",icon: "../gfx/legend.png",height: 100});marker91.setMap(thismap);latlngbounds.extend(marker91.position); marker92 = new google.maps.Marker({position: new google.maps.LatLng(61.254444,-149.688333),map: thismap,title: "Fort Richardson",icon: "../gfx/legend.png",height: 100});marker92.setMap(thismap);latlngbounds.extend(marker92.position); marker93 = new google.maps.Marker({position: new google.maps.LatLng(31.398140,-85.746155),map: thismap,title: "Fort Rucker",icon: "../gfx/legend.png",height: 100});marker93.setMap(thismap);latlngbounds.extend(marker93.position); marker94 = new google.maps.Marker({position: new google.maps.LatLng(36.926630,-76.041001),map: thismap,title: "Fort Story",icon: "../gfx/legend.png",height: 100});marker94.setMap(thismap);latlngbounds.extend(marker94.position); marker95 = new google.maps.Marker({position: new google.maps.LatLng(38.879970,-77.106770),map: thismap,title: "Founders Square",icon: "../gfx/legend.png",height: 100});marker95.setMap(thismap);latlngbounds.extend(marker95.position); marker96 = new google.maps.Marker({position: new google.maps.LatLng(40.661823,-86.144649),map: thismap,title: "Grissom AFB",icon: "../gfx/legend.png",height: 100});marker96.setMap(thismap);latlngbounds.extend(marker96.position); marker97 = new google.maps.Marker({position: new google.maps.LatLng(39.109478,-77.183601),map: thismap,title: "Grunley Construction",icon: "../gfx/legend.png",height: 100});marker97.setMap(thismap);latlngbounds.extend(marker97.position); marker98 = new google.maps.Marker({position: new google.maps.LatLng(41.308153,-72.928158),map: thismap,title: "GSA",icon: "../gfx/legend.png",height: 100});marker98.setMap(thismap);latlngbounds.extend(marker98.position); marker99 = new google.maps.Marker({position: new google.maps.LatLng(40.712995,-111.835180),map: thismap,title: "GSA Service Center",icon: "../gfx/legend.png",height: 100});marker99.setMap(thismap);latlngbounds.extend(marker99.position); marker100 = new google.maps.Marker({position: new google.maps.LatLng(40.912832,-73.869840),map: thismap,title: "Hillview Reservoir",icon: "../gfx/legend.png",height: 100});marker100.setMap(thismap);latlngbounds.extend(marker100.position); marker101 = new google.maps.Marker({position: new google.maps.LatLng(10.783178,106.700429),map: thismap,title: "Ho Chi Minh Consulate",icon: "../gfx/legend.png",height: 100});marker101.setMap(thismap);latlngbounds.extend(marker101.position); marker102 = new google.maps.Marker({position: new google.maps.LatLng(30.428888,-86.688889),map: thismap,title: "Hurlburt Field - Building 1",icon: "../gfx/legend.png",height: 100});marker102.setMap(thismap);latlngbounds.extend(marker102.position); marker103 = new google.maps.Marker({position: new google.maps.LatLng(30.427778,-86.689444),map: thismap,title: "Hurlburt Field - East Gate",icon: "../gfx/legend.png",height: 100});marker103.setMap(thismap);latlngbounds.extend(marker103.position); marker104 = new google.maps.Marker({position: new google.maps.LatLng(30.427800,86.689400),map: thismap,title: "Hurlburt Field Commercial Vehicle Inspection Lane",icon: "../gfx/legend.png",height: 100});marker104.setMap(thismap);latlngbounds.extend(marker104.position); marker105 = new google.maps.Marker({position: new google.maps.LatLng(17.366000,78.476000),map: thismap,title: "India Project",icon: "../gfx/legend.png",height: 100});marker105.setMap(thismap);latlngbounds.extend(marker105.position); marker106 = new google.maps.Marker({position: new google.maps.LatLng(33.659826,-85.831632),map: thismap,title: "Iowa ANG",icon: "../gfx/legend.png",height: 100});marker106.setMap(thismap);latlngbounds.extend(marker106.position); marker107 = new google.maps.Marker({position: new google.maps.LatLng(41.540870,-93.659496),map: thismap,title: "Iowa National Guard",icon: "../gfx/legend.png",height: 100});marker107.setMap(thismap);latlngbounds.extend(marker107.position); marker108 = new google.maps.Marker({position: new google.maps.LatLng(47.606210,-122.332071),map: thismap,title: "Iris Campus",icon: "../gfx/legend.png",height: 100});marker108.setMap(thismap);latlngbounds.extend(marker108.position); marker109 = new google.maps.Marker({position: new google.maps.LatLng(38.861110,-77.004722),map: thismap,title: "Joint Base Anacostia-Bolling",icon: "../gfx/legend.png",height: 100});marker109.setMap(thismap);latlngbounds.extend(marker109.position); marker110 = new google.maps.Marker({position: new google.maps.LatLng(29.382779,-98.626545),map: thismap,title: "Lackland AFB, Phase 1",icon: "../gfx/legend.png",height: 100});marker110.setMap(thismap);latlngbounds.extend(marker110.position); marker111 = new google.maps.Marker({position: new google.maps.LatLng(36.333012,-119.952080),map: thismap,title: "Lemoore NAS Franklin Gate",icon: "../gfx/legend.png",height: 100});marker111.setMap(thismap);latlngbounds.extend(marker111.position); marker112 = new google.maps.Marker({position: new google.maps.LatLng(33.755000,-84.390000),map: thismap,title: "Lockheed Martin",icon: "../gfx/legend.png",height: 100});marker112.setMap(thismap);latlngbounds.extend(marker112.position); marker113 = new google.maps.Marker({position: new google.maps.LatLng(33.539951,-112.366482),map: thismap,title: "Luke AFB",icon: "../gfx/legend.png",height: 100});marker113.setMap(thismap);latlngbounds.extend(marker113.position); marker114 = new google.maps.Marker({position: new google.maps.LatLng(47.504959,-111.188026),map: thismap,title: "Malmstrom AFB",icon: "../gfx/legend.png",height: 100});marker114.setMap(thismap);latlngbounds.extend(marker114.position); marker115 = new google.maps.Marker({position: new google.maps.LatLng(33.448377,-112.074037),map: thismap,title: "Marana AANG",icon: "../gfx/legend.png",height: 100});marker115.setMap(thismap);latlngbounds.extend(marker115.position); marker116 = new google.maps.Marker({position: new google.maps.LatLng(3.866667,11.516667),map: thismap,title: "Marathon Oil",icon: "../gfx/legend.png",height: 100});marker116.setMap(thismap);latlngbounds.extend(marker116.position); marker117 = new google.maps.Marker({position: new google.maps.LatLng(38.830354,-77.116253),map: thismap,title: "Mark Center (BRAC 133)",icon: "../gfx/legend.png",height: 100});marker117.setMap(thismap);latlngbounds.extend(marker117.position); marker118 = new google.maps.Marker({position: new google.maps.LatLng(39.288333,-76.649167),map: thismap,title: "Maryland Square",icon: "../gfx/legend.png",height: 100});marker118.setMap(thismap);latlngbounds.extend(marker118.position); marker119 = new google.maps.Marker({position: new google.maps.LatLng(38.748333,-90.749167),map: thismap,title: "MasterCard",icon: "../gfx/legend.png",height: 100});marker119.setMap(thismap);latlngbounds.extend(marker119.position); marker120 = new google.maps.Marker({position: new google.maps.LatLng(41.040600,73.714400),map: thismap,title: "MasterCard HQ",icon: "../gfx/legend.png",height: 100});marker120.setMap(thismap);latlngbounds.extend(marker120.position); marker121 = new google.maps.Marker({position: new google.maps.LatLng(36.084996,-115.151136),map: thismap,title: "McCarran Airport (LAS)",icon: "../gfx/legend.png",height: 100});marker121.setMap(thismap);latlngbounds.extend(marker121.position); marker122 = new google.maps.Marker({position: new google.maps.LatLng(47.153767,-122.483442),map: thismap,title: "McChord AFB",icon: "../gfx/legend.png",height: 100});marker122.setMap(thismap);latlngbounds.extend(marker122.position); marker123 = new google.maps.Marker({position: new google.maps.LatLng(29.756800,-95.355400),map: thismap,title: "Minute Maid Stadium",icon: "../gfx/legend.png",height: 100});marker123.setMap(thismap);latlngbounds.extend(marker123.position); marker124 = new google.maps.Marker({position: new google.maps.LatLng(32.555651,-88.551253),map: thismap,title: "NAS Meridian",icon: "../gfx/legend.png",height: 100});marker124.setMap(thismap);latlngbounds.extend(marker124.position); marker125 = new google.maps.Marker({position: new google.maps.LatLng(32.671758,-117.116618),map: thismap,title: "Naval Base San Diego, Gate 29 (Vesta)",icon: "../gfx/legend.png",height: 100});marker125.setMap(thismap);latlngbounds.extend(marker125.position); marker126 = new google.maps.Marker({position: new google.maps.LatLng(14.583333,120.966667),map: thismap,title: "Newport Marriott",icon: "../gfx/legend.png",height: 100});marker126.setMap(thismap);latlngbounds.extend(marker126.position); marker127 = new google.maps.Marker({position: new google.maps.LatLng(36.005678,-78.926171),map: thismap,title: "NIEHS",icon: "../gfx/legend.png",height: 100});marker127.setMap(thismap);latlngbounds.extend(marker127.position); marker128 = new google.maps.Marker({position: new google.maps.LatLng(40.237802,-76.983218),map: thismap,title: "NSA Mechanicsburg",icon: "../gfx/legend.png",height: 100});marker128.setMap(thismap);latlngbounds.extend(marker128.position); marker129 = new google.maps.Marker({position: new google.maps.LatLng(34.341900,62.203100),map: thismap,title: "OBO Herat",icon: "../gfx/legend.png",height: 100});marker129.setMap(thismap);latlngbounds.extend(marker129.position); marker130 = new google.maps.Marker({position: new google.maps.LatLng(28.568183,-81.210060),map: thismap,title: "Orlando Research Park 2",icon: "../gfx/legend.png",height: 100});marker130.setMap(thismap);latlngbounds.extend(marker130.position); marker131 = new google.maps.Marker({position: new google.maps.LatLng(28.589342,-81.196765),map: thismap,title: "Orlando Tech Center",icon: "../gfx/legend.png",height: 100});marker131.setMap(thismap);latlngbounds.extend(marker131.position); marker132 = new google.maps.Marker({position: new google.maps.LatLng(17.385044,78.486671),map: thismap,title: "Park Hyatt",icon: "../gfx/legend.png",height: 100});marker132.setMap(thismap);latlngbounds.extend(marker132.position); marker133 = new google.maps.Marker({position: new google.maps.LatLng(35.147777,-114.568298),map: thismap,title: "Parker Dam",icon: "../gfx/legend.png",height: 100});marker133.setMap(thismap);latlngbounds.extend(marker133.position); marker134 = new google.maps.Marker({position: new google.maps.LatLng(33.659826,-85.831632),map: thismap,title: "Pelham Range",icon: "../gfx/legend.png",height: 100});marker134.setMap(thismap);latlngbounds.extend(marker134.position); marker135 = new google.maps.Marker({position: new google.maps.LatLng(38.867841,-77.056246),map: thismap,title: "Pentagon Gate A&E (Retrofit under Project 23_001 and 23_014)",icon: "../gfx/legend.png",height: 100});marker135.setMap(thismap);latlngbounds.extend(marker135.position); marker136 = new google.maps.Marker({position: new google.maps.LatLng(38.867841,-77.056246),map: thismap,title: "Pentagon Mall",icon: "../gfx/legend.png",height: 100});marker136.setMap(thismap);latlngbounds.extend(marker136.position); marker137 = new google.maps.Marker({position: new google.maps.LatLng(38.867841,-77.056246),map: thismap,title: "Pentagon Mall and River",icon: "../gfx/legend.png",height: 100});marker137.setMap(thismap);latlngbounds.extend(marker137.position); marker138 = new google.maps.Marker({position: new google.maps.LatLng(38.867841,-77.056246),map: thismap,title: "Pentagon MSB",icon: "../gfx/legend.png",height: 100});marker138.setMap(thismap);latlngbounds.extend(marker138.position); marker139 = new google.maps.Marker({position: new google.maps.LatLng(38.867841,-77.056246),map: thismap,title: "Pentagon RDF",icon: "../gfx/legend.png",height: 100});marker139.setMap(thismap);latlngbounds.extend(marker139.position); marker140 = new google.maps.Marker({position: new google.maps.LatLng(38.867841,-77.056246),map: thismap,title: "Pentagon Rotary & Fern",icon: "../gfx/legend.png",height: 100});marker140.setMap(thismap);latlngbounds.extend(marker140.position); marker141 = new google.maps.Marker({position: new google.maps.LatLng(32.221528,-110.974381),map: thismap,title: "Pima County EOC",icon: "../gfx/legend.png",height: 100});marker141.setMap(thismap);latlngbounds.extend(marker141.position); marker142 = new google.maps.Marker({position: new google.maps.LatLng(35.170833,-79.014444),map: thismap,title: "Pope AFB",icon: "../gfx/legend.png",height: 100});marker142.setMap(thismap);latlngbounds.extend(marker142.position); marker143 = new google.maps.Marker({position: new google.maps.LatLng(35.170880,-79.014501),map: thismap,title: "Pope AFB",icon: "../gfx/legend.png",height: 100});marker143.setMap(thismap);latlngbounds.extend(marker143.position); marker144 = new google.maps.Marker({position: new google.maps.LatLng(25.774544,-80.170880),map: thismap,title: "Port of Miami",icon: "../gfx/legend.png",height: 100});marker144.setMap(thismap);latlngbounds.extend(marker144.position); marker145 = new google.maps.Marker({position: new google.maps.LatLng(60.170833,24.937500),map: thismap,title: "Project 11-826-82",icon: "../gfx/legend.png",height: 100});marker145.setMap(thismap);latlngbounds.extend(marker145.position); marker146 = new google.maps.Marker({position: new google.maps.LatLng(38.274590,-104.343167),map: thismap,title: "Pueblo Chemical Depot",icon: "../gfx/legend.png",height: 100});marker146.setMap(thismap);latlngbounds.extend(marker146.position); marker147 = new google.maps.Marker({position: new google.maps.LatLng(29.531683,-98.287392),map: thismap,title: "Randolph AFB",icon: "../gfx/legend.png",height: 100});marker147.setMap(thismap);latlngbounds.extend(marker147.position); marker148 = new google.maps.Marker({position: new google.maps.LatLng(41.597222,-71.412222),map: thismap,title: "Rhode Island Air National Guard",icon: "../gfx/legend.png",height: 100});marker148.setMap(thismap);latlngbounds.extend(marker148.position); marker149 = new google.maps.Marker({position: new google.maps.LatLng(32.634013,-83.600731),map: thismap,title: "Robins AFB",icon: "../gfx/legend.png",height: 100});marker149.setMap(thismap);latlngbounds.extend(marker149.position); marker150 = new google.maps.Marker({position: new google.maps.LatLng(29.712209,-95.155830),map: thismap,title: "Rohm & Haas",icon: "../gfx/legend.png",height: 100});marker150.setMap(thismap);latlngbounds.extend(marker150.position); marker151 = new google.maps.Marker({position: new google.maps.LatLng(39.173162,-77.271650),map: thismap,title: "RPS Building",icon: "../gfx/legend.png",height: 100});marker151.setMap(thismap);latlngbounds.extend(marker151.position); marker152 = new google.maps.Marker({position: new google.maps.LatLng(32.378829,-86.305708),map: thismap,title: "RSA",icon: "../gfx/legend.png",height: 100});marker152.setMap(thismap);latlngbounds.extend(marker152.position); marker153 = new google.maps.Marker({position: new google.maps.LatLng(29.524947,-98.473251),map: thismap,title: "San Antonio Port",icon: "../gfx/legend.png",height: 100});marker153.setMap(thismap);latlngbounds.extend(marker153.position); marker154 = new google.maps.Marker({position: new google.maps.LatLng(32.754102,-117.197220),map: thismap,title: "San Diego Courthouse",icon: "../gfx/legend.png",height: 100});marker154.setMap(thismap);latlngbounds.extend(marker154.position); marker155 = new google.maps.Marker({position: new google.maps.LatLng(32.671758,-117.116618),map: thismap,title: "San Diego Test Bed",icon: "../gfx/legend.png",height: 100});marker155.setMap(thismap);latlngbounds.extend(marker155.position); marker156 = new google.maps.Marker({position: new google.maps.LatLng(33.741406,-118.104787),map: thismap,title: "San Pedro DFSP",icon: "../gfx/legend.png",height: 100});marker156.setMap(thismap);latlngbounds.extend(marker156.position); marker157 = new google.maps.Marker({position: new google.maps.LatLng(38.897787,-77.054006),map: thismap,title: "Saudi Embassy",icon: "../gfx/legend.png",height: 100});marker157.setMap(thismap);latlngbounds.extend(marker157.position); marker158 = new google.maps.Marker({position: new google.maps.LatLng(30.438256,-84.280733),map: thismap,title: "Senate Parking",icon: "../gfx/legend.png",height: 100});marker158.setMap(thismap);latlngbounds.extend(marker158.position); marker159 = new google.maps.Marker({position: new google.maps.LatLng(37.615223,-122.389979),map: thismap,title: "SFO",icon: "../gfx/legend.png",height: 100});marker159.setMap(thismap);latlngbounds.extend(marker159.position); marker160 = new google.maps.Marker({position: new google.maps.LatLng(33.973056,-80.472778),map: thismap,title: "Shaw AFB, Alert Facility",icon: "../gfx/legend.png",height: 100});marker160.setMap(thismap);latlngbounds.extend(marker160.position); marker161 = new google.maps.Marker({position: new google.maps.LatLng(33.973972,-80.477336),map: thismap,title: "Shaw AFB, Main Gate",icon: "../gfx/legend.png",height: 100});marker161.setMap(thismap);latlngbounds.extend(marker161.position); marker162 = new google.maps.Marker({position: new google.maps.LatLng(29.712956,-95.125140),map: thismap,title: "Shell",icon: "../gfx/legend.png",height: 100});marker162.setMap(thismap);latlngbounds.extend(marker162.position); marker163 = new google.maps.Marker({position: new google.maps.LatLng(38.012396,-122.106504),map: thismap,title: "Shell",icon: "../gfx/legend.png",height: 100});marker163.setMap(thismap);latlngbounds.extend(marker163.position); marker164 = new google.maps.Marker({position: new google.maps.LatLng(29.762884,-95.383061),map: thismap,title: "Shell, AHQ Anadarko",icon: "../gfx/legend.png",height: 100});marker164.setMap(thismap);latlngbounds.extend(marker164.position); marker165 = new google.maps.Marker({position: new google.maps.LatLng(40.643177,-74.074303),map: thismap,title: "St. George Ferry",icon: "../gfx/legend.png",height: 100});marker165.setMap(thismap);latlngbounds.extend(marker165.position); marker166 = new google.maps.Marker({position: new google.maps.LatLng(41.239141,-88.836399),map: thismap,title: "State Farm",icon: "../gfx/legend.png",height: 100});marker166.setMap(thismap);latlngbounds.extend(marker166.position); marker167 = new google.maps.Marker({position: new google.maps.LatLng(41.503427,-74.010418),map: thismap,title: "Stewart ANG",icon: "../gfx/legend.png",height: 100});marker167.setMap(thismap);latlngbounds.extend(marker167.position); marker168 = new google.maps.Marker({position: new google.maps.LatLng(30.276357,-97.741296),map: thismap,title: "Texas State Capital",icon: "../gfx/legend.png",height: 100});marker168.setMap(thismap);latlngbounds.extend(marker168.position); marker169 = new google.maps.Marker({position: new google.maps.LatLng(35.391483,-73.955972),map: thismap,title: "Tinker AFB, Hope Gate",icon: "../gfx/legend.png",height: 100});marker169.setMap(thismap);latlngbounds.extend(marker169.position); marker170 = new google.maps.Marker({position: new google.maps.LatLng(30.071147,-85.590044),map: thismap,title: "Tyndall AFB",icon: "../gfx/legend.png",height: 100});marker170.setMap(thismap);latlngbounds.extend(marker170.position); marker171 = new google.maps.Marker({position: new google.maps.LatLng(30.078611,-85.576389),map: thismap,title: "Tyndall AFB, Ammo Gate",icon: "../gfx/legend.png",height: 100});marker171.setMap(thismap);latlngbounds.extend(marker171.position); marker172 = new google.maps.Marker({position: new google.maps.LatLng(30.078611,-85.576389),map: thismap,title: "Tyndall AFB, Cleveland Gate",icon: "../gfx/legend.png",height: 100});marker172.setMap(thismap);latlngbounds.extend(marker172.position); marker173 = new google.maps.Marker({position: new google.maps.LatLng(30.078611,-85.576389),map: thismap,title: "Tyndall AFB, Illinois Gate",icon: "../gfx/legend.png",height: 100});marker173.setMap(thismap);latlngbounds.extend(marker173.position); marker174 = new google.maps.Marker({position: new google.maps.LatLng(30.071147,-85.590044),map: thismap,title: "Tyndall AFB, Main Gate",icon: "../gfx/legend.png",height: 100});marker174.setMap(thismap);latlngbounds.extend(marker174.position); marker175 = new google.maps.Marker({position: new google.maps.LatLng(30.078611,-85.576389),map: thismap,title: "Tyndall AFB, Sabre Gate",icon: "../gfx/legend.png",height: 100});marker175.setMap(thismap);latlngbounds.extend(marker175.position); marker176 = new google.maps.Marker({position: new google.maps.LatLng(41.880624,-87.674761),map: thismap,title: "United Center",icon: "../gfx/legend.png",height: 100});marker176.setMap(thismap);latlngbounds.extend(marker176.position); marker177 = new google.maps.Marker({position: new google.maps.LatLng(38.866501,-76.983864),map: thismap,title: "United States Marine Corp (USMC)",icon: "../gfx/legend.png",height: 100});marker177.setMap(thismap);latlngbounds.extend(marker177.position); marker178 = new google.maps.Marker({position: new google.maps.LatLng(38.995110,-76.886084),map: thismap,title: "University of Missouri",icon: "../gfx/legend.png",height: 100});marker178.setMap(thismap);latlngbounds.extend(marker178.position); marker179 = new google.maps.Marker({position: new google.maps.LatLng(39.100465,-94.585207),map: thismap,title: "US Bank",icon: "../gfx/legend.png",height: 100});marker179.setMap(thismap);latlngbounds.extend(marker179.position); marker180 = new google.maps.Marker({position: new google.maps.LatLng(38.875864,-77.003069),map: thismap,title: "US Dept of Transportation",icon: "../gfx/legend.png",height: 100});marker180.setMap(thismap);latlngbounds.extend(marker180.position); marker181 = new google.maps.Marker({position: new google.maps.LatLng(33.298549,44.395747),map: thismap,title: "US Embassy",icon: "../gfx/legend.png",height: 100});marker181.setMap(thismap);latlngbounds.extend(marker181.position); marker182 = new google.maps.Marker({position: new google.maps.LatLng(55.755786,37.617633),map: thismap,title: "US Embassy",icon: "../gfx/legend.png",height: 100});marker182.setMap(thismap);latlngbounds.extend(marker182.position); marker183 = new google.maps.Marker({position: new google.maps.LatLng(25.861170,-97.502190),map: thismap,title: "US Embassy",icon: "../gfx/legend.png",height: 100});marker183.setMap(thismap);latlngbounds.extend(marker183.position); marker184 = new google.maps.Marker({position: new google.maps.LatLng(9.022736,38.746799),map: thismap,title: "US Embassy",icon: "../gfx/legend.png",height: 100});marker184.setMap(thismap);latlngbounds.extend(marker184.position); marker185 = new google.maps.Marker({position: new google.maps.LatLng(37.778764,-122.416606),map: thismap,title: "US Mint",icon: "../gfx/legend.png",height: 100});marker185.setMap(thismap);latlngbounds.extend(marker185.position); marker186 = new google.maps.Marker({position: new google.maps.LatLng(37.770356,-122.427527),map: thismap,title: "US Mint",icon: "../gfx/legend.png",height: 100});marker186.setMap(thismap);latlngbounds.extend(marker186.position); marker187 = new google.maps.Marker({position: new google.maps.LatLng(38.232417,-122.636652),map: thismap,title: "USCG",icon: "../gfx/legend.png",height: 100});marker187.setMap(thismap);latlngbounds.extend(marker187.position); marker188 = new google.maps.Marker({position: new google.maps.LatLng(41.083333,-73.766667),map: thismap,title: "Valhalla",icon: "../gfx/legend.png",height: 100});marker188.setMap(thismap);latlngbounds.extend(marker188.position); marker189 = new google.maps.Marker({position: new google.maps.LatLng(40.633562,-74.500804),map: thismap,title: "Verizon",icon: "../gfx/legend.png",height: 100});marker189.setMap(thismap);latlngbounds.extend(marker189.position); marker190 = new google.maps.Marker({position: new google.maps.LatLng(38.984720,-77.094720),map: thismap,title: "Walter Reed",icon: "../gfx/legend.png",height: 100});marker190.setMap(thismap);latlngbounds.extend(marker190.position); marker191 = new google.maps.Marker({position: new google.maps.LatLng(31.968599,-99.901813),map: thismap,title: "Washington Mutual",icon: "../gfx/legend.png",height: 100});marker191.setMap(thismap);latlngbounds.extend(marker191.position); marker192 = new google.maps.Marker({position: new google.maps.LatLng(41.392700,-73.958400),map: thismap,title: "West Point",icon: "../gfx/legend.png",height: 100});marker192.setMap(thismap);latlngbounds.extend(marker192.position); marker193 = new google.maps.Marker({position: new google.maps.LatLng(41.391483,-73.955972),map: thismap,title: "West Point, Motor Pool",icon: "../gfx/legend.png",height: 100});marker193.setMap(thismap);latlngbounds.extend(marker193.position); marker194 = new google.maps.Marker({position: new google.maps.LatLng(41.391483,-73.955972),map: thismap,title: "West Point, Stoney Gate",icon: "../gfx/legend.png",height: 100});marker194.setMap(thismap);latlngbounds.extend(marker194.position); if($("div#map_canvas_about").attr("class") != "map_canvas") { thismap.fitBounds(latlngbounds); } thismap.setCenter(latlngbounds.getCenter()); } }