ddsmoothmenu.init({ mainmenuid: "topmenu", orientation: 'h', classname: 'ddsmoothmenu', //class added to menu's outer DIV customtheme: ["#454545", "#a40000"], contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"] }) jQuery(function( $ ){ /*! * jQuery Cookie Plugin v1.3.1 * https://github.com/carhartl/jquery-cookie * * Copyright 2013 Klaus Hartl * Released under the MIT license */ (function (factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as anonymous module. define(['jquery'], factory); } else { // Browser globals. factory(jQuery); } }(function ($) { var pluses = /\+/g; function raw(s) { return s; } function decoded(s) { return decodeURIComponent(s.replace(pluses, ' ')); } function converted(s) { if (s.indexOf('"') === 0) { // This is a quoted cookie as according to RFC2068, unescape s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\'); } try { return config.json ? JSON.parse(s) : s; } catch(er) {} } var config = $.cookie = function (key, value, options) { // write if (value !== undefined) { options = $.extend({}, config.defaults, options); if (typeof options.expires === 'number') { var days = options.expires, t = options.expires = new Date(); t.setDate(t.getDate() + days); } value = config.json ? JSON.stringify(value) : String(value); return (document.cookie = [ config.raw ? key : encodeURIComponent(key), '=', config.raw ? value : encodeURIComponent(value), options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE options.path ? '; path=' + options.path : '', options.domain ? '; domain=' + options.domain : '', options.secure ? '; secure' : '' ].join('')); } // read var decode = config.raw ? raw : decoded; var cookies = document.cookie.split('; '); var result = key ? undefined : {}; for (var i = 0, l = cookies.length; i < l; i++) { var parts = cookies[i].split('='); var name = decode(parts.shift()); var cookie = decode(parts.join('=')); if (key && key === name) { result = converted(cookie); break; } if (!key) { result[name] = converted(cookie); } } return result; }; config.defaults = {}; $.removeCookie = function (key, options) { if ($.cookie(key) !== undefined) { $.cookie(key, '', $.extend(options, { expires: -1 })); return true; } return false; }; })); $("#button").click(function(){ $("#box").slideUp(); $.cookie('consent', 'true', { expires: 604800 }); }); ///////////////////// var slide_current = 1; var slide_timer; var animate_slidermenu = function (current) { //init /* var slider_height = $('#slider_1_img').attr("height"); $('#slideshow').height(slider_height); */ var slides = $('#slidermenu li'); $cnt = slides.length; if(current==$cnt){ slide_next = 1; } else { slide_next = parseInt(current)+1; } $("#slidermenu a:lt(" + slide_next + ")").click(); } $("#slideshow a").click(function(){ $('#slider li').fadeOut(); $('#slidermenu li a').removeClass('selected'); var slide_current = $(this).attr('rel'); $('#slider_' + slide_current).fadeIn(); $('#slidermenu_' + slide_current + ' a').addClass('selected'); if($('#slidermenu li').length>1){ clearInterval(slide_timer); slide_timer = setTimeout(function(){animate_slidermenu(slide_current);},10000); } return false; }); }); $(document).ready(function(){ $("#slideshow a").click(); //CORNERS $('#home #options li').corners({ inColor: '#f1f1f1', outColor: '#ffffff', radio: 8 }); $('.message').corners({ inColor: '#FFDD99', outColor: '#ffffff', radio: 8 }); if($.browser.msie!=true){ $('#options li#cart').corners({ inColor: '#8b0000', outColor: '#ffffff', radio: 8 }); $('#options li#leftitem').corners({ inColor: '#dfdfdf', outColor: '#ffffff', radio: 8 }); } else {// f****n Internet Explorer } //MAP ZOOM $("a#region_map").fancybox({ 'titleShow' : true, 'titlePosition' : 'inside', 'transitionIn' : 'elastic', 'transitionOut' : 'elastic' }); $("a[rel=gallery]").fancybox({ 'titleShow' : true, 'titlePosition' : 'inside', 'title' : this.title, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'speedIn' : 600, 'speedOut' : 200 }); $("a[rev=movie]").fancybox({ 'padding' : 0, 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'titlePosition' : 'inside', 'title' : this.title, 'width' : 680, 'height' : 495, 'href' : this.href, 'type' : 'swf', 'swf' : { 'wmode' : 'transparent', 'allowfullscreen' : 'true' } }); $("a[movie=1]").fancybox({ 'padding' : 0, 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'titlePosition' : 'inside', 'title' : this.title, 'width' : 680, 'height' : 495, 'href' : this.href, 'type' : 'swf', 'swf' : { 'wmode' : 'transparent', 'allowfullscreen' : 'true' } }); $('.scroll-pane').jScrollPane({ dragMinHeight:29, dragMaxHeight:29 }); //$(".accordion").accordion({ header: 'h2',collapsible: true,autoHeight: false,active:false }); });