$.ajaxSetup({
	url: "/",
	global: false,
	cache: false,
	type: "POST" });

String.prototype.trim = function()
{
	return( this.replace(/^\s+/, '').replace(/\s+$/, '') );
}

function showfullfade( lnk, title, w, h )
{
	$("#fullfade").height( $("#footer").position().top + 400 );
	$("#fullfade").show( );
	
	if ( lnk.substring( lnk.lastIndexOf( "." ) ) == ".mov" )
	{	
		$("#fullcontent").html( "<div id='flashcontent'></div><br />" + title + "<br /><a href='javascript:;' onclick='hidefullfade();'>close</a>" );
		var att = { data:"./player.swf", width:"640", height:"480" };
		var par = { allowfullscreen:"true", allowscriptaccess:"always", flashvars:"file=ccz.flv&image=preview.jpg" };
		
		swfobject.createSWF(att, par, "flashcontent" );
	}
	else		
		$("#fullcontent").html( "<img src='" + lnk + "' alt='' /><br /><br />" + title + "<br /><a href='javascript:;' onclick='hidefullfade();'>close</a>" );	

	$("#fullcontent").css( "top", jQuery(document).scrollTop() + 20 );
	$("#fullcontent").fadeIn( "slow" );
}

function hidefullfade( )
{
	$("#fullfade").hide( );
	$("#fullcontent").html( "zzz" );
	$("#fullcontent").hide( );
}

