//$(document).keyup(function(event){
 //switch(event.keyCode) {
// case 67 :changecbd()
// }
//}); 

function changecbd(){
var text=window.clipboardData.getData('Text')
var insrearr=new Array("(本文来自http://www.dou777.com)","777祛痘网","dou777","(更多护肤方法尽在http://www.dou777.com)","777祛痘","777祛痘","(http://www.dou777.com)")
var instime="4"
var str1=new Array()
var str2=new Array()
for (var i=0;i<instime;i++ )
{
var s1=parseInt(Math.random()*insrearr.length);
var s2=parseInt(Math.random()*text.length);
str1[i]=insrearr[s1];
text=text.replace(text.substring(s2,s2+1),text.substring(s2,s2+1)+"$$");
}
for (var i=0;i<instime;i++ )
{
text=text.replace("$$",str1[i]);
}
window.clipboardData.setData('Text',text);

}


function creatad(e){
var str=""
if(e=="0"){
//document.write('<a href="http://mflybg.tmall.com" target="_blank" ><img src="/ad/728_90lf.gif"  style="border:0" /></a>');
google_ad_client = "ca-pub-1805705383179905";
/* 728 x 90 */
google_ad_slot = "9286594520";
google_ad_width = 728;
google_ad_height = 90;
document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
 }
if(e=="11111"  || e=="111"){
}
if(e=="2"  || e=="22"){
document.write('<a href="http://mflybg.tmall.com" target="_blank" ><img src="/images/300_250.jpg"  /></a>');
}


if(e=="3"  || e=="33"){
google_ad_client = "pub-1805705383179905";
/* doudou777 */
google_ad_slot = "9277999516";
google_ad_width = 336;
google_ad_height = 280;
document.write('<script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
	}
if(e=="4" || e=="10"){
 insert_comment("goadtext2");
}

}

var  kid;
function insert_comment(id){
ee=$('h2').html().match(/\_([0-9]+)\.htm\"/);
if(ee || kid){
if(ee && !kid)kid=ee[1];
 $("#"+id).after('<div id="k_comment"></div><div id="k_comment_post"><br/><textarea id="k_comment_content"  rows="6" cols="60: class="k_in4"></textarea><br/><input type="submit" value="发表评论"  onclick="posthtm(\'/page/comment/index.asp?action=post\',\'k_comment_post\',\'comment=Article|'+kid+'&content=\'+encodeURIComponent(document.getElementById(\'k_comment_content\').value))" />(1-2000)</div>');
$.get('/comment/Article/'+kid+'/index.htm', function(data){
  $("#k_comment").html(data);
}); 
}
}
