var showHiddenAd=false;
function OTnews_ads(str){
switch (str){
case 'ot0001':
if (showHiddenAd==true){
document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11CF-96B8-444553540000\" id=\"obj1\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\" border=\"0\" width=\"960\" height=\"200\">");
document.writeln("	<param name=\"movie\" value=\"images\/default\/444.swf\">");
document.writeln("	<param name=\"quality\" value=\"High\">");
document.writeln("	<embed src=\"images\/default\/444.swf\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" type=\"application\/x-shockwave-flash\" name=\"obj1\" width=\"960\" height=\"200\"><\/object>");
}
break;

case 'ot0002':
if (showHiddenAd==true){
document.writeln("321312312312");
}
break;

case 'ot0003':
if (showHiddenAd==true){
document.writeln("全站头部图片通栏【960*X】");
}
break;

case 'ot0004':
if (showHiddenAd==true){
document.writeln("全站头部文字通栏【960*X】");
}
break;

case 'ot0005':
if (showHiddenAd==true){
document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11CF-96B8-444553540000\" id=\"obj1\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\" border=\"0\" width=\"960\" height=\"160\">");
document.writeln("	<param name=\"movie\" value=\"http:\/\/www.luancheng.gov.cn\/manage\/message\/Upload\/200811230317.SWF\">");
document.writeln("	<param name=\"quality\" value=\"High\">");
document.writeln("	<embed src=\"http:\/\/www.luancheng.gov.cn\/manage\/message\/Upload\/200811230317.SWF\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" type=\"application\/x-shockwave-flash\" name=\"obj1\" width=\"960\" height=\"160\"><\/object>");
}
break;

case 'ot0006':
if (showHiddenAd==true){
document.writeln("首页左侧频道一728*90】");
}
break;

case 'ot0007':
if (showHiddenAd==true){
document.writeln("首页左侧频道二【728*90】");
}
break;

case 'ot0008':
if (showHiddenAd==true){
document.writeln("首页右侧中部【250*X】");
}
break;

case 'ot0009':
if (showHiddenAd==true){
document.writeln("<div style=\"position:absolute;border:1px solid #000;right:0;\" id=\"ad\"><a href=\"#\"><img border=\"0\" src=\"http:\/\/localhost\/images\/default\/3333.jpg\" width=\"250\" height=\"98\"><\/a><\/div>");
document.writeln("<script language=\"JavaScript\" type=\"text\/javascript\"> ");
document.writeln("function rightBottomAd(){ ");
document.writeln("var abc = document.getElementById(\"ad\"); ");
document.writeln("abc.style.top = document.documentElement.scrollTop+document.documentElement.clientHeight-98+\"px\";\/\/20是这个层的高度； ");
document.writeln("setTimeout(function(){rightBottomAd();},50); ");
document.writeln("} ");
document.writeln("rightBottomAd(); ");
document.writeln("<\/script>");
}
break;

case 'ot0010':
if (showHiddenAd==true){
document.writeln("内容页左侧【640*60】");
}
break;

case 'ot0011':
if (showHiddenAd==true){
document.writeln("内容页右侧上部【250*250】");
}
break;

case 'ot0012':
if (showHiddenAd==true){
document.writeln("内容页右侧下部【250*250】");
}
break;

case 'ot0013':
if (showHiddenAd==true){
document.writeln("<DIV id=img1 style=\"Z-INDEX: 100; LEFT: 2px; WIDTH: 59px; POSITION: absolute; TOP: 43px; HEIGHT: 61px;");
document.writeln("visibility: visible;\"><a href=\"#\" target=\"_blank\"><img src=\"http:\/\/localhost\/images\/default\/3333.jpg\" width=\"250\" height=\"98\" border=\"0\"><\/a><\/DIV>");
document.writeln("<script type=\"text\/javascript\">");
document.writeln("var xPos = 300;");
document.writeln("var yPos = 200;");
document.writeln("var step = 1;");
document.writeln("var delay = 30;");
document.writeln("var height = 0;");
document.writeln("var Hoffset = 0;");
document.writeln("var Woffset = 0;");
document.writeln("var yon = 0;");
document.writeln("var xon = 0;");
document.writeln("var pause = true;");
document.writeln("var interval;");
document.writeln("img1.style.top = yPos;");
document.writeln("function changePos()");
document.writeln("{");
document.writeln("width = document.body.clientWidth;");
document.writeln("height = document.body.clientHeight;");
document.writeln("Hoffset = img1.offsetHeight;");
document.writeln("Woffset = img1.offsetWidth;");
document.writeln("img1.style.left = xPos + document.body.scrollLeft;");
document.writeln("img1.style.top = yPos + document.body.scrollTop;");
document.writeln("if (yon)");
document.writeln("{yPos = yPos + step;}");
document.writeln("else");
document.writeln("{yPos = yPos - step;}");
document.writeln("if (yPos < 0)");
document.writeln("{yon = 1;yPos = 0;}");
document.writeln("if (yPos >= (height - Hoffset))");
document.writeln("{yon = 0;yPos = (height - Hoffset);}");
document.writeln("if (xon)");
document.writeln("{xPos = xPos + step;}");
document.writeln("else");
document.writeln("{xPos = xPos - step;}");
document.writeln("if (xPos < 0)");
document.writeln("{xon = 1;xPos = 0;}");
document.writeln("if (xPos >= (width - Woffset))");
document.writeln("{xon = 0;xPos = (width - Woffset);   }");
document.writeln("}");
document.writeln("function start()");
document.writeln("{");
document.writeln("img1.visibility = \"visible\";");
document.writeln("interval = setInterval(\'changePos()\', delay);");
document.writeln("}");
document.writeln("function pause_resume()");
document.writeln("{");
document.writeln("if(pause)");
document.writeln("{");
document.writeln("clearInterval(interval);");
document.writeln("pause = false;}");
document.writeln("else");
document.writeln("{");
document.writeln("interval = setInterval(\'changePos()\',delay);");
document.writeln("pause = true;");
document.writeln("}");
document.writeln("}");
document.writeln("start();");
document.writeln("<\/script>");
}
break;

case 'ot0014':
document.writeln("<img border=\"0\" src=\"images\/default\/3333.jpg\" width=\"250\" height=\"107\">");
break;

}
}
