$(document).ready(function() {	
	/*
	$("ul.sf-menu").superfish({
		autoArrows:  false,
		delay:       400,                             // one second delay on mouseout 
		animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
		speed:       'fast',                          // faster animation speed 
		autoArrows:  false,                           // disable generation of arrow mark-up 
		dropShadows: false                            // disable drop shadows 			
	}); 
	
	// wrap 'span' to nav page link
	$('.topnav ul').children('li').each(function() {
		$(this).children('a').html('<span>'+$(this).children('a').text()+'</span>'); // add tags span to a href
	});
	$('#nav1 ul').children('li').each(function() {
		$(this).children('a').html('<span>'+$(this).children('a').text()+'</span>'); // add tags span to a href
	});
	*/
	
	$('a.fancybox').fancybox({showSocial:false});
	$("a.iframe").fancybox(
		{
			margin:0, 
			padding:0, 
			width:468, 
			height:450
		}
		
	);
	// Partners
	$('.tab').click(function(e){
		if($('#footer-partners').css('height') == '120px'){
			$('#footer-partners .resize > div').hide();
			$('#footer-partners').stop().animate({
				height: '4px'
			}, 500, 'swing' );
		}else{
			$('#footer-partners .resize > div').hide();
			$('#footer-partners').stop().animate({
				height: '120px'
			}, 500, function(){
				$('#footer-partners .resize > div').show();
			});
		}
	});

});

function showmore(id){
	/*
	var i = 0;
	for (i=0; i<7; i++){
		document.getElementById("gcat_0"+(i+1)).style.visibility = 'hidden';
		document.getElementById("gcat_0"+(i+1)).style.display = 'none';
	}
	*/
	if (document.getElementById(id).style.visibility == 'visible'){
		document.getElementById(id).style.visibility = 'hidden';
		document.getElementById(id).style.display = 'none';
	}else{
		document.getElementById(id).style.visibility = 'visible';
		document.getElementById(id).style.display = 'block';
	}
}
// Cufon.replace('h1,h2,h3,.rss a.big,ul.catnav,blockquote p',{hover:true});
