Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include('js/switcher.js')
- include('js/bgStretch.js')
- include('js/forms.js')
- include('js/jquery.fancybox-1.3.4.pack.js')
- $(window).load(function(){
- var nav=$('nav')
- ,content=$('#content')
- ,header=$('header')
- ,h_inner=$('>.inner',header)
- ,h1=$('header h1')
- ,h1_span=$('>a>span',h1)
- ,privacy=$('footer .privacy')
- ,soc_ico=$('footer .soc-ico')
- ,nav_a=$('>ul>li>a',nav)
- ,bgStretch=$('#bgStretch')
- ,body=$('body')
- ,glob=$('#glob')
- $('#media .cols a')
- .fancybox()
- $('li>ul',nav).each(function(){
- var ul=$(this).hide()
- ,li=ul.parent()
- ,a=$('>a',li)
- ,tmr
- li.children()
- .on('mouseenter',function(){
- clearTimeout(tmr)
- li.addClass('_hover')
- ul
- .fadeIn()
- })
- .on('mouseleave',function(){
- tmr=setTimeout(function(){
- li.removeClass('_hover')
- ul
- .fadeOut()
- },400)
- })
- })
- header.add(h_inner).css({overflow:'visible'})
- $('.slogans')
- .tabs(0)
- .tabs({
- actFu:function(_){
- if(_.prev)
- _.prev
- .stop()
- .fadeOut(function(){
- if(_.curr)
- _.curr
- .stop()
- .fadeIn()
- })
- }
- })
- $('.slogans .prev,.slogans .next')
- .click(function(){
- $('.slogans').tabs($(this).is('.next')?'next':'prev')
- })
- bgStretch
- .bgStretch({
- align:'center'
- })
- content
- .tabs({
- empty:'#!/home'
- ,actFu:function(_){
- if(_.prev)
- _.prev
- .stop()
- .css({
- top:_.prev.prop('offsetTop')
- ,marginTop:0
- })
- .animate({
- top:-522
- ,opacity:0
- },{
- duration:800
- ,easing:'easeInOutSine'
- ,complete:function(){
- _.prev
- .hide()
- }
- })
- if(_.curr)
- _.curr
- .stop()
- .css({
- top:glob.height()
- ,marginTop:0
- })
- .show()
- .animate({
- top:glob.height()/2-204
- ,opacity:1
- },{
- duration:800
- ,easing:'easeInOutSine'
- ,complete:function(){
- _.curr
- .css({
- top:'50%'
- ,marginTop:-204
- })
- }
- })
- }
- })
- nav
- .navs({
- useHash:true
- ,defHash:'#!/home'
- })
- .navs(function(n,_){
- if(n===_.defHash)
- show_splash()
- else
- show_subpages()
- if(n==='#!/mail')
- googleMap()
- content.tabs(n)
- })
- function show_splash(){
- if(!show_subpages.ready)
- return false
- show_subpages.ready=false
- $('li>ul',nav).css({opacity:0})
- header
- .stop()
- .animate({
- height:64
- },{
- duration:600
- ,easing:'easeInOutSine'
- ,step:function(now){
- header.css({backgroundPosition:'0 -'+(179-now)+'px'})
- h_inner.height(now-1)
- }
- })
- nav_a
- .stop()
- .animate({
- height:63
- },{
- duration:600
- ,easing:'easeInOutSine'
- })
- $.when(nav_a).then(function(){
- $('li>ul',nav).css({opacity:1})
- nav.removeClass('-subpages')
- })
- privacy
- .stop()
- .animate({
- marginLeft:-85
- ,left:'50%'
- },{
- duration:600
- ,easing:'easeInOutSine'
- })
- soc_ico
- .stop()
- .animate({
- bottom:-32
- },{
- duration:600
- ,easing:'easeInOutSine'
- })
- h1
- .stop()
- .animate({
- top:20
- },{
- duration:600
- ,easing:'easeInOutSine'
- })
- h1_span
- .stop()
- .animate({
- left:37
- },{
- duration:200
- ,easing:'easeInOutSine'
- })
- .animate({
- top:-5
- },{
- duration:400
- ,easing:'easeInOutSine'
- })
- header.add(h_inner).css({overflow:'visible'})
- $('.slogans')
- .stop()
- .animate({
- bottom:62
- },{
- duration:400
- ,easing:'easeInOutSine'
- })
- }
- function show_subpages(){
- if(show_subpages.ready)
- return false
- show_subpages.ready=true
- $('li>ul',nav).css({opacity:0})
- header
- .stop()
- .animate({
- height:179
- },{
- duration:600
- ,easing:'easeInOutSine'
- ,step:function(now){
- header.css({backgroundPosition:'0 -'+(179-now)+'px'})
- h_inner.height(now-1)
- }
- })
- header.add(h_inner).css({overflow:'visible'})
- nav_a
- .stop()
- .css({overflow:'visible'})
- .animate({
- height:75
- },{
- duration:600
- ,easing:'easeInOutSine'
- })
- $.when(nav_a).then(function(){
- nav.addClass('-subpages')
- $('li>ul',nav).css({opacity:1})
- })
- privacy
- .stop()
- .animate({
- marginLeft:5
- ,left:'0%'
- },{
- duration:600
- ,easing:'easeInOutSine'
- })
- soc_ico
- .stop()
- .animate({
- bottom:14
- },{
- duration:600
- ,easing:'easeInOutSine'
- })
- h1
- .stop()
- .animate({
- top:78
- },{
- duration:600
- ,easing:'easeInOutSine'
- })
- h1_span
- .stop()
- .animate({
- top:35
- },{
- duration:400
- ,easing:'easeInOutSine'
- })
- .animate({
- left:0
- },{
- duration:200
- ,easing:'easeInOutSine'
- })
- $('.slogans')
- .stop()
- .animate({
- bottom:-77
- },{
- duration:400
- ,easing:'easeInOutSine'
- })
- }
- function googleMap(){
- if(googleMap.ready)
- return false
- googleMap.ready=true
- var cssPath='.google_map'
- ,holder=$(cssPath)
- ,src='http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Brooklyn,+New+York,+NY,+United+States&aq=0&sll=37.0625,-95.677068&sspn=61.282355,146.513672&ie=UTF8&hq=&hnear=Brooklyn,+Kings,+New+York&ll=40.649974,-73.950005&spn=0.01628,0.025663&z=14&iwloc=A&output=embed'
- ,str='<iframe class="blo" width="'+holder.width()+'" height="'+holder.height()+'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'+src+'"></iframe>'
- holder.html(str)
- }
- $.when($('#gspinner').fadeOut()).then(function(){
- body.css({overflow:'auto'})
- })
- })
- ;(function($){var c=['DOMMouseScroll','mousewheel'];$.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var i=c.length;i;)this.addEventListener(c[--i],handler,false);else this.onmousewheel=handler},teardown:function(){if(this.removeEventListener)for(var i=c.length;i;)this.removeEventListener(c[--i],handler,false);else this.onmousewheel=null}};$.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}});function handler(a){var b=[].slice.call(arguments,1),delta=0,returnValue=true;a=$.event.fix(a||window.event);a.type="mousewheel";if(a.originalEvent.wheelDelta)delta=a.originalEvent.wheelDelta/120;if(a.originalEvent.detail)delta=-a.originalEvent.detail/3;b.unshift(a,delta);return $.event.handle.apply(this,b)}})(jQuery);
- eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h.i[\'V\']=h.i[\'y\'];h.M(h.i,{B:\'C\',y:9(x,t,b,c,d){6 h.i[h.i.B](x,t,b,c,d)},14:9(x,t,b,c,d){6 c*(t/=d)*t+b},C:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},12:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},Q:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},O:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},P:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},L:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},S:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},F:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},K:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},N:9(x,t,b,c,d){6-c*8.A(t/d*(8.g/2))+c+b},R:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},X:9(x,t,b,c,d){6-c/2*(8.A(8.g*t/d)-1)+b},11:9(x,t,b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6 c/2*(t*t*(((s*=(1.D))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.D))+1)*t+s)+2)+b},z:9(x,t,b,c,d){6 c-h.i.r(x,d-t,0,c,d)+b},r:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.o*t*t)+b}m e(t<(2/2.k)){6 c*(7.o*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.o*(t-=(2.17/2.k))*t+.18)+b}m{6 c*(7.o*(t-=(2.19/2.k))*t+.1a)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.z(x,t*2,0,c,d)*.5+b;6 h.i.r(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|5625||sqrt|easeOutBounce|||abs|asin|undefined||swing|easeInBounce|cos|def|easeOutQuad|525|easeInCirc|easeInQuint|easeOutCirc|easeInOutCirc|easeInElastic|easeOutQuint|easeInOutQuint|easeOutQuart|extend|easeInSine|easeInOutCubic|easeInQuart|easeOutCubic|easeOutSine|easeInOutQuart|easeOutElastic|easeInOutElastic|jswing|easeInBack|easeInOutSine|easeOutBack|easeInOutBack||easeInExpo|easeInCubic|easeInOutQuad|easeInQuad|easeOutExpo|easeInOutExpo|25|9375|625|984375|easeInOutBounce'.split('|'),0,{}))
- ;(function(d){d.each(['backgroundColor','borderBottomColor','borderLeftColor','borderRightColor','borderTopColor','color','outlineColor'],function(i,b){d.fx.step[b]=function(a){if(a.state==0){a.start=getColor(a.elem,b);a.end=getRGB(a.end)}a.elem.style[b]="rgb("+[Math.max(Math.min(parseInt((a.pos*(a.end[0]-a.start[0]))+a.start[0]),255),0),Math.max(Math.min(parseInt((a.pos*(a.end[1]-a.start[1]))+a.start[1]),255),0),Math.max(Math.min(parseInt((a.pos*(a.end[2]-a.start[2]))+a.start[2]),255),0)].join(",")+")"}});function getRGB(a){var b;if(a&&a.constructor==Array&&a.length==3)return a;if(b=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(a))return[parseInt(b[1]),parseInt(b[2]),parseInt(b[3])];if(b=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(a))return[parseFloat(b[1])*2.55,parseFloat(b[2])*2.55,parseFloat(b[3])*2.55];if(b=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a))return[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)];if(b=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(a))return[parseInt(b[1]+b[1],16),parseInt(b[2]+b[2],16),parseInt(b[3]+b[3],16)];if(b=/rgba\(0, 0, 0, 0\)/.exec(a))return e['transparent'];return e[d.trim(a).toLowerCase()]}function getColor(a,b){var c;do{c=d.curCSS(a,b);if(c!=''&&c!='transparent'||d.nodeName(a,"body"))break;b="backgroundColor"}while(a=a.parentNode);return getRGB(c)};var e={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]}})(jQuery);
- function include(url){document.write('<script type="text/javascript" src="'+url+'"></script>')}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement