

$(document).ready(function(){
// clear session
wireUpEvents();
// $(window).unload( function () {
// alert("Bye now!"); 
// } );
//sliding
	
	$('#cycle_magazine').cycle({ 
		fx:     'scrollRight', 
		speed:  'fast',  
		speed:   500, 
		timeout: 4000,
		next:   '#next2', 
		prev:   '#prev2' 
	});

	$('#cycle_text').cycle({ 
		fx:     'scrollDown', 
		speed:   500, 
		timeout: 4000,
		next:   '#next1', 
		prev:   '#prev1' 
	});
	
//block
	$(".table_career .zeb01, .table_career .zeb02 ").click(function(){
		window.location=$(this).find("a").attr("href");return false;
	});
	
//box expand
	$(".btn_readmore").click(function(){
		$(this).hide()
		$(this).next().show();
		$(this).parent().prev().prev().children().css({'height':'auto'});
		return false;
	});
	$(".btn_close").click(function(){
		$(this).hide()
		$(this).prev().show();
		$(this).parent().prev().prev().children().css({'height':'115px'});
		return false;
	});

//clear fix after
	$(".cl").parent().append('<div class="cf"></div>');
	
/*
//buat test	
	alert($(this).parent().prev().prev().children().attr('class'));
	
		, blindY, turnUp, scrollHorz, scrollRight	
					   
//slider
	$('#slider').nivoSlider();
	
//Validasi kontak pesan
	$("#form_contact").validate({
		rules: {
			firstname: "required",
			email: {
				required: true,
				email: true
			},
			inquiry: "required",
			code: {
				required: true,
				remote: "ajax_captcha.php"
			}
		},
		messages: {
			firstname: "Please insert your name",
			email: "Please insert your valid email",
			inquiry: "Please write a message",
			code: "Please view blue box"
		}
	});
*/

});	

