/*--

	Live!Ads Cloud Pattern

============================================================================== */
if(navigator.platform.indexOf("Win") < 0 && navigator.appName.indexOf("Internet") >= 0){//Mac IE
}else{
	var _LiveAds_Cloud_adsURL = 'http://www2.liveads.jp/widgets/cloud/';
	var _Liveads_Src = 'http://www2.liveads.jp/widgets_src/index.php?';
	
	while(_LiveAds_Cloud_Data.keyword.indexOf("&#") >= 0){
		var char_code = _LiveAds_Cloud_Data.keyword.substring(_LiveAds_Cloud_Data.keyword.indexOf("&#") + 2,_LiveAds_Cloud_Data.keyword.indexOf(";"));
		var Reg = new RegExp("&#" + char_code + ";","gi");
		_LiveAds_Cloud_Data.keyword = _LiveAds_Cloud_Data.keyword.replace(Reg,String.fromCharCode(char_code));
	}
	_LiveAds_Cloud_Data.keyword = encodeURIComponent(_LiveAds_Cloud_Data.keyword);
	
	for(var i in _LiveAds_Cloud_Data){
		_Liveads_Src += i + '=' + _LiveAds_Cloud_Data[i] + '&amp;';
	}
	_Liveads_Src +='results_per_page=10&amp;srcpath=cloud&amp;sid=103001';
	
	//data read
	var _LiveAds_Cloud_DataScript ='<script type="text/javascript" charset="utf-8" src="' + _Liveads_Src + '"></script>';
	document.write(_LiveAds_Cloud_DataScript);
	
	
	
	var _LiveAds_Product_Src = _LiveAds_Cloud_adsURL + 'script.js';
	var _LiveAds_Product_Script ='<script type="text/javascript" charset="utf-8" src="' + _LiveAds_Product_Src + '"></script>';
	
	var _LiveAds_Product_Style = _LiveAds_Cloud_adsURL + 'style.css';
	if(!document.getElementById("_LiveAds_Style_Product")){
		var _LiveAds_Product_LinkObj = document.createElement("link");
		_LiveAds_Product_LinkObj.media ="all";
		_LiveAds_Product_LinkObj.type="text/css";
		_LiveAds_Product_LinkObj.rel="stylesheet";
		_LiveAds_Product_LinkObj.href=_LiveAds_Product_Style;
		_LiveAds_Product_LinkObj.id="_LiveAds_Style_Product";
		document.getElementsByTagName("head")[0].appendChild(_LiveAds_Product_LinkObj);
	}
	
	document.write(_LiveAds_Product_Script);
}
