310 lines
39 KiB
HTML
310 lines
39 KiB
HTML
|
#HTTP_HEADER{Content-Type: text/javascript}
|
||
|
|
||
|
jQuery(document).ready(function() {
|
||
|
|
||
|
$('.breves').appendTo('#sidebar-pad');
|
||
|
$('#formulaire_inscription').addClass('menu').appendTo('#sidebar-pad');
|
||
|
$('.sites').prependTo('#footbar-pad');
|
||
|
});
|
||
|
|
||
|
/**
|
||
|
* 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;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
|
||
|
/*
|
||
|
* Superfish v1.4.8 - jQuery menu widget
|
||
|
* Copyright (c) 2008 Joel Birch
|
||
|
*
|
||
|
* Dual licensed under the MIT and GPL licenses:
|
||
|
* http://www.opensource.org/licenses/mit-license.php
|
||
|
* http://www.gnu.org/licenses/gpl.html
|
||
|
*
|
||
|
* CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
|
||
|
*/
|
||
|
|
||
|
;(function($){
|
||
|
$.fn.superfish = function(op){
|
||
|
|
||
|
var sf = $.fn.superfish,
|
||
|
c = sf.c,
|
||
|
$arrow = $(['<span class="',c.arrowClass,'"> »</span>'].join('')),
|
||
|
over = function(){
|
||
|
var $$ = $(this), menu = getMenu($$);
|
||
|
clearTimeout(menu.sfTimer);
|
||
|
$$.showSuperfishUl().siblings().hideSuperfishUl();
|
||
|
},
|
||
|
out = function(){
|
||
|
var $$ = $(this), menu = getMenu($$), o = sf.op;
|
||
|
clearTimeout(menu.sfTimer);
|
||
|
menu.sfTimer=setTimeout(function(){
|
||
|
o.retainPath=($.inArray($$[0],o.$path)>-1);
|
||
|
$$.hideSuperfishUl();
|
||
|
if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}
|
||
|
},o.delay);
|
||
|
},
|
||
|
getMenu = function($menu){
|
||
|
var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0];
|
||
|
sf.op = sf.o[menu.serial];
|
||
|
return menu;
|
||
|
},
|
||
|
addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); };
|
||
|
|
||
|
return this.each(function() {
|
||
|
var s = this.serial = sf.o.length;
|
||
|
var o = $.extend({},sf.defaults,op);
|
||
|
o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){
|
||
|
$(this).addClass([o.hoverClass,c.bcClass].join(' '))
|
||
|
.filter('li:has(ul)').removeClass(o.pathClass);
|
||
|
});
|
||
|
sf.o[s] = sf.op = o;
|
||
|
|
||
|
$('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() {
|
||
|
if (o.autoArrows) addArrow( $('>a:first-child',this) );
|
||
|
})
|
||
|
.not('.'+c.bcClass)
|
||
|
.hideSuperfishUl();
|
||
|
|
||
|
var $a = $('a',this);
|
||
|
$a.each(function(i){
|
||
|
var $li = $a.eq(i).parents('li');
|
||
|
$a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});
|
||
|
});
|
||
|
o.onInit.call(this);
|
||
|
|
||
|
}).each(function() {
|
||
|
var menuClasses = [c.menuClass];
|
||
|
if (sf.op.dropShadows && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass);
|
||
|
$(this).addClass(menuClasses.join(' '));
|
||
|
});
|
||
|
};
|
||
|
|
||
|
var sf = $.fn.superfish;
|
||
|
sf.o = [];
|
||
|
sf.op = {};
|
||
|
sf.IE7fix = function(){
|
||
|
var o = sf.op;
|
||
|
if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined)
|
||
|
this.toggleClass(sf.c.shadowClass+'-off');
|
||
|
};
|
||
|
sf.c = {
|
||
|
bcClass : 'sf-breadcrumb',
|
||
|
menuClass : 'sf-js-enabled',
|
||
|
anchorClass : 'sf-with-ul',
|
||
|
arrowClass : 'sf-sub-indicator',
|
||
|
shadowClass : 'sf-shadow'
|
||
|
};
|
||
|
sf.defaults = {
|
||
|
hoverClass : 'sfHover',
|
||
|
pathClass : 'overideThisToUse',
|
||
|
pathLevels : 1,
|
||
|
delay : 800,
|
||
|
animation : {opacity:'show'},
|
||
|
speed : 'normal',
|
||
|
autoArrows : true,
|
||
|
dropShadows : true,
|
||
|
disableHI : false, // true disables hoverIntent detection
|
||
|
onInit : function(){}, // callback functions
|
||
|
onBeforeShow: function(){},
|
||
|
onShow : function(){},
|
||
|
onHide : function(){}
|
||
|
};
|
||
|
$.fn.extend({
|
||
|
hideSuperfishUl : function(){
|
||
|
var o = sf.op,
|
||
|
not = (o.retainPath===true) ? o.$path : '';
|
||
|
o.retainPath = false;
|
||
|
var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass)
|
||
|
.find('>ul').hide().css('visibility','hidden');
|
||
|
o.onHide.call($ul);
|
||
|
return this;
|
||
|
},
|
||
|
showSuperfishUl : function(){
|
||
|
var o = sf.op,
|
||
|
sh = sf.c.shadowClass+'-off',
|
||
|
$ul = this.addClass(o.hoverClass)
|
||
|
.find('>ul:hidden').css('visibility','visible');
|
||
|
sf.IE7fix.call($ul);
|
||
|
o.onBeforeShow.call($ul);
|
||
|
$ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); });
|
||
|
return this;
|
||
|
}
|
||
|
});
|
||
|
|
||
|
})(jQuery);
|
||
|
|
||
|
|
||
|
|
||
|
/*
|
||
|
* jQuery Cycle Plugin (with Transition Definitions)
|
||
|
* Examples and documentation at: http://jquery.malsup.com/cycle/
|
||
|
* Copyright (c) 2007-2010 M. Alsup
|
||
|
* Version: 2.86 (05-APR-2010)
|
||
|
* Dual licensed under the MIT and GPL licenses:
|
||
|
* http://www.opensource.org/licenses/mit-license.php
|
||
|
* http://www.gnu.org/licenses/gpl.html
|
||
|
* Requires: jQuery v1.2.6 or later
|
||
|
*/
|
||
|
(function($){var ver="2.86";if($.support==undefined){$.support={opacity:!($.browser.msie)};}function debug(s){if($.fn.cycle.debug){log(s);}}function log(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "));}}$.fn.cycle=function(options,arg2){var o={s:this.selector,c:this.context};if(this.length===0&&options!="stop"){if(!$.isReady&&o.s){log("DOM not ready, queuing slideshow");$(function(){$(o.s,o.c).cycle(options,arg2);});return this;}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var opts=handleArguments(this,options,arg2);if(opts===false){return;}opts.updateActivePagerLink=opts.updateActivePagerLink||$.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var $cont=$(this);var $slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){log("terminating; too few slides: "+els.length);return;}var opts2=buildOptions($cont,$slides,els,opts,o);if(opts2===false){return;}var startTime=opts2.continuous?10:getTimeout(opts2.currSlide,opts2.nextSlide,opts2,!opts2.rev);if(startTime){startTime+=(opts2.delay||0);if(startTime<10){startTime=10;}debug("first timeout: "+startTime);this.cycleTimeout=setTimeout(function(){go(els,opts2,0,!opts2.rev);},startTime);}});};function handleArguments(cont,options,arg2){if(cont.cycleStop==undefined){cont.cycleStop=0;}if(options===undefined||options===null){options={};}if(options.constructor==String){switch(options){case"destroy":case"stop":var opts=$(cont).data("cycle.opts");if(!opts){return false;}cont.cycleStop++;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);}cont.cycleTimeout=0;$(cont).removeData("cycle.opts");if(options=="destroy"){destroy(opts);}return false;case"toggle":cont.cyclePause=(cont.cyclePause===1)?0:1;checkInstantResume(cont.cyclePause,arg2,cont);return false;case"pause":cont.cyclePause=1;return false;case"resume":cont.cyclePause=0;checkInstantResume(false,arg2,cont);return false;case"prev":case"next":var opts=$(cont).data("cycle.opts");if(!opts){log('options not found, "prev/next" ignored');return false;}$.fn.cycle[options](opts);return false;default:options={fx:options};}return options;}else{if(options.constructor==Number){var num=options;options=$(cont).data("cycle.opts");if(!options){log("options not found, can not advance slide");return false;}if(num<0||num>=options.elements.length){log("invalid slide index: "+num);return false;}options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}if(typeof arg2=="string"){options.oneTimeFx=arg2;}go(options.elements,options,1,num>=options.currSlide);return false;}}return options;function checkInstantResume(isPaused,arg2,cont){if(!isPaused&&arg2===true){var options=$(cont).data("cycle.opts");if(!options){log("options not found, can not resume");return false;}if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}go(options.elements,options,1,1);}}}function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter){try{el.style.removeAttribute("filter");}catch(smother){}}}function destroy(opts){if(opts.next){$(opts.next).unbind(opts.prevNextEvent);}if(opts.prev){$(opts.prev).unbind(opts.prevNextEvent);}if(opts.pager||opts.pagerAnchorBuilder){$.each(opts.pagerAnchors||[],function(){this.unbind().remove();});}opts.pagerAnchors=null;if(opts.destroy){opts.destroy(opts);}}function buildOptions($cont,$slides,els,options,o){var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});if(opts.autostop){opts.countdown=opts.autostopCount||els.length;}var cont=$cont[0];$cont.data("cycle.opts",opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];opts.after.unshift(function(){opts.busy=0;});if(!$.support.opacity&&opts.cleartype){opts.after.push(function(){removeFilter(this,opts);});}if(
|
||
|
/*
|
||
|
* jQuery Cycle Plugin Transition Definitions
|
||
|
* This script is a plugin for the jQuery Cycle Plugin
|
||
|
* Examples and documentation at: http://malsup.com/jquery/cycle/
|
||
|
* Copyright (c) 2007-2008 M. Alsup
|
||
|
* Version: 2.72
|
||
|
* Dual licensed under the MIT and GPL licenses:
|
||
|
* http://www.opensource.org/licenses/mit-license.php
|
||
|
* http://www.gnu.org/licenses/gpl.html
|
||
|
*/
|
||
|
(function($){$.fn.cycle.transitions.none=function($cont,$slides,opts){opts.fxFn=function(curr,next,opts,after){$(next).show();$(curr).hide();after();};};$.fn.cycle.transitions.scrollUp=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssBefore={top:h,left:0};opts.cssFirst={top:0};opts.animIn={top:0};opts.animOut={top:-h};};$.fn.cycle.transitions.scrollDown=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssFirst={top:0};opts.cssBefore={top:-h,left:0};opts.animIn={top:0};opts.animOut={top:h};};$.fn.cycle.transitions.scrollLeft=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:w,top:0};opts.animIn={left:0};opts.animOut={left:0-w};};$.fn.cycle.transitions.scrollRight=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:-w,top:0};opts.animIn={left:0};opts.animOut={left:w};};$.fn.cycle.transitions.scrollHorz=function($cont,$slides,opts){$cont.css("overflow","hidden").width();opts.before.push(function(curr,next,opts,fwd){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.left=fwd?(next.cycleW-1):(1-next.cycleW);opts.animOut.left=fwd?-curr.cycleW:curr.cycleW;});opts.cssFirst={left:0};opts.cssBefore={top:0};opts.animIn={left:0};opts.animOut={top:0};};$.fn.cycle.transitions.scrollVert=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push(function(curr,next,opts,fwd){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.top=fwd?(1-next.cycleH):(next.cycleH-1);opts.animOut.top=fwd?curr.cycleH:-curr.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0};opts.animIn={top:0};opts.animOut={left:0};};$.fn.cycle.transitions.slideX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;});opts.cssBefore={left:0,top:0,width:0};opts.animIn={width:"show"};opts.animOut={width:0};};$.fn.cycle.transitions.slideY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;});opts.cssBefore={left:0,top:0,height:0};opts.animIn={height:"show"};opts.animOut={height:0};};$.fn.cycle.transitions.shuffle=function($cont,$slides,opts){var i,w=$cont.css("overflow","visible").width();$slides.css({left:0,top:0});opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);});if(!opts.speedAdjusted){opts.speed=opts.speed/2;opts.speedAdjusted=true;}opts.random=0;opts.shuffle=opts.shuffle||{left:-w,top:15};opts.els=[];for(i=0;i<$slides.length;i++){opts.els.push($slides[i]);}for(i=0;i<opts.currSlide;i++){opts.els.push(opts.els.shift());}opts.fxFn=function(curr,next,opts,cb,fwd){var $el=fwd?$(curr):$(next);$(next).css(opts.cssBefore);var count=opts.slideCount;$el.animate(opts.shuffle,opts.speedIn,opts.easeIn,function(){var hops=$.fn.cycle.hopsFromLast(opts,fwd);for(var k=0;k<hops;k++){fwd?opts.els.push(opts.els.shift()):opts.els.unshift(opts.els.pop());}if(fwd){for(var i=0,len=opts.els.length;i<len;i++){$(opts.els[i]).css("z-index",len-i+count);}}else{var z=$(curr).css("z-index");$el.css("z-index",parseInt(z)+1+count);}$el.animate({left:0,top:0},opts.speedOut,opts.easeOut,function(){$(fwd?this:curr).hide();if(cb){cb();}});});};opts.cssBefore={display:"block",opacity:1,top:0,left:0};};$.fn.cycle.transitions.turnUp=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=next.cycleH;opts.animIn.height=next.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0,height:0};opts.animIn={top:0};opts.animOut={height:0};};$.fn.cycle.transitions.turnDown=function($cont,$slides,opts){opts.before.push(fu
|
||
|
function padd_toggle(classname,value) {
|
||
|
jQuery(classname).focus(function() {
|
||
|
if (value == jQuery(classname).val()) {
|
||
|
jQuery(this).val('');
|
||
|
}
|
||
|
});
|
||
|
jQuery(classname).blur(function() {
|
||
|
if ('' == jQuery(classname).val()) {
|
||
|
jQuery(this).val(value);
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
function padd_build_pages(index,elem) {
|
||
|
return '<button class="jqc-button jqc-button-pages" id="jqc-button-' + index + '" value="' + index + '"><span>' + (index+1) + '</span></button>'
|
||
|
}
|
||
|
|
||
|
function padd_create_slideshow() {
|
||
|
jQuery('div#slideshow').append('<div id="slideshow-controller"><span id="jqc-pages"></span></div>');
|
||
|
jQuery('div#slideshow div.list').cycle({
|
||
|
fx: 'fade',
|
||
|
speed: 1500,
|
||
|
timeout: 5000,
|
||
|
cleartypeNoBg: true,
|
||
|
activePagerClass: 'jqc-active',
|
||
|
prev: '#jqc-prev',
|
||
|
next: '#jqc-next',
|
||
|
pager: '#jqc-pages',
|
||
|
pagerAnchorBuilder: padd_build_pages
|
||
|
});
|
||
|
|
||
|
}
|
||
|
|
||
|
jQuery(document).ready(function() {
|
||
|
jQuery.noConflict();
|
||
|
|
||
|
jQuery('div#menubar div > ul').superfish({
|
||
|
autoArrows: true,
|
||
|
hoverClass: 'hover',
|
||
|
speed: 500,
|
||
|
animation: { opacity: 'show', height: 'show' }
|
||
|
});
|
||
|
|
||
|
padd_create_slideshow();
|
||
|
|
||
|
jQuery('input#s').val('Search');
|
||
|
padd_toggle('input#s','Search');
|
||
|
jQuery('div.search form').click(function () {
|
||
|
jQuery('input#s').focus();
|
||
|
});
|
||
|
|
||
|
jQuery('div.box:last-child').css({
|
||
|
'background': 'transparent none'
|
||
|
})
|
||
|
|
||
|
});
|
||
|
|