// JavaScript Document
$(document).ready(function(){
	// Hover for top menu
	$(".menu_top a").mouseover(function(){
		$(this).animate({ opacity: "0.6" }, 300);		
		});
	$(".menu_top a").mouseout(function(){
		$(this).animate({ opacity: "1" }, 300);		
		});
	
	// Hover summary blocks
	$(".block ").mouseover(function(){
		obj = $(this).find("h2");
		obj.css({color:"#ffcc00"});
		$(this).addClass("blockhover");		
		});
	$(".block ").mouseout(function(){
		obj = $(this).find("h2");
		obj.css({color:"#333333"});
	    $(this).removeClass("blockhover");		
		});
	
	$(".block ").click(function(){
		obj = $(this).find("a");
		if (obj.attr("href")!=undefined){
		document.location = obj.attr("href");
		}
		});
	
	// form related
	$(":text").click(function(){
			$(this).css( { "border-color" : '#ffcc00' } )
			});
		$(":text").blur(function(){
			$(this).css( { "border-color" : '#cccccc' } )
			});
	});




function flashWrite(file,width,height){
		document.write("<object type='application/x-shockwave-flash' width='"+width+"' height='"+height+"' data='"+file+"'>	<param name='movie' value='"+file+"' /><param name='quality' value='high' /><param name='wmode' value='opaque' /><embed src='"+file+"' quality='high'   wmode='opaque'></embed></object>");	
	}
	

