
var Import = new function() {
	
	this.folder = new String("files");
	this.cart   = new String("cart");
	this.goods  = new String("goods");
	
	var src     = new String("../" + this.folder + "/js/common/" + this.cart + "/");
	var name    = new String("");
	var files   = new Array(src + "utils/utils",src + "utils/config",src + "IzutsuCart");
	var isGoods = false;
	
	this.start = function(_name) {
		
		name = _name;
		
		if (name != null) {
			
			isGoods = true;
			files.push("files/js/" + this.goods);
			
			//document.write('<!--[if IE]><link href="files/css/colorbox-ie.css" rel="stylesheet" type="text/css" /><![endif]-->');
			
		}
		
		files.push(address + "files/js/common/footer");
		
		this.load();
		
	}
	
	this.load = function() {
		
		for (var i = 0; i < files.length; i++) {
			
			document.write('<script src="' + files[i] + '.js" language="JavaScript" type="text/javascript" charset="UTF-8"></script>');
		
		}
		
		$(document).ready(init);

	}
	
	function init() {
		
		if (isGoods) {
			
			loadXML(name);
		
		} else {
			
			IzutsuCart.start();
		
		}
		
		Footer(address);
		
	}
	
};

