// *****************************************************************************
// *     "C O W B E L L   C o r p o r a t i o n"   W E B S I T E               *
// *     JavaScript - import all JS files                                      *
// *     created by Tets Morikawa (COWBELL Corporation), Mar.18 2009           *
// *     last modified by Tets Morikawa (COWBELL Corporation), Jun.18 2010     *
// *****************************************************************************

/*@
	cc_on _d=document;
	eval('var document=_d')
@*/

// IE6のフリッカー回避
try {
	document.execCommand('BackgroundImageCache', false, true);
} catch(e) {}

// パス解析
function getMyPath () {
	var myPath, myHost = location.host; 
	if ( myHost.match ( /^192\.\d+?\.\d+?\.\d+?/ ) ) {
		myHost = myHost + '/cowbell';
	}
	else {
		myHost = myHost + '/wordpress';
	}
		myPath = location.protocol + '//' + myHost + '/wp-content/themes/cowbell/';
	return myPath;
}

var templatePath = getMyPath();
var jQueryVersion = '1.3.2';

// 外部JavaScriptファイルの読み込み

html = new Array (
	'jquery-' + jQueryVersion + '.min.js',
	'jquery.scrollTo-min.js',
	'jquery.innerfade.js',
	'jquery.curvycorners.packed.js',
	'shadowbox-2.0/src/adapter/shadowbox-jquery.js',
	'shadowbox-2.0/src/shadowbox.js',
	'config.js'
);

for ( i in html ) {
	html[i] = '<script src="' + templatePath + 'js/' + html[i] + '" type="text/javascript"></script>'
}

document.write ( html.join ('') );
document.write();
