
/*
 * Concept-Layer
 */
var Page = Class.create();
Page.prototype = {
	initialize: function(params){
		Event.observe(document, 'dom:loaded', this.initPage.bindAsEventListener(this));
	},
	
	initPage: function() {
	
		// Start Hyphenator
/*
		if (typeof Hyphenator != 'undefined') {
			
			Hyphenator.config({
				displaytogglebox: false,
				minwordlength: 4,
				remoteloading: false,
				intermediatestate: 'visible'
				//onerrorhandler: function(e) {}
			});
			Hyphenator.run();
		}
*/	
		// Start sIFR
		if (typeof sIFR == "function") {
		
			// This is the preferred "named argument" syntax
			sIFR.replaceElement(named({
				sSelector: "body h1",
				sFlashSrc: "flash/archer.swf",
				sColor: "#000000",
				sLinkColor: "#000000",
				sBgColor: "transparent",
				sHoverColor: "#CCCCCC",
				nPaddingTop: 0,
				nPaddingBottom: 20,
				sFlashVars: "textalign=left&o1ffsetTop=6"
			}));
		}
	}
}

var kpPage = new Page(); 

function getCollections(imagesFlow,aid,target,eid){
	strURL='?';
	new Ajax.Request(strURL+'userAction=imagesFlow&aid='+aid+'&target='+target+'&eid='+eid,
			  {
				method:'get',
				onSuccess: function(transport){
				  var response = transport.responseText || "";
				  document.getElementById(imagesFlow).innerHTML=response;
				},
				onFailure: function(){}
			  });
			  
}