$(function(){
	/*
	$('table').each(function() {
		if ($(this).attr('border') == '0') {
			$(this).css('border-style','none');
			$(this).find('td').css('border-style','none');
		}
	});
	*/	
});


$(document).ready(function(){
	
	var marquees = {
		306: 478,
		299: 477,
		297: 446,
		296: 476,
		301: 476,
		298: 478,
		276: 479
	}; 
	
	if (typeof marquees[page_id] != 'undefined') {
		$('.articles-marquee-div').html('<marquee class="articles-marquee" behavior="scroll" scrollamount="2" direction="left" width="980"></marquee>');
		$('.articles-marquee').load('index.php?option=18&action=articles_marquee_show&art_id='+marquees[page_id], function(){
				$('.articles-marquee').marquee('pointer').mouseover(function () {
		            $(this).trigger('stop');
			        }).mouseout(function () {
			            $(this).trigger('start');
			        }).mousemove(function (event) {
			            if ($(this).data('drag') == true) {
			                this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
			            }
			        }).mousedown(function (event) {
			            $(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
			        }).mouseup(function () {
			            $(this).data('drag', false);
		        });	
			
		});
	}
	

	
});

function cvFromSubmit() {	
	var req = $("[title='*']").filter("[value='']");
	$('#cv_fillreq').slideUp('slow');
 	
 	if(req.length > 0) {
		$('#cv_fillreq').slideDown('slow');
		return false;
	}
	else {
		return true;
	}
	
	return false;
}

