$(document).ready(function(){	$(".showBigPic, .rightColTitle777").click(function(){      $("#bigDiv").fadeIn("slow");      var bigPic = $(this).attr("bigPicAttr");      var siteLinkAttr = $(this).attr("siteLinkAttr");      var ScreenWidth = $(window).width()-526;	  var ScreenHeight = $(window).height()-433;	  var LefFinal = ScreenWidth / 2;	  var TopFinal = ScreenHeight / 2;      var bbooddyy = $(document).scrollTop();	  var ttt = TopFinal + bbooddyy;	  var ttt2 = parseInt(ttt);	 // alert(ttt2+100);	  $("#mainDivID").css({left: LefFinal+"px", top: TopFinal+"px"}); //TopFinal	  $("#mainDivID").css("//top", ttt2+"px");	  $("#mainDivID").fadeIn("slow");	  $("#mainDivID").show();	  $("#bigPicHere").html("<img class=\"bigPicPP\" src=\""+bigPic+"\" style=\"width: 500px;\">");	  $(".seeSite").attr("href",siteLinkAttr);	  $(".bigPicPP").click(function(){		$("#bigDiv").fadeOut("slow");      	$("#mainDivID").hide();	  });	});	$(".closeAll").click(function(){      $("#bigDiv").fadeOut("slow");      $("#mainDivID").hide();	});	$(".seeSite").click(function(){		$("#bigDiv").hide();        $("#mainDivID").hide();	});	$("#resetForm").click(function(){		$("#fio").val("");		$("#fio2").val("");		$("#company").val("");		$("#phone").val("");		$("#email").val("");		$("#coments").val("");        $(".interest").attr("checked","");        $("#f1").css("color","#5B5B5B");        $("#f2").css("color","#5B5B5B");        $("#f3").css("color","#5B5B5B");        $("#f4").css("color","#5B5B5B");        $("#f5").css("color","#5B5B5B");        $("#f6").css("color","#5B5B5B");        $("#f7").css("color","#5B5B5B");        $("#f8").css("color","#5B5B5B");        $("#fio").css("border","solid 1px #06B513");        $("#fio2").css("border","solid 1px #06B513");        $("#phone").css("border","solid 1px #06B513");        $("#email").css("border","solid 1px #06B513");	});	$("#it1").change(function(){		if($(this).attr("checked") == true)$("#f1").css("color","#CE3D1B");		else $("#f1").css("color","#5B5B5B");	});	$("#it2").change(function(){		if($(this).attr("checked") == true)$("#f2").css("color","#CE3D1B");		else $("#f2").css("color","#5B5B5B");	});	$("#it3").change(function(){		if($(this).attr("checked") == true)$("#f3").css("color","#CE3D1B");		else $("#f3").css("color","#5B5B5B");	});	$("#it4").change(function(){		if($(this).attr("checked") == true)$("#f4").css("color","#CE3D1B");		else $("#f4").css("color","#5B5B5B");	});	$("#it5").change(function(){		if($(this).attr("checked") == true)$("#f5").css("color","#CE3D1B");		else $("#f5").css("color","#5B5B5B");	});	$("#it6").change(function(){		if($(this).attr("checked") == true)$("#f6").css("color","#CE3D1B");		else $("#f6").css("color","#5B5B5B");	});	$("#it7").change(function(){		if($(this).attr("checked") == true)$("#f7").css("color","#CE3D1B");		else $("#f7").css("color","#5B5B5B");	});	$("#it8").change(function(){		if($(this).attr("checked") == true)$("#f8").css("color","#CE3D1B");		else $("#f8").css("color","#5B5B5B");	});	$("#sendForm").click(function(){		var countErrors = 0;		var fio = $("#fio").val();		var fio2 = $("#fio2").val();		var company = $("#company").val();		var phone = $("#phone").val();		var email = $("#email").val();		var coments = $("#coments").val();        if(fio == "")        {        	$("#fio").css("border","solid 1px #B32D13");        	countErrors ++;        }        else        {        	$("#fio").css("border","solid 1px #06B513");        }        if(fio2 == "")        {        	$("#fio2").css("border","solid 1px #B32D13");        	countErrors ++;        }        else        {        	$("#fio2").css("border","solid 1px #06B513");        }        if(phone == "")        {        	 $("#phone").css("border","solid 1px #B32D13");        	 countErrors ++;        }        else        {        	 $("#phone").css("border","solid 1px #06B513");        }        if(email == "")        {        	$("#email").css("border","solid 1px #B32D13");        	countErrors ++;        }        else        {        	 $("#email").css("border","solid 1px #06B513");        }        if(countErrors > 0)        {        }        else        {            $("#theMainestDivID").hide();            $("#indicatorID").show();            var fioFinal = fio + " " + fio2;            JsHttpRequest.query(		    "/skin/php/lg_sendFeedback.php",		    {		   		"fio": fioFinal,				"company": company,				"phone": phone,				"email": email,				"coments": coments		    },		    function (result,errors)		    {				if (result)				{					var ok = result.ok;					if(ok == 'ok')					{						$("#indicatorID").hide();						$("#successTextID").show();					}					else					{					}				}				else				{				}		    },		    true		   )        }	});	$("img.arrows").hover(function(){        $(this).attr("src","/images/aaaRRooW2.gif");	},	function()	{		$(this).attr("src","/images/aaaRRooW.gif");	});/*ODESSA PICS PREV / NEXT*/    $(".prevODpic").click(function(){    	var imgID = $("#curPicID").val();        var landSiteIS = $("#landSiteIS").val();    		JsHttpRequest.query(		    "/skin/php/lg_prevODpic.php",		    {		   		"imgID": imgID,		   		"landSiteIS": landSiteIS		    },		    function (result,errors)		    {				if (result)				{					var ok = result.ok;					var bigP = result.bigP;					var headLine = result.headLine;					var pIDnew = result.pIDnew;					if(ok == 'ok')					{						$("#curPicID").val(pIDnew);						$("#bigPicHereOD").html("<img src=\"/langsAdmin/odessaPics/"+bigP+"\" style=\"width: 774px;\">");						$("#pictureDesc").text(headLine);					}					else					{					}				}				else				{				}		    },		    true		   )    });    $(".nextODpic").click(function(){    	var imgID = $("#curPicID").val();    	var landSiteIS = $("#landSiteIS").val();    		JsHttpRequest.query(		    "/skin/php/lg_nextODpic.php",		    {		   		"imgID": imgID,		   		"landSiteIS": landSiteIS		    },		    function (result,errors)		    {				if (result)				{					var ok = result.ok;					var bigP = result.bigP;					var headLine = result.headLine;					var pIDnew = result.pIDnew;					if(ok == 'ok')					{						$("#curPicID").val(pIDnew);						$("#bigPicHereOD").html("<img src=\"/langsAdmin/odessaPics/"+bigP+"\" style=\"width: 774px;\">");						$("#pictureDesc").text(headLine);					}					else					{					}				}				else				{				}		    },		    true		   )    });/*END*/});