// <![CDATA[
			
$(document).ready(function(){
	$('#slide_2').css({display:'block'});
	cssmenu();
	/*
	animatesize();
	
	
	$(window).resize(function(){
		$("#enter").unbind("click");
		$('#container').animate({marginLeft:'0px'});	
		animatesize();	
	});
	
	
	$('#enter').click(function () {
		$('#slide_1').remove();
	return false;
	});	
	
	$('#back').click(function () {
		$('#slide_2').remove();
		window.location = 'http://localhost/part exchange co 2009/';
	return false;
	});	
	*/	
});

this.cssmenu = function(){
	$("#homemenu > ul > li ").hover(function(event){											  
		$(this).find('a').css({color:'#913291'});			
    },function(){
		$(this).find('a').css({color:'#333333'});
	});
}

this.animatesize = function(){
	var height_window = $(window).height(); 
	var width_window = $(window).width();

	var margin_left = (width_window/2) - (840/2);
	$('.slide').css({width:width_window+'px'});
	$('.content').css({marginLeft:margin_left+'px'});
	$('#enter').click(function () {
		$('#container').animate({marginLeft:'-'+width_window+'px'}, 600);
	return false;
	});	
	
	$('#back').click(function () {
		$('#container').animate({marginLeft:'0px'}, 600);
	return false;
	});
}

// ]]>
