
// Spring Mobil jquery customization

   $(document).ready(function() {
	  
      $('.feature').mouseover(function()
      {
         this.setAttribute('className', this.getAttribute('className') + ' hover');
		 this.setAttribute('class', this.getAttribute('class') + ' hover');
      });
	  
      $('.feature').mouseout(function()
      {
         this.setAttribute('className', this.getAttribute('className').replace(' hover', ''));
		 this.setAttribute('class', this.getAttribute('class').replace(' hover', ''));
      });
	  
      $('.feature').click(function()
      {
		location.href=$(this).find('a:eq(0)').attr('href');
      });
	  
      $('.magasinblock').mouseover(function()
      {
         this.setAttribute('className', this.getAttribute('className') + ' hover');
		 this.setAttribute('class', this.getAttribute('class') + ' hover');
      });
	  
      $('.magasinblock').mouseout(function()
      {
         this.setAttribute('className', this.getAttribute('className').replace(' hover', ''));
		 this.setAttribute('class', this.getAttribute('class').replace(' hover', ''));
      });
	  
      $('.magasinblock').click(function()
      {
		location.href=$(this).find('a:eq(0)').attr('href');
      });
	  
      $('#spring-mobil-magasin').click(function()
      {
		location.href='/magasin/';
      });
   });

   function switchStyle(styleName)
   {
      $('link[@rel*=style][title]').each(function(i)
      {
         this.disabled = true;
         if (this.getAttribute('title') == styleName) this.disabled = false;
      });
	  $.cookie('location', styleName, { path: '/', expires: 365 });
   }

