			JQ(function(){

				// Accordion
				//JQ("#accordion").accordion({ autoHeight: false, collapsible: true, active: false });
				JQ("#accordion").accordion({ header: "h3" });

				// Tabs
				JQ("#tabs").tabs({
					cookie: {
						// store cookie for a day, without, it would be a session cookie
						expires: 1
					}
				});

				// Dialog
				JQ("#dialog").dialog({
					autoOpen: false,
					width: 600,
					buttons: {
						"Ok": function() {
							JQ(this).dialog("close");
						},
						"Cancel": function() {
							JQ(this).dialog("close");
						}
					}
				});

				// Dialog Link
				JQ("#dialog_link").click(function(){
					JQ("#dialog").dialog("open");
					return false;
				});

				// Datepicker
				JQ("#datepicker").datepicker({
					inline: true
				});

				// Slider
				JQ("#slider").slider({
					range: true,
					values: [17, 67]
				});

				// Progressbar
				JQ("#progressbar").progressbar({
					value: 20
				});

				// Qtip
				JQ('#qtipbox').qtip({
					content: {
						text:'This is an active list element',
						title: { text: 'Rate this content'},
						prerender:true
					},

					show: 'mouseover',
					hide: {
						delay:1000,
						fixed:true,
						when:'mouseout'
					},
					position: {
						corner: {
							target: 'bottomMiddle',
							tooltip: 'topMiddle'
						},
						adjust:{
							y:20
						}
					},
					style: {
						border: {
							width: 2,
							radius: 6
						},
						name:'light',
						tip: 'topMiddle'
					}
				});

				// hover states on the static widgets
				JQ("#dialog_link, ul#icons li").hover(
					function() { JQ(this).addClass("ui-state-hover"); },
					function() { JQ(this).removeClass("ui-state-hover"); }
				);

			});

