//for front top first
function industryBit(){
		var industry;
		jQuery(':checkbox[name=industryCond]:checked').each(function(){
			industry=industry | jQuery(this).val();
		});
		
		var priceFromDis=jQuery('#priceFromDis').html();
		if(priceFromDis=='下限なし'){
			priceFromDis='';
		}
		jQuery('#priceFrom').val(priceFromDis);
		
		var priceToDis=jQuery('#priceToDis').html();
		if(priceToDis=='上限なし'){
			priceToDis='';
		}
		jQuery('#priceTo').val(priceToDis);
		
		return industry;
	}
	
	jQuery(document).ready(function(){
		jQuery('#historyList').click(function(){
			
			var offset=jQuery('#historyBox1').offset();
			
			var Vtop=jQuery('#historyBoxList').height()-10;
			
			jQuery('#historyBoxList').css('left',offset.left);
			jQuery('#historyBoxList').css('top',offset.top+Vtop);
			
			jQuery('#historyBoxList').show(); 
			
		});
		jQuery('#historyBoxClose').click(function(){
			$('#historyBoxList').hide(); 
			
		});
		jQuery('#searchShopBtn').click(function(){
			$('#searchMode').val("s");
			var industry=industryBit();
			jQuery('#industry').val(industry);
			
		});
		jQuery('#searchGalBtn').click(function(){
			$('#searchMode').val("g");
			var industry=industryBit();
			jQuery('#industry').val(industry);	
		});
		jQuery('.historyBox').ToolTipDemo('#FFFFFF');
		
		jQuery(document).blur(function(){
			ff2C();
		}).focus(function(){
			ff2C();
		});
	});
	
	mySlider("slider-range",0,42000,0,42000,2000,"priceFromDis","priceToDis","priceFrom","priceTo","");
	
	function ff2C(){
		
		//---------------add by yanzn at 2009-05-05 for manzoku top-----------------------
		var isFF2=jQuery.browser.mozilla && (parseFloat(jQuery.browser.version) < 1.9);
		if(isFF2){
			var bc=jQuery("#topSearchLayout").css("border-collapse");
		if(bc == "collapse" || bc == "" ){
			jQuery("#topSearchLayout").css("border-collapse","inherit");
		}
		else{
			jQuery("#topSearchLayout").css("border-collapse","");
			}
		}
		//---------------add by yanzn at 2009-05-05 for manzoku top-----------------------
	}