/**
 * import.js
 */

var _ua = (function(){
	return {
		ltIE6:typeof window.addEventListener == 'undefined' && typeof document.documentElement.style.maxHeight == 'undefined',
		ltIE7:typeof window.addEventListener == 'undefined' && typeof document.querySelectorAll == 'undefined',
		ltIE8:typeof window.addEventListener == 'undefined' && typeof document.getElementsByClassName == 'undefined',
		ie:document.uniqueID,
		firefox:window.globalStorage,
		opera:window.opera,
		webkit:!document.uniqueID && !window.opera && !window.globalStorage && window.localStorage,
		mobile:/android|iphone|ipad|ipod/i.test(navigator.userAgent.toLowerCase())
	}
})();

(function(){
	var s = document.getElementsByTagName('script');
	var d = s[s.length-1].src.substring(0, s[s.length-1].src.lastIndexOf('/')+1);
	
	var l = document.getElementsByTagName('link');
	var b = l[l.length-1].href.substring(0, l[l.length-1].href.lastIndexOf('/')+1);
	
	for(var i=0; i<arguments.length; i++){
		document.write('<script type="text/javascript" src="'+d+arguments[i]+'"></script>');
	}
	
	if(_ua.ltIE7){
		document.write('<link rel="stylesheet" type="text/css" media="all" href="'+b+'ie.css" />'
		+'<script type="text/javascript" src="'+d+'dd_belated.js"></script>');
	}
})(
	'jquery-1.6.min.js',
	'jquery.cookie.js',
	'jquery.url.js',
	'jquery.browser.js',
	'jquery.easing.js',
	'jquery.flatheights.js',
	'jquery.rollover.js',
	'jquery.scrollTo.js',
	'jquery.backgroundPosition.js',
	'common.js'
);

/*
if(_ua.ltIE6){
	document.write('あなたがお使いのブラウザはIE6以下っぽいです');
}else if(_ua.ltIE7){
	document.write('あなたがお使いのブラウザはIE7以下っぽいです');
}else if(_ua.ltIE8){
	document.write('あなたがお使いのブラウザはIE8以下っぽいです');
}else if(_ua.webkit){
	document.write('あなたがお使いのブラウザはchromeもしくはsafariっぽいです');
}else if(_ua.firefox){
	document.write('あなたがお使いのブラウザはFirefoxっぽいです');
}else if(_ua.opera){
	document.write('あなたがお使いのブラウザはOperaっぽいです');
}else if(_ua.ie && !_ua.ltIE8){
	document.write('あなたがお使いのブラウザはIE9以上っぽいです');
}else if(_ua.mobile){
	document.write('あなたはスマートフォンとかタブレット端末っぽいです');
}
*/
