	function resizing()
	{
		var aw = $("#all").width();
		var sw = (aw-1000)/2;
		$(".space").width(sw);
	}
	

	
jQuery(document).ready(function()
{
	
	
	//resizing();
	
	$(window).resize(function()
	{
		//resizing();
	});
	
	$('#tab1').click(function(event)
	{
		event.preventDefault();
	});
	
	$('#tab1').click(function()
	{
		$('.div2').hide();
		$('.div1').show();
		$(this).addClass('service_act');
		$('#tab2').removeClass('service_act');
		$('#tab1 a').removeClass('u_dashed').addClass('nodecoration');
		$('#tab2 a').removeClass('nodecoration').addClass('u_dashed');
	});

	$('#tab2').click(function(event)
	{
		event.preventDefault();
	});
	
	$('#tab2').click(function()
	{
		$('.div1').hide();
		$('.div2').show();
		$(this).addClass('service_act');
		$(this).css('left','20px');
		$('#tab1').removeClass('service_act');
		$('#tab2 a').removeClass('u_dashed').addClass('nodecoration');
		$('#tab1 a').removeClass('nodecoration').addClass('u_dashed');
	});

	
	$('.another_item a').click(function(e)
	{
		e.preventDefault();
	});
	
	$('.another_item a').click(function()
	{
		$('.another_item li').removeClass('item_right_act');
		var id = $(this).attr('rel');
		$('#'+id).addClass('item_right_act');
	});
	
	
	$('a.cart_delete').mouseover(function()
	{
		var rel = $(this).attr('rel');
		$('#'+rel).attr('src','/images/cart_delete_hover.png');
	});
	$('a.cart_delete').mouseout(function()
	{
		var rel = $(this).attr('rel');
		$('#'+rel).attr('src','/images/cart_delete.png');
	});
	
	$('.addto').mouseover(function()
	{
		$(this).attr('src','/images/add_to_basket_h.png');
	});
	$('.addto').mouseout(function()
	{
		$(this).attr('src','/images/add_to_basket.png');
	});
	
	$('.addto').mousedown(function()
	{
		$(this).attr('src','/images/add_to_basket_a.png');
		$(this).css('position','relative').css('top','2px');
	});
	$('.addto').mouseup(function()
	{
		$(this).attr('src','/images/add_to_basket_a.png');
		$(this).css('position','relative').css('top','0');
	});
	
	$('.del_change').change(function()
	{
		var rel = $(this).attr('rel');
		$('.delivery').removeClass('delivery_act');
		$('#'+rel).addClass('delivery_act');
		$('.del_change').attr('checked','');
		$(this).attr('checked','checked');
	});
	
	
	$('.plusphone').click(function(event)
	{
		event.preventDefault();
	});
	
	$('.plusphone').click(function()
	{
		if ($('.hid').css('display')=='none'){
			$('.hid').show();
		}
		else {
			$('.hid').hide();
		}
	});
	
	$('.q_add').click (function() {
		$("#q-cont").show();
	});
	$('.close').click (function() {
		$("#q-cont").hide();
		return false;
	}); 
	
 Array.prototype.inArray = function ( search_phrase )
	 {
	 for( var i = 0; i < this.length; i++ ) {
	 if( search_phrase == this[i] ) {
	 return i;
	 }
	 }
	 return false;
	 }; 
	
	$('#q-cont').click (function(e)
		 {
		 var r = $(e.target).parents().map(function ()
		 {
		 return this.id;
		 }).get();

		 var pos = r.inArray('q-cont');
		 if (!pos) $("#q-cont").hide();
		 }); 
		 
		 
	$('.logorainet').mouseover (function()
	 {
		$('.logorainet img').attr('src','/images/rainet_h.png');
	 }); 
	$('.logorainet').mouseout (function()
	 {
		$('.logorainet img').attr('src','/images/rainet.png');
	 }); 	 
})

//resizing();




