// JavaScript Document

 
	
function bover() {
	//alert('hi');
		var pos = $('#mybasket').position();
			// .outerWidth() takes into account border and padding.
		var width = $('#mybasket').outerWidth()/2;
		var height = $('#mybasket').outerHeight();
	
		$("#basketo").css({
			position: "absolute",
			top: pos.top +height-18+"px",
			left: pos.left-210+ "px"
		//	left: pos.left-133+ "px"
		}).show();
		return this;
}



function product_hover() {
	
 	var pos = $('#mybasket').position();
	// .outerWidth() takes into account border and padding.
	var width = $('#mybasket').outerWidth()/2;
	var height = $('#mybasket').outerHeight();
	
	$("#basketo").css({
		position: "absolute",
		top: pos.top +height-18 + "px",
		left:pos.left-210+ "px"
	}).fadeIn('slow').idle(2000).fadeOut('slow');

}

function win_popup() {
		
		$('#winner').click(function () {
				$('.win_popup').toggle('slow');
		});
		
		$('#close').click(function () {
				$('.win_popup').hide('slow');
		});
		
}

function tabs(xy,xz)
{
	$('.'+xy).click(function(event)
	{
		var id=$(this).attr('id');
		//	alert(id);
		var tab=id+1;
		//	alert(tab);
		$('.'+xz+' .tab_info').hide();
				 
		$('.'+xy).removeClass("active");
		$('#'+id).addClass("active");
		$('#'+tab).show();
	});
}
