/* ********** System Fonksiyonu Başlangıç ********** */

// Gerekli olan js dosyalarını eklemek için kullanılan fonksiyon

		var System = { Js:new Array(), Css:new Array(), siteName:"",
			addJs:function (_file) { this.Js [ this.Js.length  ] = _file; },
			addCss:function (_file){ this.Css[ this.Css.length ] = _file; },
		    Out:function (_text) { document.write(_text); },
			FileOut:function (_type) {
				this.siteName = typeof(SiteName)=="string" ? SiteName : this.siteName;
				var Includes = "";
				if (this.Js)
					for (var js in this.Js)
						Includes += "<script type=\"text/javascript\" src = \"" + this.siteName + this.Js[js] + "\"><" + "/script>\r\n";
				if (this.Css)
					for (var css in this.Css)
						Includes += "<link href=\"" + this.siteName + this.Css[css] + "\" type=\"text/css\" rel=\"stylesheet\" />\r\n";
			   this.Out(Includes);
		    },
			Info : function (text, type) {
				type = type ? type : "alert";
				switch (type) {
					case "alert":alert( text ); break;
					case "confirm": return confirm(text); break;
				}
				return false;
			},
			Message : function (text, tester, type) {
				var message = "";
				if (tester)
					message = "Testing by : " + tester + "\n";
				message += "Message : { \n\t";
				message += text;
				message += "\n }";
				return this.Info (message, type);
			},
			LabelMessage : function (label, type) {
				label = getElement (label);
				if (!label || f_trim(label.innerHTML)==0) return false;
				return this.Info (label.innerHTML, type);
			}
		};
		System.addJs("js/system/s_inc.js");
		System.FileOut ();
/* ********** System Fonksiyonu Bitiş ********** */
