$(function() {

	var vars = [], hash;
	var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
	for(var i = 0; i < hashes.length; i++)
	{
	hash = hashes[i].split('=');
	vars.push(hash[0]);
	vars[hash[0]] = hash[1];
	 }
	var page = vars.place;

/*
	if(page == "dealer"){
         $("#content").show("slow");
		 $("#top").hide();
    } else if (page == "coll"){
		 $("#coll").show("slow");
		 $("#top").hide();
		 $("#content").hide();
	}else {
         $("#content").hide();
		 $("#coll").hide();
	}
*/

	if(page == "dealer"){
         $("#content").show("slow");
		 $("#topic").hide();

    } else {
         $("#content").hide();
		 $("#topic").hide();
	}

	$('#thumbs a').lightBox({
		overlayBgColor:'#FFF'
	});

	$(".collection").click(function(){
		$("#coll").show("slow");
		//$("#top").hide();
		$("#topic").hide();
		$("#content").hide("slow");
	});

	$(".dealer").click(function(){
		$("#content").show("slow");
		$("#topic").hide();
	});

	$(".dcloase").click(function(){
		$("#content").hide("slow");
	});

	$(".topic").click(function(){
		//$("#top").hide();
		$("#topic").show("slow");
		$("#content").hide();
	});

	$(".tcloase").click(function(){
		$("#topic").hide("slow");
	});

	$("#top").click(function(){
		//$("#top").hide();
		$("#coll").show("slow");
		$("#topic").hide();
	});


});

