$('a.print').click(function(){
	window.print();
	return false;
});

$('#client-works select').change(function() {
	var choosedClient = $(this.options[this.selectedIndex]).attr('id');
	var defaultClient = $(this.options[0]).attr('id');

	$('.portfolio-column li').each(function() {
		if($(this).attr('dalee:client') == choosedClient || choosedClient == defaultClient) {
			$(this).removeClass('hideWork');
		} else {
			$(this).addClass('hideWork');
		}
	});
});


$('.flash').each(function() {
	w = $('object', this).attr('width');
	h = $('object', this).attr('height');
	p = $('object', this).attr('path');

	var so = new SWFObject(p, this.id, w, h, '8', '#FFFFFF');
	so.write(this.id);
});
