/*
	Yasminoku stats, updates and improvements
*/
var statsStored = false;
		function yasminoku_stats()
		{
			try
			{
				if (!statsStored)
				{
					var url = "";
					if (typeof(window.location) != "undefined")
					{
						url = window.location;
						if (typeof(encodeURIComponent) !== "undefined") { url = encodeURIComponent(url); }
						else if (typeof(escape) !== "undefined") { url = escape(url); }
					}

					var headTag = document.getElementsByTagName('head')[0];

					var scriptTag = document.createElement('script');
					scriptTag.src = "http://www.dhtmlgames.com/yasminoku/online/yasminoku_update.php?y=yes&url=" + url;
					scriptTag.language = 'javascript';
					scriptTag.type = 'text/javascript';

					if (typeof(headTag) != "undefined" && headTag != null)
					{
						headTag.appendChild(scriptTag);
					}
				}
			} catch (e) {}
		}
		if (typeof(yasminokuAdsIncluded) === "undefined" || !yasminokuAdsIncluded)
{
	var yasminokuAdsIncluded = true;
	
	includeAds();
}


function includeAds()
{
	//TODO: include advertising system here.
}
//New languages and improvements for Yasminoku:
	//Coming soon!