//STATR: by HKM 2010-09-15 for YPMeasure PAGEVIEW STATISTICS
var YPMeasure_PAGEVIEW_HOST = "http://" + document.location.hostname;
var YPMeasure_PAGEVIEW_LANGUAGE = "ch";
var YPMeasure_PAGEVIEW_EVENTID = "1001";
/*var YPMeasure_PAGEVIEW_VALUE1 = "";
document.writeln("<script type='text/javascript' src='http://test.yp.com.hk/iyp_api/statistics/web_traffic_capture.js'></" + "script>");
*/

function YPMap_webTraffic() { 
	//alert(typeof(webTraffic) == 'undefined');
	if(typeof(webTraffic) == 'undefined'){
		window.setTimeout(YPMap_webTraffic, 200);
	}else{
	  webTraffic(YPMeasure_PAGEVIEW_EVENTID, YPMeasure_PAGEVIEW_LANGUAGE, YPMeasure_PAGEVIEW_VALUE1, '', '', '', YPMeasure_PAGEVIEW_HOST);
	}
}

YPMap_webTraffic();

/* how to call this js file in html & asp?
 <script language="JavaScript" src="../inc/traffic.js"></script>
*/

//END : by HKM 2010-09-15 for YPMeasure PAGEVIEW STATISTICS


///  google analytics   add by danny for 2012-01-18

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-27050675-1']);
_gaq.push(['_trackPageview']);
(function () {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? ' https://ssl' : ' http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

///  end
