/*Start accordion.js */
$(document).ready(function() {$(".accordion-container p.section-title, .accordion-container span.section-title").click(function() {$(this).next("div.section-content").slideToggle(300).siblings("div.section-content").slideUp("slow");});});/*End accordion.js */

/*Start coda-slider.1.1.1.js*/
jQuery(function() {
jQuery("div.csw").prepend("<p class='loading'>Loading...<br /><img src='../images/img-ajax-loader.gif' alt='loading...'/ ></p>");});var j = 0;jQuery.fn.codaSlider = function(settings) {
settings = jQuery.extend({
easeFunc: "expoinout",    easeTime: 750,        toolTip: false
}, settings);    return this.each(function() {
var container = jQuery(this);        container.find("p.loading").remove();        container.removeClass("csw").addClass("stripViewer");        
var panelWidth = container.find("div.panel").width();        var panelCount = container.find("div.panel").size();        
var stripViewerWidth = panelWidth * panelCount;        container.find("div.panelContainer").css("width", stripViewerWidth);        var navWidth = panelCount * 2;        if (location.hash && parseInt(location.hash.slice(1)) <= panelCount) {
var cPanel = parseInt(location.hash.slice(1));            var cnt = -(panelWidth * (cPanel - 1));            jQuery(this).find("div.panelContainer").css({ left: cnt });            
} else {
var cPanel = 1;};container.each(function(i) {
jQuery(this).before("<div class='stripNav' id='stripNav" + j + "'><ul><\/ul><\/div>");            jQuery(this).find("div.panel").each(function(n) {
jQuery("div#stripNav" + j + " ul").append("<li class='tab" + (n + 1) + "'><a href='#" + (n + 1) + "'>" + jQuery(this).attr("title") + "<\/a><\/li>");            });            jQuery("div#stripNav" + j + " a").each(function(z) {
navWidth += jQuery(this).parent().width();                
jQuery(this).bind("click", function() {
jQuery(this).addClass("current").parent().parent().find("a").not(jQuery(this)).removeClass("current");var cnt = -(panelWidth * z);                    cPanel = z + 1;                    jQuery(this).parent().parent().parent().next().find("div.panelContainer").animate({ left: cnt }, settings.easeTime, settings.easeFunc);                });            });            jQuery("a.cross-link").click(function() {
jQuery(this).parents().find(".stripNav ul li a:eq(" + (parseInt(jQuery(this).attr("href").slice(1)) - 1) + ")").trigger('click');            });            if (location.hash && parseInt(location.hash.slice(1)) <= panelCount) {
jQuery("div#stripNav" + j + " a:eq(" + (location.hash.slice(1) - 1) + ")").addClass("current");            } else {
jQuery("div#stripNav" + j + " a:eq(0)").addClass("current");}
}); j++;});};
/*Stop coda-slider.1.1.1.js */

/*Start sliding-panel.js */
$(document).ready(function() {
    $("div.panel_button").click(function() {
        $("div#panel").animate({
            height: "104px"
        })
.animate({
    height: "94px"
}, "fast"); $("div.panel_button").toggle();
    }); $("div#hide_button").click(function() {
        $("div#panel").animate({
            height: "0px"
        }, "fast");
    });
});
/*Stop sliding-panel.js */
/*Start tabs.js */
$(document).ready(function() {
$('.tabs a').click(function() {
switch_tabs($(this));});switch_tabs($('.defaulttab'));});function switch_tabs(obj) {
$('.tab-content').hide();$('.tabs a').removeClass("selected");var id = obj.attr("rel");$('#' + id).show();obj.addClass("selected");}
/*Stop tabs.js */
/*Stop this - week - slider - script.js */
$(document).ready(function() {
var totWidth = 0;    var positions = new Array();    $('.slides .slide').each(function(i) {
positions[i] = totWidth;        totWidth += $(this).width();        if (!$(this).width()) {
alert("Please, fill in width & height for all your images!");            return false;        }
});    $('.slides').width(totWidth);    $('div.slider-menu-items ul li a').click(function(e) {
$('li.menuItem').removeClass('act').addClass('inact'); $(this).parent().addClass('act'); var pos = $(this).parent().prevAll('.menuItem').length; $('.slides').stop().animate({ marginLeft: -positions[pos] + 'px' }, 450); e.preventDefault();
}); $('div.slider-menu-items ul li.menuItem:first').addClass('act').siblings().addClass('inact');
});
/*Start this - week - slider - script.js */

/* Cookie plugin */        
jQuery.cookie = function(name, value, options) {
if (typeof value != 'undefined') {
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();
}
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 {
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]);
if (cookie.substring(0, name.length + 1) == (name + '=')) {
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
break;
}}}return cookieValue;}};

