function SubtextResize(item,height){
	blockItemHide = document.getElementById("hide-"+item);
	blockItemShow = document.getElementById("show-"+item);
	blockItem = document.getElementById(item);
	if(blockItemHide.style.display != 'block') {
		 $('#'+item).animate({
			"height": $('#inner-'+item).height()
  			}, 1000, function() {
				blockItemHide.style.display = "block";	
				blockItemShow.style.display = "none";
		});
		
	}
	else {	
		 $('#'+item).animate({
			"height": height+'px'
  			}, 1000, function() {
				blockItemHide.style.display = "none";	
				blockItemShow.style.display = "block";
		});
	}
}

$(document).ready(function() {
	$("a.fancybox").fancybox({
			'titlePosition': 'inside'
	});
	$('#news-scroll').cycle({ 
   	 fx:     'fade', 
   	 timeout: 5000, 
	    pager:  '#news-nav' 
	});
	$('a.tip').tooltip({
		'fontsize': '13px',
		'fontcolor': 'white',
		'bordercolor': '#aa1710',
		'bgcolor': '#aa1710'
	}); 	 
});

// --- FLASH ---
var flashvars = {};
	flashvars.flashVarFilm = "spot.flv";
	var params = {};
	params.wmode ="opaque";
var attributes = {};
attributes.id = "player";
swfobject.embedSWF("swf/player.swf", "player", "640", "360", "9.0.0", "swf/expressInstall.swf", flashvars, params, attributes);


// Google analitics
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-6555287-23']);
_gaq.push(['_trackPageview']);
(function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	})();
