
    //configuration	for open adstream (kia)
    function cookie_check(ifd,ife) {
    	var s=ife.indexOf(ifd);
    	if(s==-1) return "";
            s+=ifd.length;
    	var e=ife.indexOf(";",s);
    	if(e==-1) e=ife.length;
    	return ife.substring(s,e);
    }

    function write_cookie() {
    	var d=new Date();
    	var m=d.getTime();
    	document.cookie="OAS_SC1="+m.toString()+";path=/;";
    	var v=cookie_check("OAS_SC1=",document.cookie);
    	if(v!=m.toString())return false;
    	d.setTime(m+3600000);
    	return true;
    }

	function OAS_NORMAL(pos) {
	  document.write('<A HREF="' + OAS_url + 'click_nx.ads/' + OAS_sitepage + '/1' + OAS_RNS + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" TARGET=' + OAS_target + '>');
	}
	
	function OAS_AD(pos) {
      if (OAS_version >= 11)
        OAS_RICH(pos);
      else
        OAS_NORMAL(pos);
    }
