jQuery(document).ready(function($) {
		var popups = $.cookies.get( 'POPUPS' );
		if ( popups ) {
			if ( typeof( popups ) != 'object' ) {
				// IE workaround - IE does not correctly eval cookie
				popups = eval( popups );
			}
			for (i=0; i<popups.length; i++ ) {
				var item = popups[ i ];
				var el = $( item.selector ).addClass( 'iframe' );
				item.type = 'iframe';
				item.onStart = function( selectedArray, selectedIndex, selectedOpts )
					{
						selectedOpts.href = selectedOpts.href + '?popup=True';
					};
				el.fancybox( item );
			}
		}
	});