$(document).ready(function(){ 
	$("ul.sf-menu").superfish({ pathClass:  'current' });
	$("label").inFieldLabels();
	$('.tooltips').tipsy({fade: true, gravity: 's'});

	var flashvars = {
		xmlfile: $('#slideshowxml').val(),
		xmlfiletype: "Default"
	}
	
	var params = {
		wmode: "transparent",
		allowfullscreen: "true"
	}        
	
//	var attributes = {}
//	swfobject.embedSWF("gallery.swf", "slider", "570", "360", "9.0.45", false, flashvars, params, attributes);
//	swfobject.createCSS("#slider","outline:none");
//}); 
	var attributes = {}
	if ($('#slider').length) {
		swfobject.embedSWF("gallery.swf", "slider", "570", "360", "9.0.45", false, flashvars, params, attributes);
		swfobject.createCSS("#slider","outline:none");
	}
}); 