/***************************************
Loader JavaScript.
----------------------------------------
  Copyright (C) 2006 www.symphonic.co.jp
**********************************C@NI*/

var config = {};
config.path = '';
config.debug = true;
config.loaded = false;


/* Google Code for Lead Conversion */
var google_conversion_id = 1067479473;
var google_conversion_language = "ja";
var google_conversion_format = "1";
var google_conversion_color = "FFFFCC";
if(1.0){
	var google_conversion_value = 1.0;
}
var google_conversion_label = "Lead";

/* Overture Conversion */
//var cc_tagVersion = "1.0";
//var cc_accountID = "1591044198";
//var cc_marketID =  "4";
//var cc_protocol="http";
//var cc_subdomain = "convctr";
//if(location.protocol == "https:") {
//	cc_protocol="https";
//	cc_subdomain="convctrs";
//}
//var cc_queryStr = "?" + "ver=" + cc_tagVersion + "&aID=" + cc_accountID + "&mkt=" + cc_marketID +"&ref=" + escape(document.referrer);
//var cc_imageUrl = cc_protocol + "://" + cc_subdomain + ".overture.com/images/cc/cc.gif" + cc_queryStr;
//var cc_imageObject = new Image();


/* exec Conversion */
function execConversion(){
	document.write('<script src="'+location.protocol+'//www.googleadservices.com/pagead/conversion.js"></script>');
	//cc_imageObject.src = cc_imageUrl;
	window.ysm_customData = new Object();
	window.ysm_customData.conversion = "transId=,currency=,amount=";
	window.ysm_accountid  = "1JAGPUQHHT53OKMS1CH4NKLG29K";
	document.write("<SCR" + "IPT language='JavaScript' type='text/javascript' " 
	+ "SRC=//" + "srv2.wa.marketingsolutions.yahoo.com" + "/script/ScriptServlet" + "?aid=" + ysm_accountid 
	+ "></SCR" + "IPT>");
}


/*Loader*/
if(document.getElementById){
	document.write('<script src="'+config.path+'/js/prototype.js" type="text/javascript"></script>');
	document.write('<script src="'+config.path+'/js/Template.js" type="text/javascript"></script>');
	document.write('<script src="'+config.path+'/js/common.js" type="text/javascript"></script>');
}
if(location.protocol == 'https:'){
	document.write('<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script>');
}else{
	document.write('<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>');
}

/*subwin*/
function wo(sub_html,sub_Name,sub_width,sub_height){
	sub_width = (sub_width)?sub_width:560;
	sub_height = (sub_height)?sub_height:500;
	sub_Name = (sub_Name)?sub_Name:'_blank';
	ALL_SUB_Win = window.open(sub_html,sub_Name,"width="+sub_width+",height="+sub_height+",scrollbars=yes,resizable=yes");
	ALL_SUB_Win.focus();
	return false;
}
function woMother(path,wname){
	if(opener){
		opener.location.href = path;
		opener.focus();
	}else{
		wname = (wname)?wname:'_blank';
		ALL_SUB_Win = window.open(path,wname);
		ALL_SUB_Win.focus();
	}
	return false;
}

/*Google Analytics*/
function track(){
	if(typeof(urchinTracker)=='function'){
		_uacct = "UA-2538689-1";
		urchinTracker();
		_uacct = "UA-302865-1";
		urchinTracker();
	}else{
		setTimeout('track()',500);
	}
}


/* init */
window.onload = function(){
	config.loaded = true;
	Common.init();
	track();
}

