// JavaScript Document

$(function(){

			$("ul.sf-menu").superfish();
			
			$("#page h1").wrapInner('<span></span>');
			
			$('.imot').click(function(){
									  location.href=$(this).find('a.ttl').attr('href');
									  });
			
					
			$('.blinkyblock').mouseover(function(){
												//alert('f');
												animate_blink($(this).attr('id'),7);
												 
				
				});
					
			$('table>tbody>tr:odd').addClass('odd');		
			$('table>tbody>tr:odd>th').addClass('oddh');		
										});


function animate_blink(obj,n){
	if(n%2) $('#'+obj).css('background','#FFFAF7');
	else $('#'+obj).css('background','transparent');
	m=3;
	if (n>0){
		if(n%2)
		 var t=setTimeout('animate_blink("'+obj+'",'+(n-1)+')',m*20);
		else 
		 var t=setTimeout('animate_blink("'+obj+'",'+(n-1)+')',m*20);
		}
	else $('#'+obj).css('background','transparent');
	}
