var brwsAgent = navigator.userAgent.toLowerCase();
if(brwsAgent.indexOf("msie 5") == -1 ){
 var sv = 'moz';
}else{
 var sv = 'ie5';
}
if(sv != 'ie5'){
/*
var hD="0123456789ABCDEF";
function d2h(d) {
  var h = hD.substr(d&15,1);
  while(d>15) {d>>=4;h=hD.substr(d&15,1)+h;}
  if(h.length<2) h = "0"+h;
  return h;
}
function rgb2h(str) {
  str = str.substring(str.indexOf("(")+1);
  r = d2h(parseInt(str.substring(0,str.indexOf(","))));
  str = str.substring(str.indexOf(",")+2);
  g = d2h(parseInt(str.substring(0,str.indexOf(","))));
  str = str.substring(str.indexOf(",")+2);
  b = d2h(parseInt(str.substring(0,str.indexOf(")"))));
  return r+g+b;
}
function getHex(str) {
  if(str.length==7) {
    return str.substring(1);
  } else if(str.length==4) {
    return str.charAt(1)+str.charAt(1) + str.charAt(2)+str.charAt(2) + str.charAt(3)+str.charAt(3);
  } else if(str.length>6 && str.indexOf("rgb(")==0) {
    return rgb2h(str);
  } else {
    return "000000";
  }
}

document.write('<div id="googlecolors1"><a href="#">Link</a> and Text</div>');
document.write('<div id="googlecolors2">Text</div>');

var el1 = document.getElementById("googlecolors1");
var el2 = document.getElementById("googlecolors2");
var gc_border,gc_bg,gc_link,gc_url,gc_text;
var google_color_border,google_color_bg,google_color_link,google_color_url,google_color_text;
if(document.all) {
  var bgtest = el1.currentStyle.backgroundColor;
  if(bgtest != "transparent") {
    gc_bg = getHex(bgtest);
    gc_link = getHex(el1.firstChild.currentStyle.color);
    gc_text = getHex(el1.currentStyle.color);
    gc_border = getHex(el2.currentStyle.backgroundColor);
    gc_url = getHex(el2.currentStyle.color);
  }
  el1.removeNode(true);
  el2.removeNode(true);
} else {
  var bgtest = document.defaultView.getComputedStyle(el1,null).getPropertyValue("background-color");
  if(bgtest!="transparent") {
    gc_bg = rgb2h(bgtest);
    gc_link = rgb2h(document.defaultView.getComputedStyle(el1.firstChild,null).getPropertyValue("color"));
    gc_text = rgb2h(document.defaultView.getComputedStyle(el1,null).getPropertyValue("color"));
    gc_border = rgb2h(document.defaultView.getComputedStyle(el2,null).getPropertyValue("background-color"));
    gc_url = rgb2h(document.defaultView.getComputedStyle(el2,null).getPropertyValue("color"));
  }
  el1.parentNode.removeChild(el1);
  el2.parentNode.removeChild(el2);
}
google_color_border = gc_border;
google_color_bg = gc_bg;
google_color_link = gc_link;
google_color_url = gc_url;
google_color_text = gc_text;

google_ad_client = "pub-7093259457636557";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
//2007-10-01: 2style(2style.net)
google_ad_channel = "5598176498";
//google_ui_features = "rc:6";
//document.write('<div style="text-align:center">');
document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">');
document.write('</script>');
//document.write('</div>');
*/
document.write('<scr');
document.write('ipt type="text/javascript" class="CMKingBannerView">');
//document.write('//<![CDATA[');
document.write('if(!CMKingBannerConfs)');
document.write(' var CMKingBannerConfs = [];');
document.write('CMKingBannerConfs.push ({');
document.write('banner : "2STYLE_CM_HB",');
document.write('format : "HalfBanner",');
document.write('border_color: "#ffffff",');
document.write('bg_color : "#FFFFFF",');
document.write('title_color : "#0066ff",');
document.write('text_color : "#0066ff",');
document.write('url_color : "#0000ff"');
document.write('});');
//document.write('//]]>');
document.write('</scr');
document.write('ipt>');
document.write('<scr');
document.write('ipt type="text/javascript" class="CMKingBannerCtrl" src="http://www.cmking.jp/bnr/bootstrap.js?partner=ecnavi_jp_2style_cm_ctxt_kw&type=2STYLE_CM_01" charset="UTF-8">');
document.write('</scr');
document.write('ipt>');

}else{
//document.write('PR :');
/*
var impAcn = "IMPASEG";
var impAco = document.cookie;
var impApos = impAco.indexOf(impAcn+"=");
var impAseg = (impApos!=-1)?impAco.substring(impApos+impAcn.length+1,(impAco.indexOf("; ",impApos)!=-1)?impAco.indexOf("; ",impApos):impAco.length):null;
impAseg = (impAseg)?unescape(impAseg):null;

impAserver = "http://as.dc.impact-ad.jp";
impAtag = "/SITE=IT.2STYLENET.DAC/AREA=TEXT/AAMSZ=340X20/CL=TEXT/OENCJP=SJIS";
impAtarget = (impAseg)?impAtag+"/"+impAseg:impAtag;

impArnd = Math.round(Math.random() * 100000000);
if (!impApid) var impApid = Math.round(Math.random() * 100000000);
document.write('<scr');
document.write('ipt src="' + impAserver + '/jserver/acc_random=' + impArnd + impAtarget + '/pageid=' + impApid + '">');
document.write('</scr');
document.write('ipt>');
*/

in_uid = '95';
in_templateid = '30151';
in_charset = 'UTF-8';
in_group = '';
in_matchurl = '';
in_HBgColor = 'FFFFFF';
in_HBorderColor = 'CCCCCC';
in_HTitleColor = '0000CC';
in_HTextColor = '000000';
in_HUrlColor = '0000CC';
frame_width = '234';
frame_height = '60';

document.write('<scr');
document.write('ipt src=\"http:\/\/cache.microad.jp\/send_95.js\">');
document.write('<\/scr');
document.write('ipt>');

}
