﻿// JScript File
function getClientHeight()
{
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight + "px";
}

$(document).ready(function(){
    //---------------------------------------------------------------------
    $(":text").focus(function() { $(this).toggleClass("hightlight"); });
    $(":text").blur(function() { $(this).removeClass("hightlight"); });
    $(":password").focus(function() { $(this).toggleClass("hightlight"); });
    $(":password").blur(function() { $(this).removeClass("hightlight"); });
    //---------------------------------------------------------------------


var hc = $("#text").height();
var hr = $("#right").height();
var hl = $("#left").height();

if(hc < hr || hc < hl)
{
	if(hc < hr) hc = hr;
	if(hc < hl) hc = hl;
	$("#text").css("height",hc  + "px");
}

$("div.itemNewProductsDefault:nth-child(odd)").css("border-right", "1px dashed #AAAAAA");

$("#font_size").click(function(){
	if($(this).text() == "увеличить шрифт")
		{$("body").css("font-size", "10pt"); $(this).text("уменьшить шрифт");}
	else
		{$("body").css("font-size", "8pt"); $(this).text("увеличить шрифт");}
	});
});

