window.addEvent('domready', function() {
	//switch Container
	$$('div.switchContainer').addEvent('mouseover',
			function() {
				switcher = this.getElement("div");
				switcher.removeClass("switch");
				switcher.addClass("hover");
			});
	$$('div.switchContainer').addEvent('mouseout',
			function() {
				switcher = this.getElement("div");
				switcher.removeClass("hover");
				switcher.addClass("switch");
			});

	$$('div.switchContainer').addEvent('click',
			function() {
				hyperlink=this.getElementsByTagName("a")[0];
				document.location.href=hyperlink;
			});

	$$('div.pager div').addEvent('click', function() {
		hyperlink = this.getElementsByTagName("a")[0];
		document.location.href = hyperlink;
	});
	
	
	//switch Container Active
	$$('div.switchContainer_active').addEvent('mouseover',
			function() {
				switcher = this.getElement("div");
				switcher.removeClass("switch");
				switcher.addClass("hover");
			});
	$$('div.switchContainer_active').addEvent('mouseout',
			function() {
				switcher = this.getElement("div");
				switcher.removeClass("hover");
				switcher.addClass("switch");
			});
	
	$$('div.switchContainer_active').addEvent('click',
			function() {
				hyperlink=this.getElementsByTagName("a")[0];
				document.location.href=hyperlink;
			});
	
	
	$$('div.special_cond').addEvent('mouseover',
			function() {
				this.removeClass("special_cond");
				this.addClass("special_cond_hover");
			});
	$$('div.special_cond').addEvent('mouseout',
			function() {
				this.removeClass("special_cond_hover");
				this.addClass("special_cond");
			});
	$$('div.special_cond').addEvent('click',
			function() {
				hyperlink=this.getElementsByTagName("a")[0];
				document.location.href=hyperlink;
			});

	//switch Container Active
	$$('div.special_cond_active').addEvent('mouseover',
			function() {
			this.removeClass("special_cond_active");
			this.addClass("special_cond_hover");
			});
	$$('div.special_cond_active').addEvent('mouseout',
			function() {
			this.removeClass("special_cond_hover");
			this.addClass("special_cond_active");
			});
	$$('div.special_cond_active').addEvent('click',
			function() {
				hyperlink=this.getElementsByTagName("a")[0];
				document.location.href=hyperlink;
			});

	
	$$('div.list').addEvent('mouseover',
			function() {
				this.removeClass("list");
				this.addClass("list_hover");
			});
	$$('div.list').addEvent('mouseout',
			function() {
				this.removeClass("list_hover");
				this.addClass("list");
			});
	$$('div.list').addEvent('click',
			function() {
				hyperlink=this.getElementsByTagName("a")[0];
				document.location.href=hyperlink;
			});

	//list Container Active
	$$('div.list_active').addEvent('mouseover',
			function() {
			this.removeClass("list_active");
			this.addClass("list_hover");
			});
	$$('div.list_active').addEvent('mouseout',
			function() {
			this.removeClass("list_hover");
			this.addClass("list_active");
			});
	$$('div.list_active').addEvent('click',
			function() {
				hyperlink=this.getElementsByTagName("a")[0];
				document.location.href=hyperlink;
			});



	$$('div.button_basket').addEvent('click',
			function() {
				hyperlink=this.getElementsByTagName("a")[0];
				document.location.href=hyperlink;
			});

	$$('div.basket').addEvent('click',
			function() {
				hyperlink=this.getElementsByTagName("a")[0];
				document.location.href=hyperlink;
			});


});

