﻿$(document).ready(function(){

/* making unactive links */
	$('a.current').click(function () { 
      return false; 
    });
	
	$('.next_unactive A').click(function () { 
      return false; 
    });
	
	$('.next_unactive A').click(function () { 
      return false; 
    });	
	
	$('A.prev_unactive').click(function () { 
      return false; 
    });
	
	$('A.next_unactive').click(function () { 
      return false; 
    });
	
/* */	


/* clear NAME and EMAIL imputs on focus */
	$('#input_name').focus(function(){
		$(this).val('');
	}).blur(function(){
		if($(this).val() == '') $(this).val('Ваше имя*');
	});
	
	$('#input_email').focus(function(){
		$(this).val('');
	}).blur(function(){
		if($(this).val() == '') $(this).val('Ваш e-mail*');
	});
/* */	
	




/* making stripped columns on collections page equal height */
	var height_left = $('.col_left_narrow').height();
	var height_sub1 = $('.col_right_wide .submenu').height();
	var height_sub2 = $('.col_right_wide .blog_box').height();
	var height_diff = height_left - height_sub1 - height_sub2 - 2*36 - 12;
	if (height_diff > 0) {
		$('#right_column_height').height(height_diff);
	} else {
		$('#left_column_height').height(-height_diff);
	};
	
	/* on collections inner page */
	var height_left = $('.col_left_products').height();
	var height_sub1 = $('.col_right_products .submenu').height();
	var height_sub2 = $('.col_right_products .products_collection_text').height();
	var height_diff = height_left - height_sub1 - height_sub2 - 2*36;
	if (height_diff > 0) {
		$('#right_column_prod_height').height(height_diff);
	} else {
		$('#left_column_prod_height').height(-height_diff);
	};

/* */


/* map points text  */
	$("#point_1").mouseover(function(){
      $("#point_1_text").fadeIn('slow');
    }).mouseout(function(){
      $("#point_1_text").fadeOut('slow');
    });
	
	$("#point_2").mouseover(function(){
      $("#point_2_text").fadeIn('slow');
    }).mouseout(function(){
      $("#point_2_text").fadeOut('slow');
    });
	
	$("#point_3").mouseover(function(){
      $("#point_3_text").fadeIn('slow');
    }).mouseout(function(){
      $("#point_3_text").fadeOut('slow');
    });

	$('.point_link').click( function () { 
		return false; 
	});

/* */

});						   
