﻿	var bolLtIE6 = false;
if($.browser.msie && (jQuery.browser.version < 6)) {bolLtIE6 = true}
var bolEqIE6 = false;
if($.browser.msie && (jQuery.browser.version == 6)) {bolEqIE6 = true}
	
	function showLonin(isShowLogin, sf, la, lf, sa){
		document.getElementById(sf).style.display = (isShowLogin?"block":"none");
		document.getElementById(la).style.display = (isShowLogin?"block":"none");;
		document.getElementById(lf).style.display = (isShowLogin?"none":"block");
		document.getElementById(sa).style.display = (isShowLogin?"none":"block");
		return false;		
	}
	
$(document).ready
(
	function()
	{
	
	 	if(!bolLtIE6) 
	 	{
			if($("#ctl00_ctl00_cphContent_phContent_showorder").val()== ''){
				$("#ctl00_ctl00_cphContent_phContent_orderfull").slideUp("slow");
				
				//add un-obtrusive event functions to the DOM
				$("#getorder").click(function(){
					//alert("Thanks for visiting!");
					hidestart();
				});
			}
		}
 	}
 	
);

function hidestart() {
	$("#ctl00_ctl00_cphContent_phContent_start").slideUp("slow");
	$("#ctl00_ctl00_cphContent_phContent_orderfull").show();
	$("#ctl00_ctl00_cphContent_phContent_AutoOrder1_ucSpare1_rcbSpareCondition").val($("#ctl00_ctl00_cphContent_phContent_OrderSmall1_rcbSpareCondition").val());
	$("#ctl00_ctl00_cphContent_phContent_AutoOrder1_ucSpare1_rtbSpareName").val($("#ctl00_ctl00_cphContent_phContent_OrderSmall1_rtbDetalName").val());
}

//function fnShowProps(obj, objName){
//    var result = "";
//    for (var i in obj) // обращение к свойствам объекта по индексу
//        result += objName + "." + i + " = " + obj[i] + "<br />\n";
//    document.write(result);
//}
