/** * POPUP WINDOWS */ var profiles = { flickrPhotoset: { height:800, width:1024, status:0, center:1 } }; jQuery.fn.popupwindow = function(p) { var profiles = p || {}; return this.each(function(index){ var settings, parameters, mysettings, b, a, winObj; // for overrideing the default settings mysettings = (jQuery(this).attr("rel") || "").split(","); settings = { height:600, // sets the height in pixels of the window. width:600, // sets the width in pixels of the window. toolbar:0, // determines whether a toolbar (includes the forward and back buttons) is displayed {1 (YES) or 0 (NO)}. 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)}. resizable:1, // whether the window can be resized {1 (YES) or 0 (NO)}. Can also be overloaded using resizable. left:0, // left position when the window appears. top:0, // top position when the window appears. center:0, // should we center the window? {1 (YES) or 0 (NO)}. overrides top and left createnew:1, // should we create a new window for each occurance {1 (YES) or 0 (NO)}. 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)}. onUnload:null // function to call when the window is closed }; // if mysettings length is 1 and not a value pair then assume it is a profile declaration // and see if the profile settings exists if(mysettings.length == 1 && mysettings[0].split(":").length == 1) { a = mysettings[0]; // see if a profile has been defined if(typeof profiles[a] != "undefined") { settings = jQuery.extend(settings, profiles[a]); } } else { // overrides the settings with parameter passed in using the rel tag. for(var i=0; i < mysettings.length; i++) { b = mysettings[i].split(":"); if(typeof settings[b[0]] != "undefined" && b.length == 2) { settings[b[0]] = b[1]; } } } // center the window if (settings.center == 1) { settings.top = (screen.height-(settings.height + 110))/2; settings.left = (screen.width-settings.width)/2; } parameters = "location=" + settings.location + ",menubar=" + settings.menubar + ",height=" + settings.height + ",width=" + settings.width + ",toolbar=" + settings.toolbar + ",scrollbars=" + settings.scrollbars + ",status=" + settings.status + ",resizable=" + settings.resizable + ",left=" + settings.left + ",screenX=" + settings.left + ",top=" + settings.top + ",screenY=" + settings.top; jQuery(this).bind("click", function(){ var name = settings.createnew ? "PopUpWindow" + index : "PopUpWindow"; winObj = window.open(this.href, name, parameters); if (settings.onUnload) { // Incremental check for window status // Attaching directly to window.onunlaod event causes invoke when document within window is reloaded // (i.e. an inner refresh) unloadInterval = setInterval(function() { if (!winObj || winObj.closed) { clearInterval(unloadInterval); settings.onUnload.call($(this)); } },500); } winObj.focus(); return false; }); }); }; /** * jQuery.ScrollTo - Easy element scrolling using jQuery. * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com * Dual licensed under MIT and GPL. * Date: 3/9/2009 * @author Ariel Flesler * @version 1.4.1 * * http://flesler.blogspot.com/2007/10/jqueryscrollto.html */ ;(function($){var m=$.scrollTo=function(b,h,f){$(window).scrollTo(b,h,f)};m.defaults={axis:'xy',duration:parseFloat($.fn.jquery)>=1.3?0:1};m.window=function(b){return $(window).scrollable()};$.fn.scrollable=function(){return this.map(function(){var b=this,h=!b.nodeName||$.inArray(b.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!h)return b;var f=(b.contentWindow||b).document||b.ownerDocument||b;return $.browser.safari||f.compatMode=='BackCompat'?f.body:f.documentElement})};$.fn.scrollTo=function(l,j,a){if(typeof j=='object'){a=j;j=0}if(typeof a=='function')a={onAfter:a};if(l=='max')l=9e9;a=$.extend({},m.defaults,a);j=j||a.speed||a.duration;a.queue=a.queue&&a.axis.length>1;if(a.queue)j/=2;a.offset=n(a.offset);a.over=n(a.over);return this.scrollable().each(function(){var k=this,o=$(k),d=l,p,g={},q=o.is('html,body');switch(typeof d){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px)?$/.test(d)){d=n(d);break}d=$(d,this);case'object':if(d.is||d.style)p=(d=$(d)).offset()}$.each(a.axis.split(''),function(b,h){var f=h=='x'?'Left':'Top',i=f.toLowerCase(),c='scroll'+f,r=k[c],s=h=='x'?'Width':'Height';if(p){g[c]=p[i]+(q?0:r-o.offset()[i]);if(a.margin){g[c]-=parseInt(d.css('margin'+f))||0;g[c]-=parseInt(d.css('border'+f+'Width'))||0}g[c]+=a.offset[i]||0;if(a.over[i])g[c]+=d[s.toLowerCase()]()*a.over[i]}else g[c]=d[i];if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],u(s));if(!b&&a.queue){if(r!=g[c])t(a.onAfterFirst);delete g[c]}});t(a.onAfter);function t(b){o.animate(g,j,a.easing,b&&function(){b.call(this,l,a)})};function u(b){var h='scroll'+b;if(!q)return k[h];var f='client'+b,i=k.ownerDocument.documentElement,c=k.ownerDocument.body;return Math.max(i[h],c[h])-Math.min(i[f],c[f])}}).end()};function n(b){return typeof b=='object'?b:{top:b,left:b}}})(jQuery); /** * jQuery.LocalScroll - Animated scrolling navigation, using anchors. * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com * Dual licensed under MIT and GPL. * Date: 3/11/2009 * @author Ariel Flesler * @version 1.2.7 **/ ;(function($){var l=location.href.replace(/#.*/,'');var g=$.localScroll=function(a){$('body').localScroll(a)};g.defaults={duration:1e3,axis:'y',event:'click',stop:true,target:window,reset:true};g.hash=function(a){if(location.hash){a=$.extend({},g.defaults,a);a.hash=false;if(a.reset){var e=a.duration;delete a.duration;$(a.target).scrollTo(0,a);a.duration=e}i(0,location,a)}};$.fn.localScroll=function(b){b=$.extend({},g.defaults,b);return b.lazy?this.bind(b.event,function(a){var e=$([a.target,a.target.parentNode]).filter(d)[0];if(e)i(a,e,b)}):this.find('a,area').filter(d).bind(b.event,function(a){i(a,this,b)}).end().end();function d(){return!!this.href&&!!this.hash&&this.href.replace(this.hash,'')==l&&(!b.filter||$(this).is(b.filter))}};function i(a,e,b){var d=e.hash.slice(1),f=document.getElementById(d)||document.getElementsByName(d)[0];if(!f)return;if(a)a.preventDefault();var h=$(b.target);if(b.lock&&h.is(':animated')||b.onBefore&&b.onBefore.call(b,a,f,h)===false)return;if(b.stop)h.stop(true);if(b.hash){var j=f.id==d?'id':'name',k=$(' ').attr(j,d).css({position:'absolute',top:$(window).scrollTop(),left:$(window).scrollLeft()});f[j]='';$('body').prepend(k);location=e.hash;k.remove();f[j]=d}h.scrollTo(f,b).trigger('notify.serialScroll',[f])}})(jQuery); /* *********************************************************************************** CJ Image Flip Box JavaScript framework *********************************************************************************** */ /* eval(function(p,a,c,k,e,r){e=function(c){return(c35?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}('(c($){$.X.Y=c(t){k o={u:Z};k 5={11:\'1.1.0\',6:G};c H(){k 2=$(5.6).12(0);d(o.u){$(5.6).I(\'\')}$(5.6).1f(c(){$(4).B(\'O\',\'1g\')},c(){$(4).B(\'O\',\'1h\')});2.3=[];2.3=$(5.6).7("f.l g");2.9=[];1i(k i=0;i<2.3.m;i++){d(1j $(2.3[i])[0]!=="1k"&&$(2.3[i])[0].1l.1m==="A"){2.9[i]=$(2.3[i]).1n("a:1o(0)")[0]}P{2.9[i]=G}}d(2.3.m>0){$(5.6).7("f.l").I(\'\');$(2.3).F(c(){$(4).B({"1v":"1w"})});$(5.6).7("f.l g.E").j({"b":2.3[0].b});d(2.9[0]){$(5.6).7("f.l a.C").j({"n":2.9[0].n,"q":2.9[0].q,"r":2.9[0].r})}$(5.6).1x(c(e){k 2=4,8=0;k Q=$(4).s().s().K().L;8=1y((((e.R-Q)-2.S)/($(2).p())*2.3.m),10);d(8>2.3.m-1){8=2.3.m-1}d(o.u){$(2).7(".J").1z(\'x:\'+(e.R-4.S)+\', y:\'+(e.1A-4.1B)+\', 1C:\'+2.3.m+\', w:\'+$(5.6).p()+\', h:\'+$(5.6).D()+\', 8:\'+8)}$(2).7("f.l g.E").j({"b":2.3[8].b});d(2.9[8]){$(5.6).7("f.l a.C").j({"n":2.9[8].n,"q":2.9[8].q,"r":2.9[8].r})}$T=$(4).s().s().7(".1D").1E();$T.F(c(){d($(4).N()==8)$(4).7("g").j({b:$(4).7("g").j("b").U("V","W")});P $(4).7("g").j({b:$(4).7("g").j("b").U("W","V")})})})}}d(t){$.1F(o,t)}1G 4.F(c(){5.6=4;H()})}})(1H);',62,106,'||self|imgs|this|sys|elem|find|pos|links||src|function|if||div|img|||attr|var|cj_image_flipbox_pics|length|href|settings|width|title|ref|parent|options|debug|class||||||css|cj_image_flipbox_link|height|cj_image_flipbox_img|each|null|init|append|cj_image_flipbox_debugger|position|left|font|index|cursor|else|parentOffset|pageX|offsetLeft|sqChildren|replace|off|on|fn|cjImageFlipBox|false||version|get|style|absolute|top|0px|1px|family|Arial|Helvetica|sans|serif|size|10px|hover|pointer|auto|for|typeof|undefined|parentNode|nodeName|parents|eq|javascript|void|alt|CJ|Image|Slider|display|none|mousemove|parseInt|html|pageY|offsetTop|cnt|albumTagsContainer|children|extend|return|jQuery'.split('|'),0,{})) */ /* *********************************************************************************** * CJ Image Flip Box JavaScript framework 11.13.11 *********************************************************************************** */ (function(a){a.fn.cjImageFlipBox=function(b){function e(){var b=a(d.elem).get(0);if(c.debug){a(d.elem).append('
')}a(d.elem).hover(function(){a(this).css("cursor","pointer")},function(){a(this).css("cursor","auto")});b.imgs=[];b.imgs=a(d.elem).find("div.cj_image_flipbox_pics img");b.links=[];for(var e=0;e0){a(d.elem).find("div.cj_image_flipbox_pics").append('CJ Image Slider');a(b.imgs).each(function(){a(this).css({display:"none"})});a(d.elem).find("div.cj_image_flipbox_pics img.cj_image_flipbox_img").attr({src:b.imgs[0].src});if(b.links[0]){a(d.elem).find("div.cj_image_flipbox_pics a.cj_image_flipbox_link").attr({href:b.links[0].href,title:b.links[0].title,ref:b.links[0].ref})}a(d.elem).mousemove(function(b){var e=this,f=0;var g="";var h="";var i=a(this).parent().parent().position().left;g=a(this).parent().parent().attr("title");if(g&&g!=""){if(g.indexOf("offsetLeft")>=0){h=parseInt(g.substr(11))}}i=h!=""?h:i;f=parseInt((b.pageX-i-e.offsetLeft)/a(e).width()*e.imgs.length,10);if(f>e.imgs.length-1){f=e.imgs.length-1}if(c.debug){a(e).find(".cj_image_flipbox_debugger").html("x:"+(b.pageX-this.offsetLeft)+", y:"+(b.pageY-this.offsetTop)+", cnt:"+e.imgs.length+", w:"+a(d.elem).width()+", h:"+a(d.elem).height()+", pos:"+f)}a(e).find("div.cj_image_flipbox_pics img.cj_image_flipbox_img").attr({src:e.imgs[f].src});if(e.links[f]){a(d.elem).find("div.cj_image_flipbox_pics a.cj_image_flipbox_link").attr({href:e.links[f].href,title:e.links[f].title,ref:e.links[f].ref})}$sqChildren=a(this).parent().parent().find(".albumTagsContainer").children();$sqChildren.each(function(){if(a(this).index()==f)a(this).find("img").attr({src:a(this).find("img").attr("src").replace("off","on")});else a(this).find("img").attr({src:a(this).find("img").attr("src").replace("on","off")})})})}}var c={debug:false};var d={version:"1.1.0",elem:null};if(b){a.extend(c,b)}return this.each(function(){d.elem=this;e()})}})(jQuery) /*! * jQuery Cookie Plugin v1.4.0 * https://github.com/carhartl/jquery-cookie * * Copyright 2013 Klaus Hartl * Released under the MIT license */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){function c(a){return h.raw?a:encodeURIComponent(a)}function d(a){return h.raw?a:decodeURIComponent(a)}function e(a){return c(h.json?JSON.stringify(a):String(a))}function f(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(b," ")),h.json?JSON.parse(a):a}catch(c){}}function g(b,c){var d=h.raw?b:f(b);return a.isFunction(c)?c(d):d}var b=/\+/g,h=a.cookie=function(b,f,i){if(void 0!==f&&!a.isFunction(f)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[c(b),"=",e(f),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=b?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=d(p.shift()),r=p.join("=");if(b&&b===q){l=g(r,f);break}b||void 0===(r=g(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});