function look_special(id, path)
{
	$('#ans_'+id+'_special').slideToggle();
	if($('#link_'+id).attr('src')== path+'img/down16.png')
	$('#link_'+id).attr('src', path+'img/up16.png');
	else
	$('#link_'+id).attr('src',path+'img/down16.png');
}

$(document).ready(function(){
	$("a.fancy").fancybox({
	"opacity" 		:	false,
	"autoScale"		:	true,
	"centerOnScroll":	true,
	"hideOnOverlayClick"	:	true,
	"hideOnContentClick"	:	false,
	"overlayShow"	:	true,
	"overlayOpacity"	:	0.3,
	"overlayColor"	:	"#666",
	"titleShow"		:	true,
	"titlePosition"		:	"inside",
	"transitionIn"	: 	"elastic",
	"transitionOut"	:	"elastic"
	});

	$(".text[default]").focus(function () {
		if($(this).attr("value") == $(this).attr("default"))
		{
			$(this).attr("value", "");
		}
	});

	$(".text[default]").blur(function () {
		if($(this).attr("value") == "")
		{
			$(this).attr("value", $(this).attr("default"));
		}
	});

	$(".corners").corner("8px");

	$(".video_player_div").each(function (i) {
		var id = $(this).attr("id");
		var file = $(this).attr("filename");
		var preview = $(this).attr("preview");
		var v_comment = $(this).attr("comment");
		var player_path = "/ext-admin/players/";
		swfobject.embedSWF(player_path + "uppod.swf", id, "505", "380", "9.0.115.0", player_path + "expressinstall.swf",
		{
			wmode: "transparent",
			file: file,
			poster: preview,
			comment: v_comment,
			st: player_path+"styles/standartgray.txt"
		},
		{
			wmode: "transparent",
			allowFullScreen: "true",
			allowScriptAccess: "always",
			movie: player_path + "uppod.swf"
		}
		);
	});
});
