/*
 * cliPackage - version 0.6 
 * bundled on 15/08/2007
 * © 2007 Piotr Kilczuk
 */ 

function cliPackage(onFinishRedirect){
	parser = './clipackage?' + 'cliParams[screen][height]=' + encodeURI(screen.height) + '&' + 'cliParams[screen][width]=' + encodeURI(screen.width);
	if (typeof document.body.style.maxHeight == "undefined") {
		parser += '&cliParams[simplified]=true';
	}	
	new Ajax.Request(parser, {
		method: 'get',
		onComplete: function(transport){
			if(onFinishRedirect) {
				top.location.href = onFinishRedirect;
			}else{
				if(!window.opera){ 
					top.location.reload(); 
				}else{
					//top.location.href = top.location.href + '#opera';
					top.location.href = '..';
				}
			}
		}
	});
}