$(function(){
	$('form').jqTransform();
	$('form').submit(function(){	});
	
	var currentWindow = 0;

	//====[ Enable shading ]====
	$('.window_shade').mouseover(function()
	{
		$("#" + this.id + "_t").removeClass("window_title");
		$("#" + this.id + "_t").addClass("window_title_highlighted");
	});
	
	$('.window_shade').mouseout(function()
	{
		$("#" + this.id + "_t").removeClass("window_title_highlighted");
		$("#" + this.id + "_t").addClass("window_title");
	});

	$('.window_shade').click(function()
	{
		$("#" + this.id + "_c").slideToggle("fast");
		if ($("#" + this.id).is(".shade_toggle"))
			$.get("s.php", { w: this.id });
	});
	
	$('a[id^="desc_num_"]').click(function(){
		$(this).qtip({
			content: { url: this.href, prerender: true },
			position: { adjust: { screen: true } },
			show: { solo: true, ready: true },
			style: { tip: { corner: 'topLeft', color: 'transparent', size: { x: 0, y: 0 } }, padding: 0, border: { width: 0 } }
		});
		return false;
	});
	
	$('a[id^="desc_num_"]').mouseout(function(){
		$(this).qtip('destroy');
	});	

});
