$estr = function() { return js.Boot.__string_rec(this,''); }
se = {}
se.publicclass = {}
se.publicclass.socialgrid = {}
se.publicclass.socialgrid.ApplicationConstants = function() { }
se.publicclass.socialgrid.ApplicationConstants.__name__ = ["se","publicclass","socialgrid","ApplicationConstants"];
se.publicclass.socialgrid.ApplicationConstants.prototype.__class__ = se.publicclass.socialgrid.ApplicationConstants;
org = {}
org.puremvc = {}
org.puremvc.haxe = {}
org.puremvc.haxe.interfaces = {}
org.puremvc.haxe.interfaces.INotification = function() { }
org.puremvc.haxe.interfaces.INotification.__name__ = ["org","puremvc","haxe","interfaces","INotification"];
org.puremvc.haxe.interfaces.INotification.prototype.getBody = null;
org.puremvc.haxe.interfaces.INotification.prototype.getName = null;
org.puremvc.haxe.interfaces.INotification.prototype.getType = null;
org.puremvc.haxe.interfaces.INotification.prototype.setBody = null;
org.puremvc.haxe.interfaces.INotification.prototype.setType = null;
org.puremvc.haxe.interfaces.INotification.prototype.toString = null;
org.puremvc.haxe.interfaces.INotification.prototype.__class__ = org.puremvc.haxe.interfaces.INotification;
org.puremvc.haxe.patterns = {}
org.puremvc.haxe.patterns.observer = {}
org.puremvc.haxe.patterns.observer.Notification = function(name,body,type) { if( name === $_ ) return; {
	this.name = name;
	if(body != null) this.body = body;
	if(type != null) this.type = type;
}}
org.puremvc.haxe.patterns.observer.Notification.__name__ = ["org","puremvc","haxe","patterns","observer","Notification"];
org.puremvc.haxe.patterns.observer.Notification.prototype.body = null;
org.puremvc.haxe.patterns.observer.Notification.prototype.getBody = function() {
	return this.body;
}
org.puremvc.haxe.patterns.observer.Notification.prototype.getName = function() {
	return this.name;
}
org.puremvc.haxe.patterns.observer.Notification.prototype.getType = function() {
	return this.type;
}
org.puremvc.haxe.patterns.observer.Notification.prototype.name = null;
org.puremvc.haxe.patterns.observer.Notification.prototype.setBody = function(body) {
	this.body = body;
}
org.puremvc.haxe.patterns.observer.Notification.prototype.setType = function(type) {
	this.type = type;
}
org.puremvc.haxe.patterns.observer.Notification.prototype.toString = function() {
	var msg = "Notification Name: " + this.getName();
	msg += "\nBody:" + (this.body == null?"null":this.body.toString());
	msg += "\nType:" + (this.type == null?"null":this.type);
	return msg;
}
org.puremvc.haxe.patterns.observer.Notification.prototype.type = null;
org.puremvc.haxe.patterns.observer.Notification.prototype.__class__ = org.puremvc.haxe.patterns.observer.Notification;
org.puremvc.haxe.patterns.observer.Notification.__interfaces__ = [org.puremvc.haxe.interfaces.INotification];
events = {}
events.IEventDispatcher = function() { }
events.IEventDispatcher.__name__ = ["events","IEventDispatcher"];
events.IEventDispatcher.prototype.addEventListener = null;
events.IEventDispatcher.prototype.dispatchEvent = null;
events.IEventDispatcher.prototype.hasEventListener = null;
events.IEventDispatcher.prototype.removeEventListener = null;
events.IEventDispatcher.prototype.willTrigger = null;
events.IEventDispatcher.prototype.__class__ = events.IEventDispatcher;
events.EventDispatcher = function(target) { if( target === $_ ) return; {
	this._target = (target == null?this:target);
	this._listeners = new Hash();
	this._dispatchingForwarders = new Array();
}}
events.EventDispatcher.__name__ = ["events","EventDispatcher"];
events.EventDispatcher.removeDispatchingForwarder = function(from,forwarder) {
	from._dispatchingForwarders.remove(forwarder);
}
events.EventDispatcher.hasDispatchingForwarder = function(dispatcher,possibleForwarder) {
	if(dispatcher == possibleForwarder) return true;
	{
		var _g = 0, _g1 = dispatcher._dispatchingForwarders;
		while(_g < _g1.length) {
			var forwarder = _g1[_g];
			++_g;
			if(events.EventDispatcher.hasDispatchingForwarder(forwarder,possibleForwarder)) return true;
		}
	}
	return false;
}
events.EventDispatcher.addDispatchingForwarder = function(to,forwarder) {
	if(!Lambda.has(to._dispatchingForwarders,forwarder)) to._dispatchingForwarders.push(forwarder);
}
events.EventDispatcher.prototype._dispatchingForwarders = null;
events.EventDispatcher.prototype._listeners = null;
events.EventDispatcher.prototype._target = null;
events.EventDispatcher.prototype.addEventListener = function(type,listener,phase,priority) {
	if(priority == null) priority = 0;
	if(phase == null) phase = events.EventPhase.EPTarget;
	var typeListeners = this._listeners.get(type);
	if(typeListeners == null) {
		this._listeners.set(type,typeListeners = new Array());
		{
			var _g = 0;
			while(_g < 3) {
				var i = _g++;
				typeListeners.push(new events.ListenerStack());
			}
		}
	}
	typeListeners[phase[1]].add(listener,priority);
}
events.EventDispatcher.prototype.dispatchEvent = function(e) {
	if(e.dispatched) e = e.clone();
	if(e.__pInfos == null) {
		var prop = e.__pInfos = new events.EventPropagation__(this);
		try {
			prop.phase = events.EventPhase.EPCapture;
			this.dispatchEvent(e);
			prop.phase = events.EventPhase.EPTarget;
			this.dispatchEvent(this.duplicateEvent(e));
			prop.phase = events.EventPhase.EPBubble;
			this.dispatchEvent(e);
		}
		catch( $e0 ) {
			if( js.Boot.__instanceof($e0,events.PropagationStop__) ) {
				var ps = $e0;
				null;
			} else throw($e0);
		}
		e.dispatched = e.__pInfos.complete = true;
	}
	else {
		var $e = (e.getPhase());
		switch( $e[1] ) {
		case 0:
		{
			{
				var _g = 0, _g1 = this._dispatchingForwarders;
				while(_g < _g1.length) {
					var parent = _g1[_g];
					++_g;
					parent.dispatchEvent(e);
				}
			}
			if(e.getTarget() != this) this.dispatchLocal(e);
		}break;
		case 1:
		{
			this.dispatchLocal(e);
		}break;
		case 2:
		{
			if(e.getTarget() != this) this.dispatchLocal(e);
			{
				var _g = 0, _g1 = this._dispatchingForwarders;
				while(_g < _g1.length) {
					var parent = _g1[_g];
					++_g;
					parent.dispatchEvent(e);
				}
			}
		}break;
		}
	}
	return e.isDefaultPrevented();
}
events.EventDispatcher.prototype.dispatchLocal = function(e) {
	var prop = e.__pInfos;
	prop.currentTarget = this;
	var listeners = this._listeners.get(e.type);
	if(listeners == null) return;
	listeners[e.getPhase()[1]].dispatch(e);
	if(prop.stopped) throw events.PropagationStop__.PSNormal;
}
events.EventDispatcher.prototype.duplicateEvent = function(e) {
	var ret = e.clone();
	ret.__pInfos = e.__pInfos;
	return ret;
}
events.EventDispatcher.prototype.hasEventListener = function(type) {
	if(!this._listeners.exists(type)) return false;
	{
		var _g = 0, _g1 = this._listeners.get(type);
		while(_g < _g1.length) {
			var ls = _g1[_g];
			++_g;
			if(ls.getCount() > 0) return true;
		}
	}
	return false;
}
events.EventDispatcher.prototype.removeEventListener = function(type,listener,phase) {
	if(phase == null) phase = events.EventPhase.EPTarget;
	var typeListeners = this._listeners.get(type);
	if(typeListeners == null) return;
	typeListeners[phase[1]].remove(listener);
}
events.EventDispatcher.prototype.toString = function() {
	return "[EventDispatcher" + (((this._target == this)?"":" &" + this._target)) + "]";
}
events.EventDispatcher.prototype.willTrigger = function(type) {
	if(this.hasEventListener(type)) return true;
	{
		var _g = 0, _g1 = this._dispatchingForwarders;
		while(_g < _g1.length) {
			var forwarder = _g1[_g];
			++_g;
			if(forwarder.willTrigger(type)) return true;
		}
	}
	return false;
}
events.EventDispatcher.prototype.__class__ = events.EventDispatcher;
events.EventDispatcher.__interfaces__ = [events.IEventDispatcher];
se.publicclass.socialgrid.view = {}
se.publicclass.socialgrid.view.components = {}
se.publicclass.socialgrid.view.components.Grid = function(grid) { if( grid === $_ ) return; {
	this._grid = grid;
	this._list = new Array();
	this._emptyBoxes = new Array();
	this.slugDataList = new Array();
	this.offsetY = 0;
	events.EventDispatcher.apply(this,[this]);
}}
se.publicclass.socialgrid.view.components.Grid.__name__ = ["se","publicclass","socialgrid","view","components","Grid"];
se.publicclass.socialgrid.view.components.Grid.__super__ = events.EventDispatcher;
for(var k in events.EventDispatcher.prototype ) se.publicclass.socialgrid.view.components.Grid.prototype[k] = events.EventDispatcher.prototype[k];
se.publicclass.socialgrid.view.components.Grid.prototype._columns = null;
se.publicclass.socialgrid.view.components.Grid.prototype._emptyBoxes = null;
se.publicclass.socialgrid.view.components.Grid.prototype._grid = null;
se.publicclass.socialgrid.view.components.Grid.prototype._list = null;
se.publicclass.socialgrid.view.components.Grid.prototype._positions = null;
se.publicclass.socialgrid.view.components.Grid.prototype._rows = null;
se.publicclass.socialgrid.view.components.Grid.prototype.appendChild = function(child) {
	this._grid.appendChild(child.element);
	child.init();
	events.EventDispatcher.addDispatchingForwarder(child,this);
}
se.publicclass.socialgrid.view.components.Grid.prototype.clear = function() {
	if(this._grid != null) this._grid.innerHTML = "";
	this._list = new Array();
	this._positions = new Array();
	this._emptyBoxes = new Array();
	this._grid.style.height = Std.string(0) + "px";
}
se.publicclass.socialgrid.view.components.Grid.prototype.createEmptyBoxes = function() {
	this._emptyBoxes = new Array();
	var l = Std["int"](this.height() / (se.publicclass.socialgrid.view.components.Grid.GRID_WIDTH + se.publicclass.socialgrid.view.components.Grid.GRID_SPACING)) * this._columns;
	var box = new se.publicclass.socialgrid.view.components.containers.AbstractBox();
	var index = 0;
	{
		var _g = 0;
		while(_g < l) {
			var i = _g++;
			if(this._positions[i] == null) {
				box = new se.publicclass.socialgrid.view.components.containers.AbstractBox();
				box.setX(Std["int"]((se.publicclass.socialgrid.view.components.Grid.GRID_WIDTH + se.publicclass.socialgrid.view.components.Grid.GRID_SPACING) * (i % this._columns)));
				box.setY(Std["int"](i / this._columns) * (se.publicclass.socialgrid.view.components.Grid.GRID_HEIGHT + se.publicclass.socialgrid.view.components.Grid.GRID_SPACING));
				this.appendChild(box);
				this._emptyBoxes.push(box);
			}
		}
	}
	var clear = js.Lib.document.createElement("div");
	clear.className = "clear";
	this._grid.appendChild(clear);
}
se.publicclass.socialgrid.view.components.Grid.prototype.createItem = function(item,type) {
	if(type == null) type = "";
	var box = new se.publicclass.socialgrid.view.components.containers.AbstractBox(item);
	var t = item.type;
	if(type != "") t = type;
	switch(t) {
	case "project":{
		box = new se.publicclass.socialgrid.view.components.containers.ProjectBox(item,(item.parentId == 0 && type == ""));
	}break;
	case "twitter":{
		box = new se.publicclass.socialgrid.view.components.containers.TwitterBox(item);
	}break;
	case "blog":{
		box = new se.publicclass.socialgrid.view.components.containers.BlogBox(item);
	}break;
	case "about":{
		box = new se.publicclass.socialgrid.view.components.containers.AboutBox(item);
	}break;
	case "contact":{
		box = new se.publicclass.socialgrid.view.components.containers.ContactBox(item);
	}break;
	case "home":{
		box = new se.publicclass.socialgrid.view.components.containers.HomeBox(item);
	}break;
	case "photos":{
		box = new se.publicclass.socialgrid.view.components.containers.FlickrBox(item);
	}break;
	}
	this._list.push(box);
	this.appendChild(box);
}
se.publicclass.socialgrid.view.components.Grid.prototype.getPositions = function(index,obj) {
	var positions = new Array();
	var length = obj.columns * obj.rows;
	var l = 0;
	{
		var _g = 0;
		while(_g < length) {
			var i = _g++;
			l = index + (i % obj.columns);
			l += Std["int"](i / obj.columns) * this._columns;
			positions.push(l);
		}
	}
	return positions;
}
se.publicclass.socialgrid.view.components.Grid.prototype.getY = function() {
	return this.offsetY;
}
se.publicclass.socialgrid.view.components.Grid.prototype.height = function() {
	var col = Std["int"](this._positions.length / this._columns) + 1;
	if((this._positions.length / this._columns) + 1 == col) col--;
	return col * (se.publicclass.socialgrid.view.components.Grid.GRID_WIDTH + se.publicclass.socialgrid.view.components.Grid.GRID_SPACING);
}
se.publicclass.socialgrid.view.components.Grid.prototype.isPositionMatch = function(index,obj) {
	if((index % this._columns) + obj.columns > this._columns) return false;
	var positions = this.getPositions(index,obj);
	{
		var _g = 0;
		while(_g < positions.length) {
			var key = positions[_g];
			++_g;
			if(this._positions[key] != null) return false;
		}
	}
	return true;
}
se.publicclass.socialgrid.view.components.Grid.prototype.offsetY = null;
se.publicclass.socialgrid.view.components.Grid.prototype.onResize = function() {
	var w = Std["int"](js.Lib.document.body.offsetWidth - se.publicclass.socialgrid.view.components.Grid.MARGIN * 1.5);
	if(w < se.publicclass.socialgrid.view.components.Grid.MINIMUM_WIDTH) w = se.publicclass.socialgrid.view.components.Grid.MINIMUM_WIDTH;
	this._columns = Std["int"](w / (se.publicclass.socialgrid.view.components.Grid.GRID_WIDTH + se.publicclass.socialgrid.view.components.Grid.GRID_SPACING));
	if(this._positions != null && this._positions.length < 0) this._rows = Std["int"](this._positions.length / this._columns);
	this.positionGrid();
	this.spacingRight = js.Lib.document.body.offsetWidth - se.publicclass.socialgrid.view.components.Grid.MARGIN - this.width();
	this._grid.style.height = Std.string(this.height()) + "px";
}
se.publicclass.socialgrid.view.components.Grid.prototype.positionGrid = function() {
	{
		var _g = 0, _g1 = this._emptyBoxes;
		while(_g < _g1.length) {
			var b = _g1[_g];
			++_g;
			this.removeChild(b);
		}
	}
	this._positions = new Array();
	var match = false;
	var setPosition = false;
	var positions;
	var i = 0;
	var startIndex = 0;
	{
		var _g = 0, _g1 = this._list;
		while(_g < _g1.length) {
			var g = _g1[_g];
			++_g;
			while(!match) {
				setPosition = false;
				setPosition = match = this.isPositionMatch(i,g);
				if(setPosition) {
					g.setX(Std["int"]((se.publicclass.socialgrid.view.components.Grid.GRID_WIDTH + se.publicclass.socialgrid.view.components.Grid.GRID_SPACING) * (i % this._columns)));
					g.setY(Std["int"](i / this._columns) * (se.publicclass.socialgrid.view.components.Grid.GRID_HEIGHT + se.publicclass.socialgrid.view.components.Grid.GRID_SPACING));
					positions = this.getPositions(i,g);
					{
						var _g2 = 0;
						while(_g2 < positions.length) {
							var l = positions[_g2];
							++_g2;
							this._positions[l] = g;
						}
					}
					match = true;
				}
				i++;
			}
			while(this._positions[startIndex] != null) startIndex++;
			match = false;
			i = startIndex;
		}
	}
	this.createEmptyBoxes();
}
se.publicclass.socialgrid.view.components.Grid.prototype.removeChild = function(child) {
	if(child != null && child.element != null) this._grid.removeChild(child.element);
}
se.publicclass.socialgrid.view.components.Grid.prototype.slugDataList = null;
se.publicclass.socialgrid.view.components.Grid.prototype.spacingRight = null;
se.publicclass.socialgrid.view.components.Grid.prototype.update = function(f) {
	if(f == null) f = 0;
	this.onResize();
	this._grid.style.top = Std.string(this.getY()) + "px";
}
se.publicclass.socialgrid.view.components.Grid.prototype.width = function() {
	return (this._columns) * (se.publicclass.socialgrid.view.components.Grid.GRID_WIDTH + se.publicclass.socialgrid.view.components.Grid.GRID_SPACING);
}
se.publicclass.socialgrid.view.components.Grid.prototype.y = null;
se.publicclass.socialgrid.view.components.Grid.prototype.__class__ = se.publicclass.socialgrid.view.components.Grid;
events.Event = function(type,bubbles,cancelable) { if( type === $_ ) return; {
	if(cancelable == null) cancelable = false;
	if(bubbles == null) bubbles = false;
	this.type = type;
	this.bubbles = bubbles;
	this.cancelable = cancelable;
	this.dispatched = false;
}}
events.Event.__name__ = ["events","Event"];
events.Event.prototype.__pInfos = null;
events.Event.prototype.bubbles = null;
events.Event.prototype.cancelable = null;
events.Event.prototype.clone = function() {
	var ret = new events.Event(this.type,this.bubbles);
	return ret;
}
events.Event.prototype.currentTarget = null;
events.Event.prototype.dispatchID = null;
events.Event.prototype.dispatched = null;
events.Event.prototype.formatToString = function(className,fields) {
	var a = [];
	{
		var _g = 0;
		while(_g < fields.length) {
			var field = fields[_g];
			++_g;
			a.push(field + "=" + Reflect.field(this,field));
		}
	}
	return "[" + className + " " + a.join(",") + "]";
}
events.Event.prototype.getCurrentTarget = function() {
	return this.__pInfos.currentTarget;
}
events.Event.prototype.getDispatchID = function() {
	return this.__pInfos.dispatchID;
}
events.Event.prototype.getPhase = function() {
	return this.__pInfos.phase;
}
events.Event.prototype.getTarget = function() {
	return this.__pInfos.target;
}
events.Event.prototype.isDefaultPrevented = function() {
	return this.__pInfos.defaultPrevented;
}
events.Event.prototype.phase = null;
events.Event.prototype.preventDefault = function() {
	if(this.cancelable) this.__pInfos.defaultPrevented = true;
}
events.Event.prototype.stopImmediatePropagation = function() {
	this.__pInfos.stoppedImmediately = true;
}
events.Event.prototype.stopPropagation = function() {
	this.__pInfos.stopped = true;
}
events.Event.prototype.target = null;
events.Event.prototype.toString = function() {
	return this.formatToString("Event",["type","phase"]);
}
events.Event.prototype.type = null;
events.Event.prototype.__class__ = events.Event;
haxe = {}
haxe.Http = function(url) { if( url === $_ ) return; {
	this.url = url;
	this.headers = new Hash();
	this.params = new Hash();
	this.async = true;
}}
haxe.Http.__name__ = ["haxe","Http"];
haxe.Http.requestUrl = function(url) {
	var h = new haxe.Http(url);
	h.async = false;
	var r = null;
	h.onData = function(d) {
		r = d;
	}
	h.onError = function(e) {
		throw e;
	}
	h.request(false);
	return r;
}
haxe.Http.prototype.async = null;
haxe.Http.prototype.headers = null;
haxe.Http.prototype.onData = function(data) {
	null;
}
haxe.Http.prototype.onError = function(msg) {
	null;
}
haxe.Http.prototype.onStatus = function(status) {
	null;
}
haxe.Http.prototype.params = null;
haxe.Http.prototype.postData = null;
haxe.Http.prototype.request = function(post) {
	var me = this;
	var r = new js.XMLHttpRequest();
	var onreadystatechange = function() {
		if(r.readyState != 4) return;
		var s = (function($this) {
			var $r;
			try {
				$r = r.status;
			}
			catch( $e1 ) {
				{
					var e = $e1;
					$r = null;
				}
			}
			return $r;
		}(this));
		if(s == undefined) s = null;
		if(s != null) me.onStatus(s);
		if(s != null && s >= 200 && s < 400) me.onData(r.responseText);
		else switch(s) {
		case null:{
			me.onError("Failed to connect or resolve host");
		}break;
		case 12029:{
			me.onError("Failed to connect to host");
		}break;
		case 12007:{
			me.onError("Unknown host");
		}break;
		default:{
			me.onError("Http Error #" + r.status);
		}break;
		}
	}
	r.onreadystatechange = onreadystatechange;
	var uri = this.postData;
	if(uri != null) post = true;
	else { var $it2 = this.params.keys();
	while( $it2.hasNext() ) { var p = $it2.next();
	{
		if(uri == null) uri = "";
		else uri += "&";
		uri += StringTools.urlDecode(p) + "=" + StringTools.urlEncode(this.params.get(p));
	}
	}}
	try {
		if(post) r.open("POST",this.url,this.async);
		else if(uri != null) {
			var question = this.url.split("?").length <= 1;
			r.open("GET",this.url + ((question?"?":"&")) + uri,this.async);
			uri = null;
		}
		else r.open("GET",this.url,this.async);
	}
	catch( $e3 ) {
		{
			var e = $e3;
			{
				this.onError(e.toString());
				return;
			}
		}
	}
	if(this.headers.get("Content-Type") == null && post && this.postData == null) r.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	{ var $it4 = this.headers.keys();
	while( $it4.hasNext() ) { var h = $it4.next();
	r.setRequestHeader(h,this.headers.get(h));
	}}
	r.send(uri);
	if(!this.async) onreadystatechange();
}
haxe.Http.prototype.setHeader = function(header,value) {
	this.headers.set(header,value);
}
haxe.Http.prototype.setParameter = function(param,value) {
	this.params.set(param,value);
}
haxe.Http.prototype.setPostData = function(data) {
	this.postData = data;
}
haxe.Http.prototype.url = null;
haxe.Http.prototype.__class__ = haxe.Http;
se.publicclass.socialgrid.view.components.containers = {}
se.publicclass.socialgrid.view.components.containers.AbstractBox = function(d) { if( d === $_ ) return; {
	this.element = js.Lib.document.createElement("div");
	this.element.className = "grid-container";
	var tween = new feffects.Tween(0,1,1000,this.element.style,"opacity");
	if(d != null) {
		this.data = d;
		this.columns = this.data.columns;
		this.rows = this.data.rows;
		this.title = this.data.title;
		this.id = this.data.id;
		this.content = this.data.content;
	}
	else {
		this.columns = 1;
		this.rows = 1;
		tween = new feffects.Tween(.5,1,1,this.element.style,"opacity");
	}
	tween.start();
	this.element.onmouseover = $closure(this,"onMouseOver");
	this.element.onmouseout = $closure(this,"onMouseOut");
	this._x = 0;
	this._y = 0;
	events.EventDispatcher.apply(this,[this]);
}}
se.publicclass.socialgrid.view.components.containers.AbstractBox.__name__ = ["se","publicclass","socialgrid","view","components","containers","AbstractBox"];
se.publicclass.socialgrid.view.components.containers.AbstractBox.__super__ = events.EventDispatcher;
for(var k in events.EventDispatcher.prototype ) se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype[k] = events.EventDispatcher.prototype[k];
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype._x = null;
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype._y = null;
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.columns = null;
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.content = null;
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.data = null;
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.element = null;
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.getX = function() {
	return this._x;
}
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.getY = function() {
	return this._y;
}
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.h = function() {
	return this.rows * (se.publicclass.socialgrid.view.components.Grid.GRID_HEIGHT + se.publicclass.socialgrid.view.components.Grid.GRID_SPACING) - se.publicclass.socialgrid.view.components.Grid.GRID_SPACING;
}
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.height = null;
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.id = null;
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.init = function() {
	this.element.style.width = this.toStringPixel(this.w());
	this.element.style.height = this.toStringPixel(this.h());
}
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.onClick = function(e) {
	var e1 = new events.Event("onClick",true);
	this.dispatchEvent(e1);
}
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.onMouseOut = function(e) {
	null;
}
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.onMouseOver = function(e) {
	null;
}
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.rows = null;
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.setX = function(val) {
	this._x = val;
	this.update();
	return this._x;
}
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.setY = function(val) {
	this._y = val;
	this.update();
	return this._y;
}
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.title = null;
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.toStringPixel = function(val) {
	return Std.string(val) + "px";
}
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.update = function() {
	this.element.style.left = this.toStringPixel(this._x);
	this.element.style.top = this.toStringPixel(this._y);
}
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.w = function() {
	return this.columns * (se.publicclass.socialgrid.view.components.Grid.GRID_WIDTH + se.publicclass.socialgrid.view.components.Grid.GRID_SPACING) - se.publicclass.socialgrid.view.components.Grid.GRID_SPACING;
}
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.width = null;
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.x = null;
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.y = null;
se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.__class__ = se.publicclass.socialgrid.view.components.containers.AbstractBox;
se.publicclass.socialgrid.view.components.containers.TextBox = function(d) { if( d === $_ ) return; {
	se.publicclass.socialgrid.view.components.containers.AbstractBox.apply(this,[d]);
	this.createTextField();
}}
se.publicclass.socialgrid.view.components.containers.TextBox.__name__ = ["se","publicclass","socialgrid","view","components","containers","TextBox"];
se.publicclass.socialgrid.view.components.containers.TextBox.__super__ = se.publicclass.socialgrid.view.components.containers.AbstractBox;
for(var k in se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype ) se.publicclass.socialgrid.view.components.containers.TextBox.prototype[k] = se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype[k];
se.publicclass.socialgrid.view.components.containers.TextBox.prototype.createTextField = function() {
	var div = js.Lib.document.createElement("div");
	div.innerHTML = "<p class='box'>" + this.title + "</p>";
	div.style.position = "absolute";
	div.style.bottom = "0px";
	div.style.width = this.toStringPixel(this.w());
	this.element.appendChild(div);
}
se.publicclass.socialgrid.view.components.containers.TextBox.prototype.update = function() {
	se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.update.apply(this,[]);
}
se.publicclass.socialgrid.view.components.containers.TextBox.prototype.__class__ = se.publicclass.socialgrid.view.components.containers.TextBox;
org.puremvc.haxe.interfaces.INotifier = function() { }
org.puremvc.haxe.interfaces.INotifier.__name__ = ["org","puremvc","haxe","interfaces","INotifier"];
org.puremvc.haxe.interfaces.INotifier.prototype.sendNotification = null;
org.puremvc.haxe.interfaces.INotifier.prototype.__class__ = org.puremvc.haxe.interfaces.INotifier;
org.puremvc.haxe.patterns.observer.Notifier = function(p) { if( p === $_ ) return; {
	this.facade = org.puremvc.haxe.patterns.facade.Facade.getInstance();
}}
org.puremvc.haxe.patterns.observer.Notifier.__name__ = ["org","puremvc","haxe","patterns","observer","Notifier"];
org.puremvc.haxe.patterns.observer.Notifier.prototype.facade = null;
org.puremvc.haxe.patterns.observer.Notifier.prototype.sendNotification = function(notificationName,body,type) {
	this.facade.sendNotification(notificationName,body,type);
}
org.puremvc.haxe.patterns.observer.Notifier.prototype.__class__ = org.puremvc.haxe.patterns.observer.Notifier;
org.puremvc.haxe.patterns.observer.Notifier.__interfaces__ = [org.puremvc.haxe.interfaces.INotifier];
org.puremvc.haxe.interfaces.IMediator = function() { }
org.puremvc.haxe.interfaces.IMediator.__name__ = ["org","puremvc","haxe","interfaces","IMediator"];
org.puremvc.haxe.interfaces.IMediator.prototype.getMediatorName = null;
org.puremvc.haxe.interfaces.IMediator.prototype.getViewComponent = null;
org.puremvc.haxe.interfaces.IMediator.prototype.handleNotification = null;
org.puremvc.haxe.interfaces.IMediator.prototype.listNotificationInterests = null;
org.puremvc.haxe.interfaces.IMediator.prototype.onRegister = null;
org.puremvc.haxe.interfaces.IMediator.prototype.onRemove = null;
org.puremvc.haxe.interfaces.IMediator.prototype.setViewComponent = null;
org.puremvc.haxe.interfaces.IMediator.prototype.__class__ = org.puremvc.haxe.interfaces.IMediator;
org.puremvc.haxe.patterns.mediator = {}
org.puremvc.haxe.patterns.mediator.Mediator = function(mediatorName,viewComponent) { if( mediatorName === $_ ) return; {
	org.puremvc.haxe.patterns.observer.Notifier.apply(this,[]);
	this.mediatorName = (mediatorName != null?mediatorName:org.puremvc.haxe.patterns.mediator.Mediator.NAME);
	if(viewComponent != null) this.viewComponent = viewComponent;
}}
org.puremvc.haxe.patterns.mediator.Mediator.__name__ = ["org","puremvc","haxe","patterns","mediator","Mediator"];
org.puremvc.haxe.patterns.mediator.Mediator.__super__ = org.puremvc.haxe.patterns.observer.Notifier;
for(var k in org.puremvc.haxe.patterns.observer.Notifier.prototype ) org.puremvc.haxe.patterns.mediator.Mediator.prototype[k] = org.puremvc.haxe.patterns.observer.Notifier.prototype[k];
org.puremvc.haxe.patterns.mediator.Mediator.prototype.getMediatorName = function() {
	return this.mediatorName;
}
org.puremvc.haxe.patterns.mediator.Mediator.prototype.getViewComponent = function() {
	return this.viewComponent;
}
org.puremvc.haxe.patterns.mediator.Mediator.prototype.handleNotification = function(notification) {
	null;
}
org.puremvc.haxe.patterns.mediator.Mediator.prototype.listNotificationInterests = function() {
	return [];
}
org.puremvc.haxe.patterns.mediator.Mediator.prototype.mediatorName = null;
org.puremvc.haxe.patterns.mediator.Mediator.prototype.onRegister = function() {
	null;
}
org.puremvc.haxe.patterns.mediator.Mediator.prototype.onRemove = function() {
	null;
}
org.puremvc.haxe.patterns.mediator.Mediator.prototype.setViewComponent = function(viewComponent) {
	this.viewComponent = viewComponent;
}
org.puremvc.haxe.patterns.mediator.Mediator.prototype.viewComponent = null;
org.puremvc.haxe.patterns.mediator.Mediator.prototype.__class__ = org.puremvc.haxe.patterns.mediator.Mediator;
org.puremvc.haxe.patterns.mediator.Mediator.__interfaces__ = [org.puremvc.haxe.interfaces.IMediator];
List = function(p) { if( p === $_ ) return; {
	this.length = 0;
}}
List.__name__ = ["List"];
List.prototype.add = function(item) {
	var x = [item];
	if(this.h == null) this.h = x;
	else this.q[1] = x;
	this.q = x;
	this.length++;
}
List.prototype.clear = function() {
	this.h = null;
	this.q = null;
	this.length = 0;
}
List.prototype.filter = function(f) {
	var l2 = new List();
	var l = this.h;
	while(l != null) {
		var v = l[0];
		l = l[1];
		if(f(v)) l2.add(v);
	}
	return l2;
}
List.prototype.first = function() {
	return (this.h == null?null:this.h[0]);
}
List.prototype.h = null;
List.prototype.isEmpty = function() {
	return (this.h == null);
}
List.prototype.iterator = function() {
	return { h : this.h, hasNext : function() {
		return (this.h != null);
	}, next : function() {
		if(this.h == null) return null;
		var x = this.h[0];
		this.h = this.h[1];
		return x;
	}}
}
List.prototype.join = function(sep) {
	var s = new StringBuf();
	var first = true;
	var l = this.h;
	while(l != null) {
		if(first) first = false;
		else s.b[s.b.length] = sep;
		s.b[s.b.length] = l[0];
		l = l[1];
	}
	return s.b.join("");
}
List.prototype.last = function() {
	return (this.q == null?null:this.q[0]);
}
List.prototype.length = null;
List.prototype.map = function(f) {
	var b = new List();
	var l = this.h;
	while(l != null) {
		var v = l[0];
		l = l[1];
		b.add(f(v));
	}
	return b;
}
List.prototype.pop = function() {
	if(this.h == null) return null;
	var x = this.h[0];
	this.h = this.h[1];
	if(this.h == null) this.q = null;
	this.length--;
	return x;
}
List.prototype.push = function(item) {
	var x = [item,this.h];
	this.h = x;
	if(this.q == null) this.q = x;
	this.length++;
}
List.prototype.q = null;
List.prototype.remove = function(v) {
	var prev = null;
	var l = this.h;
	while(l != null) {
		if(l[0] == v) {
			if(prev == null) this.h = l[1];
			else prev[1] = l[1];
			if(this.q == l) this.q = prev;
			this.length--;
			return true;
		}
		prev = l;
		l = l[1];
	}
	return false;
}
List.prototype.toString = function() {
	var s = new StringBuf();
	var first = true;
	var l = this.h;
	s.b[s.b.length] = "{";
	while(l != null) {
		if(first) first = false;
		else s.b[s.b.length] = ", ";
		s.b[s.b.length] = Std.string(l[0]);
		l = l[1];
	}
	s.b[s.b.length] = "}";
	return s.b.join("");
}
List.prototype.__class__ = List;
events.PropagationStop__ = { __ename__ : ["events","PropagationStop__"], __constructs__ : ["PSNormal","PSImmediate"] }
events.PropagationStop__.PSImmediate = ["PSImmediate",1];
events.PropagationStop__.PSImmediate.toString = $estr;
events.PropagationStop__.PSImmediate.__enum__ = events.PropagationStop__;
events.PropagationStop__.PSNormal = ["PSNormal",0];
events.PropagationStop__.PSNormal.toString = $estr;
events.PropagationStop__.PSNormal.__enum__ = events.PropagationStop__;
org.puremvc.haxe.interfaces.ICommand = function() { }
org.puremvc.haxe.interfaces.ICommand.__name__ = ["org","puremvc","haxe","interfaces","ICommand"];
org.puremvc.haxe.interfaces.ICommand.prototype.execute = null;
org.puremvc.haxe.interfaces.ICommand.prototype.__class__ = org.puremvc.haxe.interfaces.ICommand;
org.puremvc.haxe.interfaces.IAsyncCommand = function() { }
org.puremvc.haxe.interfaces.IAsyncCommand.__name__ = ["org","puremvc","haxe","interfaces","IAsyncCommand"];
org.puremvc.haxe.interfaces.IAsyncCommand.prototype.setOnComplete = null;
org.puremvc.haxe.interfaces.IAsyncCommand.prototype.__class__ = org.puremvc.haxe.interfaces.IAsyncCommand;
org.puremvc.haxe.interfaces.IAsyncCommand.__interfaces__ = [org.puremvc.haxe.interfaces.ICommand];
org.puremvc.haxe.patterns.command = {}
org.puremvc.haxe.patterns.command.SimpleCommand = function(p) { if( p === $_ ) return; {
	org.puremvc.haxe.patterns.observer.Notifier.apply(this,[]);
}}
org.puremvc.haxe.patterns.command.SimpleCommand.__name__ = ["org","puremvc","haxe","patterns","command","SimpleCommand"];
org.puremvc.haxe.patterns.command.SimpleCommand.__super__ = org.puremvc.haxe.patterns.observer.Notifier;
for(var k in org.puremvc.haxe.patterns.observer.Notifier.prototype ) org.puremvc.haxe.patterns.command.SimpleCommand.prototype[k] = org.puremvc.haxe.patterns.observer.Notifier.prototype[k];
org.puremvc.haxe.patterns.command.SimpleCommand.prototype.execute = function(notification) {
	null;
}
org.puremvc.haxe.patterns.command.SimpleCommand.prototype.__class__ = org.puremvc.haxe.patterns.command.SimpleCommand;
org.puremvc.haxe.patterns.command.SimpleCommand.__interfaces__ = [org.puremvc.haxe.interfaces.ICommand];
se.publicclass.socialgrid.controller = {}
se.publicclass.socialgrid.controller.SetupModelCommand = function(p) { if( p === $_ ) return; {
	org.puremvc.haxe.patterns.command.SimpleCommand.apply(this,[]);
}}
se.publicclass.socialgrid.controller.SetupModelCommand.__name__ = ["se","publicclass","socialgrid","controller","SetupModelCommand"];
se.publicclass.socialgrid.controller.SetupModelCommand.__super__ = org.puremvc.haxe.patterns.command.SimpleCommand;
for(var k in org.puremvc.haxe.patterns.command.SimpleCommand.prototype ) se.publicclass.socialgrid.controller.SetupModelCommand.prototype[k] = org.puremvc.haxe.patterns.command.SimpleCommand.prototype[k];
se.publicclass.socialgrid.controller.SetupModelCommand.prototype.execute = function(notification) {
	this.facade.registerProxy(new se.publicclass.socialgrid.model.FeedProxy());
	this.facade.registerProxy(new se.publicclass.socialgrid.model.ItemProxy());
	this.facade.registerProxy(new se.publicclass.socialgrid.model.AddressProxy());
}
se.publicclass.socialgrid.controller.SetupModelCommand.prototype.__class__ = se.publicclass.socialgrid.controller.SetupModelCommand;
org.puremvc.haxe.interfaces.IController = function() { }
org.puremvc.haxe.interfaces.IController.__name__ = ["org","puremvc","haxe","interfaces","IController"];
org.puremvc.haxe.interfaces.IController.prototype.executeCommand = null;
org.puremvc.haxe.interfaces.IController.prototype.hasCommand = null;
org.puremvc.haxe.interfaces.IController.prototype.registerCommand = null;
org.puremvc.haxe.interfaces.IController.prototype.removeCommand = null;
org.puremvc.haxe.interfaces.IController.prototype.__class__ = org.puremvc.haxe.interfaces.IController;
org.puremvc.haxe.core = {}
org.puremvc.haxe.core.Controller = function(p) { if( p === $_ ) return; {
	org.puremvc.haxe.core.Controller.instance = this;
	this.commandMap = new Hash();
	this.initializeController();
}}
org.puremvc.haxe.core.Controller.__name__ = ["org","puremvc","haxe","core","Controller"];
org.puremvc.haxe.core.Controller.getInstance = function() {
	if(org.puremvc.haxe.core.Controller.instance == null) org.puremvc.haxe.core.Controller.instance = new org.puremvc.haxe.core.Controller();
	return org.puremvc.haxe.core.Controller.instance;
}
org.puremvc.haxe.core.Controller.instance = null;
org.puremvc.haxe.core.Controller.prototype.commandMap = null;
org.puremvc.haxe.core.Controller.prototype.executeCommand = function(note) {
	var commandClassRef = this.commandMap.get(note.getName());
	if(commandClassRef == null) return;
	var commandInstance = Type.createInstance(commandClassRef,[]);
	commandInstance.execute(note);
}
org.puremvc.haxe.core.Controller.prototype.hasCommand = function(notificationName) {
	return this.commandMap.exists(notificationName);
}
org.puremvc.haxe.core.Controller.prototype.initializeController = function() {
	this.view = org.puremvc.haxe.core.View.getInstance();
}
org.puremvc.haxe.core.Controller.prototype.registerCommand = function(notificationName,commandClassRef) {
	if(!this.commandMap.exists(notificationName)) this.view.registerObserver(notificationName,new org.puremvc.haxe.patterns.observer.Observer($closure(this,"executeCommand"),this));
	this.commandMap.set(notificationName,commandClassRef);
}
org.puremvc.haxe.core.Controller.prototype.removeCommand = function(notificationName) {
	if(this.hasCommand(notificationName)) {
		this.view.removeObserver(notificationName,this);
		this.commandMap.remove(notificationName);
	}
}
org.puremvc.haxe.core.Controller.prototype.view = null;
org.puremvc.haxe.core.Controller.prototype.__class__ = org.puremvc.haxe.core.Controller;
org.puremvc.haxe.core.Controller.__interfaces__ = [org.puremvc.haxe.interfaces.IController];
haxe.FastList = function(p) { if( p === $_ ) return; {
	null;
}}
haxe.FastList.__name__ = ["haxe","FastList"];
haxe.FastList.prototype.add = function(item) {
	this.head = new haxe.FastCell(item,this.head);
}
haxe.FastList.prototype.first = function() {
	return (this.head == null?null:this.head.elt);
}
haxe.FastList.prototype.head = null;
haxe.FastList.prototype.isEmpty = function() {
	return (this.head == null);
}
haxe.FastList.prototype.iterator = function() {
	var l = this.head;
	return { hasNext : function() {
		return l != null;
	}, next : function() {
		var k = l;
		l = k.next;
		return k.elt;
	}}
}
haxe.FastList.prototype.pop = function() {
	var k = this.head;
	if(k == null) return null;
	else {
		this.head = k.next;
		return k.elt;
	}
}
haxe.FastList.prototype.remove = function(v) {
	var prev = null;
	var l = this.head;
	while(l != null) {
		if(l.elt == v) {
			if(prev == null) this.head = l.next;
			else prev.next = l.next;
			break;
		}
		prev = l;
		l = l.next;
	}
	return (l != null);
}
haxe.FastList.prototype.toString = function() {
	var a = new Array();
	var l = this.head;
	while(l != null) {
		a.push(l.elt);
		l = l.next;
	}
	return "{" + a.join(",") + "}";
}
haxe.FastList.prototype.__class__ = haxe.FastList;
feffects = {}
feffects.Tween = function(init,end,dur,obj,prop,easing) { if( init === $_ ) return; {
	this.initVal = init;
	this.endVal = end;
	this.duration = dur;
	this.obj = obj;
	this.prop = prop;
	if(easing != null) this.easingF = easing;
	else if(Reflect.isFunction(obj)) this.easingF = obj;
	else this.easingF = $closure(this,"easingEquation");
	this.isPlaying = false;
}}
feffects.Tween.__name__ = ["feffects","Tween"];
feffects.Tween.timer = null;
feffects.Tween.AddTween = function(tween) {
	feffects.Tween.aTweens.add(tween);
	feffects.Tween.timer.run = $closure(feffects.Tween,"DispatchTweens");
}
feffects.Tween.RemoveTween = function(tween) {
	if(tween == null || feffects.Tween.timer == null) return;
	feffects.Tween.aTweens.remove(tween);
	if((feffects.Tween.aTweens.head == null) && (feffects.Tween.aPaused.head == null)) {
		feffects.Tween.timer.stop();
		feffects.Tween.timer = null;
	}
}
feffects.Tween.getActiveTweens = function() {
	return feffects.Tween.aTweens;
}
feffects.Tween.getPausedTweens = function() {
	return feffects.Tween.aPaused;
}
feffects.Tween.setTweenPaused = function(tween) {
	if(tween == null || feffects.Tween.timer == null) return;
	feffects.Tween.aPaused.add(tween);
	feffects.Tween.aTweens.remove(tween);
}
feffects.Tween.setTweenActive = function(tween) {
	if(tween == null || feffects.Tween.timer == null) return;
	feffects.Tween.aTweens.add(tween);
	feffects.Tween.aPaused.remove(tween);
}
feffects.Tween.DispatchTweens = function() {
	{ var $it5 = feffects.Tween.aTweens.iterator();
	while( $it5.hasNext() ) { var i = $it5.next();
	i.doInterval();
	}}
}
feffects.Tween.prototype.doInterval = function() {
	var stamp = Date.now().getTime() - feffects.Tween.jsDate;
	var curTime = 0;
	{
		if(this.reversed) curTime = (this.reverseTime << 1) - stamp - this.startTime + this.offsetTime;
		else curTime = stamp - this.startTime + this.offsetTime;
	}
	var curVal = this.easingF(curTime,this.initVal,this.endVal - this.initVal,this.duration);
	if(curTime >= this.duration || curTime <= 0) this.endTween();
	else {
		if(this.updateFunc != null) this.updateFunc(curVal);
		if(this.prop != null) this.obj[this.prop] = curVal;
	}
	this.position = curTime;
}
feffects.Tween.prototype.duration = null;
feffects.Tween.prototype.easingEquation = function(t,b,c,d) {
	return c / 2 * (Math.sin(Math.PI * (t / d - 0.5)) + 1) + b;
}
feffects.Tween.prototype.easingF = null;
feffects.Tween.prototype.endFunc = null;
feffects.Tween.prototype.endTween = function() {
	feffects.Tween.RemoveTween(this);
	var val = 0.0;
	if(this.reversed) val = this.initVal;
	else val = this.endVal;
	if(this.updateFunc != null) this.updateFunc(val);
	if(this.endFunc != null) this.endFunc(val);
	if(this.prop != null) this.obj[this.prop] = val;
}
feffects.Tween.prototype.endVal = null;
feffects.Tween.prototype.getCurVal = function(curTime) {
	return this.easingF(curTime,this.initVal,this.endVal - this.initVal,this.duration);
}
feffects.Tween.prototype.initVal = null;
feffects.Tween.prototype.isPlaying = null;
feffects.Tween.prototype.obj = null;
feffects.Tween.prototype.offsetTime = null;
feffects.Tween.prototype.pause = function() {
	this.pauseTime = Date.now().getTime() - feffects.Tween.jsDate;
	feffects.Tween.setTweenPaused(this);
	this.isPlaying = false;
}
feffects.Tween.prototype.pauseTime = null;
feffects.Tween.prototype.position = null;
feffects.Tween.prototype.prop = null;
feffects.Tween.prototype.resume = function() {
	this.startTime += Date.now().getTime() - feffects.Tween.jsDate - this.pauseTime;
	this.reverseTime += Date.now().getTime() - feffects.Tween.jsDate - this.pauseTime;
	feffects.Tween.setTweenActive(this);
	this.isPlaying = true;
}
feffects.Tween.prototype.reverse = function() {
	this.reversed = !this.reversed;
	if(!this.reversed) this.startTime += (Date.now().getTime() - feffects.Tween.jsDate - this.reverseTime) << 1;
	this.reverseTime = Date.now().getTime() - feffects.Tween.jsDate;
}
feffects.Tween.prototype.reverseTime = null;
feffects.Tween.prototype.reversed = null;
feffects.Tween.prototype.seek = function(ms) {
	this.offsetTime = ms;
}
feffects.Tween.prototype.setEasing = function(easingFunc) {
	if(easingFunc != null) this.easingF = easingFunc;
}
feffects.Tween.prototype.setTweenHandlers = function(update,end) {
	this.updateFunc = update;
	this.endFunc = end;
}
feffects.Tween.prototype.start = function() {
	if(feffects.Tween.timer != null) feffects.Tween.timer.stop();
	feffects.Tween.timer = new haxe.Timer(feffects.Tween.interval);
	this.startTime = Date.now().getTime() - feffects.Tween.jsDate;
	if(this.duration == 0) this.endTween();
	else feffects.Tween.AddTween(this);
	this.isPlaying = true;
	this.position = 0;
	this.reverseTime = this.startTime;
	this.reversed = false;
}
feffects.Tween.prototype.startTime = null;
feffects.Tween.prototype.stop = function() {
	feffects.Tween.RemoveTween(this);
	this.isPlaying = false;
}
feffects.Tween.prototype.updateFunc = null;
feffects.Tween.prototype.__class__ = feffects.Tween;
se.publicclass.socialgrid.view.BodyMediator = function(p) { if( p === $_ ) return; {
	org.puremvc.haxe.patterns.mediator.Mediator.apply(this,["BodyMediator",null]);
	se.publicclass.socialgrid.view.BodyMediator.COUNT = 0;
	this._autoFetchData = false;
	this._firstLoad = true;
}}
se.publicclass.socialgrid.view.BodyMediator.__name__ = ["se","publicclass","socialgrid","view","BodyMediator"];
se.publicclass.socialgrid.view.BodyMediator.__super__ = org.puremvc.haxe.patterns.mediator.Mediator;
for(var k in org.puremvc.haxe.patterns.mediator.Mediator.prototype ) se.publicclass.socialgrid.view.BodyMediator.prototype[k] = org.puremvc.haxe.patterns.mediator.Mediator.prototype[k];
se.publicclass.socialgrid.view.BodyMediator.COUNT = null;
se.publicclass.socialgrid.view.BodyMediator.prototype._autoFetchData = null;
se.publicclass.socialgrid.view.BodyMediator.prototype._currentHash = null;
se.publicclass.socialgrid.view.BodyMediator.prototype._firstLoad = null;
se.publicclass.socialgrid.view.BodyMediator.prototype._header = null;
se.publicclass.socialgrid.view.BodyMediator.prototype._preloader = null;
se.publicclass.socialgrid.view.BodyMediator.prototype._showMore = null;
se.publicclass.socialgrid.view.BodyMediator.prototype._showMoreOpacity = null;
se.publicclass.socialgrid.view.BodyMediator.prototype._timer = null;
se.publicclass.socialgrid.view.BodyMediator.prototype.body = null;
se.publicclass.socialgrid.view.BodyMediator.prototype.callTracker = function() {
	var itemStr = "/";
	if(this.getAddressProxy().getProject() != null && this.getAddressProxy().getProject() != "") itemStr += this.getAddressProxy().getProject() + "/";
	js.Lib.eval("track('" + itemStr + this.getAddressProxy().getFilter() + "/" + this.getAddressProxy().getCount() + "')");
}
se.publicclass.socialgrid.view.BodyMediator.prototype.createDOM = function() {
	this._preloader = js.Lib.document.getElementById("preloader");
	this._showMore = js.Lib.document.createElement("div");
	this._showMore.id = "show-more";
	this._showMore.innerHTML = "<p>read more</p>";
	this.body.appendChild(this._showMore);
	this._header = js.Lib.document.getElementById("header");
	js.Lib.eval("attachPreloader()");
}
se.publicclass.socialgrid.view.BodyMediator.prototype.getAddressProxy = function() {
	return this.facade.retrieveProxy(se.publicclass.socialgrid.model.AddressProxy.NAME);
}
se.publicclass.socialgrid.view.BodyMediator.prototype.getHash = function() {
	return js.Lib.window.location.hash.split("#/").join("");
}
se.publicclass.socialgrid.view.BodyMediator.prototype.getHref = function() {
	return this.window.location.href;
}
se.publicclass.socialgrid.view.BodyMediator.prototype.getPosition = function() {
	var w = js.Lib.window;
	var d = js.Lib.document;
	if(!w.pageYOffset) {
		return Math.max(d.body.scrollTop,d.documentElement.scrollTop);
	}
	else {
		return w.pageYOffset;
	}
}
se.publicclass.socialgrid.view.BodyMediator.prototype.getScreenHeight = function() {
	var w = js.Lib.window;
	var d = js.Lib.document;
	if(!w.innerHeight) {
		return Math.min(d.body.clientHeight,d.documentElement.clientHeight);
	}
	else {
		return w.innerHeight;
	}
}
se.publicclass.socialgrid.view.BodyMediator.prototype.getScreenWidth = function() {
	var w = js.Lib.window;
	var d = js.Lib.document;
	if(!w.innerHeight) {
		return Math.min(d.body.clientWidth,d.documentElement.clientWidth);
	}
	else {
		return w.innerWidth;
	}
}
se.publicclass.socialgrid.view.BodyMediator.prototype.getTotalHeight = function() {
	var w = js.Lib.window;
	var d = js.Lib.document;
	if(!w.outerHeight) {
		return Math.max(d.body.clientHeight,d.documentElement.clientHeight);
	}
	else {
		return js.Lib.document.body.offsetHeight;
	}
}
se.publicclass.socialgrid.view.BodyMediator.prototype.getTotalWidth = function() {
	var w = js.Lib.window;
	var d = js.Lib.document;
	if(!w.outerHeight) {
		return Math.max(d.body.clientWidth,d.documentElement.clientWidth);
	}
	else {
		return js.Lib.document.body.offsetWidth;
	}
}
se.publicclass.socialgrid.view.BodyMediator.prototype.handleNotification = function(notification) {
	switch(notification.getName()) {
	case "setAdress":{
		this.setHref(notification.getBody().href);
	}break;
	case "onDataLoaded":{
		this.onDataLoaded(notification);
	}break;
	case "beginDataLoaded":{
		this.showPreloader();
	}break;
	}
}
se.publicclass.socialgrid.view.BodyMediator.prototype.hash = null;
se.publicclass.socialgrid.view.BodyMediator.prototype.hidePreloader = function() {
	jQuery("#preloader").hide(null,null);
}
se.publicclass.socialgrid.view.BodyMediator.prototype.href = null;
se.publicclass.socialgrid.view.BodyMediator.prototype.listNotificationInterests = function() {
	return ["setAdress","onDataLoaded","beginDataLoaded","onAdressChanged"];
}
se.publicclass.socialgrid.view.BodyMediator.prototype.onDataLoaded = function(notification) {
	this.hidePreloader();
	if(notification.getBody().type == "feedProxy") this._autoFetchData = notification.getBody().data.length >= 40;
	if(this._autoFetchData) {
		var showMore = this._showMore;
		showMore.style.visibility = "hidden";
	}
	else {
		var showMore = this._showMore;
		showMore.style.visibility = "hidden";
	}
	if(this._firstLoad) {
		jQuery("#header").hide(null,null);
		jQuery("#header").fadeIn(1000,null);
		jQuery("#content").show(null,null);
		this._firstLoad = false;
	}
}
se.publicclass.socialgrid.view.BodyMediator.prototype.onPulse = function() {
	if(this.getHash() != this.getAddressProxy().getHref()) {
		this.getAddressProxy().onChange(this.getHash());
		this.callTracker();
	}
}
se.publicclass.socialgrid.view.BodyMediator.prototype.onRegister = function() {
	this.window = js.Lib.window;
	this.body = js.Lib.document.body;
	this.createDOM();
	if(this.window.location.hash == "" || this.window.location.hash == "#") this.setHref("/");
	this.getAddressProxy().onChange(this.getHash(),true);
	this.callTracker();
	var showMore = this._showMore;
	showMore.style.visibility = "hidden";
	this._timer = new haxe.Timer(200);
	this._timer.run = $closure(this,"onPulse");
	js.Lib.window.onscroll = $closure(this,"onScroll");
	js.Lib.window.onresize = $closure(this,"onResize");
	org.puremvc.haxe.patterns.mediator.Mediator.prototype.onRegister.apply(this,[]);
}
se.publicclass.socialgrid.view.BodyMediator.prototype.onResize = function(e) {
	this.sendNotification("onResize");
	this.positionPreloader();
}
se.publicclass.socialgrid.view.BodyMediator.prototype.onScroll = function(e) {
	var diff = Std["int"](this.getTotalHeight() - (this.getPosition() + this.getScreenHeight()));
	if(diff < 100 && this._autoFetchData) {
		this.updateCount(null);
		this._autoFetchData = false;
	}
	this.positionPreloader();
}
se.publicclass.socialgrid.view.BodyMediator.prototype.positionPreloader = function() {
	var t = (this.getPosition() + this.getScreenHeight() * .5) - 75;
	var l = this.getScreenWidth() * .5 - 75;
	jQuery("#preloader").css({ top : t, left : l});
}
se.publicclass.socialgrid.view.BodyMediator.prototype.setHref = function(address) {
	var firstIndex = address.indexOf("/");
	if(firstIndex > 0 || firstIndex == -1) address = "/";
	this.window.location.hash = address;
}
se.publicclass.socialgrid.view.BodyMediator.prototype.showPreloader = function() {
	this.positionPreloader();
	jQuery("#preloader").show(null,null);
}
se.publicclass.socialgrid.view.BodyMediator.prototype.updateCount = function(e) {
	if(this._autoFetchData) {
		{
			var _g = this.getAddressProxy(), _g1 = _g.getCount();
			_g.setCount(_g1 + 1);
			_g1;
		}
		this.callTracker();
	}
}
se.publicclass.socialgrid.view.BodyMediator.prototype.window = null;
se.publicclass.socialgrid.view.BodyMediator.prototype.__class__ = se.publicclass.socialgrid.view.BodyMediator;
se.publicclass.socialgrid.model = {}
se.publicclass.socialgrid.model.vo = {}
se.publicclass.socialgrid.model.vo.FeedItemVO = function(data) { if( data === $_ ) return; {
	this.ignore = false;
	this.id = data.id;
	this.urlId = data.urlId;
	this.title = data.title;
	if(data.content != null) this.content = data.content.split("<![CDATA[").join("").split("]]>").join("");
	this.permalink = data.permalink;
	this.link = data.link;
	this.updated = data.updated;
	this.published = data.published;
	this.date = this.updated.split("T")[0];
	this.media = data.media;
	this.feedSource = data.feedSource;
	this.feedTitle = data.feed.title;
	this.type = data.feed.type;
	this.parentId = data.parent_id;
	this.columns = 1;
	this.rows = 1;
	this.tags = new Array();
	var t = js.Lib.eval(data.tags);
	{
		var _g = 0;
		while(_g < t.length) {
			var tag = t[_g];
			++_g;
			this.setSize(tag.str);
			this.ignore = tag.str.indexOf("ignore") > -1;
			if(!this.ignore) this.tags.push(tag.str);
		}
	}
}}
se.publicclass.socialgrid.model.vo.FeedItemVO.__name__ = ["se","publicclass","socialgrid","model","vo","FeedItemVO"];
se.publicclass.socialgrid.model.vo.FeedItemVO.prototype.columns = null;
se.publicclass.socialgrid.model.vo.FeedItemVO.prototype.content = null;
se.publicclass.socialgrid.model.vo.FeedItemVO.prototype.date = null;
se.publicclass.socialgrid.model.vo.FeedItemVO.prototype.feedSource = null;
se.publicclass.socialgrid.model.vo.FeedItemVO.prototype.feedTitle = null;
se.publicclass.socialgrid.model.vo.FeedItemVO.prototype.id = null;
se.publicclass.socialgrid.model.vo.FeedItemVO.prototype.ignore = null;
se.publicclass.socialgrid.model.vo.FeedItemVO.prototype.link = null;
se.publicclass.socialgrid.model.vo.FeedItemVO.prototype.media = null;
se.publicclass.socialgrid.model.vo.FeedItemVO.prototype.parentId = null;
se.publicclass.socialgrid.model.vo.FeedItemVO.prototype.permalink = null;
se.publicclass.socialgrid.model.vo.FeedItemVO.prototype.published = null;
se.publicclass.socialgrid.model.vo.FeedItemVO.prototype.rows = null;
se.publicclass.socialgrid.model.vo.FeedItemVO.prototype.setSize = function(str) {
	var r = new EReg("\\d+x\\d","");
	if(r.match(str)) {
		var s = str.toLowerCase().split("x");
		this.columns = Std.parseInt(s[0]);
		this.rows = Std.parseInt(s[1]);
	}
}
se.publicclass.socialgrid.model.vo.FeedItemVO.prototype.tags = null;
se.publicclass.socialgrid.model.vo.FeedItemVO.prototype.title = null;
se.publicclass.socialgrid.model.vo.FeedItemVO.prototype.type = null;
se.publicclass.socialgrid.model.vo.FeedItemVO.prototype.updated = null;
se.publicclass.socialgrid.model.vo.FeedItemVO.prototype.urlId = null;
se.publicclass.socialgrid.model.vo.FeedItemVO.prototype.__class__ = se.publicclass.socialgrid.model.vo.FeedItemVO;
org.puremvc.haxe.interfaces.IProxy = function() { }
org.puremvc.haxe.interfaces.IProxy.__name__ = ["org","puremvc","haxe","interfaces","IProxy"];
org.puremvc.haxe.interfaces.IProxy.prototype.getData = null;
org.puremvc.haxe.interfaces.IProxy.prototype.getProxyName = null;
org.puremvc.haxe.interfaces.IProxy.prototype.onRegister = null;
org.puremvc.haxe.interfaces.IProxy.prototype.onRemove = null;
org.puremvc.haxe.interfaces.IProxy.prototype.setData = null;
org.puremvc.haxe.interfaces.IProxy.prototype.__class__ = org.puremvc.haxe.interfaces.IProxy;
org.puremvc.haxe.patterns.proxy = {}
org.puremvc.haxe.patterns.proxy.Proxy = function(proxyName,data) { if( proxyName === $_ ) return; {
	org.puremvc.haxe.patterns.observer.Notifier.apply(this,[]);
	this.proxyName = (proxyName != null?proxyName:org.puremvc.haxe.patterns.proxy.Proxy.NAME);
	if(data != null) this.setData(data);
}}
org.puremvc.haxe.patterns.proxy.Proxy.__name__ = ["org","puremvc","haxe","patterns","proxy","Proxy"];
org.puremvc.haxe.patterns.proxy.Proxy.__super__ = org.puremvc.haxe.patterns.observer.Notifier;
for(var k in org.puremvc.haxe.patterns.observer.Notifier.prototype ) org.puremvc.haxe.patterns.proxy.Proxy.prototype[k] = org.puremvc.haxe.patterns.observer.Notifier.prototype[k];
org.puremvc.haxe.patterns.proxy.Proxy.prototype.data = null;
org.puremvc.haxe.patterns.proxy.Proxy.prototype.getData = function() {
	return this.data;
}
org.puremvc.haxe.patterns.proxy.Proxy.prototype.getProxyName = function() {
	return this.proxyName;
}
org.puremvc.haxe.patterns.proxy.Proxy.prototype.onRegister = function() {
	null;
}
org.puremvc.haxe.patterns.proxy.Proxy.prototype.onRemove = function() {
	null;
}
org.puremvc.haxe.patterns.proxy.Proxy.prototype.proxyName = null;
org.puremvc.haxe.patterns.proxy.Proxy.prototype.setData = function(data) {
	this.data = data;
}
org.puremvc.haxe.patterns.proxy.Proxy.prototype.__class__ = org.puremvc.haxe.patterns.proxy.Proxy;
org.puremvc.haxe.patterns.proxy.Proxy.__interfaces__ = [org.puremvc.haxe.interfaces.IProxy];
Reflect = function() { }
Reflect.__name__ = ["Reflect"];
Reflect.hasField = function(o,field) {
	if(o.hasOwnProperty != null) return o.hasOwnProperty(field);
	var arr = Reflect.fields(o);
	{ var $it6 = arr.iterator();
	while( $it6.hasNext() ) { var t = $it6.next();
	if(t == field) return true;
	}}
	return false;
}
Reflect.field = function(o,field) {
	var v = null;
	try {
		v = o[field];
	}
	catch( $e7 ) {
		{
			var e = $e7;
			null;
		}
	}
	return v;
}
Reflect.setField = function(o,field,value) {
	o[field] = value;
}
Reflect.callMethod = function(o,func,args) {
	return func.apply(o,args);
}
Reflect.fields = function(o) {
	if(o == null) return new Array();
	var a = new Array();
	if(o.hasOwnProperty) {
		
					for(var i in o)
						if( o.hasOwnProperty(i) )
							a.push(i);
				;
	}
	else {
		var t;
		try {
			t = o.__proto__;
		}
		catch( $e8 ) {
			{
				var e = $e8;
				{
					t = null;
				}
			}
		}
		if(t != null) o.__proto__ = null;
		
					for(var i in o)
						if( i != "__proto__" )
							a.push(i);
				;
		if(t != null) o.__proto__ = t;
	}
	return a;
}
Reflect.isFunction = function(f) {
	return typeof(f) == "function" && f.__name__ == null;
}
Reflect.compare = function(a,b) {
	return ((a == b)?0:((((a) > (b))?1:-1)));
}
Reflect.compareMethods = function(f1,f2) {
	if(f1 == f2) return true;
	if(!Reflect.isFunction(f1) || !Reflect.isFunction(f2)) return false;
	return f1.scope == f2.scope && f1.method == f2.method && f1.method != null;
}
Reflect.isObject = function(v) {
	if(v == null) return false;
	var t = typeof(v);
	return (t == "string" || (t == "object" && !v.__enum__) || (t == "function" && v.__name__ != null));
}
Reflect.deleteField = function(o,f) {
	if(!Reflect.hasField(o,f)) return false;
	delete(o[f]);
	return true;
}
Reflect.copy = function(o) {
	var o2 = { }
	{
		var _g = 0, _g1 = Reflect.fields(o);
		while(_g < _g1.length) {
			var f = _g1[_g];
			++_g;
			o2[f] = Reflect.field(o,f);
		}
	}
	return o2;
}
Reflect.makeVarArgs = function(f) {
	return function() {
		var a = new Array();
		{
			var _g1 = 0, _g = arguments.length;
			while(_g1 < _g) {
				var i = _g1++;
				a.push(arguments[i]);
			}
		}
		return f(a);
	}
}
Reflect.prototype.__class__ = Reflect;
org.puremvc.haxe.interfaces.IModel = function() { }
org.puremvc.haxe.interfaces.IModel.__name__ = ["org","puremvc","haxe","interfaces","IModel"];
org.puremvc.haxe.interfaces.IModel.prototype.hasProxy = null;
org.puremvc.haxe.interfaces.IModel.prototype.registerProxy = null;
org.puremvc.haxe.interfaces.IModel.prototype.removeProxy = null;
org.puremvc.haxe.interfaces.IModel.prototype.retrieveProxy = null;
org.puremvc.haxe.interfaces.IModel.prototype.__class__ = org.puremvc.haxe.interfaces.IModel;
org.puremvc.haxe.core.Model = function(p) { if( p === $_ ) return; {
	org.puremvc.haxe.core.Model.instance = this;
	this.proxyMap = new Hash();
	this.initializeModel();
}}
org.puremvc.haxe.core.Model.__name__ = ["org","puremvc","haxe","core","Model"];
org.puremvc.haxe.core.Model.getInstance = function() {
	if(org.puremvc.haxe.core.Model.instance == null) org.puremvc.haxe.core.Model.instance = new org.puremvc.haxe.core.Model();
	return org.puremvc.haxe.core.Model.instance;
}
org.puremvc.haxe.core.Model.instance = null;
org.puremvc.haxe.core.Model.prototype.hasProxy = function(proxyName) {
	return this.proxyMap.exists(proxyName);
}
org.puremvc.haxe.core.Model.prototype.initializeModel = function() {
	null;
}
org.puremvc.haxe.core.Model.prototype.proxyMap = null;
org.puremvc.haxe.core.Model.prototype.registerProxy = function(proxy) {
	this.proxyMap.set(proxy.getProxyName(),proxy);
	proxy.onRegister();
}
org.puremvc.haxe.core.Model.prototype.removeProxy = function(proxyName) {
	var proxy = this.proxyMap.get(proxyName);
	if(proxy != null) {
		this.proxyMap.remove(proxyName);
		proxy.onRemove();
	}
	return proxy;
}
org.puremvc.haxe.core.Model.prototype.retrieveProxy = function(proxyName) {
	return this.proxyMap.get(proxyName);
}
org.puremvc.haxe.core.Model.prototype.__class__ = org.puremvc.haxe.core.Model;
org.puremvc.haxe.core.Model.__interfaces__ = [org.puremvc.haxe.interfaces.IModel];
se.publicclass.socialgrid.model.vo.AddressVO = function(p) { if( p === $_ ) return; {
	this.project = this.filter = "";
}}
se.publicclass.socialgrid.model.vo.AddressVO.__name__ = ["se","publicclass","socialgrid","model","vo","AddressVO"];
se.publicclass.socialgrid.model.vo.AddressVO.prototype.filter = null;
se.publicclass.socialgrid.model.vo.AddressVO.prototype.href = null;
se.publicclass.socialgrid.model.vo.AddressVO.prototype.project = null;
se.publicclass.socialgrid.model.vo.AddressVO.prototype.__class__ = se.publicclass.socialgrid.model.vo.AddressVO;
org.puremvc.haxe.interfaces.IView = function() { }
org.puremvc.haxe.interfaces.IView.__name__ = ["org","puremvc","haxe","interfaces","IView"];
org.puremvc.haxe.interfaces.IView.prototype.hasMediator = null;
org.puremvc.haxe.interfaces.IView.prototype.notifyObservers = null;
org.puremvc.haxe.interfaces.IView.prototype.registerMediator = null;
org.puremvc.haxe.interfaces.IView.prototype.registerObserver = null;
org.puremvc.haxe.interfaces.IView.prototype.removeMediator = null;
org.puremvc.haxe.interfaces.IView.prototype.removeObserver = null;
org.puremvc.haxe.interfaces.IView.prototype.retrieveMediator = null;
org.puremvc.haxe.interfaces.IView.prototype.__class__ = org.puremvc.haxe.interfaces.IView;
haxe.FastCell = function(elt,next) { if( elt === $_ ) return; {
	this.elt = elt;
	this.next = next;
}}
haxe.FastCell.__name__ = ["haxe","FastCell"];
haxe.FastCell.prototype.elt = null;
haxe.FastCell.prototype.next = null;
haxe.FastCell.prototype.__class__ = haxe.FastCell;
IntIter = function(min,max) { if( min === $_ ) return; {
	this.min = min;
	this.max = max;
}}
IntIter.__name__ = ["IntIter"];
IntIter.prototype.hasNext = function() {
	return this.min < this.max;
}
IntIter.prototype.max = null;
IntIter.prototype.min = null;
IntIter.prototype.next = function() {
	return this.min++;
}
IntIter.prototype.__class__ = IntIter;
org.puremvc.haxe.interfaces.IObserver = function() { }
org.puremvc.haxe.interfaces.IObserver.__name__ = ["org","puremvc","haxe","interfaces","IObserver"];
org.puremvc.haxe.interfaces.IObserver.prototype.compareNotifyContext = null;
org.puremvc.haxe.interfaces.IObserver.prototype.notifyObserver = null;
org.puremvc.haxe.interfaces.IObserver.prototype.setNotifyContext = null;
org.puremvc.haxe.interfaces.IObserver.prototype.setNotifyMethod = null;
org.puremvc.haxe.interfaces.IObserver.prototype.__class__ = org.puremvc.haxe.interfaces.IObserver;
se.publicclass.socialgrid.model.FeedProxy = function(name) { if( name === $_ ) return; {
	if(name == null) name = "feedProxy";
	org.puremvc.haxe.patterns.proxy.Proxy.apply(this,[name]);
	this.clear = false;
	this.firstLoad = true;
}}
se.publicclass.socialgrid.model.FeedProxy.__name__ = ["se","publicclass","socialgrid","model","FeedProxy"];
se.publicclass.socialgrid.model.FeedProxy.__super__ = org.puremvc.haxe.patterns.proxy.Proxy;
for(var k in org.puremvc.haxe.patterns.proxy.Proxy.prototype ) se.publicclass.socialgrid.model.FeedProxy.prototype[k] = org.puremvc.haxe.patterns.proxy.Proxy.prototype[k];
se.publicclass.socialgrid.model.FeedProxy.prototype._url = null;
se.publicclass.socialgrid.model.FeedProxy.prototype.clear = null;
se.publicclass.socialgrid.model.FeedProxy.prototype.feedItems = null;
se.publicclass.socialgrid.model.FeedProxy.prototype.firstLoad = null;
se.publicclass.socialgrid.model.FeedProxy.prototype.getAddressProxy = function() {
	return this.facade.retrieveProxy(se.publicclass.socialgrid.model.AddressProxy.NAME);
}
se.publicclass.socialgrid.model.FeedProxy.prototype.load = function(url,t) {
	if(t == null) t = "feed";
	if(url == null) url = "";
	this.clear = false;
	if(url == "") {
		url = t + "/" + this.getAddressProxy().getFilter() + "/" + Std.string(this.getAddressProxy().getCount()) + "/json/";
	}
	if(this._url == url) {
		this.sendNotification("nodataLoaded",{ type : "feedProxy"});
		return;
	}
	else {
		this.sendNotification("beginDataLoaded",{ type : "feedProxy"});
	}
	this._url = url;
	var r = new haxe.Http(this._url);
	r.onError = $closure(js.Lib,"alert");
	r.onData = $closure(this,"onLoadComplete");
	r.request(false);
}
se.publicclass.socialgrid.model.FeedProxy.prototype.notifyOnComplete = function() {
	this.sendNotification("onDataLoaded",{ data : this.feedItems, type : "feedProxy", clear : this.clear, firstLoad : this.firstLoad});
	this.firstLoad = false;
}
se.publicclass.socialgrid.model.FeedProxy.prototype.onLoadComplete = function(content) {
	var a = js.Lib.eval(content);
	this.feedItems = new Array();
	this.slugItems = new Array();
	{
		var _g = 0;
		while(_g < a.length) {
			var item = a[_g];
			++_g;
			var vo = new se.publicclass.socialgrid.model.vo.FeedItemVO(item);
			switch(vo.type) {
			case "twitter":{
				if(this.getAddressProxy().getFilter() == "twitter") this.feedItems.push(vo);
				else this.slugItems.unshift(vo);
			}break;
			default:{
				this.feedItems.push(vo);
			}break;
			}
		}
	}
	if(this.slugItems.length > 0) this.spreadSlugItems();
	this.notifyOnComplete();
}
se.publicclass.socialgrid.model.FeedProxy.prototype.onRegister = function() {
	org.puremvc.haxe.patterns.proxy.Proxy.prototype.onRegister.apply(this,[]);
}
se.publicclass.socialgrid.model.FeedProxy.prototype.slugItems = null;
se.publicclass.socialgrid.model.FeedProxy.prototype.spreadSlugItems = function() {
	var diff = Math.floor(this.feedItems.length / this.slugItems.length);
	var i = this.feedItems.length;
	if(diff == 0) return;
	while(i > 0) {
		i--;
		if(i % diff == 1 && this.slugItems.length > 0) this.feedItems.insert(i,this.slugItems.shift());
	}
}
se.publicclass.socialgrid.model.FeedProxy.prototype.__class__ = se.publicclass.socialgrid.model.FeedProxy;
JQuery = function(p) { if( p === $_ ) return; {
	null;
}}
JQuery.__name__ = ["JQuery"];
JQuery.Elements = function(e) {
	return (jQuery(e));
}
JQuery.This = function() {
	return jQuery(this);
}
JQuery.CreateHtml = function(html,doc) {
	return (jQuery(html,doc));
}
JQuery.Qy = function(query) {
	return jQuery(query);
}
JQuery.QyContext = function(query,context) {
	return jQuery(query,context);
}
JQuery.Ready = function(f) {
	return (jQuery(f));
}
JQuery.Fn_Extend = function(o) {
	return (jQuery.fn.extend(o));
}
JQuery.Extend = function(o) {
	return (jQuery.extend(o));
}
JQuery.getFX = function() {
	return jQuery.fx.off;
}
JQuery.setFX = function(value) {
	return jQuery.fx.off = value;
}
JQuery.Effects = null;
JQuery.Ajax = function(options) {
	return jQuery.ajax(options);
}
JQuery.AjaxSetup = function(options) {
	jQuery.ajaxSetup(options);
}
JQuery.GetUrl = function(url,data,call,type) {
	return jQuery.get(url,data,call,type);
}
JQuery.GetJSON = function(url,data,call) {
	return jQuery.getJSON(url,data,call);
}
JQuery.GetScript = function(url,call) {
	return jQuery.getScript(url,call);
}
JQuery.PostUrl = function(url,data,call,type) {
	return jQuery.post(url,data,call,type);
}
JQuery.Support = function() {
	return jQuery.support();
}
JQuery.ForEach = function(object,call) {
	return jQuery.each(object,call);
}
JQuery.Grep = function(arr,call,invert) {
	return jQuery.grep(arr,call,invert);
}
JQuery.InArray = function(value,arr) {
	return jQuery.inArray(value,arr);
}
JQuery.Merge = function(first,second) {
	return jQuery.merge(first,second);
}
JQuery.Unique = function(arr) {
	return jQuery.unique(arr);
}
JQuery.IsArray = function(o) {
	return jQuery.isArray(o);
}
JQuery.IsFunction = function(o) {
	return jQuery.isFunction(o);
}
JQuery.Param = function(o) {
	return jQuery.param(o);
}
JQuery.prototype.Accordion = function(param) {
	return this.accordion(param);
}
JQuery.prototype.AccordionOption = function(name,value) {
	return this.accordion("option",name,value);
}
JQuery.prototype.Add = function(expr) {
	return this.add(expr);
}
JQuery.prototype.AddClass = function(cl) {
	return this.addClass(cl);
}
JQuery.prototype.After = function(content) {
	return this.after(content);
}
JQuery.prototype.AjaxComplete = function(call) {
	return this.ajaxComplete(call);
}
JQuery.prototype.AjaxError = function(call) {
	return this.ajaxError(call);
}
JQuery.prototype.AjaxSend = function(call) {
	return this.ajaxSend(call);
}
JQuery.prototype.AjaxStart = function(call) {
	return this.ajaxStart(call);
}
JQuery.prototype.AjaxStop = function(call) {
	return this.ajaxStop(call);
}
JQuery.prototype.AjaxSuccess = function(call) {
	return this.ajaxSuccess(call);
}
JQuery.prototype.AndSelf = function() {
	return this.andSelf();
}
JQuery.prototype.Animate = function(params,options,easing,call) {
	return this.animate(params,options,easing,call);
}
JQuery.prototype.Append = function(content) {
	return this.append(content);
}
JQuery.prototype.AppendTo = function(selector) {
	return this.appendTo(selector);
}
JQuery.prototype.Attr = function(name) {
	return this.attr(name);
}
JQuery.prototype.Before = function(content) {
	return this.before(content);
}
JQuery.prototype.Bind = function(type,fn) {
	return this.bind(type,fn);
}
JQuery.prototype.BindWithData = function(type,data,fn) {
	return this.bind(type,data,fn);
}
JQuery.prototype.Blur = function() {
	return this.blur();
}
JQuery.prototype.BlurCall = function(fn) {
	return this.blur(fn);
}
JQuery.prototype.Change = function() {
	return this.change();
}
JQuery.prototype.ChangeCall = function(fn) {
	return this.change(fn);
}
JQuery.prototype.Children = function(expr) {
	return this.children(expr);
}
JQuery.prototype.Click = function() {
	return this.click();
}
JQuery.prototype.ClickCall = function(fn) {
	return this.click(fn);
}
JQuery.prototype.Clone = function(AndElements) {
	return this.clone(AndElements);
}
JQuery.prototype.Closest = function(expr) {
	return this.closest(expr);
}
JQuery.prototype.Contents = function(expr) {
	return this.contents(expr);
}
JQuery.prototype.Context = null;
JQuery.prototype.Css = function(name) {
	return this.css(name);
}
JQuery.prototype.DPGetDate = function() {
	return this.datepicker("getDate");
}
JQuery.prototype.DPSetDate = function(value) {
	return this.datepicker("setDate",value);
}
JQuery.prototype.Data = function(name) {
	return this.data(name);
}
JQuery.prototype.Datepicker = function(param) {
	return this.datepicker(param);
}
JQuery.prototype.DatepickerOption = function(name,value) {
	return this.datepicker("option",name,value);
}
JQuery.prototype.Dblclick = function() {
	return this.dblclick();
}
JQuery.prototype.DblclickCall = function(fn) {
	return this.dblclick(fn);
}
JQuery.prototype.DeQueue = function(name) {
	return this.dequeue(name);
}
JQuery.prototype.Dialog = function(param) {
	return this.dialog(param);
}
JQuery.prototype.DialogOption = function(name,value) {
	return this.dialog("option",name,value);
}
JQuery.prototype.Die = function(type,fn) {
	return this.die(type,fn);
}
JQuery.prototype.DisableSelection = function() {
	return this.disableSelection();
}
JQuery.prototype.Draggable = function(param) {
	return this.draggable(param);
}
JQuery.prototype.DraggableOption = function(name,value) {
	return this.draggable("option",name,value);
}
JQuery.prototype.Droppable = function(param) {
	return this.droppable(param);
}
JQuery.prototype.DroppableOption = function(name,value) {
	return this.droppable("option",name,value);
}
JQuery.prototype.Each = function(f) {
	return this.each(f);
}
JQuery.prototype.Empty = function() {
	return this.empty();
}
JQuery.prototype.EnableSelection = function() {
	return this.enableSelection();
}
JQuery.prototype.End = function() {
	return this.end();
}
JQuery.prototype.Eq = function(p) {
	return this.eq(p);
}
JQuery.prototype.Error = function() {
	return this.error();
}
JQuery.prototype.ErrorCall = function(fn) {
	return this.error(fn);
}
JQuery.prototype.FadeIn = function(speed,call) {
	return this.fadeIn(speed,call);
}
JQuery.prototype.FadeOut = function(speed,call) {
	return this.fadeOut(speed,call);
}
JQuery.prototype.FadeTo = function(speed,opacity,call) {
	return this.fadeTo(speed,opacity,call);
}
JQuery.prototype.Filter = function(expr) {
	return this.filter(expr);
}
JQuery.prototype.FilterCall = function(fn) {
	return this.filter(fn);
}
JQuery.prototype.Find = function(expr) {
	return this.find(expr);
}
JQuery.prototype.Focus = function() {
	return this.focus();
}
JQuery.prototype.FocusCall = function(fn) {
	return this.focus(fn);
}
JQuery.prototype.Get = function() {
	return this.get();
}
JQuery.prototype.GetAt = function(p) {
	return this.get(p);
}
JQuery.prototype.HasClass = function(cl) {
	return this.hasClass(cl);
}
JQuery.prototype.Height = function() {
	return this.height();
}
JQuery.prototype.Hide = function(speed,call) {
	return this.hide(speed,call);
}
JQuery.prototype.Hover = function(over,out) {
	return this.hover(over,out);
}
JQuery.prototype.Html = function() {
	return this.html();
}
JQuery.prototype.Index = function(subject) {
	return this.index(subject);
}
JQuery.prototype.InnerHeight = function() {
	return this.innerHeight();
}
JQuery.prototype.InnerWidth = function() {
	return this.innerWidth();
}
JQuery.prototype.InsertAfter = function(selector) {
	return this.insertAfter(selector);
}
JQuery.prototype.InsertBefore = function(selector) {
	return this.insertbefore(selector);
}
JQuery.prototype.Is = function(expr) {
	return this["is"](expr);
}
JQuery.prototype.Keydown = function() {
	return this.keydown();
}
JQuery.prototype.KeydownCall = function(fn) {
	return this.keydown(fn);
}
JQuery.prototype.Keypress = function() {
	return this.keypress();
}
JQuery.prototype.KeypressCall = function(fn) {
	return this.keypress(fn);
}
JQuery.prototype.Keypup = function() {
	return this.keyup();
}
JQuery.prototype.KeyupCall = function(fn) {
	return this.keyup(fn);
}
JQuery.prototype.Length = null;
JQuery.prototype.Live = function(type,fn) {
	return this.live(type,fn);
}
JQuery.prototype.Load = function(fn) {
	return this.load(fn);
}
JQuery.prototype.LoadUrl = function(url,data,call) {
	return this.load(url,data,call);
}
JQuery.prototype.Map = function(call) {
	return this.map(call);
}
JQuery.prototype.Mousedown = function(fn) {
	return this.mousedown(fn);
}
JQuery.prototype.Mouseenter = function(fn) {
	return this.mouseenter(fn);
}
JQuery.prototype.Mouseleave = function(fn) {
	return this.mouseleave(fn);
}
JQuery.prototype.Mousemove = function(fn) {
	return this.mousemove(fn);
}
JQuery.prototype.Mouseout = function(fn) {
	return this.mouseout(fn);
}
JQuery.prototype.Mouseover = function(fn) {
	return this.mouseover(fn);
}
JQuery.prototype.Mouseup = function(fn) {
	return this.mouseup(fn);
}
JQuery.prototype.Next = function(expr) {
	return this.next(expr);
}
JQuery.prototype.NextAll = function(expr) {
	return this.nextAll(expr);
}
JQuery.prototype.Not = function(expr) {
	return this.not(expr);
}
JQuery.prototype.Offset = function() {
	return this.offset();
}
JQuery.prototype.OffsetParent = function(expr) {
	return this.offsetParent(expr);
}
JQuery.prototype.One = function(type,fn) {
	return this.one(type,fn);
}
JQuery.prototype.OneWithData = function(type,data,fn) {
	return this.one(type,data,fn);
}
JQuery.prototype.OuterHeight = function(margin) {
	return this.outerHeight(margin);
}
JQuery.prototype.OuterWidth = function(margin) {
	return this.outerWidth(margin);
}
JQuery.prototype.Parent = function(expr) {
	return this.parent(expr);
}
JQuery.prototype.Parents = function(expr) {
	return this.parents(expr);
}
JQuery.prototype.Position = function() {
	return this.position();
}
JQuery.prototype.Prepend = function(content) {
	return this.prepend(content);
}
JQuery.prototype.PrependTo = function(selector) {
	return this.prependTo(selector);
}
JQuery.prototype.Prev = function(expr) {
	return this.prev(expr);
}
JQuery.prototype.PrevAll = function(expr) {
	return this.prevAll(expr);
}
JQuery.prototype.Progressbar = function(param) {
	return this.progressbar(param);
}
JQuery.prototype.ProgressbarOption = function(name,value) {
	return this.progressbar("option",name,value);
}
JQuery.prototype.Queue = function(name) {
	return this.queue(name);
}
JQuery.prototype.QueueCall = function(name,call) {
	return this.queue(name,call);
}
JQuery.prototype.QueueReplace = function(name,q) {
	return this.queue(name,q);
}
JQuery.prototype.Remove = function(expr) {
	return this.remove(expr);
}
JQuery.prototype.RemoveAttr = function(name) {
	return this.removeAttr(name);
}
JQuery.prototype.RemoveClass = function(cl) {
	return this.removeClass(cl);
}
JQuery.prototype.RemoveData = function(name) {
	return this.removeData(name);
}
JQuery.prototype.ReplaceAll = function(selector) {
	return this.replaceAll(selector);
}
JQuery.prototype.ReplaceWith = function(content) {
	return this.replaceWith(content);
}
JQuery.prototype.Resizable = function(param) {
	return this.resizable(param);
}
JQuery.prototype.ResizableOption = function(name,value) {
	return this.resizable("option",name,value);
}
JQuery.prototype.Resize = function(fn) {
	return this.resize(fn);
}
JQuery.prototype.Scroll = function(fn) {
	return this.scroll(fn);
}
JQuery.prototype.ScrollLeft = function() {
	return this.scrollLeft();
}
JQuery.prototype.ScrollTop = function() {
	return this.scrollTop();
}
JQuery.prototype.Select = function() {
	return this.select();
}
JQuery.prototype.SelectCall = function(fn) {
	return this.select(fn);
}
JQuery.prototype.Selectable = function(param) {
	return this.selectable(param);
}
JQuery.prototype.SelectableOption = function(name,value) {
	return this.selectable("option",name,value);
}
JQuery.prototype.Selector = null;
JQuery.prototype.Serialize = function() {
	return this.serialize();
}
JQuery.prototype.SerializeArray = function() {
	return this.serializeArray();
}
JQuery.prototype.SetAttr = function(prop) {
	return this.attr(prop);
}
JQuery.prototype.SetAttrCall = function(name,fn) {
	return this.attr(name,fn);
}
JQuery.prototype.SetAttrValue = function(name,value) {
	return this.attr(name,value);
}
JQuery.prototype.SetCss = function(prop) {
	return this.css(prop);
}
JQuery.prototype.SetCssCall = function(name,call) {
	return this.css(name,call);
}
JQuery.prototype.SetCssValue = function(name,value) {
	return this.css(name,value);
}
JQuery.prototype.SetData = function(name,value) {
	return this.data(name,value);
}
JQuery.prototype.SetHeight = function(value) {
	return this.height(value);
}
JQuery.prototype.SetHtml = function(value) {
	return this.html(value);
}
JQuery.prototype.SetScrollLeft = function(value) {
	return this.scrollLeft(value);
}
JQuery.prototype.SetText = function(value) {
	return this.text(value);
}
JQuery.prototype.SetVal = function(value) {
	return this.val(value);
}
JQuery.prototype.SetValArray = function(value) {
	return this.val(value);
}
JQuery.prototype.SetWidth = function(value) {
	return this.width(value);
}
JQuery.prototype.SetscrollTop = function(value) {
	return this.scrollTop(value);
}
JQuery.prototype.Show = function(speed,call) {
	return this.show(speed,call);
}
JQuery.prototype.Siblings = function(expr) {
	return this.siblings(expr);
}
JQuery.prototype.Size = function() {
	return this.size();
}
JQuery.prototype.Slice = function(start,end) {
	return this.slice(start,end);
}
JQuery.prototype.SlideDown = function(speed,call) {
	return this.slideDown(speed,call);
}
JQuery.prototype.SlideToggle = function(speed,call) {
	return this.slideToggle(speed,call);
}
JQuery.prototype.SlideUp = function(speed,call) {
	return this.slideUp(speed,call);
}
JQuery.prototype.Slider = function(param) {
	return this.slider(param);
}
JQuery.prototype.SliderOption = function(name,value) {
	return this.slider("option",name,value);
}
JQuery.prototype.Sortable = function(param) {
	return this.sortable(param);
}
JQuery.prototype.SortableOption = function(name,value) {
	return this.sortable("option",name,value);
}
JQuery.prototype.Stop = function(clearQueue,gotoEnd) {
	return this.stop(clearQueue,gotoEnd);
}
JQuery.prototype.Submit = function() {
	return this.submit();
}
JQuery.prototype.SubmitCall = function(fn) {
	return this.submit(fn);
}
JQuery.prototype.SwitchClass = function(cl,_switch) {
	return this.toggleClass(cl,_switch);
}
JQuery.prototype.Tabs = function(param) {
	return this.tabs(param);
}
JQuery.prototype.TabsOption = function(name,value) {
	return this.tabs("option",name,value);
}
JQuery.prototype.Text = function() {
	return this.text();
}
JQuery.prototype.Toggle = function(speed,call) {
	return this.toggle(speed,call);
}
JQuery.prototype.ToggleCall = function(fn1,fn2,fn3,fn4) {
	return this.toggle(fn1,fn2,fn3,fn4);
}
JQuery.prototype.ToggleClass = function(cl) {
	return this.toggleClass(cl);
}
JQuery.prototype.ToggleTo = function(to) {
	return this.toggle(to);
}
JQuery.prototype.Trigger = function(event,data) {
	return this.trigger(event,data);
}
JQuery.prototype.TriggerHandler = function(event,data) {
	return this.triggerHandler(event,data);
}
JQuery.prototype.Unbind = function(type,fn) {
	return this.unbind(type,fn);
}
JQuery.prototype.Unload = function(fn) {
	return this.unload(fn);
}
JQuery.prototype.Val = function() {
	return this.val();
}
JQuery.prototype.ValArray = function() {
	return this.val();
}
JQuery.prototype.Width = function() {
	return this.width();
}
JQuery.prototype.Wrap = function(content) {
	return this.wrap(content);
}
JQuery.prototype.WrapAll = function(content) {
	return this.wrapAll(content);
}
JQuery.prototype.WrapAllElement = function(el) {
	return this.wrapAll(el);
}
JQuery.prototype.WrapElement = function(el) {
	return this.wrap(el);
}
JQuery.prototype.WrapInner = function(content) {
	return this.wrapInner(content);
}
JQuery.prototype.WrapInnerElement = function(el) {
	return this.wrapInner(el);
}
JQuery.prototype.getContext = function() {
	return this.context();
}
JQuery.prototype.getLength = function() {
	return this.length;
}
JQuery.prototype.getSelector = function() {
	return this.selector();
}
JQuery.prototype.__class__ = JQuery;
se.publicclass.socialgrid.view.components.containers.ImageBox = function(d) { if( d === $_ ) return; {
	se.publicclass.socialgrid.view.components.containers.AbstractBox.apply(this,[d]);
	this.addImage();
}}
se.publicclass.socialgrid.view.components.containers.ImageBox.__name__ = ["se","publicclass","socialgrid","view","components","containers","ImageBox"];
se.publicclass.socialgrid.view.components.containers.ImageBox.__super__ = se.publicclass.socialgrid.view.components.containers.AbstractBox;
for(var k in se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype ) se.publicclass.socialgrid.view.components.containers.ImageBox.prototype[k] = se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype[k];
se.publicclass.socialgrid.view.components.containers.ImageBox.prototype.addImage = function() {
	this.image = js.Lib.document.createElement("img");
	this.image.onload = $closure(this,"onLoadComplete");
	this.image.src = this.data.media;
}
se.publicclass.socialgrid.view.components.containers.ImageBox.prototype.getRatio = function(w1,h1,w2,h2) {
	return (((w1 / w2) > (h1 / h2))?(w1 / w2):(h1 / h2));
}
se.publicclass.socialgrid.view.components.containers.ImageBox.prototype.image = null;
se.publicclass.socialgrid.view.components.containers.ImageBox.prototype.onLoadComplete = function(e) {
	var ratio = this.getRatio(this.w(),this.h(),this.image.width,this.image.height);
	var w = this.image.width * ratio;
	var h = this.image.height * ratio;
	this.image.style.position = "relative";
	this.image.style.left = this.toStringPixel(Std["int"]((this.w() - w) * .5));
	this.image.style.top = this.toStringPixel(Std["int"]((this.h() - h) * .5));
	this.image.style.width = this.toStringPixel(Std["int"](w));
	this.image.style.height = this.toStringPixel(Std["int"](h));
	if(this.element.hasChildNodes()) this.element.insertBefore(this.image,this.element.childNodes[0]);
	else this.element.appendChild(this.image);
}
se.publicclass.socialgrid.view.components.containers.ImageBox.prototype.__class__ = se.publicclass.socialgrid.view.components.containers.ImageBox;
se.publicclass.socialgrid.view.components.containers.FlickrBox = function(d) { if( d === $_ ) return; {
	se.publicclass.socialgrid.view.components.containers.ImageBox.apply(this,[d]);
	this.addText();
	this.element.className += " photos";
	this.createOverlay();
}}
se.publicclass.socialgrid.view.components.containers.FlickrBox.__name__ = ["se","publicclass","socialgrid","view","components","containers","FlickrBox"];
se.publicclass.socialgrid.view.components.containers.FlickrBox.__super__ = se.publicclass.socialgrid.view.components.containers.ImageBox;
for(var k in se.publicclass.socialgrid.view.components.containers.ImageBox.prototype ) se.publicclass.socialgrid.view.components.containers.FlickrBox.prototype[k] = se.publicclass.socialgrid.view.components.containers.ImageBox.prototype[k];
se.publicclass.socialgrid.view.components.containers.FlickrBox.prototype.addText = function() {
	this.text = js.Lib.document.createElement("div");
	this.text.className += "photos";
	this.text.innerHTML = "<p class='box'>" + this.title + "</p>";
	this.text.style.position = "absolute";
	this.text.style.bottom = this.toStringPixel(0);
	this.text.style.width = this.toStringPixel(this.w());
	this.element.appendChild(this.text);
}
se.publicclass.socialgrid.view.components.containers.FlickrBox.prototype.createOverlay = function() {
	this.overlay = js.Lib.document.createElement("div");
	this.overlay.style.display = "none";
	this.overlay.innerHTML = "<p class='box'>" + this.content + "</p>";
	this.overlay.style.width = this.toStringPixel(this.w());
	this.overlay.className += " text-box";
	this.element.appendChild(this.overlay);
}
se.publicclass.socialgrid.view.components.containers.FlickrBox.prototype.onMouseOut = function(e) {
	this.text.style.display = this.image.style.display = "block";
	this.overlay.style.display = "none";
}
se.publicclass.socialgrid.view.components.containers.FlickrBox.prototype.onMouseOver = function(e) {
	this.overlay.style.display = "block";
	this.text.style.display = this.image.style.display = "none";
}
se.publicclass.socialgrid.view.components.containers.FlickrBox.prototype.overlay = null;
se.publicclass.socialgrid.view.components.containers.FlickrBox.prototype.text = null;
se.publicclass.socialgrid.view.components.containers.FlickrBox.prototype.__class__ = se.publicclass.socialgrid.view.components.containers.FlickrBox;
se.publicclass.socialgrid.view.ApplicationMediator = function(viewComponent) { if( viewComponent === $_ ) return; {
	org.puremvc.haxe.patterns.mediator.Mediator.apply(this,["ApplicationMediator",viewComponent]);
}}
se.publicclass.socialgrid.view.ApplicationMediator.__name__ = ["se","publicclass","socialgrid","view","ApplicationMediator"];
se.publicclass.socialgrid.view.ApplicationMediator.__super__ = org.puremvc.haxe.patterns.mediator.Mediator;
for(var k in org.puremvc.haxe.patterns.mediator.Mediator.prototype ) se.publicclass.socialgrid.view.ApplicationMediator.prototype[k] = org.puremvc.haxe.patterns.mediator.Mediator.prototype[k];
se.publicclass.socialgrid.view.ApplicationMediator.prototype.getAddressProxy = function() {
	return this.facade.retrieveProxy(se.publicclass.socialgrid.model.AddressProxy.NAME);
}
se.publicclass.socialgrid.view.ApplicationMediator.prototype.getFeedProxy = function() {
	return this.facade.retrieveProxy("feedProxy");
}
se.publicclass.socialgrid.view.ApplicationMediator.prototype.getGrid = function() {
	return this.viewComponent;
}
se.publicclass.socialgrid.view.ApplicationMediator.prototype.getItemProxy = function() {
	return this.facade.retrieveProxy(se.publicclass.socialgrid.model.ItemProxy.NAME);
}
se.publicclass.socialgrid.view.ApplicationMediator.prototype.handleNotification = function(notification) {
	switch(notification.getName()) {
	case "onAdressChanged":{
		if(this.getAddressProxy().getProject() != null) {
			this.getItemProxy().load();
		}
		this.getFeedProxy().load();
		this.getFeedProxy().clear = notification.getBody().clear;
	}break;
	}
}
se.publicclass.socialgrid.view.ApplicationMediator.prototype.listNotificationInterests = function() {
	return ["onAdressChanged","onDataLoaded"];
}
se.publicclass.socialgrid.view.ApplicationMediator.prototype.onRegister = function() {
	org.puremvc.haxe.patterns.mediator.Mediator.prototype.onRegister.apply(this,[]);
	this.facade.registerMediator(new se.publicclass.socialgrid.view.BodyMediator());
	var grid = js.Lib.document.getElementById("content");
	this.facade.registerMediator(new se.publicclass.socialgrid.view.GridMediator(new se.publicclass.socialgrid.view.components.MainGrid(grid)));
}
se.publicclass.socialgrid.view.ApplicationMediator.prototype.__class__ = se.publicclass.socialgrid.view.ApplicationMediator;
ValueType = { __ename__ : ["ValueType"], __constructs__ : ["TNull","TInt","TFloat","TBool","TObject","TFunction","TClass","TEnum","TUnknown"] }
ValueType.TBool = ["TBool",3];
ValueType.TBool.toString = $estr;
ValueType.TBool.__enum__ = ValueType;
ValueType.TClass = function(c) { var $x = ["TClass",6,c]; $x.__enum__ = ValueType; $x.toString = $estr; return $x; }
ValueType.TEnum = function(e) { var $x = ["TEnum",7,e]; $x.__enum__ = ValueType; $x.toString = $estr; return $x; }
ValueType.TFloat = ["TFloat",2];
ValueType.TFloat.toString = $estr;
ValueType.TFloat.__enum__ = ValueType;
ValueType.TFunction = ["TFunction",5];
ValueType.TFunction.toString = $estr;
ValueType.TFunction.__enum__ = ValueType;
ValueType.TInt = ["TInt",1];
ValueType.TInt.toString = $estr;
ValueType.TInt.__enum__ = ValueType;
ValueType.TNull = ["TNull",0];
ValueType.TNull.toString = $estr;
ValueType.TNull.__enum__ = ValueType;
ValueType.TObject = ["TObject",4];
ValueType.TObject.toString = $estr;
ValueType.TObject.__enum__ = ValueType;
ValueType.TUnknown = ["TUnknown",8];
ValueType.TUnknown.toString = $estr;
ValueType.TUnknown.__enum__ = ValueType;
Type = function() { }
Type.__name__ = ["Type"];
Type.getClass = function(o) {
	if(o == null) return null;
	if(o.__enum__ != null) return null;
	return o.__class__;
}
Type.getEnum = function(o) {
	if(o == null) return null;
	return o.__enum__;
}
Type.getSuperClass = function(c) {
	return c.__super__;
}
Type.getClassName = function(c) {
	if(c == null) return null;
	var a = c.__name__;
	return a.join(".");
}
Type.getEnumName = function(e) {
	var a = e.__ename__;
	return a.join(".");
}
Type.resolveClass = function(name) {
	var cl;
	try {
		cl = eval(name);
	}
	catch( $e9 ) {
		{
			var e = $e9;
			{
				cl = null;
			}
		}
	}
	if(cl == null || cl.__name__ == null) return null;
	return cl;
}
Type.resolveEnum = function(name) {
	var e;
	try {
		e = eval(name);
	}
	catch( $e10 ) {
		{
			var err = $e10;
			{
				e = null;
			}
		}
	}
	if(e == null || e.__ename__ == null) return null;
	return e;
}
Type.createInstance = function(cl,args) {
	if(args.length <= 3) return new cl(args[0],args[1],args[2]);
	if(args.length > 8) throw "Too many arguments";
	return new cl(args[0],args[1],args[2],args[3],args[4],args[5],args[6],args[7]);
}
Type.createEmptyInstance = function(cl) {
	return new cl($_);
}
Type.createEnum = function(e,constr,params) {
	var f = Reflect.field(e,constr);
	if(f == null) throw "No such constructor " + constr;
	if(Reflect.isFunction(f)) {
		if(params == null) throw "Constructor " + constr + " need parameters";
		return f.apply(e,params);
	}
	if(params != null && params.length != 0) throw "Constructor " + constr + " does not need parameters";
	return f;
}
Type.createEnumIndex = function(e,index,params) {
	var c = Type.getEnumConstructs(e)[index];
	if(c == null) throw index + " is not a valid enum constructor index";
	return Type.createEnum(e,c,params);
}
Type.getInstanceFields = function(c) {
	var a = Reflect.fields(c.prototype);
	a.remove("__class__");
	return a;
}
Type.getClassFields = function(c) {
	var a = Reflect.fields(c);
	a.remove("__name__");
	a.remove("__interfaces__");
	a.remove("__super__");
	a.remove("prototype");
	return a;
}
Type.getEnumConstructs = function(e) {
	return e.__constructs__;
}
Type["typeof"] = function(v) {
	switch(typeof(v)) {
	case "boolean":{
		return ValueType.TBool;
	}break;
	case "string":{
		return ValueType.TClass(String);
	}break;
	case "number":{
		if(Math.ceil(v) == v % 2147483648.0) return ValueType.TInt;
		return ValueType.TFloat;
	}break;
	case "object":{
		if(v == null) return ValueType.TNull;
		var e = v.__enum__;
		if(e != null) return ValueType.TEnum(e);
		var c = v.__class__;
		if(c != null) return ValueType.TClass(c);
		return ValueType.TObject;
	}break;
	case "function":{
		if(v.__name__ != null) return ValueType.TObject;
		return ValueType.TFunction;
	}break;
	case "undefined":{
		return ValueType.TNull;
	}break;
	default:{
		return ValueType.TUnknown;
	}break;
	}
}
Type.enumEq = function(a,b) {
	if(a == b) return true;
	try {
		if(a[0] != b[0]) return false;
		{
			var _g1 = 2, _g = a.length;
			while(_g1 < _g) {
				var i = _g1++;
				if(!Type.enumEq(a[i],b[i])) return false;
			}
		}
		var e = a.__enum__;
		if(e != b.__enum__ || e == null) return false;
	}
	catch( $e11 ) {
		{
			var e = $e11;
			{
				return false;
			}
		}
	}
	return true;
}
Type.enumConstructor = function(e) {
	return e[0];
}
Type.enumParameters = function(e) {
	return e.slice(2);
}
Type.enumIndex = function(e) {
	return e[1];
}
Type.prototype.__class__ = Type;
js = {}
js.Boot = function() { }
js.Boot.__name__ = ["js","Boot"];
js.Boot.__unhtml = function(s) {
	return s.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;");
}
js.Boot.__trace = function(v,i) {
	var msg = (i != null?i.fileName + ":" + i.lineNumber + ": ":"");
	msg += js.Boot.__unhtml(js.Boot.__string_rec(v,"")) + "<br/>";
	var d = document.getElementById("haxe:trace");
	if(d == null) alert("No haxe:trace element defined\n" + msg);
	else d.innerHTML += msg;
}
js.Boot.__clear_trace = function() {
	var d = document.getElementById("haxe:trace");
	if(d != null) d.innerHTML = "";
	else null;
}
js.Boot.__closure = function(o,f) {
	var m = o[f];
	if(m == null) return null;
	var f1 = function() {
		return m.apply(o,arguments);
	}
	f1.scope = o;
	f1.method = m;
	return f1;
}
js.Boot.__string_rec = function(o,s) {
	if(o == null) return "null";
	if(s.length >= 5) return "<...>";
	var t = typeof(o);
	if(t == "function" && (o.__name__ != null || o.__ename__ != null)) t = "object";
	switch(t) {
	case "object":{
		if(o instanceof Array) {
			if(o.__enum__ != null) {
				if(o.length == 2) return o[0];
				var str = o[0] + "(";
				s += "\t";
				{
					var _g1 = 2, _g = o.length;
					while(_g1 < _g) {
						var i = _g1++;
						if(i != 2) str += "," + js.Boot.__string_rec(o[i],s);
						else str += js.Boot.__string_rec(o[i],s);
					}
				}
				return str + ")";
			}
			var l = o.length;
			var i;
			var str = "[";
			s += "\t";
			{
				var _g = 0;
				while(_g < l) {
					var i1 = _g++;
					str += ((i1 > 0?",":"")) + js.Boot.__string_rec(o[i1],s);
				}
			}
			str += "]";
			return str;
		}
		var tostr;
		try {
			tostr = o.toString;
		}
		catch( $e12 ) {
			{
				var e = $e12;
				{
					return "???";
				}
			}
		}
		if(tostr != null && tostr != Object.toString) {
			var s2 = o.toString();
			if(s2 != "[object Object]") return s2;
		}
		var k = null;
		var str = "{\n";
		s += "\t";
		var hasp = (o.hasOwnProperty != null);
		for( var k in o ) { ;
		if(hasp && !o.hasOwnProperty(k)) continue;
		if(k == "prototype" || k == "__class__" || k == "__super__" || k == "__interfaces__") continue;
		if(str.length != 2) str += ", \n";
		str += s + k + " : " + js.Boot.__string_rec(o[k],s);
		}
		s = s.substring(1);
		str += "\n" + s + "}";
		return str;
	}break;
	case "function":{
		return "<function>";
	}break;
	case "string":{
		return o;
	}break;
	default:{
		return String(o);
	}break;
	}
}
js.Boot.__interfLoop = function(cc,cl) {
	if(cc == null) return false;
	if(cc == cl) return true;
	var intf = cc.__interfaces__;
	if(intf != null) {
		var _g1 = 0, _g = intf.length;
		while(_g1 < _g) {
			var i = _g1++;
			var i1 = intf[i];
			if(i1 == cl || js.Boot.__interfLoop(i1,cl)) return true;
		}
	}
	return js.Boot.__interfLoop(cc.__super__,cl);
}
js.Boot.__instanceof = function(o,cl) {
	try {
		if(o instanceof cl) {
			if(cl == Array) return (o.__enum__ == null);
			return true;
		}
		if(js.Boot.__interfLoop(o.__class__,cl)) return true;
	}
	catch( $e13 ) {
		{
			var e = $e13;
			{
				if(cl == null) return false;
			}
		}
	}
	switch(cl) {
	case Int:{
		return Math.ceil(o%2147483648.0) === o;
	}break;
	case Float:{
		return typeof(o) == "number";
	}break;
	case Bool:{
		return o === true || o === false;
	}break;
	case String:{
		return typeof(o) == "string";
	}break;
	case Dynamic:{
		return true;
	}break;
	default:{
		if(o == null) return false;
		return o.__enum__ == cl || (cl == Class && o.__name__ != null) || (cl == Enum && o.__ename__ != null);
	}break;
	}
}
js.Boot.__init = function() {
	js.Lib.isIE = (document.all != null && window.opera == null);
	js.Lib.isOpera = (window.opera != null);
	Array.prototype.copy = Array.prototype.slice;
	Array.prototype.insert = function(i,x) {
		this.splice(i,0,x);
	}
	Array.prototype.remove = (Array.prototype.indexOf?function(obj) {
		var idx = this.indexOf(obj);
		if(idx == -1) return false;
		this.splice(idx,1);
		return true;
	}:function(obj) {
		var i = 0;
		var l = this.length;
		while(i < l) {
			if(this[i] == obj) {
				this.splice(i,1);
				return true;
			}
			i++;
		}
		return false;
	});
	Array.prototype.iterator = function() {
		return { cur : 0, arr : this, hasNext : function() {
			return this.cur < this.arr.length;
		}, next : function() {
			return this.arr[this.cur++];
		}}
	}
	var cca = String.prototype.charCodeAt;
	String.prototype.cca = cca;
	String.prototype.charCodeAt = function(i) {
		var x = cca.call(this,i);
		if(isNaN(x)) return null;
		return x;
	}
	var oldsub = String.prototype.substr;
	String.prototype.substr = function(pos,len) {
		if(pos != null && pos != 0 && len != null && len < 0) return "";
		if(len == null) len = this.length;
		if(pos < 0) {
			pos = this.length + pos;
			if(pos < 0) pos = 0;
		}
		else if(len < 0) {
			len = this.length + len - pos;
		}
		return oldsub.apply(this,[pos,len]);
	}
	$closure = js.Boot.__closure;
}
js.Boot.prototype.__class__ = js.Boot;
haxe.Firebug = function() { }
haxe.Firebug.__name__ = ["haxe","Firebug"];
haxe.Firebug.detect = function() {
	try {
		return console != null && console.error != null;
	}
	catch( $e14 ) {
		{
			var e = $e14;
			{
				return false;
			}
		}
	}
}
haxe.Firebug.redirectTraces = function() {
	haxe.Log.trace = $closure(haxe.Firebug,"trace");
	js.Lib.setErrorHandler($closure(haxe.Firebug,"onError"));
}
haxe.Firebug.onError = function(err,stack) {
	var buf = err + "\n";
	{
		var _g = 0;
		while(_g < stack.length) {
			var s = stack[_g];
			++_g;
			buf += "Called from " + s + "\n";
		}
	}
	haxe.Firebug.trace(buf,null);
	return true;
}
haxe.Firebug.trace = function(v,inf) {
	var type = (inf != null && inf.customParams != null?inf.customParams[0]:null);
	if(type != "warn" && type != "info" && type != "debug" && type != "error") type = (inf == null?"error":"log");
	console[type](((inf == null?"":inf.fileName + ":" + inf.lineNumber + " : ")) + Std.string(v));
}
haxe.Firebug.prototype.__class__ = haxe.Firebug;
se.publicclass.socialgrid.model.ItemProxy = function(p) { if( p === $_ ) return; {
	se.publicclass.socialgrid.model.FeedProxy.apply(this,[se.publicclass.socialgrid.model.ItemProxy.NAME]);
}}
se.publicclass.socialgrid.model.ItemProxy.__name__ = ["se","publicclass","socialgrid","model","ItemProxy"];
se.publicclass.socialgrid.model.ItemProxy.__super__ = se.publicclass.socialgrid.model.FeedProxy;
for(var k in se.publicclass.socialgrid.model.FeedProxy.prototype ) se.publicclass.socialgrid.model.ItemProxy.prototype[k] = se.publicclass.socialgrid.model.FeedProxy.prototype[k];
se.publicclass.socialgrid.model.ItemProxy.prototype.load = function(url,type) {
	if(type == null) type = "feed";
	if(url == null) url = "";
	var url1 = "item/" + this.getAddressProxy().getProject() + "/json/";
	se.publicclass.socialgrid.model.FeedProxy.prototype.load.apply(this,[url1]);
}
se.publicclass.socialgrid.model.ItemProxy.prototype.notifyOnComplete = function() {
	this.sendNotification("onDataLoaded",{ data : this.feedItems, type : se.publicclass.socialgrid.model.ItemProxy.NAME});
}
se.publicclass.socialgrid.model.ItemProxy.prototype.__class__ = se.publicclass.socialgrid.model.ItemProxy;
haxe.Timer = function(time_ms) { if( time_ms === $_ ) return; {
	this.id = haxe.Timer.arr.length;
	haxe.Timer.arr[this.id] = this;
	this.timerId = window.setInterval("haxe.Timer.arr[" + this.id + "].run();",time_ms);
}}
haxe.Timer.__name__ = ["haxe","Timer"];
haxe.Timer.delay = function(f,time_ms) {
	var t = new haxe.Timer(time_ms);
	t.run = function() {
		t.stop();
		f();
	}
	return t;
}
haxe.Timer.stamp = function() {
	return Date.now().getTime() / 1000;
}
haxe.Timer.prototype.id = null;
haxe.Timer.prototype.run = function() {
	null;
}
haxe.Timer.prototype.stop = function() {
	if(this.id == null) return;
	window.clearInterval(this.timerId);
	haxe.Timer.arr[this.id] = null;
	if(this.id > 100 && this.id == haxe.Timer.arr.length - 1) {
		var p = this.id - 1;
		while(p >= 0 && haxe.Timer.arr[p] == null) p--;
		haxe.Timer.arr = haxe.Timer.arr.slice(0,p + 1);
	}
	this.id = null;
}
haxe.Timer.prototype.timerId = null;
haxe.Timer.prototype.__class__ = haxe.Timer;
se.publicclass.socialgrid.view.components.containers.TwitterBox = function(d) { if( d === $_ ) return; {
	se.publicclass.socialgrid.view.components.containers.AbstractBox.apply(this,[d]);
	this.createTweet();
	this.element.className += " tweets";
}}
se.publicclass.socialgrid.view.components.containers.TwitterBox.__name__ = ["se","publicclass","socialgrid","view","components","containers","TwitterBox"];
se.publicclass.socialgrid.view.components.containers.TwitterBox.__super__ = se.publicclass.socialgrid.view.components.containers.AbstractBox;
for(var k in se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype ) se.publicclass.socialgrid.view.components.containers.TwitterBox.prototype[k] = se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype[k];
se.publicclass.socialgrid.view.components.containers.TwitterBox.prototype.createTweet = function() {
	var r = new EReg("([^a-zA-Z0-9])","");
	var div = js.Lib.document.createElement("div");
	div.innerHTML = "<p class='box tweets'>" + this.title + "</p>";
	div.style.position = "absolute";
	div.style.bottom = "0px";
	div.style.width = this.toStringPixel(this.w());
	this.element.appendChild(div);
}
se.publicclass.socialgrid.view.components.containers.TwitterBox.prototype.update = function() {
	se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.update.apply(this,[]);
}
se.publicclass.socialgrid.view.components.containers.TwitterBox.prototype.__class__ = se.publicclass.socialgrid.view.components.containers.TwitterBox;
se.publicclass.socialgrid.controller.SetupViewCommand = function(p) { if( p === $_ ) return; {
	org.puremvc.haxe.patterns.command.SimpleCommand.apply(this,[]);
}}
se.publicclass.socialgrid.controller.SetupViewCommand.__name__ = ["se","publicclass","socialgrid","controller","SetupViewCommand"];
se.publicclass.socialgrid.controller.SetupViewCommand.__super__ = org.puremvc.haxe.patterns.command.SimpleCommand;
for(var k in org.puremvc.haxe.patterns.command.SimpleCommand.prototype ) se.publicclass.socialgrid.controller.SetupViewCommand.prototype[k] = org.puremvc.haxe.patterns.command.SimpleCommand.prototype[k];
se.publicclass.socialgrid.controller.SetupViewCommand.prototype.execute = function(note) {
	var app = (function($this) {
		var $r;
		var tmp = note.getBody();
		$r = (Std["is"](tmp,se.publicclass.socialgrid.SocialGrid)?tmp:(function($this) {
			var $r;
			throw "Class cast error";
			return $r;
		}($this)));
		return $r;
	}(this));
	this.facade.registerMediator(new se.publicclass.socialgrid.view.ApplicationMediator(app));
}
se.publicclass.socialgrid.controller.SetupViewCommand.prototype.__class__ = se.publicclass.socialgrid.controller.SetupViewCommand;
events.ListenerStack = function(p) { if( p === $_ ) return; {
	this._count = 0;
	this._p0Listeners = [];
	this._listeners = [];
}}
events.ListenerStack.__name__ = ["events","ListenerStack"];
events.ListenerStack.prototype._count = null;
events.ListenerStack.prototype._listeners = null;
events.ListenerStack.prototype._p0Listeners = null;
events.ListenerStack.prototype.add = function(listener,priority) {
	this.remove(listener);
	this._count++;
	if(priority == 0) {
		this._p0Listeners.push(listener);
		return;
	}
	var len = this._listeners.length;
	var min = 0;
	var max = len;
	var i;
	while(true) {
		i = Std["int"](min + max / 2);
		var p = this._listeners[i].p;
		if(p == priority) {
			this._listeners[i].ls.push(listener);
			return;
		}
		else if(min == max) {
			this._listeners.insert(((priority > p)?i:i + 1),{ p : priority, ls : [listener]});
			return;
		}
		else if(p < priority) {
			max = i;
		}
		else if(p > priority) {
			min = i;
		}
	}
}
events.ListenerStack.prototype.dispatch = function(event) {
	var prop = event.__pInfos;
	{
		var _g = 0, _g1 = this._listeners;
		while(_g < _g1.length) {
			var ls = _g1[_g];
			++_g;
			var _g2 = 0, _g3 = ls.ls;
			while(_g2 < _g3.length) {
				var l = _g3[_g2];
				++_g2;
				l.apply(null,[this.duplicateEvent(event)]);
				if(prop.stoppedImmediately) throw events.PropagationStop__.PSImmediate;
			}
		}
	}
	{
		var _g = 0, _g1 = this._p0Listeners;
		while(_g < _g1.length) {
			var l = _g1[_g];
			++_g;
			l.apply(null,[this.duplicateEvent(event)]);
			if(prop.stoppedImmediately) throw events.PropagationStop__.PSImmediate;
		}
	}
}
events.ListenerStack.prototype.duplicateEvent = function(e) {
	var ret = e.clone();
	ret.__pInfos = e.__pInfos;
	return ret;
}
events.ListenerStack.prototype.getCount = function() {
	return this._count;
}
events.ListenerStack.prototype.remove = function(listener) {
	if(this._count == 0) return false;
	var i = 0;
	{
		var _g = 0, _g1 = this._p0Listeners;
		while(_g < _g1.length) {
			var l = _g1[_g];
			++_g;
			if(Reflect.compareMethods(l,listener)) {
				this._p0Listeners.splice(i,1);
				this._count--;
				return true;
			}
			else i++;
		}
	}
	{
		var _g = 0, _g1 = this._listeners;
		while(_g < _g1.length) {
			var ls = _g1[_g];
			++_g;
			i = 0;
			{
				var _g2 = 0, _g3 = ls.ls;
				while(_g2 < _g3.length) {
					var l = _g3[_g2];
					++_g2;
					if(Reflect.compareMethods(l,listener)) {
						ls.ls.splice(i,1);
						this._count--;
						return true;
					}
					else i++;
				}
			}
		}
	}
	return false;
}
events.ListenerStack.prototype.__class__ = events.ListenerStack;
events.EventPhase = { __ename__ : ["events","EventPhase"], __constructs__ : ["EPCapture","EPTarget","EPBubble"] }
events.EventPhase.EPBubble = ["EPBubble",2];
events.EventPhase.EPBubble.toString = $estr;
events.EventPhase.EPBubble.__enum__ = events.EventPhase;
events.EventPhase.EPCapture = ["EPCapture",0];
events.EventPhase.EPCapture.toString = $estr;
events.EventPhase.EPCapture.__enum__ = events.EventPhase;
events.EventPhase.EPTarget = ["EPTarget",1];
events.EventPhase.EPTarget.toString = $estr;
events.EventPhase.EPTarget.__enum__ = events.EventPhase;
se.publicclass.socialgrid.view.GridMediator = function(viewComponent) { if( viewComponent === $_ ) return; {
	org.puremvc.haxe.patterns.mediator.Mediator.apply(this,["GridMediator",viewComponent]);
}}
se.publicclass.socialgrid.view.GridMediator.__name__ = ["se","publicclass","socialgrid","view","GridMediator"];
se.publicclass.socialgrid.view.GridMediator.__super__ = org.puremvc.haxe.patterns.mediator.Mediator;
for(var k in org.puremvc.haxe.patterns.mediator.Mediator.prototype ) se.publicclass.socialgrid.view.GridMediator.prototype[k] = org.puremvc.haxe.patterns.mediator.Mediator.prototype[k];
se.publicclass.socialgrid.view.GridMediator.prototype._itemGrid = null;
se.publicclass.socialgrid.view.GridMediator.prototype._tween = null;
se.publicclass.socialgrid.view.GridMediator.prototype.createItemGrid = function(feed) {
	var holder = js.Lib.document.getElementById("item-holder");
	this._itemGrid = new se.publicclass.socialgrid.view.components.Grid(holder);
	{
		var _g = 0;
		while(_g < feed.length) {
			var item = feed[_g];
			++_g;
			this._itemGrid.createItem(item,item.type);
		}
	}
	this._itemGrid.update();
	js.Lib.window.scrollTo(0,0);
	this.positionMainGrid("show");
}
se.publicclass.socialgrid.view.GridMediator.prototype.createItems = function(feed) {
	this.getGrid().slugDataList = this.getFeedProxy().slugItems;
	{
		var _g = 0;
		while(_g < feed.length) {
			var item = feed[_g];
			++_g;
			if(this.getAddressProxy().getFilter() == se.publicclass.socialgrid.model.AddressProxy.NO_FILTER && item.ignore) continue;
			this.getGrid().createItem(item);
		}
	}
	this.getGrid().update();
}
se.publicclass.socialgrid.view.GridMediator.prototype.getAddressProxy = function() {
	return (function($this) {
		var $r;
		var tmp = $this.facade.retrieveProxy(se.publicclass.socialgrid.model.AddressProxy.NAME);
		$r = (Std["is"](tmp,se.publicclass.socialgrid.model.AddressProxy)?tmp:(function($this) {
			var $r;
			throw "Class cast error";
			return $r;
		}($this)));
		return $r;
	}(this));
}
se.publicclass.socialgrid.view.GridMediator.prototype.getFeedProxy = function() {
	return (function($this) {
		var $r;
		var tmp = $this.facade.retrieveProxy("feedProxy");
		$r = (Std["is"](tmp,se.publicclass.socialgrid.model.FeedProxy)?tmp:(function($this) {
			var $r;
			throw "Class cast error";
			return $r;
		}($this)));
		return $r;
	}(this));
}
se.publicclass.socialgrid.view.GridMediator.prototype.getGrid = function() {
	return (function($this) {
		var $r;
		var tmp = $this.viewComponent;
		$r = (Std["is"](tmp,se.publicclass.socialgrid.view.components.MainGrid)?tmp:(function($this) {
			var $r;
			throw "Class cast error";
			return $r;
		}($this)));
		return $r;
	}(this));
}
se.publicclass.socialgrid.view.GridMediator.prototype.handleNotification = function(notification) {
	switch(notification.getName()) {
	case "onDataLoaded":{
		if(notification.getBody().type == se.publicclass.socialgrid.model.ItemProxy.NAME) {
			if(this._itemGrid != null) {
				this._itemGrid.clear();
				this._itemGrid = null;
			}
			this.createItemGrid(notification.getBody().data);
		}
		else {
			if(notification.getBody().clear) {
				this.getGrid().clear();
				if(this._itemGrid != null && !notification.getBody().firstLoad) {
					this._itemGrid.clear();
					this._itemGrid = null;
				}
			}
			this.createItems(notification.getBody().data);
		}
	}break;
	case "onAdressChanged":{
		if(this.getAddressProxy().getProject() == null && this._itemGrid != null) {
			this.positionMainGrid("hide");
			this._itemGrid = null;
		}
	}break;
	case "onResize":{
		if(this._itemGrid != null) {
			this._itemGrid.onResize();
		}
		this.getGrid().onResize();
	}break;
	}
}
se.publicclass.socialgrid.view.GridMediator.prototype.listNotificationInterests = function() {
	return ["onDataLoaded","onAdressChanged","onResize"];
}
se.publicclass.socialgrid.view.GridMediator.prototype.onClick = function(e) {
	this.sendNotification("setAdress",{ href : "/" + (function($this) {
		var $r;
		var tmp = e.getTarget();
		$r = (Std["is"](tmp,se.publicclass.socialgrid.view.components.containers.AbstractBox)?tmp:(function($this) {
			var $r;
			throw "Class cast error";
			return $r;
		}($this)));
		return $r;
	}(this)).data.permalink + "/" + this.getAddressProxy().getFilter()});
}
se.publicclass.socialgrid.view.GridMediator.prototype.onRegister = function() {
	org.puremvc.haxe.patterns.mediator.Mediator.prototype.onRegister.apply(this,[]);
	this.getGrid().addEventListener("onClick",$closure(this,"onClick"),events.EventPhase.EPBubble);
}
se.publicclass.socialgrid.view.GridMediator.prototype.positionMainGrid = function(type) {
	if(type == null) type = "show";
	switch(type) {
	case "show":{
		jQuery("#item-holder").slideDown(500,null);
	}break;
	case "hide":{
		jQuery("#item-holder").slideUp(700,$closure(this._itemGrid,"clear"));
	}break;
	case "clear":{
		jQuery("#item-holder").hide(0,null);
	}break;
	}
}
se.publicclass.socialgrid.view.GridMediator.prototype.__class__ = se.publicclass.socialgrid.view.GridMediator;
org.puremvc.haxe.interfaces.IFacade = function() { }
org.puremvc.haxe.interfaces.IFacade.__name__ = ["org","puremvc","haxe","interfaces","IFacade"];
org.puremvc.haxe.interfaces.IFacade.prototype.hasCommand = null;
org.puremvc.haxe.interfaces.IFacade.prototype.hasMediator = null;
org.puremvc.haxe.interfaces.IFacade.prototype.hasProxy = null;
org.puremvc.haxe.interfaces.IFacade.prototype.notifyObservers = null;
org.puremvc.haxe.interfaces.IFacade.prototype.registerCommand = null;
org.puremvc.haxe.interfaces.IFacade.prototype.registerMediator = null;
org.puremvc.haxe.interfaces.IFacade.prototype.registerProxy = null;
org.puremvc.haxe.interfaces.IFacade.prototype.removeCommand = null;
org.puremvc.haxe.interfaces.IFacade.prototype.removeMediator = null;
org.puremvc.haxe.interfaces.IFacade.prototype.removeProxy = null;
org.puremvc.haxe.interfaces.IFacade.prototype.retrieveMediator = null;
org.puremvc.haxe.interfaces.IFacade.prototype.retrieveProxy = null;
org.puremvc.haxe.interfaces.IFacade.prototype.sendNotification = null;
org.puremvc.haxe.interfaces.IFacade.prototype.__class__ = org.puremvc.haxe.interfaces.IFacade;
org.puremvc.haxe.patterns.facade = {}
org.puremvc.haxe.patterns.facade.Facade = function(p) { if( p === $_ ) return; {
	org.puremvc.haxe.patterns.facade.Facade.instance = this;
	this.initializeFacade();
}}
org.puremvc.haxe.patterns.facade.Facade.__name__ = ["org","puremvc","haxe","patterns","facade","Facade"];
org.puremvc.haxe.patterns.facade.Facade.getInstance = function() {
	if(org.puremvc.haxe.patterns.facade.Facade.instance == null) org.puremvc.haxe.patterns.facade.Facade.instance = new org.puremvc.haxe.patterns.facade.Facade();
	return org.puremvc.haxe.patterns.facade.Facade.instance;
}
org.puremvc.haxe.patterns.facade.Facade.instance = null;
org.puremvc.haxe.patterns.facade.Facade.prototype.controller = null;
org.puremvc.haxe.patterns.facade.Facade.prototype.hasCommand = function(notificationName) {
	return this.controller.hasCommand(notificationName);
}
org.puremvc.haxe.patterns.facade.Facade.prototype.hasMediator = function(mediatorName) {
	return this.view.hasMediator(mediatorName);
}
org.puremvc.haxe.patterns.facade.Facade.prototype.hasProxy = function(proxyName) {
	return this.model.hasProxy(proxyName);
}
org.puremvc.haxe.patterns.facade.Facade.prototype.initializeController = function() {
	if(this.controller != null) return;
	this.controller = org.puremvc.haxe.core.Controller.getInstance();
}
org.puremvc.haxe.patterns.facade.Facade.prototype.initializeFacade = function() {
	this.initializeModel();
	this.initializeController();
	this.initializeView();
}
org.puremvc.haxe.patterns.facade.Facade.prototype.initializeModel = function() {
	if(this.model != null) return;
	this.model = org.puremvc.haxe.core.Model.getInstance();
}
org.puremvc.haxe.patterns.facade.Facade.prototype.initializeView = function() {
	if(this.view != null) return;
	this.view = org.puremvc.haxe.core.View.getInstance();
}
org.puremvc.haxe.patterns.facade.Facade.prototype.model = null;
org.puremvc.haxe.patterns.facade.Facade.prototype.notifyObservers = function(notification) {
	if(this.view != null) this.view.notifyObservers(notification);
}
org.puremvc.haxe.patterns.facade.Facade.prototype.registerCommand = function(notificationName,commandClassRef) {
	this.controller.registerCommand(notificationName,commandClassRef);
}
org.puremvc.haxe.patterns.facade.Facade.prototype.registerMediator = function(mediator) {
	if(this.view != null) this.view.registerMediator(mediator);
}
org.puremvc.haxe.patterns.facade.Facade.prototype.registerProxy = function(proxy) {
	this.model.registerProxy(proxy);
}
org.puremvc.haxe.patterns.facade.Facade.prototype.removeCommand = function(notificationName) {
	this.controller.removeCommand(notificationName);
}
org.puremvc.haxe.patterns.facade.Facade.prototype.removeMediator = function(mediatorName) {
	var mediator = null;
	if(this.view != null) mediator = this.view.removeMediator(mediatorName);
	return mediator;
}
org.puremvc.haxe.patterns.facade.Facade.prototype.removeProxy = function(proxyName) {
	var proxy = null;
	if(this.model != null) proxy = this.model.removeProxy(proxyName);
	return proxy;
}
org.puremvc.haxe.patterns.facade.Facade.prototype.retrieveMediator = function(mediatorName) {
	return this.view.retrieveMediator(mediatorName);
}
org.puremvc.haxe.patterns.facade.Facade.prototype.retrieveProxy = function(proxyName) {
	return this.model.retrieveProxy(proxyName);
}
org.puremvc.haxe.patterns.facade.Facade.prototype.sendNotification = function(notificationName,body,type) {
	this.notifyObservers(new org.puremvc.haxe.patterns.observer.Notification(notificationName,body,type));
}
org.puremvc.haxe.patterns.facade.Facade.prototype.view = null;
org.puremvc.haxe.patterns.facade.Facade.prototype.__class__ = org.puremvc.haxe.patterns.facade.Facade;
org.puremvc.haxe.patterns.facade.Facade.__interfaces__ = [org.puremvc.haxe.interfaces.IFacade];
se.publicclass.socialgrid.ApplicationFacade = function(p) { if( p === $_ ) return; {
	org.puremvc.haxe.patterns.facade.Facade.apply(this,[]);
}}
se.publicclass.socialgrid.ApplicationFacade.__name__ = ["se","publicclass","socialgrid","ApplicationFacade"];
se.publicclass.socialgrid.ApplicationFacade.__super__ = org.puremvc.haxe.patterns.facade.Facade;
for(var k in org.puremvc.haxe.patterns.facade.Facade.prototype ) se.publicclass.socialgrid.ApplicationFacade.prototype[k] = org.puremvc.haxe.patterns.facade.Facade.prototype[k];
se.publicclass.socialgrid.ApplicationFacade.instance = null;
se.publicclass.socialgrid.ApplicationFacade.getInstance = function() {
	if(se.publicclass.socialgrid.ApplicationFacade.instance == null) se.publicclass.socialgrid.ApplicationFacade.instance = new se.publicclass.socialgrid.ApplicationFacade();
	return se.publicclass.socialgrid.ApplicationFacade.instance;
}
se.publicclass.socialgrid.ApplicationFacade.prototype.initializeController = function() {
	org.puremvc.haxe.patterns.facade.Facade.prototype.initializeController.apply(this,[]);
	this.registerCommand("startup",se.publicclass.socialgrid.controller.StartupCommand);
}
se.publicclass.socialgrid.ApplicationFacade.prototype.startup = function(app) {
	this.sendNotification("startup",app);
}
se.publicclass.socialgrid.ApplicationFacade.prototype.__class__ = se.publicclass.socialgrid.ApplicationFacade;
StringBuf = function(p) { if( p === $_ ) return; {
	this.b = new Array();
}}
StringBuf.__name__ = ["StringBuf"];
StringBuf.prototype.add = function(x) {
	this.b[this.b.length] = x;
}
StringBuf.prototype.addChar = function(c) {
	this.b[this.b.length] = String.fromCharCode(c);
}
StringBuf.prototype.addSub = function(s,pos,len) {
	this.b[this.b.length] = s.substr(pos,len);
}
StringBuf.prototype.b = null;
StringBuf.prototype.toString = function() {
	return this.b.join("");
}
StringBuf.prototype.__class__ = StringBuf;
se.publicclass.socialgrid.model.AddressProxy = function(p) { if( p === $_ ) return; {
	org.puremvc.haxe.patterns.proxy.Proxy.apply(this,[se.publicclass.socialgrid.model.AddressProxy.NAME]);
	this._count = 0;
}}
se.publicclass.socialgrid.model.AddressProxy.__name__ = ["se","publicclass","socialgrid","model","AddressProxy"];
se.publicclass.socialgrid.model.AddressProxy.__super__ = org.puremvc.haxe.patterns.proxy.Proxy;
for(var k in org.puremvc.haxe.patterns.proxy.Proxy.prototype ) se.publicclass.socialgrid.model.AddressProxy.prototype[k] = org.puremvc.haxe.patterns.proxy.Proxy.prototype[k];
se.publicclass.socialgrid.model.AddressProxy.prototype._count = null;
se.publicclass.socialgrid.model.AddressProxy.prototype._notify = null;
se.publicclass.socialgrid.model.AddressProxy.prototype.clear = null;
se.publicclass.socialgrid.model.AddressProxy.prototype.clearAdress = function(sections) {
	if(sections[0] == "") sections.shift();
	if(sections[sections.length - 1] == "") sections.pop();
	return sections;
}
se.publicclass.socialgrid.model.AddressProxy.prototype.filter = null;
se.publicclass.socialgrid.model.AddressProxy.prototype.getCount = function() {
	return this._count;
}
se.publicclass.socialgrid.model.AddressProxy.prototype.getFilter = function() {
	return this.data.filter;
}
se.publicclass.socialgrid.model.AddressProxy.prototype.getHref = function() {
	return this.data.href;
}
se.publicclass.socialgrid.model.AddressProxy.prototype.getProject = function() {
	return this.data.project;
}
se.publicclass.socialgrid.model.AddressProxy.prototype.href = null;
se.publicclass.socialgrid.model.AddressProxy.prototype.notify = function() {
	this.sendNotification("onAdressChanged",this);
	this.clear = false;
}
se.publicclass.socialgrid.model.AddressProxy.prototype.offset = null;
se.publicclass.socialgrid.model.AddressProxy.prototype.onChange = function(value,force) {
	if(force == null) force = false;
	if(value == null) value = "";
	this.clear = false;
	this._notify = force;
	this.data.href = value;
	this.parseString();
	if(this._notify) this.notify();
}
se.publicclass.socialgrid.model.AddressProxy.prototype.onRegister = function() {
	this.setData(new se.publicclass.socialgrid.model.vo.AddressVO());
	org.puremvc.haxe.patterns.proxy.Proxy.prototype.onRegister.apply(this,[]);
}
se.publicclass.socialgrid.model.AddressProxy.prototype.parseString = function() {
	var sections = this.getHref().split("/");
	var previousProject = this.data.project;
	var previousFilter = this.data.filter;
	this.clearAdress(sections);
	if(sections.length < 2 && sections.length > 0) {
		this.data.filter = sections.shift();
		this.data.project = null;
	}
	else if(sections.length == 2) {
		this.data.project = sections.shift();
		this.data.filter = sections.shift();
	}
	else {
		this.data.project = null;
		this.data.filter = "";
	}
	if(previousProject != this.data.project) {
		this._notify = true;
	}
	if(this.data.filter == "") this.data.filter = se.publicclass.socialgrid.model.AddressProxy.NO_FILTER;
	if(previousFilter != this.data.filter) {
		this._notify = true;
		this._count = 0;
		this.clear = true;
	}
}
se.publicclass.socialgrid.model.AddressProxy.prototype.project = null;
se.publicclass.socialgrid.model.AddressProxy.prototype.setCount = function(val) {
	if(this._count != val) {
		this._count = val;
		this.notify();
	}
	return this._count = val;
}
se.publicclass.socialgrid.model.AddressProxy.prototype.__class__ = se.publicclass.socialgrid.model.AddressProxy;
org.puremvc.haxe.patterns.command.AsyncMacroCommand = function(p) { if( p === $_ ) return; {
	org.puremvc.haxe.patterns.observer.Notifier.apply(this,[]);
	this.subCommands = new List();
	this.initializeAsyncMacroCommand();
}}
org.puremvc.haxe.patterns.command.AsyncMacroCommand.__name__ = ["org","puremvc","haxe","patterns","command","AsyncMacroCommand"];
org.puremvc.haxe.patterns.command.AsyncMacroCommand.__super__ = org.puremvc.haxe.patterns.observer.Notifier;
for(var k in org.puremvc.haxe.patterns.observer.Notifier.prototype ) org.puremvc.haxe.patterns.command.AsyncMacroCommand.prototype[k] = org.puremvc.haxe.patterns.observer.Notifier.prototype[k];
org.puremvc.haxe.patterns.command.AsyncMacroCommand.prototype.addSubCommand = function(commandClassRef) {
	this.subCommands.add(commandClassRef);
}
org.puremvc.haxe.patterns.command.AsyncMacroCommand.prototype.execute = function(notification) {
	this.note = notification;
	this.nextCommand();
}
org.puremvc.haxe.patterns.command.AsyncMacroCommand.prototype.initializeAsyncMacroCommand = function() {
	null;
}
org.puremvc.haxe.patterns.command.AsyncMacroCommand.prototype.nextCommand = function() {
	if(!this.subCommands.isEmpty()) {
		var commandClassRef = this.subCommands.pop();
		var commandInstance = Type.createInstance(commandClassRef,[]);
		var isAsync = Std["is"](commandInstance,org.puremvc.haxe.interfaces.IAsyncCommand);
		if(isAsync) commandInstance.setOnComplete($closure(this,"nextCommand"));
		commandInstance.execute(this.note);
		if(!isAsync) this.nextCommand();
	}
	else {
		if(this.onComplete != null) this.onComplete();
		this.note = null;
		this.onComplete = null;
	}
}
org.puremvc.haxe.patterns.command.AsyncMacroCommand.prototype.note = null;
org.puremvc.haxe.patterns.command.AsyncMacroCommand.prototype.onComplete = null;
org.puremvc.haxe.patterns.command.AsyncMacroCommand.prototype.setOnComplete = function(value) {
	this.onComplete = value;
}
org.puremvc.haxe.patterns.command.AsyncMacroCommand.prototype.subCommands = null;
org.puremvc.haxe.patterns.command.AsyncMacroCommand.prototype.__class__ = org.puremvc.haxe.patterns.command.AsyncMacroCommand;
org.puremvc.haxe.patterns.command.AsyncMacroCommand.__interfaces__ = [org.puremvc.haxe.interfaces.INotifier,org.puremvc.haxe.interfaces.IAsyncCommand];
se.publicclass.socialgrid.controller.StartupCommand = function(p) { if( p === $_ ) return; {
	org.puremvc.haxe.patterns.command.AsyncMacroCommand.apply(this,[]);
}}
se.publicclass.socialgrid.controller.StartupCommand.__name__ = ["se","publicclass","socialgrid","controller","StartupCommand"];
se.publicclass.socialgrid.controller.StartupCommand.__super__ = org.puremvc.haxe.patterns.command.AsyncMacroCommand;
for(var k in org.puremvc.haxe.patterns.command.AsyncMacroCommand.prototype ) se.publicclass.socialgrid.controller.StartupCommand.prototype[k] = org.puremvc.haxe.patterns.command.AsyncMacroCommand.prototype[k];
se.publicclass.socialgrid.controller.StartupCommand.prototype.initializeAsyncMacroCommand = function() {
	this.addSubCommand(se.publicclass.socialgrid.controller.SetupModelCommand);
	this.addSubCommand(se.publicclass.socialgrid.controller.SetupViewCommand);
}
se.publicclass.socialgrid.controller.StartupCommand.prototype.__class__ = se.publicclass.socialgrid.controller.StartupCommand;
se.publicclass.socialgrid.view.components.containers.HomeBox = function(d) { if( d === $_ ) return; {
	se.publicclass.socialgrid.view.components.containers.AbstractBox.apply(this,[d]);
	this.createBox();
}}
se.publicclass.socialgrid.view.components.containers.HomeBox.__name__ = ["se","publicclass","socialgrid","view","components","containers","HomeBox"];
se.publicclass.socialgrid.view.components.containers.HomeBox.__super__ = se.publicclass.socialgrid.view.components.containers.AbstractBox;
for(var k in se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype ) se.publicclass.socialgrid.view.components.containers.HomeBox.prototype[k] = se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype[k];
se.publicclass.socialgrid.view.components.containers.HomeBox.prototype.createBox = function() {
	this.element.className += " home text-box";
	this.element.innerHTML = this.content;
}
se.publicclass.socialgrid.view.components.containers.HomeBox.prototype.update = function() {
	se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.update.apply(this,[]);
}
se.publicclass.socialgrid.view.components.containers.HomeBox.prototype.__class__ = se.publicclass.socialgrid.view.components.containers.HomeBox;
Lambda = function() { }
Lambda.__name__ = ["Lambda"];
Lambda.array = function(it) {
	var a = new Array();
	{ var $it15 = it.iterator();
	while( $it15.hasNext() ) { var i = $it15.next();
	a.push(i);
	}}
	return a;
}
Lambda.list = function(it) {
	var l = new List();
	{ var $it16 = it.iterator();
	while( $it16.hasNext() ) { var i = $it16.next();
	l.add(i);
	}}
	return l;
}
Lambda.map = function(it,f) {
	var l = new List();
	{ var $it17 = it.iterator();
	while( $it17.hasNext() ) { var x = $it17.next();
	l.add(f(x));
	}}
	return l;
}
Lambda.mapi = function(it,f) {
	var l = new List();
	var i = 0;
	{ var $it18 = it.iterator();
	while( $it18.hasNext() ) { var x = $it18.next();
	l.add(f(i++,x));
	}}
	return l;
}
Lambda.has = function(it,elt,cmp) {
	if(cmp == null) {
		{ var $it19 = it.iterator();
		while( $it19.hasNext() ) { var x = $it19.next();
		if(x == elt) return true;
		}}
	}
	else {
		{ var $it20 = it.iterator();
		while( $it20.hasNext() ) { var x = $it20.next();
		if(cmp(x,elt)) return true;
		}}
	}
	return false;
}
Lambda.exists = function(it,f) {
	{ var $it21 = it.iterator();
	while( $it21.hasNext() ) { var x = $it21.next();
	if(f(x)) return true;
	}}
	return false;
}
Lambda.foreach = function(it,f) {
	{ var $it22 = it.iterator();
	while( $it22.hasNext() ) { var x = $it22.next();
	if(!f(x)) return false;
	}}
	return true;
}
Lambda.iter = function(it,f) {
	{ var $it23 = it.iterator();
	while( $it23.hasNext() ) { var x = $it23.next();
	f(x);
	}}
}
Lambda.filter = function(it,f) {
	var l = new List();
	{ var $it24 = it.iterator();
	while( $it24.hasNext() ) { var x = $it24.next();
	if(f(x)) l.add(x);
	}}
	return l;
}
Lambda.fold = function(it,f,first) {
	{ var $it25 = it.iterator();
	while( $it25.hasNext() ) { var x = $it25.next();
	first = f(x,first);
	}}
	return first;
}
Lambda.count = function(it) {
	var n = 0;
	{ var $it26 = it.iterator();
	while( $it26.hasNext() ) { var _ = $it26.next();
	++n;
	}}
	return n;
}
Lambda.empty = function(it) {
	return !it.iterator().hasNext();
}
Lambda.prototype.__class__ = Lambda;
org.puremvc.haxe.patterns.observer.Observer = function(notifyMethod,notifyContext) { if( notifyMethod === $_ ) return; {
	this.setNotifyMethod(notifyMethod);
	this.setNotifyContext(notifyContext);
}}
org.puremvc.haxe.patterns.observer.Observer.__name__ = ["org","puremvc","haxe","patterns","observer","Observer"];
org.puremvc.haxe.patterns.observer.Observer.prototype.compareNotifyContext = function(object) {
	return object == this.context;
}
org.puremvc.haxe.patterns.observer.Observer.prototype.context = null;
org.puremvc.haxe.patterns.observer.Observer.prototype.getNotifyContext = function() {
	return this.context;
}
org.puremvc.haxe.patterns.observer.Observer.prototype.getNotifyMethod = function() {
	return this.notify;
}
org.puremvc.haxe.patterns.observer.Observer.prototype.notify = null;
org.puremvc.haxe.patterns.observer.Observer.prototype.notifyObserver = function(notification) {
	(this.getNotifyMethod())(notification);
}
org.puremvc.haxe.patterns.observer.Observer.prototype.setNotifyContext = function(notifyContext) {
	this.context = notifyContext;
}
org.puremvc.haxe.patterns.observer.Observer.prototype.setNotifyMethod = function(notifyMethod) {
	this.notify = notifyMethod;
}
org.puremvc.haxe.patterns.observer.Observer.prototype.__class__ = org.puremvc.haxe.patterns.observer.Observer;
org.puremvc.haxe.patterns.observer.Observer.__interfaces__ = [org.puremvc.haxe.interfaces.IObserver];
se.publicclass.socialgrid.view.components.containers.ContactBox = function(d) { if( d === $_ ) return; {
	se.publicclass.socialgrid.view.components.containers.AbstractBox.apply(this,[d]);
	this.createBox();
	this.element.className += " contact text-box";
}}
se.publicclass.socialgrid.view.components.containers.ContactBox.__name__ = ["se","publicclass","socialgrid","view","components","containers","ContactBox"];
se.publicclass.socialgrid.view.components.containers.ContactBox.__super__ = se.publicclass.socialgrid.view.components.containers.AbstractBox;
for(var k in se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype ) se.publicclass.socialgrid.view.components.containers.ContactBox.prototype[k] = se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype[k];
se.publicclass.socialgrid.view.components.containers.ContactBox.prototype.createBox = function() {
	var div = js.Lib.document.createElement("div");
	div.innerHTML = this.content;
	div.style.position = "absolute";
	div.style.width = this.toStringPixel(this.w());
	div.style.height = this.toStringPixel(this.h());
	this.element.appendChild(div);
}
se.publicclass.socialgrid.view.components.containers.ContactBox.prototype.update = function() {
	se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.update.apply(this,[]);
}
se.publicclass.socialgrid.view.components.containers.ContactBox.prototype.__class__ = se.publicclass.socialgrid.view.components.containers.ContactBox;
se.publicclass.socialgrid.SocialGrid = function(p) { if( p === $_ ) return; {
	haxe.Firebug.redirectTraces();
	var path = js.Lib.window.location.href;
	if(path.indexOf("#") < 0 && path != js.Lib.window.location.hostname) {
		js.Lib.window.location.href = js.Lib.window.location.protocol + "//" + js.Lib.window.location.hostname + "/#" + js.Lib.window.location.pathname;
	}
	js.Lib.window.onload = $closure(this,"init");
}}
se.publicclass.socialgrid.SocialGrid.__name__ = ["se","publicclass","socialgrid","SocialGrid"];
se.publicclass.socialgrid.SocialGrid.main = function() {
	var m = new se.publicclass.socialgrid.SocialGrid();
}
se.publicclass.socialgrid.SocialGrid.prototype.init = function(e) {
	se.publicclass.socialgrid.ApplicationFacade.getInstance().startup(this);
}
se.publicclass.socialgrid.SocialGrid.prototype.__class__ = se.publicclass.socialgrid.SocialGrid;
haxe.Log = function() { }
haxe.Log.__name__ = ["haxe","Log"];
haxe.Log.trace = function(v,infos) {
	js.Boot.__trace(v,infos);
}
haxe.Log.clear = function() {
	js.Boot.__clear_trace();
}
haxe.Log.prototype.__class__ = haxe.Log;
org.puremvc.haxe.core.View = function(p) { if( p === $_ ) return; {
	org.puremvc.haxe.core.View.instance = this;
	this.mediatorMap = new Hash();
	this.observerMap = new Hash();
	this.initializeView();
}}
org.puremvc.haxe.core.View.__name__ = ["org","puremvc","haxe","core","View"];
org.puremvc.haxe.core.View.getInstance = function() {
	if(org.puremvc.haxe.core.View.instance == null) org.puremvc.haxe.core.View.instance = new org.puremvc.haxe.core.View();
	return org.puremvc.haxe.core.View.instance;
}
org.puremvc.haxe.core.View.instance = null;
org.puremvc.haxe.core.View.prototype.hasMediator = function(mediatorName) {
	return this.mediatorMap.exists(mediatorName);
}
org.puremvc.haxe.core.View.prototype.initializeView = function() {
	null;
}
org.puremvc.haxe.core.View.prototype.mediatorMap = null;
org.puremvc.haxe.core.View.prototype.notifyObservers = function(notification) {
	if(this.observerMap.exists(notification.getName())) {
		var observers_ref = this.observerMap.get(notification.getName());
		var observers = new List();
		var iterator_ref = observers_ref.iterator();
		{ var $it27 = iterator_ref;
		while( $it27.hasNext() ) { var observer = $it27.next();
		observers.add(observer);
		}}
		var iterator = observers.iterator();
		{ var $it28 = iterator;
		while( $it28.hasNext() ) { var observer = $it28.next();
		observer.notifyObserver(notification);
		}}
	}
}
org.puremvc.haxe.core.View.prototype.observerMap = null;
org.puremvc.haxe.core.View.prototype.registerMediator = function(mediator) {
	if(this.mediatorMap.exists(mediator.getMediatorName())) return;
	this.mediatorMap.set(mediator.getMediatorName(),mediator);
	var interests = mediator.listNotificationInterests();
	if(interests.length > 0) {
		var observer = new org.puremvc.haxe.patterns.observer.Observer($closure(mediator,"handleNotification"),mediator);
		{
			var _g1 = 0, _g = interests.length;
			while(_g1 < _g) {
				var i = _g1++;
				this.registerObserver(interests[i],observer);
			}
		}
	}
	mediator.onRegister();
}
org.puremvc.haxe.core.View.prototype.registerObserver = function(notificationName,observer) {
	if(!this.observerMap.exists(notificationName)) this.observerMap.set(notificationName,new List());
	this.observerMap.get(notificationName).add(observer);
}
org.puremvc.haxe.core.View.prototype.removeMediator = function(mediatorName) {
	var mediator = this.mediatorMap.get(mediatorName);
	if(mediator != null) {
		var interests = mediator.listNotificationInterests();
		{
			var _g1 = 0, _g = interests.length;
			while(_g1 < _g) {
				var i = _g1++;
				this.removeObserver(interests[i],mediator);
			}
		}
		this.mediatorMap.remove(mediatorName);
		mediator.onRemove();
	}
	return mediator;
}
org.puremvc.haxe.core.View.prototype.removeObserver = function(notificationName,notifyContext) {
	var observers = this.observerMap.get(notificationName);
	{ var $it29 = observers.iterator();
	while( $it29.hasNext() ) { var observer = $it29.next();
	{
		if(observer.compareNotifyContext(notifyContext) == true) {
			observers.remove(observer);
			break;
		}
	}
	}}
	if(observers.isEmpty()) {
		this.observerMap.remove(notificationName);
	}
}
org.puremvc.haxe.core.View.prototype.retrieveMediator = function(mediatorName) {
	return this.mediatorMap.get(mediatorName);
}
org.puremvc.haxe.core.View.prototype.__class__ = org.puremvc.haxe.core.View;
org.puremvc.haxe.core.View.__interfaces__ = [org.puremvc.haxe.interfaces.IView];
Hash = function(p) { if( p === $_ ) return; {
	this.h = {}
	if(this.h.__proto__ != null) {
		this.h.__proto__ = null;
		delete(this.h.__proto__);
	}
	else null;
}}
Hash.__name__ = ["Hash"];
Hash.prototype.exists = function(key) {
	try {
		key = "$" + key;
		return this.hasOwnProperty.call(this.h,key);
	}
	catch( $e30 ) {
		{
			var e = $e30;
			{
				
				for(var i in this.h)
					if( i == key ) return true;
			;
				return false;
			}
		}
	}
}
Hash.prototype.get = function(key) {
	return this.h["$" + key];
}
Hash.prototype.h = null;
Hash.prototype.iterator = function() {
	return { ref : this.h, it : this.keys(), hasNext : function() {
		return this.it.hasNext();
	}, next : function() {
		var i = this.it.next();
		return this.ref["$" + i];
	}}
}
Hash.prototype.keys = function() {
	var a = new Array();
	
			for(var i in this.h)
				a.push(i.substr(1));
		;
	return a.iterator();
}
Hash.prototype.remove = function(key) {
	if(!this.exists(key)) return false;
	delete(this.h["$" + key]);
	return true;
}
Hash.prototype.set = function(key,value) {
	this.h["$" + key] = value;
}
Hash.prototype.toString = function() {
	var s = new StringBuf();
	s.b[s.b.length] = "{";
	var it = this.keys();
	{ var $it31 = it;
	while( $it31.hasNext() ) { var i = $it31.next();
	{
		s.b[s.b.length] = i;
		s.b[s.b.length] = " => ";
		s.b[s.b.length] = Std.string(this.get(i));
		if(it.hasNext()) s.b[s.b.length] = ", ";
	}
	}}
	s.b[s.b.length] = "}";
	return s.b.join("");
}
Hash.prototype.__class__ = Hash;
se.publicclass.socialgrid.view.components.containers.AboutBox = function(d) { if( d === $_ ) return; {
	se.publicclass.socialgrid.view.components.containers.AbstractBox.apply(this,[d]);
	this.createBox();
}}
se.publicclass.socialgrid.view.components.containers.AboutBox.__name__ = ["se","publicclass","socialgrid","view","components","containers","AboutBox"];
se.publicclass.socialgrid.view.components.containers.AboutBox.__super__ = se.publicclass.socialgrid.view.components.containers.AbstractBox;
for(var k in se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype ) se.publicclass.socialgrid.view.components.containers.AboutBox.prototype[k] = se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype[k];
se.publicclass.socialgrid.view.components.containers.AboutBox.prototype.createBox = function() {
	this.element.className += " about text-box";
	this.element.innerHTML = this.content;
}
se.publicclass.socialgrid.view.components.containers.AboutBox.prototype.update = function() {
	se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.update.apply(this,[]);
}
se.publicclass.socialgrid.view.components.containers.AboutBox.prototype.__class__ = se.publicclass.socialgrid.view.components.containers.AboutBox;
Std = function() { }
Std.__name__ = ["Std"];
Std["is"] = function(v,t) {
	return js.Boot.__instanceof(v,t);
}
Std.string = function(s) {
	return js.Boot.__string_rec(s,"");
}
Std["int"] = function(x) {
	if(x < 0) return Math.ceil(x);
	return Math.floor(x);
}
Std.parseInt = function(x) {
	var v = parseInt(x);
	if(Math.isNaN(v)) return null;
	return v;
}
Std.parseFloat = function(x) {
	return parseFloat(x);
}
Std.random = function(x) {
	return Math.floor(Math.random() * x);
}
Std.prototype.__class__ = Std;
EReg = function(r,opt) { if( r === $_ ) return; {
	opt = opt.split("u").join("");
	this.r = new RegExp(r,opt);
}}
EReg.__name__ = ["EReg"];
EReg.prototype.customReplace = function(s,f) {
	var buf = new StringBuf();
	while(true) {
		if(!this.match(s)) break;
		buf.b[buf.b.length] = this.matchedLeft();
		buf.b[buf.b.length] = f(this);
		s = this.matchedRight();
	}
	buf.b[buf.b.length] = s;
	return buf.b.join("");
}
EReg.prototype.match = function(s) {
	this.r.m = this.r.exec(s);
	this.r.s = s;
	this.r.l = RegExp.leftContext;
	this.r.r = RegExp.rightContext;
	return (this.r.m != null);
}
EReg.prototype.matched = function(n) {
	return (this.r.m != null && n >= 0 && n < this.r.m.length?this.r.m[n]:(function($this) {
		var $r;
		throw "EReg::matched";
		return $r;
	}(this)));
}
EReg.prototype.matchedLeft = function() {
	if(this.r.m == null) throw "No string matched";
	if(this.r.l == null) return this.r.s.substr(0,this.r.m.index);
	return this.r.l;
}
EReg.prototype.matchedPos = function() {
	if(this.r.m == null) throw "No string matched";
	return { pos : this.r.m.index, len : this.r.m[0].length}
}
EReg.prototype.matchedRight = function() {
	if(this.r.m == null) throw "No string matched";
	if(this.r.r == null) {
		var sz = this.r.m.index + this.r.m[0].length;
		return this.r.s.substr(sz,this.r.s.length - sz);
	}
	return this.r.r;
}
EReg.prototype.r = null;
EReg.prototype.replace = function(s,by) {
	return s.replace(this.r,by);
}
EReg.prototype.split = function(s) {
	var d = "#__delim__#";
	return s.replace(this.r,d).split(d);
}
EReg.prototype.__class__ = EReg;
events.EventPropagation__ = function(target) { if( target === $_ ) return; {
	this.complete = this.stopped = this.stoppedImmediately = false;
	this.target = target;
	this.dispatchID = events.EventPropagation__._dispatchID++;
}}
events.EventPropagation__.__name__ = ["events","EventPropagation__"];
events.EventPropagation__.prototype.complete = null;
events.EventPropagation__.prototype.currentTarget = null;
events.EventPropagation__.prototype.defaultPrevented = null;
events.EventPropagation__.prototype.dispatchID = null;
events.EventPropagation__.prototype.phase = null;
events.EventPropagation__.prototype.stopped = null;
events.EventPropagation__.prototype.stoppedImmediately = null;
events.EventPropagation__.prototype.target = null;
events.EventPropagation__.prototype.__class__ = events.EventPropagation__;
se.publicclass.socialgrid.view.components.MainGrid = function(grid) { if( grid === $_ ) return; {
	se.publicclass.socialgrid.view.components.Grid.apply(this,[grid]);
}}
se.publicclass.socialgrid.view.components.MainGrid.__name__ = ["se","publicclass","socialgrid","view","components","MainGrid"];
se.publicclass.socialgrid.view.components.MainGrid.__super__ = se.publicclass.socialgrid.view.components.Grid;
for(var k in se.publicclass.socialgrid.view.components.Grid.prototype ) se.publicclass.socialgrid.view.components.MainGrid.prototype[k] = se.publicclass.socialgrid.view.components.Grid.prototype[k];
se.publicclass.socialgrid.view.components.MainGrid.prototype.clear = function() {
	se.publicclass.socialgrid.view.components.Grid.prototype.clear.apply(this,[]);
}
se.publicclass.socialgrid.view.components.MainGrid.prototype.onResize = function() {
	se.publicclass.socialgrid.view.components.Grid.prototype.onResize.apply(this,[]);
	jQuery("#content").css({ width : $closure(this,"width")});
	this.positionFakeDiv();
}
se.publicclass.socialgrid.view.components.MainGrid.prototype.positionFakeDiv = function() {
	jQuery("#menu").css({ right : this.spacingRight});
	jQuery("#show-more").css({ width : this.width()});
}
se.publicclass.socialgrid.view.components.MainGrid.prototype.__class__ = se.publicclass.socialgrid.view.components.MainGrid;
js.Lib = function() { }
js.Lib.__name__ = ["js","Lib"];
js.Lib.isIE = null;
js.Lib.isOpera = null;
js.Lib.document = null;
js.Lib.window = null;
js.Lib.alert = function(v) {
	alert(js.Boot.__string_rec(v,""));
}
js.Lib.eval = function(code) {
	return eval(code);
}
js.Lib.setErrorHandler = function(f) {
	js.Lib.onerror = f;
}
js.Lib.prototype.__class__ = js.Lib;
StringTools = function() { }
StringTools.__name__ = ["StringTools"];
StringTools.urlEncode = function(s) {
	return encodeURIComponent(s);
}
StringTools.urlDecode = function(s) {
	return decodeURIComponent(s.split("+").join(" "));
}
StringTools.htmlEscape = function(s) {
	return s.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;");
}
StringTools.htmlUnescape = function(s) {
	return s.split("&gt;").join(">").split("&lt;").join("<").split("&amp;").join("&");
}
StringTools.startsWith = function(s,start) {
	return (s.length >= start.length && s.substr(0,start.length) == start);
}
StringTools.endsWith = function(s,end) {
	var elen = end.length;
	var slen = s.length;
	return (slen >= elen && s.substr(slen - elen,elen) == end);
}
StringTools.isSpace = function(s,pos) {
	var c = s.charCodeAt(pos);
	return (c >= 9 && c <= 13) || c == 32;
}
StringTools.ltrim = function(s) {
	var l = s.length;
	var r = 0;
	while(r < l && StringTools.isSpace(s,r)) {
		r++;
	}
	if(r > 0) return s.substr(r,l - r);
	else return s;
}
StringTools.rtrim = function(s) {
	var l = s.length;
	var r = 0;
	while(r < l && StringTools.isSpace(s,l - r - 1)) {
		r++;
	}
	if(r > 0) {
		return s.substr(0,l - r);
	}
	else {
		return s;
	}
}
StringTools.trim = function(s) {
	return StringTools.ltrim(StringTools.rtrim(s));
}
StringTools.rpad = function(s,c,l) {
	var sl = s.length;
	var cl = c.length;
	while(sl < l) {
		if(l - sl < cl) {
			s += c.substr(0,l - sl);
			sl = l;
		}
		else {
			s += c;
			sl += cl;
		}
	}
	return s;
}
StringTools.lpad = function(s,c,l) {
	var ns = "";
	var sl = s.length;
	if(sl >= l) return s;
	var cl = c.length;
	while(sl < l) {
		if(l - sl < cl) {
			ns += c.substr(0,l - sl);
			sl = l;
		}
		else {
			ns += c;
			sl += cl;
		}
	}
	return ns + s;
}
StringTools.replace = function(s,sub,by) {
	return s.split(sub).join(by);
}
StringTools.hex = function(n,digits) {
	var neg = false;
	if(n < 0) {
		neg = true;
		n = -n;
	}
	var s = n.toString(16);
	s = s.toUpperCase();
	if(digits != null) while(s.length < digits) s = "0" + s;
	if(neg) s = "-" + s;
	return s;
}
StringTools.prototype.__class__ = StringTools;
se.publicclass.socialgrid.view.components.containers.BlogBox = function(d) { if( d === $_ ) return; {
	se.publicclass.socialgrid.view.components.containers.AbstractBox.apply(this,[d]);
	this.columns++;
	this.createText();
	this.element.className += " thoughts";
}}
se.publicclass.socialgrid.view.components.containers.BlogBox.__name__ = ["se","publicclass","socialgrid","view","components","containers","BlogBox"];
se.publicclass.socialgrid.view.components.containers.BlogBox.__super__ = se.publicclass.socialgrid.view.components.containers.AbstractBox;
for(var k in se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype ) se.publicclass.socialgrid.view.components.containers.BlogBox.prototype[k] = se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype[k];
se.publicclass.socialgrid.view.components.containers.BlogBox.prototype.container = null;
se.publicclass.socialgrid.view.components.containers.BlogBox.prototype.createText = function() {
	this.container = js.Lib.document.createElement("div");
	this.container.style.width = this.toStringPixel(this.w());
	this.container.style.height = this.toStringPixel(this.h());
	var link = js.Lib.document.createElement("a");
	link.href = this.data.urlId;
	link.target = "_blank";
	var str = this.title;
	if(str == null) str = this.data.link;
	this.div = js.Lib.document.createElement("div");
	this.div.className += " grid-content";
	this.div.innerHTML = "<p class='box blog'>" + str + "</p>";
	this.div.style.width = this.toStringPixel(this.w());
	str = "Date: " + this.data.date + "<br />From: " + this.data.feedTitle;
	if(this.data.tags.length > 0) {
		str += "<br />Tags: ";
		{
			var _g = 0, _g1 = this.data.tags;
			while(_g < _g1.length) {
				var tag = _g1[_g];
				++_g;
				if(str != "") str += tag + ", ";
			}
		}
		str = str.substr(0,str.length - 2);
	}
	this.hover = js.Lib.document.createElement("div");
	this.hover.className += " grid-content";
	this.hover.innerHTML = "<p class='box blog'>" + str + "</p>";
	this.hover.style.width = this.toStringPixel(this.w());
	this.hover.style.display = "none";
	this.container.appendChild(this.div);
	this.container.appendChild(this.hover);
	link.appendChild(this.container);
	this.element.appendChild(link);
}
se.publicclass.socialgrid.view.components.containers.BlogBox.prototype.div = null;
se.publicclass.socialgrid.view.components.containers.BlogBox.prototype.hover = null;
se.publicclass.socialgrid.view.components.containers.BlogBox.prototype.onMouseOut = function(e) {
	this.div.style.display = "block";
	this.hover.style.display = "none";
	this.container.className = "";
}
se.publicclass.socialgrid.view.components.containers.BlogBox.prototype.onMouseOver = function(e) {
	this.hover.style.display = "block";
	this.div.style.display = "none";
	this.container.className = "hover";
}
se.publicclass.socialgrid.view.components.containers.BlogBox.prototype.update = function() {
	se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype.update.apply(this,[]);
}
se.publicclass.socialgrid.view.components.containers.BlogBox.prototype.__class__ = se.publicclass.socialgrid.view.components.containers.BlogBox;
se.publicclass.socialgrid.view.components.containers.ProjectBox = function(d,mainGrid) { if( d === $_ ) return; {
	if(mainGrid == null) mainGrid = false;
	se.publicclass.socialgrid.view.components.containers.AbstractBox.apply(this,[d]);
	if(mainGrid) {
		this.image = new se.publicclass.socialgrid.view.components.containers.ImageBox(d);
		var g = this.element.appendChild(this.image.element);
		this.element.appendChild(new se.publicclass.socialgrid.view.components.containers.TextBox(d).element);
		this.image.init();
		this.createGridText();
		this.element.onmouseup = $closure(this,"onClick");
		this.element.onmouseover = $closure(this,"onMouseOver");
		this.element.onmouseout = $closure(this,"onMouseOut");
		this.element.className += " projectGridBox";
	}
	else if(d.parentId == 0) {
		this.columns = 2;
		this.rows = 3;
		this.createProjectText();
	}
	else {
		this.image = new se.publicclass.socialgrid.view.components.containers.ImageBox(d);
		var g = this.element.appendChild(this.image.element);
		this.element.appendChild(new se.publicclass.socialgrid.view.components.containers.TextBox(d).element);
		this.image.init();
		if(this.content != "") {
			this.createText();
			this.columns += 2;
		}
	}
}}
se.publicclass.socialgrid.view.components.containers.ProjectBox.__name__ = ["se","publicclass","socialgrid","view","components","containers","ProjectBox"];
se.publicclass.socialgrid.view.components.containers.ProjectBox.__super__ = se.publicclass.socialgrid.view.components.containers.AbstractBox;
for(var k in se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype ) se.publicclass.socialgrid.view.components.containers.ProjectBox.prototype[k] = se.publicclass.socialgrid.view.components.containers.AbstractBox.prototype[k];
se.publicclass.socialgrid.view.components.containers.ProjectBox.prototype.createGridText = function() {
	this.text = js.Lib.document.createElement("div");
	this.text.className += "project";
	this.text.innerHTML = "<p class='box'>" + this.title + "</p>";
	this.text.style.position = "absolute";
	this.text.style.bottom = this.toStringPixel(0);
	this.text.style.width = this.toStringPixel(this.w());
	this.element.appendChild(this.text);
}
se.publicclass.socialgrid.view.components.containers.ProjectBox.prototype.createProjectText = function() {
	var div = js.Lib.document.createElement("div");
	div.innerHTML = this.content;
	div.className += " project-description";
	div.style.width = Std.string(this.w()) + "px";
	div.style.height = Std.string(this.h()) + "px";
	this.element.appendChild(div);
}
se.publicclass.socialgrid.view.components.containers.ProjectBox.prototype.createText = function() {
	this.text = js.Lib.document.createElement("div");
	this.text.innerHTML = this.content;
	this.text.className += " project-content";
	this.text.style.width = this.toStringPixel(2 * (se.publicclass.socialgrid.view.components.Grid.GRID_WIDTH + se.publicclass.socialgrid.view.components.Grid.GRID_SPACING));
	this.text.style.left = Std.string(this.image.w()) + "px";
	this.element.className += " project";
	this.element.appendChild(this.text);
}
se.publicclass.socialgrid.view.components.containers.ProjectBox.prototype.image = null;
se.publicclass.socialgrid.view.components.containers.ProjectBox.prototype.onMouseOut = function(e) {
	if(this.text != null) this.text.className = "project";
}
se.publicclass.socialgrid.view.components.containers.ProjectBox.prototype.onMouseOver = function(e) {
	if(this.text != null) this.text.className = "project project-hover";
}
se.publicclass.socialgrid.view.components.containers.ProjectBox.prototype.text = null;
se.publicclass.socialgrid.view.components.containers.ProjectBox.prototype.__class__ = se.publicclass.socialgrid.view.components.containers.ProjectBox;
$Main = function() { }
$Main.__name__ = ["@Main"];
$Main.prototype.__class__ = $Main;
$_ = {}
js.Boot.__res = {}
js.Boot.__init();
{
	js["XMLHttpRequest"] = (window.XMLHttpRequest?XMLHttpRequest:(window.ActiveXObject?function() {
		try {
			return new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch( $e32 ) {
			{
				var e = $e32;
				{
					try {
						return new ActiveXObject("Microsoft.XMLHTTP");
					}
					catch( $e33 ) {
						{
							var e1 = $e33;
							{
								throw "Unable to create XMLHttpRequest object.";
							}
						}
					}
				}
			}
		}
	}:(function($this) {
		var $r;
		throw "Unable to create XMLHttpRequest object.";
		return $r;
	}(this))));
}
{
	Date.now = function() {
		return new Date();
	}
	Date.fromTime = function(t) {
		var d = new Date();
		d["setTime"](t);
		return d;
	}
	Date.fromString = function(s) {
		switch(s.length) {
		case 8:{
			var k = s.split(":");
			var d = new Date();
			d["setTime"](0);
			d["setUTCHours"](k[0]);
			d["setUTCMinutes"](k[1]);
			d["setUTCSeconds"](k[2]);
			return d;
		}break;
		case 10:{
			var k = s.split("-");
			return new Date(k[0],k[1] - 1,k[2],0,0,0);
		}break;
		case 19:{
			var k = s.split(" ");
			var y = k[0].split("-");
			var t = k[1].split(":");
			return new Date(y[0],y[1] - 1,y[2],t[0],t[1],t[2]);
		}break;
		default:{
			throw "Invalid date format : " + s;
		}break;
		}
	}
	Date.prototype["toString"] = function() {
		var date = this;
		var m = date.getMonth() + 1;
		var d = date.getDate();
		var h = date.getHours();
		var mi = date.getMinutes();
		var s = date.getSeconds();
		return date.getFullYear() + "-" + ((m < 10?"0" + m:"" + m)) + "-" + ((d < 10?"0" + d:"" + d)) + " " + ((h < 10?"0" + h:"" + h)) + ":" + ((mi < 10?"0" + mi:"" + mi)) + ":" + ((s < 10?"0" + s:"" + s));
	}
	Date.prototype.__class__ = Date;
	Date.__name__ = ["Date"];
}
{
	Math.NaN = Number["NaN"];
	Math.NEGATIVE_INFINITY = Number["NEGATIVE_INFINITY"];
	Math.POSITIVE_INFINITY = Number["POSITIVE_INFINITY"];
	Math.isFinite = function(i) {
		return isFinite(i);
	}
	Math.isNaN = function(i) {
		return isNaN(i);
	}
	Math.__name__ = ["Math"];
}
{
	String.prototype.__class__ = String;
	String.__name__ = ["String"];
	Array.prototype.__class__ = Array;
	Array.__name__ = ["Array"];
	Int = { __name__ : ["Int"]}
	Dynamic = { __name__ : ["Dynamic"]}
	Float = Number;
	Float.__name__ = ["Float"];
	Bool = { __ename__ : ["Bool"]}
	Class = { __name__ : ["Class"]}
	Enum = { }
	Void = { __ename__ : ["Void"]}
}
{
	js.Lib.document = document;
	js.Lib.window = window;
	onerror = function(msg,url,line) {
		var f = js.Lib.onerror;
		if( f == null )
			return false;
		return f(msg,[url+":"+line]);
	}
}
se.publicclass.socialgrid.ApplicationConstants.INITALIZED = "initialized";
se.publicclass.socialgrid.ApplicationConstants.ON_DATA_LOADED = "onDataLoaded";
se.publicclass.socialgrid.ApplicationConstants.NO_DATA_LOADED = "nodataLoaded";
se.publicclass.socialgrid.ApplicationConstants.ON_DOM_CREATED = "onDomCreated";
se.publicclass.socialgrid.ApplicationConstants.BEGIN_LOAD_DATA = "beginDataLoaded";
se.publicclass.socialgrid.ApplicationConstants.GRID_DIV_ID = "content";
se.publicclass.socialgrid.ApplicationConstants.ON_ADRESS_CHANGE = "onAdressChanged";
se.publicclass.socialgrid.ApplicationConstants.ON_RESIZE = "onResize";
se.publicclass.socialgrid.ApplicationConstants.SET_ADRESS = "setAdress";
se.publicclass.socialgrid.ApplicationConstants.ITEM_VIEW = "itemView";
se.publicclass.socialgrid.ApplicationConstants.GRID_VIEW = "gridView";
se.publicclass.socialgrid.ApplicationConstants.ON_CLICK = "onClick";
se.publicclass.socialgrid.view.components.Grid.MARGIN = 100;
se.publicclass.socialgrid.view.components.Grid.MINIMUM_WIDTH = 1000;
se.publicclass.socialgrid.view.components.Grid.GRID_WIDTH = 150;
se.publicclass.socialgrid.view.components.Grid.GRID_HEIGHT = 150;
se.publicclass.socialgrid.view.components.Grid.GRID_SPACING = 1;
se.publicclass.socialgrid.view.components.Grid.START_Y = 260;
org.puremvc.haxe.patterns.mediator.Mediator.NAME = "Mediator";
feffects.Tween.aTweens = new haxe.FastList();
feffects.Tween.aPaused = new haxe.FastList();
feffects.Tween.jsDate = Date.now().getTime();
feffects.Tween.interval = 10;
se.publicclass.socialgrid.view.BodyMediator.NAME = "BodyMediator";
se.publicclass.socialgrid.view.BodyMediator.SLASH = "/";
se.publicclass.socialgrid.model.vo.FeedItemVO.TWITTER_TYPE = "twitter";
se.publicclass.socialgrid.model.vo.FeedItemVO.PROJECT_TYPE = "project";
se.publicclass.socialgrid.model.vo.FeedItemVO.INSPIRATION_TYPE = "blog";
se.publicclass.socialgrid.model.vo.FeedItemVO.PHOTO_TYPE = "photos";
se.publicclass.socialgrid.model.vo.FeedItemVO.ABOUT_TYPE = "about";
se.publicclass.socialgrid.model.vo.FeedItemVO.CONTACT_TYPE = "contact";
se.publicclass.socialgrid.model.vo.FeedItemVO.HOME_TYPE = "home";
org.puremvc.haxe.patterns.proxy.Proxy.NAME = "Proxy";
se.publicclass.socialgrid.model.FeedProxy.NAME = "feedProxy";
se.publicclass.socialgrid.view.ApplicationMediator.NAME = "ApplicationMediator";
se.publicclass.socialgrid.model.ItemProxy.NAME = "itemProxy";
haxe.Timer.arr = new Array();
se.publicclass.socialgrid.view.GridMediator.NAME = "GridMediator";
se.publicclass.socialgrid.view.GridMediator.SHOW = "show";
se.publicclass.socialgrid.view.GridMediator.HIDE = "hide";
se.publicclass.socialgrid.view.GridMediator.CLEAR = "clear";
se.publicclass.socialgrid.ApplicationFacade.STARTUP = "startup";
se.publicclass.socialgrid.model.AddressProxy.NAME = "navigationProxy";
se.publicclass.socialgrid.model.AddressProxy.NO_FILTER = "all";
events.EventPropagation__._dispatchID = 0;
js.Lib.onerror = null;
$Main.init = se.publicclass.socialgrid.SocialGrid.main();
