/* * 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: 2.5.6 ------------------------------------------------------------------------- */ (function($){$.prettyPhoto={version:'2.5.6'};$.fn.prettyPhoto=function(settings){settings=jQuery.extend({animationSpeed:'normal',opacity:0.80,showTitle:true,allowresize:true,default_width:500,default_height:344,counter_separator_label:'/',theme:'light_rounded',hideflash:false,wmode:'opaque',autoplay:true,modal:false,changepicturecallback:function(){},callback:function(){},markup:'
\
\
\
\
\
\
\
\
\
\
\
\ Expand \
\ next \ previous \
\
\
\ Close \

\
\ Previous \

0/0

\ Next \
\
\
\
\
\
\
\
\
\
\
\
\
\
\
',image_markup:'',flash_markup:'',quicktime_markup:'',iframe_markup:'',inline_markup:'
{content}
'},settings);if($.browser.msie&&parseInt($.browser.version)==6){settings.theme="light_square";} if($('.pp_overlay').size()==0)_buildOverlay();var doresize=true,percentBased=false,correctSizes,$pp_pic_holder,$ppt,$pp_overlay,pp_contentHeight,pp_contentWidth,pp_containerHeight,pp_containerWidth,windowHeight=$(window).height(),windowWidth=$(window).width(),setPosition=0,scrollPos=_getScroll();$(window).scroll(function(){scrollPos=_getScroll();_centerOverlay();_resizeOverlay();});$(window).resize(function(){_centerOverlay();_resizeOverlay();});$(document).keydown(function(e){if($pp_pic_holder.is(':visible')) switch(e.keyCode){case 37:$.prettyPhoto.changePage('previous');break;case 39:$.prettyPhoto.changePage('next');break;case 27:if(!settings.modal) $.prettyPhoto.close();break;};});$(this).each(function(){$(this).bind('click',function(){_self=this;theRel=$(this).attr('rel');galleryRegExp=/\[(?:.*)\]/;theGallery=galleryRegExp.exec(theRel);var images=new Array(),titles=new Array(),descriptions=new Array();if(theGallery){$('a[rel*='+theGallery+']').each(function(i){if($(this)[0]===$(_self)[0])setPosition=i;images.push($(this).attr('href'));titles.push($(this).find('img').attr('alt'));descriptions.push($(this).attr('title'));});}else{images=$(this).attr('href');titles=($(this).find('img').attr('alt'))?$(this).find('img').attr('alt'):'';descriptions=($(this).attr('title'))?$(this).attr('title'):'';} $.prettyPhoto.open(images,titles,descriptions);return false;});});$.prettyPhoto.open=function(gallery_images,gallery_titles,gallery_descriptions){if($.browser.msie&&$.browser.version==6){$('select').css('visibility','hidden');};if(settings.hideflash)$('object,embed').css('visibility','hidden');images=$.makeArray(gallery_images);titles=$.makeArray(gallery_titles);descriptions=$.makeArray(gallery_descriptions);image_set=($(images).size()>0)?true:false;_checkPosition($(images).size());$('.pp_loaderIcon').show();$pp_overlay.show().fadeTo(settings.animationSpeed,settings.opacity);$pp_pic_holder.find('.currentTextHolder').text((setPosition+1)+settings.counter_separator_label+$(images).size());if(descriptions[setPosition]){$pp_pic_holder.find('.pp_description').show().html(unescape(descriptions[setPosition]));}else{$pp_pic_holder.find('.pp_description').hide().text('');};if(titles[setPosition]&&settings.showTitle){hasTitle=true;$ppt.html(unescape(titles[setPosition]));}else{hasTitle=false;};movie_width=(parseFloat(grab_param('width',images[setPosition])))?grab_param('width',images[setPosition]):settings.default_width.toString();movie_height=(parseFloat(grab_param('height',images[setPosition])))?grab_param('height',images[setPosition]):settings.default_height.toString();if(movie_width.indexOf('%')!=-1||movie_height.indexOf('%')!=-1){movie_height=parseFloat(($(window).height()*parseFloat(movie_height)/100)-100);movie_width=parseFloat(($(window).width()*parseFloat(movie_width)/100)-100);percentBased=true;} $pp_pic_holder.fadeIn(function(){imgPreloader="";switch(_getFileType(images[setPosition])){case'image':imgPreloader=new Image();nextImage=new Image();if(image_set&&setPosition>$(images).size())nextImage.src=images[setPosition+1];prevImage=new Image();if(image_set&&images[setPosition-1])prevImage.src=images[setPosition-1];$pp_pic_holder.find('#pp_full_res')[0].innerHTML=settings.image_markup;$pp_pic_holder.find('#fullResImage').attr('src',images[setPosition]);imgPreloader.onload=function(){correctSizes=_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=images[setPosition];break;case'youtube':correctSizes=_fitToViewport(movie_width,movie_height);movie='http://www.youtube.com/v/'+grab_param('v',images[setPosition]);if(settings.autoplay)movie+="&autoplay=1";toInject=settings.flash_markup.replace(/{width}/g,correctSizes['width']).replace(/{height}/g,correctSizes['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case'vimeo':correctSizes=_fitToViewport(movie_width,movie_height);movie_id=images[setPosition];movie='http://vimeo.com/moogaloop.swf?clip_id='+movie_id.replace('http://vimeo.com/','');if(settings.autoplay)movie+="&autoplay=1";toInject=settings.flash_markup.replace(/{width}/g,correctSizes['width']).replace(/{height}/g,correctSizes['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case'quicktime':correctSizes=_fitToViewport(movie_width,movie_height);correctSizes['height']+=15;correctSizes['contentHeight']+=15;correctSizes['containerHeight']+=15;toInject=settings.quicktime_markup.replace(/{width}/g,correctSizes['width']).replace(/{height}/g,correctSizes['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,images[setPosition]).replace(/{autoplay}/g,settings.autoplay);break;case'flash':correctSizes=_fitToViewport(movie_width,movie_height);flash_vars=images[setPosition];flash_vars=flash_vars.substring(images[setPosition].indexOf('flashvars')+10,images[setPosition].length);filename=images[setPosition];filename=filename.substring(0,filename.indexOf('?'));toInject=settings.flash_markup.replace(/{width}/g,correctSizes['width']).replace(/{height}/g,correctSizes['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+'?'+flash_vars);break;case'iframe':correctSizes=_fitToViewport(movie_width,movie_height);frame_url=images[setPosition];frame_url=frame_url.substr(0,frame_url.indexOf('iframe')-1);toInject=settings.iframe_markup.replace(/{width}/g,correctSizes['width']).replace(/{height}/g,correctSizes['height']).replace(/{path}/g,frame_url);break;case'inline':myClone=$(images[setPosition]).clone().css({'width':settings.default_width}).wrapInner('
').appendTo($('body'));correctSizes=_fitToViewport($(myClone).width(),$(myClone).height());$(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,$(images[setPosition]).html());break;};if(!imgPreloader){$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();};});};$.prettyPhoto.changePage=function(direction){if(direction=='previous'){setPosition--;if(setPosition<0){setPosition=0;return;};}else{if($('.pp_arrow_next').is('.disabled'))return;setPosition++;};if(!doresize)doresize=true;_hideContent(function(){$.prettyPhoto.open(images,titles,descriptions)});$('a.pp_expand,a.pp_contract').fadeOut(settings.animationSpeed);};$.prettyPhoto.close=function(){$pp_pic_holder.find('object,embed').css('visibility','hidden');$('div.pp_pic_holder,div.ppt,.pp_fade').fadeOut(settings.animationSpeed);$pp_overlay.fadeOut(settings.animationSpeed,function(){$('#pp_full_res').html('');$pp_pic_holder.attr('style','').find('div:not(.pp_hoverContainer)').attr('style','');_centerOverlay();if($.browser.msie&&$.browser.version==6){$('select').css('visibility','visible');};if(settings.hideflash)$('object,embed').css('visibility','visible');setPosition=0;settings.callback();});doresize=true;};_showContent=function(){$('.pp_loaderIcon').hide();projectedTop=scrollPos['scrollTop']+((windowHeight/2)-(correctSizes['containerHeight']/2));if(projectedTop<0)projectedTop=0+$ppt.height();$pp_pic_holder.find('.pp_content').animate({'height':correctSizes['contentHeight']},settings.animationSpeed);$pp_pic_holder.animate({'top':projectedTop,'left':(windowWidth/2)-(correctSizes['containerWidth']/2),'width':correctSizes['containerWidth']},settings.animationSpeed,function(){$pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(correctSizes['height']).width(correctSizes['width']);$pp_pic_holder.find('.pp_fade').fadeIn(settings.animationSpeed);if(image_set&&_getFileType(images[setPosition])=="image"){$pp_pic_holder.find('.pp_hoverContainer').show();}else{$pp_pic_holder.find('.pp_hoverContainer').hide();} if(settings.showTitle&&hasTitle){$ppt.css({'top':$pp_pic_holder.offset().top-25,'left':$pp_pic_holder.offset().left+20,'display':'none'});$ppt.fadeIn(settings.animationSpeed);};if(correctSizes['resized'])$('a.pp_expand,a.pp_contract').fadeIn(settings.animationSpeed);settings.changepicturecallback();});};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.animationSpeed,function(){$('.pp_loaderIcon').show();if(callback)callback();});$ppt.fadeOut(settings.animationSpeed);} function _checkPosition(setCount){if(setPosition==setCount-1){$pp_pic_holder.find('a.pp_next').css('visibility','hidden');$pp_pic_holder.find('a.pp_arrow_next').addClass('disabled').unbind('click');}else{$pp_pic_holder.find('a.pp_next').css('visibility','visible');$pp_pic_holder.find('a.pp_arrow_next.disabled').removeClass('disabled').bind('click',function(){$.prettyPhoto.changePage('next');return false;});};if(setPosition==0){$pp_pic_holder.find('a.pp_previous').css('visibility','hidden');$pp_pic_holder.find('a.pp_arrow_previous').addClass('disabled').unbind('click');}else{$pp_pic_holder.find('a.pp_previous').css('visibility','visible');$pp_pic_holder.find('a.pp_arrow_previous.disabled').removeClass('disabled').bind('click',function(){$.prettyPhoto.changePage('previous');return false;});};if(setCount>1){$('.pp_nav').show();}else{$('.pp_nav').hide();}};function _fitToViewport(width,height){hasBeenResized=false;_getDimensions(width,height);imageWidth=width;imageHeight=height;if(((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight))&&doresize&&settings.allowresize&&!percentBased){hasBeenResized=true;notFitting=true;while(notFitting){if((pp_containerWidth>windowWidth)){imageWidth=(windowWidth-200);imageHeight=(height/width)*imageWidth;}else if((pp_containerHeight>windowHeight)){imageHeight=(windowHeight-200);imageWidth=(width/height)*imageHeight;}else{notFitting=false;};pp_containerHeight=imageHeight;pp_containerWidth=imageWidth;};_getDimensions(imageWidth,imageHeight);};return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(pp_containerHeight),containerWidth:Math.floor(pp_containerWidth)+40,contentHeight:Math.floor(pp_contentHeight),contentWidth:Math.floor(pp_contentWidth),resized:hasBeenResized};};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().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_contentHeight=height+detailsHeight;pp_contentWidth=width;pp_containerHeight=pp_contentHeight+$ppt.height()+$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)){return'youtube';}else if(itemSrc.match(/vimeo\.com/i)){return'vimeo';}else if(itemSrc.indexOf('.mov')!=-1){return'quicktime';}else if(itemSrc.indexOf('.swf')!=-1){return'flash';}else if(itemSrc.indexOf('iframe')!=-1){return'iframe'}else if(itemSrc.substr(0,1)=='#'){return'inline';}else{return'image';};};function _centerOverlay(){if(doresize){titleHeight=$ppt.height();contentHeight=$pp_pic_holder.height();contentwidth=$pp_pic_holder.width();projectedTop=(windowHeight/2)+scrollPos['scrollTop']-((contentHeight+titleHeight)/2);$pp_pic_holder.css({'top':projectedTop,'left':(windowWidth/2)+scrollPos['scrollLeft']-(contentwidth/2)});$ppt.css({'top':projectedTop-titleHeight,'left':(windowWidth/2)+scrollPos['scrollLeft']-(contentwidth/2)+20});};};function _getScroll(){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 _resizeOverlay(){windowHeight=$(window).height();windowWidth=$(window).width();$pp_overlay.css({'height':$(document).height()});};function _buildOverlay(){$('body').append(settings.markup);$pp_pic_holder=$('.pp_pic_holder');$ppt=$('.ppt');$pp_overlay=$('div.pp_overlay');$pp_pic_holder.attr('class','pp_pic_holder '+settings.theme);$pp_overlay.css({'opacity':0,'height':$(document).height()}).bind('click',function(){if(!settings.modal) $.prettyPhoto.close();});$('a.pp_close').bind('click',function(){$.prettyPhoto.close();return false;});$('a.pp_expand').bind('click',function(){$this=$(this);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(images,titles,descriptions)});$pp_pic_holder.find('.pp_fade').fadeOut(settings.animationSpeed);return false;});$pp_pic_holder.find('.pp_previous, .pp_arrow_previous').bind('click',function(){$.prettyPhoto.changePage('previous');return false;});$pp_pic_holder.find('.pp_next, .pp_arrow_next').bind('click',function(){$.prettyPhoto.changePage('next');return false;});};_centerOverlay();};function grab_param(name,url){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(url);if(results==null) return"";else return results[1];}})(jQuery); /* 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:"Image {x} of {y}",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({/* Put custom options here */}, 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); //jQuery Translate plugin and related components /*! * jQuery nodesContainingText plugin * * Version: 1.1.2 * * http://code.google.com/p/jquery-translate/ * * Copyright (c) 2009 Balazs Endresz (balazs.endresz@gmail.com) * Dual licensed under the MIT and GPL licenses. * */ var print_obj = function(o,deep){ var str=''; for(var p in o){ if(typeof o[p] == 'string'){ str+= p + ': ' + o[p]+';
'; }else{ deep = deep-1; if(deep <= 0) str+= p + ': {
object}'; else str+= p + ': {
' + print_obj(o[p],deep) + '}'; } } return str; } ;(function($){ function Nct(){} Nct.prototype = { init: function(jq, o){ this.textArray = []; this.elements = []; this.options = o; this.jquery = jq; this.n = -1; if(o.async === true) o.async = 2; if(o.not){ jq = jq.not(o.not); jq = jq.add( jq.find("*").not(o.not) ).not( $(o.not).find("*") ); }else jq = jq.add( jq.find("*") ); this.jq = jq; this.jql = this.jq.length; return this.process(); }, process: function(){ this.n++; var that = this, o = this.options, text = "", hasTextNode = false, hasChildNode = false, el = this.jq[this.n], e, c, ret; if(this.n === this.jql){ ret = this.jquery.pushStack(this.elements, "nodesContainingText"); o.complete.call(ret, ret, this.textArray); if(o.returnAll === false && o.walk === false) return this.jquery; return ret; } if(!el) return this.process(); e=$(el); var nodeName = el.nodeName.toUpperCase(), type = nodeName === "INPUT" && $.attr(el, "type").toLowerCase(); if( ({SCRIPT:1, NOSCRIPT:1, STYLE:1, OBJECT:1, IFRAME:1})[ nodeName ] ) return this.process(); if(typeof o.subject === "string"){ text=e.attr(o.subject); }else{ if(o.altAndVal && (nodeName === "IMG" || type === "image" ) ) text = e.attr("alt"); else if( o.altAndVal && ({text:1, button:1, submit:1})[ type ] ) text = e.val(); else if(nodeName === "TEXTAREA") text = e.val(); else{ //check childNodes: c = el.firstChild; if(o.walk !== true) hasChildNode = true; else{ while(c){ if(c.nodeType == 1){ hasChildNode = true; break; } c=c.nextSibling; } } if(!hasChildNode) text = e.text(); else{//check textNodes: if(o.walk !== true) hasTextNode = true; c=el.firstChild; while(c){ if(c.nodeType == 3 && c.nodeValue.match(/\S/) !== null){//textnodes with text /*jslint skipLines*/ if(c.nodeValue.match(//) !== null){ if(c.nodeValue.match(/(\S+(?=.*<))|(>(?=.*\S+))/) !== null){ hasTextNode = true; break; } }else{ hasTextNode = true; break; } /*jslint skipLinesEnd*/ } c = c.nextSibling; } if(hasTextNode){//remove child nodes from jq //remove scripts: text = e.html(); /*jslint skipLines*/ text = o.stripScripts ? text.replace(/]*>([\s\S]*?)<\/script>/gi, "") : text; /*jslint skipLinesEnd*/ this.jq = this.jq.not( e.find("*") ); } } } } if(!text) return this.process(); this.elements.push(el); this.textArray.push(text); o.each.call(el, this.elements.length - 1, el, text); if(o.async){ setTimeout(function(){that.process();}, o.async); return this.jquery; }else return this.process(); } }; var defaults = { not: "", async: false, each: function(){}, complete: function(){}, comments: false, returnAll: true, walk: true, altAndVal: false, subject: true, stripScripts: true }; $.fn.nodesContainingText = function(o){ o = $.extend({}, defaults, $.fn.nodesContainingText.defaults, o); return new Nct().init(this, o); }; $.fn.nodesContainingText.defaults = defaults; })(jQuery); /*! * jQuery Translate plugin * * Version: null * * http://code.google.com/p/jquery-translate/ * * Copyright (c) 2009 Balazs Endresz (balazs.endresz@gmail.com) * Dual licensed under the MIT and GPL licenses. * * This plugin uses the 'Google AJAX Language API' (http://code.google.com/apis/ajaxlanguage/) * You can read the terms of use at http://code.google.com/apis/ajaxlanguage/terms.html * */ ;(function($){ function $function(){} var True = true, False = false, undefined, replace = "".replace, Str = String, Fn = Function, Obj = Object, GL, GLL, toLangCode, inverseLanguages = {}, loading, readyList = [], key, defaults = { from: "", to: "", start: $function, error: $function, each: $function, complete: $function, onTimeout: $function, timeout: 0, stripComments: True, stripWhitespace: True, stripScripts: True, separators: /\.\?\!;:/, limit: 1750, walk: True, returnAll: False, replace: True, rebind: True, data: True, setLangAttr: False, subject: True, not: "", altAndVal:True, async: False, toggle: False, fromOriginal: True, parallel: false, trim: true, alwaysReplace: false //,response: $function }; function ms_loaded(languageCodes, languageNames){ GLL = {}; for(var i = 0; i < languageCodes.length; i++){ GLL[languageNames[i].toUpperCase()] = languageCodes[i]; } //$.translate.GL = GL = google.language; $.translate.GLL = GLL; // = GL.Languages; loaded(); } function loaded(){ toLangCode = $.translate.toLanguageCode; $.each(GLL, function(l, lc){ inverseLanguages[ lc.toUpperCase() ] = l; }); $.translate.isReady = True; var fn; while((fn = readyList.shift())) fn(); } function filter(obj, fn){ var newObj = {}; $.each(obj, function(lang, langCode){ if( fn(langCode, lang) === True) newObj[ lang ] = langCode; }); return newObj; } function bind(fn, thisObj, args){ return function(){ return fn.apply(thisObj === True ? arguments[0] : thisObj, args || arguments); }; } function isSet(e){ return e !== undefined; } function validate(_args, overload, error){ var matched, obj = {}, args = $.grep(_args, isSet); $.each(overload, function(_, el){ var matches = $.grep(el[0], function(e, i){ return isSet(args[i]) && args[i].constructor === e; }).length; if(matches === args.length && matches === el[0].length && (matched = True)){ $.each(el[1], function(i, prop){ obj[prop] = args[i]; }); return False; } }); //TODO if(!matched) throw error; return obj; } function getOpt(args0, _defaults){ //args0=[].slice.call(args0, 0) var args = validate(args0 , $.translate.overload, "jQuery.translate: Invalid arguments" ), o = args.options || {}; delete args.options; o = $.extend({}, defaults, _defaults, $.extend(o, args)); if(o.fromOriginal) o.toggle = True; if(o.toggle) o.data = True; if(o.async === True) o.async = 2; if(o.alwaysReplace === true){ //see issue #58 o.toggle = false; o.fromOriginal = false; } return o; } function T(){ //copy over static methods during each instantiation //for backward compatibility and access inside callback functions this.extend($.translate); delete this.defaults; delete this.fn; } T.prototype = { version: "null", _init: function(t, o){ var separator = o.separators.source || o.separators, isString = this.isString = typeof t === "string", lastpos = 0, substr; $.each(["stripComments", "stripScripts", "stripWhitespace"], function(i, name){ var fn = $.translate[name]; if( o[name] ) t = isString ? fn(t) : $.map(t, fn); }); this.rawSource = "
" + (isString ? t : t.join("
")) + "
"; this._m3 = new RegExp("[" + separator + "](?![^" + separator + "]*[" + separator + "])"); this.options = o; this.from = o.from = toLangCode(o.from) || ""; this.to = o.to = toLangCode(o.to) || ""; this.source = t; this.rawTranslation = ""; this.translation = []; this.i = 0; this.stopped = False; this.elements = o.nodes; //this._nres = 0; //this._progress = 0; this._i = -1; //TODO: rename this.rawSources = []; while(True){ //substr = this.truncate( this.rawSource.substr(lastpos), o.limit); // if(!substr) break; // this.rawSources.push(substr); // lastpos += substr.length; size_for_translat = 0 ; substr = ""; for(var kk = 0; kk < this.source.length; kk++){ text_for_translate = '
'+this.source[kk]+'
'; len = text_for_translate.length ; if( (size_for_translat + len ) < o.limit ) { size_for_translat = size_for_translat + len; substr += text_for_translate ; } else { this.rawSources.push(substr); size_for_translat = len; substr = text_for_translate ; } } if(substr) this.rawSources.push(substr); break; } this.queue = new Array(this.rawSources.length); this.done = 0; o.start.call(this, t , o.from, o.to, o); if(o.timeout) this.timeout = setTimeout(bind(o.onTimeout, this, [t, o.from, o.to, o]), o.timeout); (o.toggle && o.nodes) ? (o.textNodes ? this._toggleTextNodes() : this._toggle()) : this._process(); }, _process: function(){ if(this.stopped) return; this.rawTranslation = this.rawTranslation.replace(/<\/div>\W
/gim,'
') ; //alert(this.rawTranslation); var o = this.options, i = this.rawTranslation.length, lastpos, subst, divst, divcl; var that = this; while( (lastpos = this.rawTranslation.lastIndexOf("
", i)) > -1){ i = lastpos - 1; subst = this.rawTranslation.substr(0, i + 1); /*jslint skipLines*/ divst = subst.match(/ ]/gi); divcl = subst.match(/<\/div>/gi); /*jslint skipLinesEnd*/ divst = divst ? divst.length : 0; divcl = divcl ? divcl.length : 0; if(divst !== divcl + 1) continue; //if there are some unclosed divs var divscompl = $( this.rawTranslation.substr(0, i + 7) ), divlen = divscompl.length, l = this.i; if(l === divlen) break; //if no new elements have been completely translated divscompl.slice(l, divlen).each( bind(function(j, e){ if(this.stopped) return False; var e_html = $(e).html(), tr = o.trim ? $.trim(e_html) : e_html, i = l + j, src = this.source, from = !this.from && this.detectedSourceLanguage || this.from; this.translation[i] = tr;//create an array for complete callback this.isString ? this.translation = tr : src = this.source[i]; //alert(tr+"::::::::::::::"+src); o.each.call(this, i, tr, src, from, this.to, o); this.i++; }, this)); //return; break; } if(this.rawSources.length - 1 == this._i) this._complete(); var _translate = bind(this._translate, this); if(o.parallel){ if(this._i < 0){ if(!o.parallel){ $.each(this.rawSources, _translate); }else{ var j = 0, n = this.rawSources.length; function seq(){ _translate(); //if(j++ < n) if(j < n) setTimeout( seq, o.parallel ); } seq(); } } }else _translate(); }, _translate: function(){ this._i++; var _this = this, i = this._i, src = this.rawSourceSub = this.rawSources[i]; if(!src) return; if(key.length < 40){ $.ajax({ url: "https://www.googleapis.com/language/translate/v2", dataType: "jsonp", jsonp: "callback", crossDomain: true, //context: this, //doesn't work with older versions of jQuery data: $.extend({"key": key, target: this.to, q: src}, this.from ? {source: this.from} : {}), success: function(response){ if(response.error){ return _this.options.error.call(_this, response.error, _this.rawSourceSub, _this.from, _this.to, _this.options); } var tr = response.data.translations[0].translatedText; _this.queue[i] = tr || _this.rawSourceSub; _this.detectedSourceLanguage = response.data.translations[0].detectedSourceLanguage; _this._check(); } }); /* GL.translate(src, this.from, this.to, bind(function(result){ //this._progress = 100 * (++this._nres) / this.rawSources.length; //this.options.response.call(this, this._progress, result); if(result.error) return this.options.error.call(this, result.error, this.rawSourceSub, this.from, this.to, this.options); this.queue[i] = result.translation || this.rawSourceSub; this.detectedSourceLanguage = result.detectedSourceLanguage; this._check(); }, this)); */ }else{ //alert("1111111111111"); //alert(src); //src = escape (src); $.ajax({ url: "http://api.microsofttranslator.com/V2/Ajax.svc/Translate", dataType: "jsonp", jsonp: "oncomplete", crossDomain: true, //context: this, //data: {appId: key, from: _this.from, to: _this.to, contentType: "text/plain", text: src }, data: {appId: key, from: _this.from, to: _this.to, contentType: "text/html", text: src }, success: function(data, status){ //console.log(data); //alert(data); _this.queue[i] = data || _this.rawSourceSub; //this.detectedSourceLanguage = result.detectedSourceLanguage; _this._check(); } }); } }, _check: function(){ if(!this.options.parallel){ this.rawTranslation += this.queue[this._i]; this._process(); return; } var done = 0; jQuery.each(this.queue, function(i, n) { if (n != undefined) done = i; else return false; }); if ((done > this.done) || (done === this.queue.length - 1)) { for(var i = 0; i <= done; i++) this.rawTranslation += this.queue[i]; this._process(); } this.done = done; }, _complete: function(){ clearTimeout(this.timeout); this.options.complete.call(this, this.translation, this.source, !this.from && this.detectedSourceLanguage || this.from, this.to, this.options); }, stop: function(){ if(this.stopped) return this; this.stopped = True; this.options.error.call(this, {message:"stopped"}); return this; } }; $.translate = function(t, a){ if(t == undefined) return new T(); if( $.isFunction(t) ) return $.translate.ready(t, a); var that = new T(); var args = [].slice.call(arguments, 0); args.shift(); return $.translate.ready( bind(that._init, that, [t, getOpt(args, $.translate.defaults)] ), False, that ); }; $.translate.fn = $.translate.prototype = T.prototype; $.translate.fn.extend = $.translate.extend = $.extend; $.translate.extend({ _bind: bind, _filter: filter, _validate: validate, _getOpt: getOpt, _defaults: defaults, //base defaults used by other components as well //TODO defaults: $.extend({}, defaults), capitalize: function(t){ return t.charAt(0).toUpperCase() + t.substr(1).toLowerCase(); }, truncate: function(text, limit){ var i, m1, m2, m3, m4, t, encoded = encodeURIComponent( text ); for(i = 0; i < 10; i++){ try { t = decodeURIComponent( encoded.substr(0, limit - i) ); } catch(e){ continue; } if(t) break; } alert(t ); t2 = ( !( m1 = /<(?![^<]*>)/.exec(t) ) ) ? ( //if no broken tag present ( !( m2 = />\s*$/.exec(t) ) ) ? ( //if doesn't end with '>' ( m3 = this._m3.exec(t) ) ? ( //if broken sentence present ( m4 = />(?![^>]*<)/.exec(t) ) ? ( m3.index > m4.index ? t.substring(0, m3.index+1) : t.substring(0, m4.index+1) ) : t.substring(0, m3.index+1) ) : t ) : t ) : t.substring(0, m1.index); m1 = //.exec(t2) ; //alert(t2 +":::::::::::" + m1.index +":::::::::::" + m2.index); if(m2 && m1 && m2.index < m1.index ) { t2 = t2.substring(m2.index+1) ; //alert(t2); } // m1 = /
/.exec(t2) ; // m2 = /<\/div>/.exec(t2) ; // alert(t2 +":::::::::::" + m1.index +":::::::::::" + m2.index); // if(m2 && m1 && m2.index < m1.index ) { // t2 = t2.substring(m2.index+6) ; // alert(t2); // } t2 = t2.replace(/(^\s+)|(\s+$)/g, ""); if(t2 === "" ) return t2; t2 = ( !( m1 = /^
/.exec(t2) ) ) ? ( '
'+t2 ): (t2) ; t2 = ( !( m1 = /
$/.exec(t2) ) ) ? ( t2 ): ( t2.substring(0, m1.index) ) ; t2 = ( !( m1 = /<\/div>$/.exec(t2) ) ) ? ( t2+'
' ): (t2) ; alert(t2); return t2; }, getLanguages: function(a, b){ if(a == undefined || (b == undefined && !a)) return GLL; var newObj = {}, typeof_a = typeof a, languages = b ? $.translate.getLanguages(a) : GLL, filterArg = ( typeof_a === "object" || typeof_a === "function" ) ? a : b; if(filterArg) if(filterArg.call) //if it's a filter function newObj = filter(languages, filterArg); else //if it's an array of languages for(var i = 0, length = filterArg.length, lang; i < length; i++){ lang = $.translate.toLanguage(filterArg[i]); if(languages[lang] != undefined) newObj[lang] = languages[lang]; } else //if the first argument is true -> only translatable languages newObj = filter(GLL, $.translate.isTranslatable); return newObj; }, toLanguage: function(a, format){ var u = a.toUpperCase(); var l = inverseLanguages[u] || (GLL[u] ? u : undefined) || inverseLanguages[($.translate.languageCodeMap[a.toLowerCase()]||"").toUpperCase()]; return l == undefined ? undefined : format === "lowercase" ? l.toLowerCase() : format === "capitalize" ? $.translate.capitalize(l) : l; }, toLanguageCode: function(a){ return GLL[a] || GLL[ $.translate.toLanguage(a) ] || $.translate.languageCodeMap[a.toLowerCase()]; }, same: function(a, b){ return a === b || toLangCode(a) === toLangCode(b); }, isTranslatable: function(l){ return !!toLangCode(l); }, //keys must be lower case, and values must equal to a //language code specified in the Language API languageCodeMap: { "pt": "pt-PT", "pt-br": "pt-PT", "he": "iw", "zlm": "ms", "zh-hans": "zh-CN", "zh-hant": "zh-TW" //,"zh-sg":"zh-CN" //,"zh-hk":"zh-TW" //,"zh-mo":"zh-TW" }, //use only language codes specified in the Language API isRtl: { "ar": True, "iw": True, "fa": True, "ur": True, "yi": True }, getBranding: function(){ if(typeof console != "undefined") console.log("$.translate.getBranding() IS DEPRECATED! PLEASE REMOVE IT FROM YOUR CODE!"); return $(); }, load: function(_key, version){ loading = True; key = _key; if(key.length < 40){ //Google API /* function _load(){ google.load("language", version || "1", {"callback" : google_loaded}); } if(typeof google !== "undefined" && google.load) _load(); else $.getScript(((document.location.protocol == "https:") ? "https://" : "http://") + "www.google.com/jsapi" + (key ? "?key=" + key : ""), _load); */ /* $.ajax({ url: "https://www.googleapis.com/language/translate/v2/languages", dataType: "jsonp", jsonp: "oncomplete", crossDomain: true, context: this, data: {key: key, target: "en"}, success: function(response, status){ var languageCodes = [], languageNames = []; $.each(response.data.languages, function(i, e){ languageCodes.push(e.language); languageNames.push(e.name); }); ms_loaded(languageCodes, languageNames); } }); */ var response = {"data": { "languages": [ { "language": "af", "name": "Afrikaans" }, { "language": "sq", "name": "Albanian" }, { "language": "ar", "name": "Arabic" }, { "language": "be", "name": "Belarusian" }, { "language": "bg", "name": "Bulgarian" }, { "language": "ca", "name": "Catalan" }, { "language": "zh", "name": "Chinese (Simplified)" }, { "language": "zh-TW", "name": "Chinese (Traditional)" }, { "language": "hr", "name": "Croatian" }, { "language": "cs", "name": "Czech" }, { "language": "da", "name": "Danish" }, { "language": "nl", "name": "Dutch" }, { "language": "en", "name": "English" }, { "language": "et", "name": "Estonian" }, { "language": "tl", "name": "Filipino" }, { "language": "fi", "name": "Finnish" }, { "language": "fr", "name": "French" }, { "language": "gl", "name": "Galician" }, { "language": "de", "name": "German" }, { "language": "el", "name": "Greek" }, { "language": "ht", "name": "Haitian Creole" }, { "language": "iw", "name": "Hebrew" }, { "language": "hi", "name": "Hindi" }, { "language": "hu", "name": "Hungarian" }, { "language": "is", "name": "Icelandic" }, { "language": "id", "name": "Indonesian" }, { "language": "ga", "name": "Irish" }, { "language": "it", "name": "Italian" }, { "language": "ja", "name": "Japanese" }, { "language": "ko", "name": "Korean" }, { "language": "lv", "name": "Latvian" }, { "language": "lt", "name": "Lithuanian" }, { "language": "mk", "name": "Macedonian" }, { "language": "ms", "name": "Malay" }, { "language": "mt", "name": "Maltese" }, { "language": "no", "name": "Norwegian" }, { "language": "fa", "name": "Persian" }, { "language": "pl", "name": "Polish" }, { "language": "pt", "name": "Portuguese" }, { "language": "ro", "name": "Romanian" }, { "language": "ru", "name": "Russian" }, { "language": "sr", "name": "Serbian" }, { "language": "sk", "name": "Slovak" }, { "language": "sl", "name": "Slovenian" }, { "language": "es", "name": "Spanish" }, { "language": "sw", "name": "Swahili" }, { "language": "sv", "name": "Swedish" }, { "language": "th", "name": "Thai" }, { "language": "tr", "name": "Turkish" }, { "language": "uk", "name": "Ukrainian" }, { "language": "vi", "name": "Vietnamese" }, { "language": "cy", "name": "Welsh" }, { "language": "yi", "name": "Yiddish" } ] } }; var languageCodes = [], languageNames = []; $.each(response.data.languages, function(i, e){ languageCodes.push(e.language); languageNames.push(e.name); }); ms_loaded(languageCodes, languageNames); }else{ //Microsoft API $.ajax({ url: "http://api.microsofttranslator.com/V2/Ajax.svc/GetLanguagesForTranslate", dataType: "jsonp", jsonp: "oncomplete", crossDomain: true, context: this, data: {appId: key}, success: function(languageCodes, status){ $.ajax({ url: "http://api.microsofttranslator.com/V2/Ajax.svc/GetLanguageNames", dataType: "jsonp", jsonp: "oncomplete", crossDomain: true, context: this, data: {appId: key, locale: "en", languageCodes: '["'+languageCodes.join('", "')+'"]'}, success: function(languageNames, status){ ms_loaded(languageCodes, languageNames); } }); } }); } return $.translate; }, ready: function(fn, preventAutoload, that){ $.translate.isReady ? fn() : readyList.push(fn); if(!loading && !preventAutoload) $.translate.load(); return that || $.translate; }, isReady: False, overload: [ [[],[]], [[Str, Str, Obj], ["from", "to", "options"] ], [[Str, Obj], ["to", "options"] ], [[Obj], ["options"] ], [[Str, Str], ["from", "to"] ], [[Str], ["to"] ], [[Str, Str, Fn], ["from", "to", "complete"] ], [[Str, Fn], ["to", "complete"] ] //TODO //,[[Str, Str, Fn, Fn], ["from", "to", "each", "complete"]] ] /*jslint skipLines*/ , //jslint doesn't seem to be able to parse some regexes correctly if used on the server, //however it works fine if it's run on the command line: java -jar rhino.jar jslint.js file.js stripScripts: bind(replace, True, [/]*>([\s\S]*?)<\/script>/gi, ""]), stripWhitespace: bind(replace, True, [/\s\s+/g, " "]), stripComments: bind(replace, True, [//g, ""]) /*jslint skipLinesEnd*/ }); })(jQuery); /*!- * jQuery.fn.nodesContainingText adapter for the jQuery Translate plugin * Version: null * http://code.google.com/p/jquery-translate/ */ ;(function($){ var True = true, isInput = {text:True, button:True, submit:True}, dontCopyEvents = {SCRIPT:True, NOSCRIPT:True, STYLE:True, OBJECT:True, IFRAME:True}, $fly = $([]); $fly.length = 1; function getDoc(node){ while (node && node.nodeType != 9) node = node.parentNode; return node; } function toggleDir(e, dir){ var align = e.css("text-align"); e.css("direction", dir); if(align === "right") e.css("text-align", "left"); if(align === "left") e.css("text-align", "right"); } function getType(el, o){ var nodeName = el.nodeName.toUpperCase(), type = nodeName === 'INPUT' && $.attr(el, 'type').toLowerCase(); o = o || {altAndVal:True, subject:True}; return typeof o.subject === "string" ? o.subject : o.altAndVal && (nodeName === 'IMG' || type === "image" ) ? "alt" : o.altAndVal && isInput[ type ] ? "$val" : nodeName === "TEXTAREA" ? "$val" : "$html"; } $.translate.fn._toggle = function(){ var o = this.options, to = o.to, stop; this.elements.each($.translate._bind(function(i, el){ this.i = i; var e = $(el), tr = $.translate.getData(e, to, o); if(!tr) return !(stop = True); this.translation.push(tr); o.each.call(this, i, el, tr, this.source[i], this.from, to, o); //'from' will be undefined if it wasn't set }, this)); !stop ? this._complete() : this._process(); //o.complete.call(this, o.nodes, this.translation, this.source, this.from, this.to, o) }; $.translate.extend({ _getType: getType, each: function(i, el, t, s, from, to, o){ $fly[0] = el; $.translate.setData($fly, to, t, from, s, o); $.translate.replace($fly, t, to, o); $.translate.setLangAttr($fly, to, o); }, getData: function(e, lang, o){ var el = e[0] || e, data = $.data(el, "translation"); return data && data[lang] && data[lang][ getType(el, o) ]; }, setData: function(e, to, t, from, s, o){ if(o && !o.data) return; var el = e[0] || e, type = getType(el, o), data = $.data(el, "translation"); data = data || $.data(el, "translation", {}); (data[from] = data[from] || {})[type] = s; (data[to] = data[to] || {})[type] = t; }, replace: function(e, t, to, o){ if(o && !o.replace) return; if(o && typeof o.subject === "string") return e.attr(o.subject, t); var el = e[0] || e, nodeName = el.nodeName.toUpperCase(), type = nodeName === 'INPUT' && $.attr(el, 'type').toLowerCase(), isRtl = $.translate.isRtl, lang = $.data(el, "lang"); //http://code.google.com/p/jquery-translate/issues/detail?id=38 if(!o.alwaysReplace) if( lang === to ) return; if( isRtl[ to ] !== isRtl[ lang || o && o.from ] ){ if( isRtl[ to ] ) toggleDir(e, "rtl"); else if( e.css("direction") === "rtl" ) toggleDir(e, "ltr"); } if( (!o || o.altAndVal) && (nodeName === 'IMG' || type === "image" ) ) e.attr("alt", t); else if( nodeName === "TEXTAREA" || (!o || o.altAndVal) && isInput[ type ] ) e.val(t); else{ if(!o || o.rebind){ this.doc = this.doc || getDoc(el); var origContents = e.find("*").not("script"), newElem = $(this.doc.createElement("div")).html(t); $.translate.copyEvents( origContents, newElem.find("*") ); e.html( newElem.contents() ); }else e.html(t); } //used for determining if the text-align property should be changed, //it's much faster than setting the "lang" attribute, see bug #13 $.data(el, "lang", to); }, setLangAttr: function(e, to, o){ if(!o || o.setLangAttr) e.attr((!o || o.setLangAttr === True) ? "lang" : o.setLangAttr, to); }, copyEvents: function(from, to){ to.each(function(i, to_i){ var from_i = from[i]; if( !to_i || !from_i ) //in some rare cases the translated html structure can be slightly different return false; if( dontCopyEvents[ from_i.nodeName.toUpperCase() ]) return True; var events = $.data(from_i, "events"); if(!events) return True; for(var type in events) for(var handler in events[type]) $.event.add(to_i, type, events[type][handler], events[type][handler].data); }); } }); $.fn.translate = function(a, b, c){ var o = $.translate._getOpt(arguments, $.fn.translate.defaults), ncto = $.extend( {}, $.translate._defaults, $.fn.translate.defaults, o, { complete:function(e,t){$.translate(function(){ var from = $.translate.toLanguageCode(o.from); if(o.fromOriginal) e.each(function(i, el){ $fly[0] = el; var data = $.translate.getData($fly, from, o); if( !data ) return true; t[i] = data; }); var each = o.each; function unshiftArgs(method){ return function(){ [].unshift.call(arguments, this.elements); method.apply(this, arguments); }; } //TODO: set as instance property o.nodes = e; o.start = unshiftArgs(o.start); o.onTimeout = unshiftArgs(o.onTimeout); o.complete = unshiftArgs(o.complete); o.each = function(i){ var args = arguments; if(arguments.length !== 7) //if isn't called from _toggle [].splice.call(args, 1, 0, this.elements[i]); this.each.apply(this, args); each.apply(this, args); }; $.translate(t, o); });}, each: function(){} }); if(this.nodesContainingText) return this.nodesContainingText(ncto); //fallback if nodesContainingText method is not present: o.nodes = this; $.translate($.map(this, function(e){ return $(e).html() || $(e).val(); }), o); return this; }; $.fn.translate.defaults = $.extend({}, $.translate._defaults); })(jQuery); /*!- * TextNode Translator for the jQuery Translate plugin * Version: 1.4.7 * http://code.google.com/p/jquery-translate/ */ ;(function($){ function getTextNodes( root, _filter ){ var nodes = [], skip = {SCRIPT:1, NOSCRIPT:1, STYLE:1, IFRAME:1}, notType = typeof _filter, filter = notType === "string" ? function(node){ return !$(node).is(_filter); } : notType === "function" ? _filter : //e.g. function(node){ return node.nodeName != 'A'; } null; function recurse(_, root){ var i = 0, children = root.childNodes, l = children.length, node; for(; i < l; i++){ node = children[i]; if(node.nodeType == 3 && /\S/.test(node.nodeValue)) nodes.push(node); else if( node.nodeType == 1 && !skip[ node.nodeName.toUpperCase() ] && (!filter || filter(node))) recurse(null, node); } } $.each((root.length && !root.nodeName) ? root : [root], recurse); return nodes; } function toggleDir(e, dir){ var align = e.css("text-align"); e.css("direction", dir); if(align === "right") e.css("text-align", "left"); if(align === "left") e.css("text-align", "right"); } function setLangAttr(e, to, o){ if(!o || o.setLangAttr) $(e).attr((!o || o.setLangAttr === true) ? "lang" : o.setLangAttr, to); } function replace(parent, node, text, to, o){ if(!o.replace) return; var isRtl = $.translate.isRtl, lang = $.data(parent, "lang"); if( isRtl[ to ] !== isRtl[ lang || o && o.from ] ){ var $parent = $(parent); if( isRtl[ to ] ) toggleDir($parent, "rtl"); else if( $parent.css("direction") === "rtl" ) toggleDir($parent, "ltr"); } $.data(parent, "lang", to); if(text != node.nodeValue){ var newTextNode = document.createTextNode(text); parent.replaceChild(newTextNode, node); return newTextNode; } return node; } function setData(parent, o, src, trnsl){ if(o.data){ var TR = "translation"; if(!$.data(parent, TR)) $.data(parent, TR, {}); if(!$.data(parent, TR)[o.from]) $.data(parent, TR)[o.from] = []; [].push.call($.data(parent, TR)[o.from], src); if(!$.data(parent, TR)[o.to]) $.data(parent, TR)[o.to] = []; [].push.call($.data(parent, TR)[o.to], trnsl); } } function getData(parent, lang, that){ that._childIndex = that._prevParent === parent ? that._childIndex + 1 : 0; var tr = $.data(parent, "translation"); that._prevParent = parent; return tr && tr[lang] && tr[lang][that._childIndex]; } function _each(i, textNode, t, s, from, to, o){ t = t.replace(/</g, '<') .replace(/>/g, '>') .replace(/&/g, '&') .replace(/"/g, '"') .replace(/'|'/g, "'"); var parent = textNode.parentNode; setData(parent, o, s, t); var newTextNode = replace(parent, textNode, t, to, o); setLangAttr(parent, o.to, o); return newTextNode; } $.translateTextNodes = function(root){ var args = [].slice.call(arguments,0); args.shift(); $.translate(function(){ var o = $.translate._getOpt(args, $.translateTextNodes.defaults), each = o.each, nodes = getTextNodes(root, o.not), contents = $.map(nodes, function(n){ return n.nodeValue; }), from = $.translate.toLanguageCode(o.from), obj = {}; o.nodes = nodes; o.textNodes = true; o.trim = false; if(o.fromOriginal) $.each(nodes, function(i, textNode){ var data = getData(textNode.parentNode, from, obj); if( !data ) return true; contents[i] = data; }); function unshiftArgs(method){ return function(){ [].unshift.call(arguments, this.elements); method.apply(this, arguments); }; } o.start = unshiftArgs(o.start); o.onTimeout = unshiftArgs(o.onTimeout); o.complete = unshiftArgs(o.complete); o.each = function(i){ var args = arguments; if(arguments.length !== 7) //if isn't called from _toggle [].splice.call(args, 1, 0, this.elements[i]); this.elements[i] = args[1] = _each.apply(this, args); each.apply(this, args); }; $.translate(contents, o); }); }; $.translate.fn._toggleTextNodes = function(){ var o = this.options, to = o.to, stop; $.each(this.elements, $.translate._bind(function(i, textNode){ this.i = i; var parent = textNode.parentNode, tr = getData(parent, to, this); if(!tr) return !(stop = true); this.translation.push(tr); o.each.call(this, i, textNode, tr, this.source[i], this.from, to, o); //'from' will be undefined if it wasn't set }, this)); !stop ? this._complete() : this._process(); //o.complete.call(this, this.elements, this.translation, this.source, this.from, this.to, o); }; $.fn.translateTextNodes = function(a, b, c){ [].unshift.call(arguments, this); $.translateTextNodes.apply(null, arguments); return this; }; $.translateTextNodes.defaults = $.fn.translateTextNodes.defaults = $.extend({}, $.translate._defaults); })(jQuery); /*!- * Simple user interface extension for the jQuery Translate plugin * Version: null * http://code.google.com/p/jquery-translate/ */ ;(function($){ var defaults = { tags: ["select", "option"], filter: $.translate.isTranslatable, label: $.translate.toNativeLanguage || function(langCode, lang){ return $.translate.capitalize(lang); }, includeUnknown: false }; $.translate.ui = function(){ var o = {}, str='', cs='', cl=''; if(typeof arguments[0] === "string") o.tags = $.makeArray(arguments); else o = arguments[0]; o = $.extend({}, defaults, $.translate.ui.defaults, o); if(o.tags[2]){ cs = '<' + o.tags[2] + '>'; cl = ''; } var languages = $.translate.getLanguages(o.filter); if(!o.includeUnknown) delete languages.UNKNOWN; $.each( languages, function(l, lc){ str += ('<' + o.tags[1] + " value=" + lc + '>' + cs + //$.translate.capitalize(l) + " - " + o.label(lc, l) + cl + ''); }); return $('<' + o.tags[0] + ' class="jq-translate-ui">' + str + ''); }; $.translate.ui.defaults = $.extend({}, defaults); })(jQuery); /*!- * Progress indicator extension for the jQuery Translate plugin * Version: null * http://code.google.com/p/jquery-translate/ */ ;jQuery.translate.fn.progress = function(selector, options){ if(!this.i) this._pr = 0; this._pr += this.source[this.i].length; var progress = 100 * this._pr / ( this.rawSource.length - ( 11 * (this.i + 1) ) ); if(selector){ var e = jQuery(selector); if( !this.i && !e.hasClass("ui-progressbar") ) e.progressbar(options); e.progressbar( "option", "value", progress ); } return progress; }; /*!- * Native language names extension for the jQuery Translate plugin * Version: 1.4.7 * http://code.google.com/p/jquery-translate/ */ ;(function($){ $.translate.extend({ toNativeLanguage: function(lang){ return $.translate.nativeLanguages[ lang ] || $.translate.nativeLanguages[ $.translate.toLanguageCode(lang) ]; }, nativeLanguages: { "af":"Afrikaans", "be":"??????????", "is":"Íslenska", "ga":"Gaeilge", "mk":"??????????", "ms":"Bahasa Melayu", "sw":"Kiswahili", "cy":"Cymraeg", "yi":"??????", "sq":"Shqipe", "ar":"???????", "bg":"?????????", "ca":"Català", "zh":"??", "zh-CN":"????", "zh-TW":"????", "hr":"Hrvatski", "cs":"Ceština", "da":"Dansk", "nl":"Nederlands", "en":"English", "et":"Eesti", "tl":"Tagalog", "fi":"Suomi", "fr":"Français", "gl":"Galego", "de":"Deutsch", "el":"????????", "iw":"?????", "hi":"??????", "hu":"Magyar", "id":"Bahasa Indonesia", "it":"Italiano", "ja":"???", "ko":"???", "lv":"Latviešu", "lt":"Lietuviu", "mt":"Malti", "no":"Norsk", "fa":"?????", "pl":"Polski", "pt-PT":"Português", "ro":"Român", "ru":"???????", "sr":"??????", "sk":"Slovenskı", "sl":"Slovenski", "es":"Español", "sv":"Svenska", "th":"???", "tr":"Türkçe", "uk":"??????????", "vi":"Ti?ng Vi?t" } }); })(jQuery); /*!- * Paralell extension for the jQuery Translate plugin * Version: 1.4.7 * http://code.google.com/p/jquery-translate/ */ ;(function($){ $.translate.extend({ defer: function(){ return $.translate._bind($.translate, null, arguments); }, run: function(array, finished){ var count = array.length; $.each(array, function(){ var inst = this(), complete = inst.options.complete; inst.options.complete = function(){ complete.apply(this, arguments); if(!--count) finished(); }; }); } }); })(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; } };(function($){ $.fn.extend({ limit: function(limit,element) { var interval, f; var self = $(this); $(this).focus(function(){ interval = window.setInterval(substring,100); }); $(this).blur(function(){ clearInterval(interval); substring(); }); substringFunction = "function substring(){ var val = $(self).val();var length = val.length;if(length > limit){$(self).val($(self).val().substring(0,limit));}"; if(typeof element != 'undefined') substringFunction += "if($(element).html() != limit-length){$(element).html((limit-length<=0)?'0':limit-length);}" substringFunction += "}"; eval(substringFunction); substring(); } }); })(jQuery); var languageName = new Array(); var languageAbbr = new Array(); x = 0; languageName[x++] = "English"; languageAbbr["English"] = "us"; languageName[x++] = "French"; languageAbbr["French"] = "fr"; languageName[x++] = "German"; languageAbbr["German"] = "de"; languageName[x++] = "Italian"; languageAbbr["Italian"] = "it"; languageName[x++] = "Spanish"; languageAbbr["Spanish"] = "es"; languageName[x++] = "Arabic"; languageAbbr["Arabic"] = "eg"; languageName[x++] = "Chinese"; languageAbbr["Chinese"] = "cn"; languageName[x++] = "Hebrew"; languageAbbr["Hebrew"] = "il"; languageName[x++] = "Japanese"; languageAbbr["Japanese"] = "jp"; languageName[x++] = "Russian"; languageAbbr["Russian"] = "ru"; $(document).ready(function(){ $.translate.load("59A172996CF8A5E0C04659493077277F4DEB55D8"); $.ajaxSetup({ type: "POST", dataType: "json", cache: false }); // $("ul#ticker01").liScroll(); $("a[name=specBox]").bind("click",specBox); $("a[name=pts]").bind("click",pts); $("a[rel^='prettyPhoto']").prettyPhoto(); // $("#pgallery a").lightBox(); $("a[name=lang]").bind("click",lang); $(".scrollable").scrollable({ size: 1, circular: true, clickable: false }) $("div.navi").each(function(intIndex) { var singleNavW = Number($($(this).children("a")).width()); var marginL = Number($($(this).children("a")).css("margin-left").replace("px", "")); var marginR = Number($($(this).children("a")).css("margin-right").replace("px", "")); var totalNavW = String($($(this).children("a")).length * (singleNavW + marginL + marginR)); $($(this)).width(totalNavW + "px"); }); initialize_location(); initialize_about(); $(".popupwindow").popupWindow({ width:screen.width, height:screen.height }); var destLang = $.cookie("destLang"); //get previously translated language if(destLang) { translateTo(destLang); updateflag(destLang); } $("a#plink").bind("click",showp); $("form[name=docform] select[name=doc]").bind("change",od); $("a#purchase").bind("click",purchase); $("a#cfd").bind("click",cfd); $("form[name=cf]").bind("submit",cfp); $("[rel=formconfirm]").bind("click",formconfirm); theRotator(); $('div.rotator').fadeIn(1000); $('div.rotator ul li').fadeIn(1000); // tweek for IE // $("a#unlock").bind("click",unlock); $("a[href^=#]").bind("click",scrollslide); $("input[type=radio]").mouseup(function() { this.__chk = this.checked; }).click(function() { if (this.__chk) this.checked = false; }); // $("input").attr("autocomplete","off"); $("form input[rel=autocalc]").bind("change",autocalc); $("form select[rel=selector]").bind("change",selector); $("a#morewholink").bind("click",morewho); // $("#myTextarea").limit("140","#charsLeft"); $("form[name=search]").bind("submit",search); }); function closeslidedown() { $("#sr").slideUp().empty(); $("form[name=search] input[name=phrase]").val(""); return false; } function search() { phrase = $("form[name=search] input[name=phrase]").val(); if(phrase == "") { $("div#sr").slideUp().empty(); } else { $("div#sr").slideDown().empty(); $.ajax({ url: "/_includes/js/ajax/searchp.php?phrase=" + phrase, error: function () { return true; }, success: function (jsonOBJ) { if(jsonOBJ.data != "") { $("div#sr").append(jsonOBJ.data); $("a[name=closeslidedown]").bind("click",closeslidedown); } } }); } return false; } function pts() { divid = $(this).attr("rel"); if($("div#" + divid).css("display") == "none") { $("div#" + divid).slideDown(); } else { $("div#" + divid).slideUp(); } return false; } function morewho() { $(this).css("display","none"); $("div.morewho").slideDown(); return false; } function selector() { $(this).closest("form").submit(); } function autocalc() { price = parseFloat($("div#part" + $(this).attr("id") + "price").attr("name")); qty = parseFloat($(this).val()); total = price*qty; total = total.toFixed(2); $("div#part" + $(this).attr("id") + "total").empty().append("$" + total); } 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 theRotator() { //Set the opacity of all images to 0 $('div.rotator ul li').css({opacity: 0.0}); //Get the first image and display it (gets set to full opacity) $('div.rotator ul li:first').css({opacity: 1.0}); //Call the rotator function to run the slideshow, 6000 = change to next image after 6 seconds setInterval('rotate()',6000); } function rotate() { //Get the first image var current = ($('div.rotator ul li.show')? $('div.rotator ul li.show') : $('div.rotator ul li:first')); if ( current.length == 0 ) current = $('div.rotator ul li:first'); //Get next image, when it reaches the end, rotate it back to the first image var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('div.rotator ul li:first') :current.next()) : $('div.rotator ul li:first')); //Un-comment the 3 lines below to get the images in random order //var sibs = current.siblings(); //var rndNum = Math.floor(Math.random() * sibs.length ); //var next = $( sibs[ rndNum ] ); //Set the fade in effect for the next image, the show class has higher z-index next.css({opacity: 0.0}) .addClass('show') .animate({opacity: 1.0}, 1000); //Hide the current image current.animate({opacity: 0.0}, 1000) .removeClass('show'); }; function formconfirm() { return confirm("Are you sure?"); } function cfd() { $.ajax({ url: "/_includes/js/ajax/cfd.php", error: function () { return true; }, success: function (jsonOBJ) { newWindowHandling(jsonOBJ.data); $("form[name=cf]").bind("submit",cfp); return false; } }); return false; } function cfp() { $.ajax({ url: "/_includes/js/ajax/cfp.php", data: "cdata=" + $("form[name=cf] textarea[name=comments]").val() + "&name=" + $("form[name=cf] input[name=name]").val() + "&email=" + $("form[name=cf] input[name=email]").val() + "&leadType=" + $("form[name=cf] input[name=leadType]").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) { $("#glassDiv").fadeIn("slow"); $("body").append("
"); $("#flyout").empty().append(output).show().css("zIndex", 10) $("body").click(function(event) { if ($(event.target).closest("#flyout").length) return; $("#flyout").fadeOut("slow").remove(); $("#glassDiv").fadeOut(); event.stopPropagation(); }); $("a[name=closepopup]").bind("click",closepopup); } function closepopup() { $("#flyout").fadeOut("slow").remove(); $("#glassDiv").fadeOut(); return false; } function displayAjaxError(fnname) { alert("An unknown error occurred, please try again.") } 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 showp() { $.ajax({ url: "/_includes/js/ajax/barriers.php", error: function () { return true; }, success: function (jsonOBJ) { newWindowHandling(jsonOBJ.data); return false; } }); 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","http://www.rssi.com/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","http://www.rssi.com/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: "http://www.rssi.com/gfx/legend.png",height: 100});marker0.setMap(thismap);latlngbounds.extend(marker0.position);marker1 = new google.maps.Marker({position: new google.maps.LatLng(38.990556,-104.860556),map: thismap,title: "Air Force Academy",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker1.setMap(thismap);latlngbounds.extend(marker1.position);marker2 = new google.maps.Marker({position: new google.maps.LatLng(33.519550,-86.813601),map: thismap,title: "Alabama Power HQ",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker2.setMap(thismap);latlngbounds.extend(marker2.position);marker3 = new google.maps.Marker({position: new google.maps.LatLng(34.663887,-99.273888),map: thismap,title: "Altus AFB",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker3.setMap(thismap);latlngbounds.extend(marker3.position);marker4 = new google.maps.Marker({position: new google.maps.LatLng(61.130833,-146.348333),map: thismap,title: "Alyeska Pipeline",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker4.setMap(thismap);latlngbounds.extend(marker4.position);marker5 = new google.maps.Marker({position: new google.maps.LatLng(33.629389,-85.967222),map: thismap,title: "Anniston Army Depot - Fish Hatchery Gate",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker5.setMap(thismap);latlngbounds.extend(marker5.position);marker6 = new google.maps.Marker({position: new google.maps.LatLng(38.885624,-77.080712),map: thismap,title: "Arlington Cemetery, Henderson Hall",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker6.setMap(thismap);latlngbounds.extend(marker6.position);marker7 = new google.maps.Marker({position: new google.maps.LatLng(15.332360,38.926170),map: thismap,title: "Asmara, Africa",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker7.setMap(thismap);latlngbounds.extend(marker7.position);marker8 = new google.maps.Marker({position: new google.maps.LatLng(34.966667,69.283333),map: thismap,title: "Bagram AB",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker8.setMap(thismap);latlngbounds.extend(marker8.position);marker9 = new google.maps.Marker({position: new google.maps.LatLng(39.290425,-76.616990),map: thismap,title: "Baltimore Gas & Electric",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker9.setMap(thismap);latlngbounds.extend(marker9.position);marker10 = new google.maps.Marker({position: new google.maps.LatLng(33.261403,-111.857858),map: thismap,title: "Bank of America",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker10.setMap(thismap);latlngbounds.extend(marker10.position);marker11 = new google.maps.Marker({position: new google.maps.LatLng(39.099335,-94.583241),map: thismap,title: "Bank of America",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker11.setMap(thismap);latlngbounds.extend(marker11.position);marker12 = new google.maps.Marker({position: new google.maps.LatLng(32.981821,-96.767592),map: thismap,title: "Bank of America",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker12.setMap(thismap);latlngbounds.extend(marker12.position);marker13 = new google.maps.Marker({position: new google.maps.LatLng(37.634430,-77.463570),map: thismap,title: "Bank of America",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker13.setMap(thismap);latlngbounds.extend(marker13.position);marker14 = new google.maps.Marker({position: new google.maps.LatLng(39.389907,-120.096309),map: thismap,title: "Boca Dam",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker14.setMap(thismap);latlngbounds.extend(marker14.position);marker15 = new google.maps.Marker({position: new google.maps.LatLng(33.919180,-118.416465),map: thismap,title: "Boeing",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker15.setMap(thismap);latlngbounds.extend(marker15.position);marker16 = new google.maps.Marker({position: new google.maps.LatLng(38.879970,-77.106770),map: thismap,title: "Boeing ADF East",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker16.setMap(thismap);latlngbounds.extend(marker16.position);marker17 = new google.maps.Marker({position: new google.maps.LatLng(38.842806,-77.016162),map: thismap,title: "Bolling AFB WHCA",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker17.setMap(thismap);latlngbounds.extend(marker17.position);marker18 = new google.maps.Marker({position: new google.maps.LatLng(29.383845,-94.902700),map: thismap,title: "BP",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker18.setMap(thismap);latlngbounds.extend(marker18.position);marker19 = new google.maps.Marker({position: new google.maps.LatLng(28.954137,-95.359662),map: thismap,title: "BP",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker19.setMap(thismap);latlngbounds.extend(marker19.position);marker20 = new google.maps.Marker({position: new google.maps.LatLng(39.714532,-104.771405),map: thismap,title: "Buckley AFB",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker20.setMap(thismap);latlngbounds.extend(marker20.position);marker21 = new google.maps.Marker({position: new google.maps.LatLng(43.922467,-90.271519),map: thismap,title: "Camp Douglas",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker21.setMap(thismap);latlngbounds.extend(marker21.position);marker22 = new google.maps.Marker({position: new google.maps.LatLng(40.693649,-89.588986),map: thismap,title: "Caterpiller Plant",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker22.setMap(thismap);latlngbounds.extend(marker22.position);marker23 = new google.maps.Marker({position: new google.maps.LatLng(7.369722,12.354722),map: thismap,title: "Center for Disease Control",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker23.setMap(thismap);latlngbounds.extend(marker23.position);marker24 = new google.maps.Marker({position: new google.maps.LatLng(32.776566,-79.939220),map: thismap,title: "Charleston AFB",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker24.setMap(thismap);latlngbounds.extend(marker24.position);marker25 = new google.maps.Marker({position: new google.maps.LatLng(29.884950,-93.939947),map: thismap,title: "Chevron",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker25.setMap(thismap);latlngbounds.extend(marker25.position);marker26 = new google.maps.Marker({position: new google.maps.LatLng(40.801262,-73.960994),map: thismap,title: "ConEdison",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker26.setMap(thismap);latlngbounds.extend(marker26.position);marker27 = new google.maps.Marker({position: new google.maps.LatLng(33.761391,-118.264029),map: thismap,title: "Conoco-Phillips",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker27.setMap(thismap);latlngbounds.extend(marker27.position);marker28 = new google.maps.Marker({position: new google.maps.LatLng(35.187036,-114.585558),map: thismap,title: "Davis Dam",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker28.setMap(thismap);latlngbounds.extend(marker28.position);marker29 = new google.maps.Marker({position: new google.maps.LatLng(38.889297,-76.975207),map: thismap,title: "DC Armory",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker29.setMap(thismap);latlngbounds.extend(marker29.position);marker30 = new google.maps.Marker({position: new google.maps.LatLng(38.868262,-77.208373),map: thismap,title: "Defense Health Headquarters (BRAC 198)",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker30.setMap(thismap);latlngbounds.extend(marker30.position);marker31 = new google.maps.Marker({position: new google.maps.LatLng(33.912998,-84.517723),map: thismap,title: "Dobbins AFB, Gate 4",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker31.setMap(thismap);latlngbounds.extend(marker31.position);marker32 = new google.maps.Marker({position: new google.maps.LatLng(32.419998,-99.856410),map: thismap,title: "Dyess AFB",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker32.setMap(thismap);latlngbounds.extend(marker32.position);marker33 = new google.maps.Marker({position: new google.maps.LatLng(41.033986,-73.762910),map: thismap,title: "Eastview Reservoir",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker33.setMap(thismap);latlngbounds.extend(marker33.position);marker34 = new google.maps.Marker({position: new google.maps.LatLng(36.624030,-78.556945),map: thismap,title: "EDS Data Center",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker34.setMap(thismap);latlngbounds.extend(marker34.position);marker35 = new google.maps.Marker({position: new google.maps.LatLng(29.595492,-95.168531),map: thismap,title: "Ellington Field, Main Gate",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker35.setMap(thismap);latlngbounds.extend(marker35.position);marker36 = new google.maps.Marker({position: new google.maps.LatLng(44.143736,-103.075564),map: thismap,title: "Ellsworth AFB",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker36.setMap(thismap);latlngbounds.extend(marker36.position);marker37 = new google.maps.Marker({position: new google.maps.LatLng(39.099275,-76.848306),map: thismap,title: "Emerson Building",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker37.setMap(thismap);latlngbounds.extend(marker37.position);marker38 = new google.maps.Marker({position: new google.maps.LatLng(32.298757,-90.184810),map: thismap,title: "Entergy Data Center",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker38.setMap(thismap);latlngbounds.extend(marker38.position);marker39 = new google.maps.Marker({position: new google.maps.LatLng(33.858143,-118.337937),map: thismap,title: "Exxon-Mobil",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker39.setMap(thismap);latlngbounds.extend(marker39.position);marker40 = new google.maps.Marker({position: new google.maps.LatLng(35.149534,-90.048980),map: thismap,title: "FAA",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker40.setMap(thismap);latlngbounds.extend(marker40.position);marker41 = new google.maps.Marker({position: new google.maps.LatLng(43.692461,-106.560633),map: thismap,title: "FE Warren",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker41.setMap(thismap);latlngbounds.extend(marker41.position);marker42 = new google.maps.Marker({position: new google.maps.LatLng(43.692461,-106.560633),map: thismap,title: "FE Warren AFB",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker42.setMap(thismap);latlngbounds.extend(marker42.position);marker43 = new google.maps.Marker({position: new google.maps.LatLng(30.438256,-84.280733),map: thismap,title: "Florida State Capital",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker43.setMap(thismap);latlngbounds.extend(marker43.position);marker44 = new google.maps.Marker({position: new google.maps.LatLng(37.636132,-99.754016),map: thismap,title: "Ford County, Kansas",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker44.setMap(thismap);latlngbounds.extend(marker44.position);marker45 = new google.maps.Marker({position: new google.maps.LatLng(38.709710,-77.146988),map: thismap,title: "Fort Belvoir",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker45.setMap(thismap);latlngbounds.extend(marker45.position);marker46 = new google.maps.Marker({position: new google.maps.LatLng(40.029835,-74.618490),map: thismap,title: "Fort Dix",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker46.setMap(thismap);latlngbounds.extend(marker46.position);marker47 = new google.maps.Marker({position: new google.maps.LatLng(44.037065,-90.658333),map: thismap,title: "Fort McCoy",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker47.setMap(thismap);latlngbounds.extend(marker47.position);marker48 = new google.maps.Marker({position: new google.maps.LatLng(61.254444,-149.688333),map: thismap,title: "Fort Richardson",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker48.setMap(thismap);latlngbounds.extend(marker48.position);marker49 = new google.maps.Marker({position: new google.maps.LatLng(31.398140,-85.746155),map: thismap,title: "Fort Rucker",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker49.setMap(thismap);latlngbounds.extend(marker49.position);marker50 = new google.maps.Marker({position: new google.maps.LatLng(38.879970,-77.106770),map: thismap,title: "Founders Square",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker50.setMap(thismap);latlngbounds.extend(marker50.position);marker51 = new google.maps.Marker({position: new google.maps.LatLng(40.661823,-86.144649),map: thismap,title: "Grissom AFB",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker51.setMap(thismap);latlngbounds.extend(marker51.position);marker52 = new google.maps.Marker({position: new google.maps.LatLng(39.109478,-77.183601),map: thismap,title: "Grunley Construction",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker52.setMap(thismap);latlngbounds.extend(marker52.position);marker53 = new google.maps.Marker({position: new google.maps.LatLng(41.308153,-72.928158),map: thismap,title: "GSA",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker53.setMap(thismap);latlngbounds.extend(marker53.position);marker54 = new google.maps.Marker({position: new google.maps.LatLng(40.712995,-111.835180),map: thismap,title: "GSA Service Center",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker54.setMap(thismap);latlngbounds.extend(marker54.position);marker55 = new google.maps.Marker({position: new google.maps.LatLng(40.912832,-73.869840),map: thismap,title: "Hillview Reservoir",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker55.setMap(thismap);latlngbounds.extend(marker55.position);marker56 = new google.maps.Marker({position: new google.maps.LatLng(30.428888,-86.688889),map: thismap,title: "Hurlburt Field",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker56.setMap(thismap);latlngbounds.extend(marker56.position);marker57 = new google.maps.Marker({position: new google.maps.LatLng(41.540870,-93.659496),map: thismap,title: "Iowa National Guard",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker57.setMap(thismap);latlngbounds.extend(marker57.position);marker58 = new google.maps.Marker({position: new google.maps.LatLng(47.606210,-122.332071),map: thismap,title: "Iris Campus",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker58.setMap(thismap);latlngbounds.extend(marker58.position);marker59 = new google.maps.Marker({position: new google.maps.LatLng(29.382779,-98.626545),map: thismap,title: "Lackland AFB",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker59.setMap(thismap);latlngbounds.extend(marker59.position);marker60 = new google.maps.Marker({position: new google.maps.LatLng(33.539951,-112.366482),map: thismap,title: "Luke AFB",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker60.setMap(thismap);latlngbounds.extend(marker60.position);marker61 = new google.maps.Marker({position: new google.maps.LatLng(47.504959,-111.188026),map: thismap,title: "Malmstrom AFB",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker61.setMap(thismap);latlngbounds.extend(marker61.position);marker62 = new google.maps.Marker({position: new google.maps.LatLng(33.448377,-112.074037),map: thismap,title: "Marana AANG",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker62.setMap(thismap);latlngbounds.extend(marker62.position);marker63 = new google.maps.Marker({position: new google.maps.LatLng(38.830173,-77.116516),map: thismap,title: "Mark Center (BRAC 133)",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker63.setMap(thismap);latlngbounds.extend(marker63.position);marker64 = new google.maps.Marker({position: new google.maps.LatLng(41.040833,-73.715000),map: thismap,title: "MasterCard",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker64.setMap(thismap);latlngbounds.extend(marker64.position);marker65 = new google.maps.Marker({position: new google.maps.LatLng(47.153767,-122.483442),map: thismap,title: "McChord AFB",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker65.setMap(thismap);latlngbounds.extend(marker65.position);marker66 = new google.maps.Marker({position: new google.maps.LatLng(32.555651,-88.551253),map: thismap,title: "NAS Meridian",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker66.setMap(thismap);latlngbounds.extend(marker66.position);marker67 = new google.maps.Marker({position: new google.maps.LatLng(14.583333,120.966667),map: thismap,title: "Newport Marriott",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker67.setMap(thismap);latlngbounds.extend(marker67.position);marker68 = new google.maps.Marker({position: new google.maps.LatLng(36.005678,-78.926171),map: thismap,title: "NIEHS",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker68.setMap(thismap);latlngbounds.extend(marker68.position);marker69 = new google.maps.Marker({position: new google.maps.LatLng(28.568183,-81.210060),map: thismap,title: "Orlando Research Park 2",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker69.setMap(thismap);latlngbounds.extend(marker69.position);marker70 = new google.maps.Marker({position: new google.maps.LatLng(28.589342,-81.196765),map: thismap,title: "Orlando Tech Center",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker70.setMap(thismap);latlngbounds.extend(marker70.position);marker71 = new google.maps.Marker({position: new google.maps.LatLng(17.385044,78.486671),map: thismap,title: "Park Hyatt",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker71.setMap(thismap);latlngbounds.extend(marker71.position);marker72 = new google.maps.Marker({position: new google.maps.LatLng(35.147777,-114.568298),map: thismap,title: "Parker Dam",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker72.setMap(thismap);latlngbounds.extend(marker72.position);marker73 = new google.maps.Marker({position: new google.maps.LatLng(35.170880,-79.014501),map: thismap,title: "Pope AFB",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker73.setMap(thismap);latlngbounds.extend(marker73.position);marker74 = new google.maps.Marker({position: new google.maps.LatLng(25.774544,-80.170880),map: thismap,title: "Port of Miami",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker74.setMap(thismap);latlngbounds.extend(marker74.position);marker75 = new google.maps.Marker({position: new google.maps.LatLng(29.531683,-98.287392),map: thismap,title: "Randolph AFB",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker75.setMap(thismap);latlngbounds.extend(marker75.position);marker76 = new google.maps.Marker({position: new google.maps.LatLng(41.597222,-71.412222),map: thismap,title: "Rhode Island Air National Guard",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker76.setMap(thismap);latlngbounds.extend(marker76.position);marker77 = new google.maps.Marker({position: new google.maps.LatLng(32.634013,-83.600731),map: thismap,title: "Robins AFB",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker77.setMap(thismap);latlngbounds.extend(marker77.position);marker78 = new google.maps.Marker({position: new google.maps.LatLng(29.712209,-95.155830),map: thismap,title: "Rohm & Haas",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker78.setMap(thismap);latlngbounds.extend(marker78.position);marker79 = new google.maps.Marker({position: new google.maps.LatLng(39.173162,-77.271650),map: thismap,title: "RPS Building",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker79.setMap(thismap);latlngbounds.extend(marker79.position);marker80 = new google.maps.Marker({position: new google.maps.LatLng(32.378829,-86.305708),map: thismap,title: "RSA",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker80.setMap(thismap);latlngbounds.extend(marker80.position);marker81 = new google.maps.Marker({position: new google.maps.LatLng(32.754102,-117.197220),map: thismap,title: "San Diego Courthouse",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker81.setMap(thismap);latlngbounds.extend(marker81.position);marker82 = new google.maps.Marker({position: new google.maps.LatLng(38.897787,-77.054006),map: thismap,title: "Saudi Embassy",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker82.setMap(thismap);latlngbounds.extend(marker82.position);marker83 = new google.maps.Marker({position: new google.maps.LatLng(30.438256,-84.280733),map: thismap,title: "Senate Parking",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker83.setMap(thismap);latlngbounds.extend(marker83.position);marker84 = new google.maps.Marker({position: new google.maps.LatLng(33.973972,-80.477336),map: thismap,title: "Shaw AFB, Main Gate",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker84.setMap(thismap);latlngbounds.extend(marker84.position);marker85 = new google.maps.Marker({position: new google.maps.LatLng(29.712956,-95.125140),map: thismap,title: "Shell",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker85.setMap(thismap);latlngbounds.extend(marker85.position);marker86 = new google.maps.Marker({position: new google.maps.LatLng(38.012396,-122.106504),map: thismap,title: "Shell",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker86.setMap(thismap);latlngbounds.extend(marker86.position);marker87 = new google.maps.Marker({position: new google.maps.LatLng(29.762884,-95.383061),map: thismap,title: "Shell, AHQ Anadarko",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker87.setMap(thismap);latlngbounds.extend(marker87.position);marker88 = new google.maps.Marker({position: new google.maps.LatLng(40.643177,-74.074303),map: thismap,title: "St. George Ferry",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker88.setMap(thismap);latlngbounds.extend(marker88.position);marker89 = new google.maps.Marker({position: new google.maps.LatLng(41.239141,-88.836399),map: thismap,title: "State Farm",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker89.setMap(thismap);latlngbounds.extend(marker89.position);marker90 = new google.maps.Marker({position: new google.maps.LatLng(41.503427,-74.010418),map: thismap,title: "Stewart ANG",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker90.setMap(thismap);latlngbounds.extend(marker90.position);marker91 = new google.maps.Marker({position: new google.maps.LatLng(30.276357,-97.741296),map: thismap,title: "Texas State Capital",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker91.setMap(thismap);latlngbounds.extend(marker91.position);marker92 = new google.maps.Marker({position: new google.maps.LatLng(35.391483,-73.955972),map: thismap,title: "Tinker AFB, Hope Gate",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker92.setMap(thismap);latlngbounds.extend(marker92.position);marker93 = new google.maps.Marker({position: new google.maps.LatLng(30.071147,-85.590044),map: thismap,title: "Tyndall AFB, Main Gate",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker93.setMap(thismap);latlngbounds.extend(marker93.position);marker94 = new google.maps.Marker({position: new google.maps.LatLng(38.995110,-76.886084),map: thismap,title: "University of Missouri",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker94.setMap(thismap);latlngbounds.extend(marker94.position);marker95 = new google.maps.Marker({position: new google.maps.LatLng(39.100465,-94.585207),map: thismap,title: "US Bank",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker95.setMap(thismap);latlngbounds.extend(marker95.position);marker96 = new google.maps.Marker({position: new google.maps.LatLng(33.298549,44.395747),map: thismap,title: "US Embassy",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker96.setMap(thismap);latlngbounds.extend(marker96.position);marker97 = new google.maps.Marker({position: new google.maps.LatLng(55.755786,37.617633),map: thismap,title: "US Embassy",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker97.setMap(thismap);latlngbounds.extend(marker97.position);marker98 = new google.maps.Marker({position: new google.maps.LatLng(25.861170,-97.502190),map: thismap,title: "US Embassy",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker98.setMap(thismap);latlngbounds.extend(marker98.position);marker99 = new google.maps.Marker({position: new google.maps.LatLng(37.778764,-122.416606),map: thismap,title: "US Mint",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker99.setMap(thismap);latlngbounds.extend(marker99.position);marker100 = new google.maps.Marker({position: new google.maps.LatLng(38.232417,-122.636652),map: thismap,title: "USCG",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker100.setMap(thismap);latlngbounds.extend(marker100.position);marker101 = new google.maps.Marker({position: new google.maps.LatLng(38.866501,-76.983864),map: thismap,title: "USMC",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker101.setMap(thismap);latlngbounds.extend(marker101.position);marker102 = new google.maps.Marker({position: new google.maps.LatLng(40.633562,-74.500804),map: thismap,title: "Verizon",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker102.setMap(thismap);latlngbounds.extend(marker102.position);marker103 = new google.maps.Marker({position: new google.maps.LatLng(38.984720,-77.094720),map: thismap,title: "Walter Reed",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker103.setMap(thismap);latlngbounds.extend(marker103.position);marker104 = new google.maps.Marker({position: new google.maps.LatLng(31.968599,-99.901813),map: thismap,title: "Washington Mutual",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker104.setMap(thismap);latlngbounds.extend(marker104.position);marker105 = new google.maps.Marker({position: new google.maps.LatLng(41.391483,-73.955972),map: thismap,title: "West Point, Motor Pool",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker105.setMap(thismap);latlngbounds.extend(marker105.position);marker106 = new google.maps.Marker({position: new google.maps.LatLng(41.391483,-73.955972),map: thismap,title: "West Point, Stoney Gate",icon: "http://www.rssi.com/gfx/legend.png",height: 100});marker106.setMap(thismap);latlngbounds.extend(marker106.position); if($("div#map_canvas_about").attr("class") != "map_canvas") { thismap.fitBounds(latlngbounds); } thismap.setCenter(latlngbounds.getCenter()); } }