$(document).ready(function() {
	//var a=1;
	var bigImagex=$("#pendbigImg")[0].src;
	var bigImageWidthx = $("#pendbigImg")[0].width;
	var bigImageHeightx = $("#pendbigImg")[0].height;
	
	$(".pandimg").click( function(){
		viewerShow(this.i);
		return false;
	}).mouseover( function(){
		$("#pendbigImg")[0].src = this.bsrc;
		$("#pendbigImg")[0].width = this.bwidth;
		$("#pendbigImg")[0].height = this.bheight;
	}).mouseout( function(){
		$("#pendbigImg")[0].src = bigImagex;
		$("#pendbigImg")[0].width = bigImageWidthx;
		$("#pendbigImg")[0].height = bigImageHeightx;
	});
	$("#pendbigImg").click( function(){
		viewer.show(0);
	});
	
	$('#mycarousel').jcarousel();
	
	//۸䶯
	$("#proType").change( function(){
		var inde = this.options.selectedIndex;
		//alert(inde);
		$("#price").html( this.options[inde].price );
		$("#oldPrice").html( this.options[inde].old_price );
		$("#savingsPrice").html( "Savings: " + this.options[inde].savings_price );
	});
	
	//ȫѡ
	$("#proNumber").focus( function(){
		this.select();
	});
	
	
	$(".gocarbigbtn").mouseover( function(){
		$( this ).fadeTo(1,0.8); 
	}).mouseout( function(){
		$( this ).fadeTo(1,1); 
	}).mousedown( function(){
		$( this ).fadeTo(1,1); 
	});

});



function addCarTest(){
	carInfoShow();
}

