/// <reference path="~/js/jquery-1.4.3.min.js" />

$(document).ready(function() {

	// autocomplete keywords
	if ( $("#multikeyword").is(":visible") )
	{
		$("#multikeyword").autocomplete("/downloadxml.pp", {
				minChars:2,
				matchSubset:1,
				extraParams:{option:'autocompletekeywords'},
				cacheLength:1,
				selectOnly:1
		});
	}

	// mouseover for thumbnails
	$(".thumbnail").each(function() {
		$(this).qtip(
		{
			content: {
				url: 'generalpurpose.pp',
				data: { 'showpicture': $(this).attr('id'), 'tpl': 'page_preview' },
				method: 'get'
			},
			position: {
				target: 'mouse',
				adjust: { screen: true, mouse: true },
				corner: {
					target: 'topLeft',
					tooltip: 'topLeft'
				}
			},
			style: {
				width: 'auto',
				padding: 10

			},
			show: { effect: { type: 'fade', length: 400 } }
		});
	});
	
	



});


	
	
	
