/*
load js files.
-----------------------------------------------
Win ie5.5,ie6.0,7.0 ns8.XX opera9 firefox Mac Safari
1. /common/js/prototype.js
2. /common/js/effects.js
3. /common/js/slideshow.js

Other browser
nothing

*/
var jsfile = new Array("/common/js/products/prototype.js","/common/js/products/effects.js","/common/js/products/slideshow.js");
var jsfiles = {
	require: function(libraryName) {
		document.write("<script type=\"text/javascript\" src=\"" + siteUrlStatic + libraryName + "\"><\/script>");
	},
	bwcheck: function(){
		var 
			ua = navigator.userAgent.toLowerCase(),
			ve = navigator.appVersion.toLowerCase(),
			is = function(t){ return ua.indexOf(t) != -1; },
			val = ((/opera/i.test(ua))&&(/^[1-8]/i.test(ve))||
				(/msie 5.0/i.test(ve))||(/netscape[4-7\/]/i.test(ua))||
				is("mac")&&(/msie/i.test(ve)))? false : true;
		return val;
	},
	load: function(){
		for(var i=0,f=jsfile.length ; i<f ; i++){
			if(jsfiles.bwcheck()){
				jsfiles.require(jsfile[i]);
			}
		}
	}
}
jsfiles.load();
