var Page = {

	init : function() {
		$("a", ".direct-edit").each(function() {
			var $el = $(this);
			$el.hover(function() {
				$box = $(this).parents(".direct-edit-box");
				$box.addClass("hover");
				$box.width($box.parent().width());
				$box.height($box.parent().height());
			}, function() {
				$box = $(this).parents(".direct-edit-box");
				$box.removeClass("hover");
				$box.width(0);
				$box.height(0);
			});
		});
	},
	
	addSwf : function ( container, path, width, height, name)
	{
		var flashvars = {};
        var params = {
                play : 'true',
                loop : 'true',
                menu : 'true',
                quality : 'high',
                align : 'middle',                   
                scale : 'exactfit',
                wmode : 'transparent',
                devicefont : 'false',
                id : container,
                bgcolor : '#ffffff',
                name : name,                    
                allowFullScreen : 'false',
                allowScriptAccess :'sameDomain'
        };
        var attributes = {};
        swfobject.embedSWF( path, container, width, height, '9.0.0', Commons.url("/resources/site/js/expressInstall.swf"), flashvars, params, attributes);
	}
};

