jQuery(function($){
	$w = 170; // width for the text panel on the banner top

	/*** mask the check box remember me**/
	$("#UserPanelContainer #LoginFormctn_Settings #LoginForm .field.checkbox input").jqTransCheckBox();

	/*** make left and righr collumns equal **/

	$("#TopDeals.Home ul li").equalHeights();
	$("#TopDeals.Home ul li .TextCtn").equalHeights();

	$(".LayoutCollumn").equalHeights(485);
	ResizeLeftContent();
	function ResizeLeftContent(){
		var TotalH 	= $("#leftCol").height();
		var TopH	= $("#LeftTop").height();
		var BottH	= $("#LeftBottom").height();

		var DifH	= TotalH - TopH - BottH;
		$("#LeftContent").height(DifH);
		$("#leftCol").css({"overflow":"hidden"});
	}



	/** top banners cycle ***/
	//move to jsbannerInside.js

//	$('#BannersTopCtnALL div.bannerText')
//		.width(0)
//		.css({"opacity":0})
//		.parent().parent()
//		.cycle({
//			fx:    'fade',
//			//delay: -20000,
//			//speed:  1000,
//			speed:    1000,
//			timeout:  TransitionSpeed,
//			random: 1,
//
//			before:  function(currSlideElement, nextSlideElement, options, forwardFlag){
//							BeforeSlide(currSlideElement, nextSlideElement, options, forwardFlag);
//						},
//			after:  function(currSlideElement, nextSlideElement, options, forwardFlag){
//							AfterSlide(currSlideElement, nextSlideElement, options, forwardFlag);
//						}
////			end:	function(options){
////							alert("end");
////							applyStartCss();
////						}
//		});
//
//
//	function BeforeSlide(currSlideElement, nextSlideElement, options, forwardFlag){
//		$(currSlideElement).find("div.bannerText").css({"width":0,"opacity":0});
//		$(nextSlideElement).find("div.bannerText").css({"width":0,"opacity":0});
//
//	}
//
//	function AfterSlide(currSlideElement, nextSlideElement, options, forwardFlag){
//		$(currSlideElement).find("div.bannerText").animate({
//			width:$w,
//			opacity:1
//		},500,function(){
//			$(nextSlideElement).find("div.bannerText").animate({
//				width:$w,
//				opacity:1
//			},500);
//		});
//	}

	/************************************************************************/


	/***********************+ BANNERS CLICK COUNTER *****************************/
	$("a#bannerLeft").click(function(){
		$location = $(this).attr("href");
		$.ajax({
			url: 'Home/CountClickBanLeft?Bypass_Login=1',
			dataType: 'json',
			success: function(data) {
				window.location = $location;
        	},
        	error:function(data){
        		window.location=$location;
        	}
		});
		return false;

	});
	$("a#bannerRight").click(function(){
		$location = $(this).attr("href");
		$.ajax({
			url: 'Home/CountClickBanRight?Bypass_Login=1',
			dataType: 'json',
			success: function(data) {
				window.location = $location;
        	},
        	error:function(data){
        		window.location=$location;
        	}
		});
		return false;

	});
	$("a#bannerFull").click(function(){
		$location = $(this).attr("href");
		$.ajax({
			url: 'Home/CountClickBanFull?Bypass_Login=1',
			dataType: 'json',
			success: function(data) {
				window.location = $location;
        	},
        	error:function(data){
        		window.location=$location;
        	}
		});
		return false;

	});






//	function applyStartCss(){
//		$('#BannersTopCtnALL div.bannerText').width(0).css({"opacity":0});
//	}



});/** END OF JQUERY READY **/
