Added SWFObject, rewrited templating system