function doTop11 () {
  document.writeln('<p>Sponsored Links</p>');
  document.writeln('<script type="text/javascript"><!--');
  document.writeln('google_ad_client = "pub-3815439110720945";');
  document.writeln('google_alternate_ad_url = "http://2020ok.com/cmn/adbrite.html";');
  document.writeln('google_ad_width = 336;');
  document.writeln('google_ad_height = 280;');
  document.writeln('google_ad_format = "336x280_as";');
  document.writeln('google_ad_type = "text_image";');
  document.writeln('google_ad_channel ="2336919311";');
  document.writeln('google_color_border = "FFFFFF";');
  document.writeln('google_color_bg = "FFFFFF";');
  document.writeln('google_color_link = "FB7014";');
  document.writeln('google_color_text = "000000";');
  document.writeln('google_color_url = "000000";');
  document.writeln('//--></script>');
  document.writeln('<script type="text/javascript"');
  document.writeln('  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">');
  document.writeln('</script>');
}
function doTop12 () {
  document.writeln('<p>Sponsored Links</p>');
  document.writeln('<script type="text/javascript"><!--');
  document.writeln('google_ad_client = "pub-3815439110720945";');
  document.writeln('google_alternate_ad_url = "http://2020ok.com/cmn/adbrite.html";');  
  document.writeln('google_ad_width = 336;');
  document.writeln('google_ad_height = 280;');
  document.writeln('google_ad_format = "336x280_as";');
  document.writeln('google_ad_type = "text_image";');
  document.writeln('google_ad_channel ="2336919311";');
  document.writeln('google_color_border = "FFFFFF";');
  document.writeln('google_color_bg = "FFFFFF";');
  document.writeln('google_color_link = "FB7014";');
  document.writeln('google_color_text = "000000";');
  document.writeln('google_color_url = "000000";');
  document.writeln('//--></script>');
  document.writeln('<script type="text/javascript"');
  document.writeln('  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">');
  document.writeln('</script>');
}
function doTop21 () {
}
function doTop22 () {
}
function doBottom1 () {
}
function doBottom2 () {
  document.writeln('<!-- Kontera ContentLink(TM);-->');
  document.writeln('<script type="text/javascript">');
  document.writeln('var dc_AdLinkColor = "blue" ;');
  document.writeln('var dc_UnitID = 14 ;');
  document.writeln('var dc_PublisherID = 40162 ;');
  document.writeln('var dc_adprod = "ADL" ;');
  document.writeln('</script>');
  document.writeln('<script type="text/javascript" src="http://kona.kontera.com/javascript/lib/KonaLibInline.js">');
  document.writeln('</script>');
  document.writeln('<!-- Kontera ContentLink(TM) -->');
  document.writeln('<script type="text/javascript" src="http://tcr.tynt.com/javascripts/Tracer.js?user=a1oozcqkGr3QgQab7jrHtB&s=51"></script>');

  return;
}

function doContent1 () {
  document.writeln('<script type="text/javascript"><!--');
  document.writeln('google_ad_client = "pub-3815439110720945";');
  document.writeln('google_alternate_color = "FFFFFF";');
  document.writeln('google_ad_width = 200;');
  document.writeln('google_ad_height = 90;');
  document.writeln('google_ad_format = "200x90_0ads_al";');
  document.writeln('google_ad_channel ="3760637205";');
  document.writeln('google_color_border = "FFFFFF";');
  document.writeln('google_color_bg = "FFFFFF";');
  document.writeln('google_color_link = "000000";');
  document.writeln('google_color_text = "000000";');
  document.writeln('google_color_url = "000000";');
  document.writeln('//--></script>');
  document.writeln('<script type="text/javascript"');
  document.writeln('  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">');
  document.writeln('</script>');
}
function doContent2 () {
  document.writeln('<script type="text/javascript">'); 
  document.writeln('<!--'); 
  document.writeln('microsoft_adunitid="1617";'); 
  document.writeln('microsoft_adunit_width="300";'); 
  document.writeln('microsoft_adunit_height="250"; '); 
  document.writeln('microsoft_adunit_legacy="true";//--> ');
  document.writeln('</script> ');
  document.writeln('<script type="text/javascript" src="http://adsyndication.msn.com/delivery/getads.js" ></script>');

  return;
}
function doContent3 () {
   doContent2 ();
}
function doContent4 () {
  document.writeln('<script type="text/javascript"> ');
  document.writeln('<!-- ');
  document.writeln('microsoft_adunitid="1618"; ');
  document.writeln('microsoft_adunit_width="300"; ');
  document.writeln('microsoft_adunit_height="250";  ');
  document.writeln('microsoft_adunit_legacy="true";//--> ');
  document.writeln('</script> ');
  document.writeln('<script type="text/javascript" src="http://adsyndication.msn.com/delivery/getads.js" ></script>');
  
  return;
}
function doContent5 () {
}
function doContent6 () {
}
function doRight1 () {
  document.writeln('<A href="http://expert-talk.com/tips/376/women-and-bad-boys-what-is-the-attraction-291376.htm">Women &amp; Bad Boys</A>&nbsp;&nbsp;');
  document.writeln('<A href="http://expert-talk.com/tips/568/downloading-mp3-39s-made-easy-201568.htm">Downloading MP3</A>&nbsp;&nbsp;');  
  document.writeln('<A href="http://KickJava.com">Free Java</A>&nbsp;&nbsp;');
  document.writeln('<A href="http://expert-talk.com/tips/376/how-video-can-be-used-effectively-online-236376.htm">Online Video</A>&nbsp;&nbsp;');  
  document.writeln('<A href="http://2020ok.com/200_Amazing_FREE_Magazines">Free Magazines</A>&nbsp;&nbsp;');
  document.writeln('<A href="http://expert-talk.com/tips/222/dating-advice-love-shouldn-39t-hurt-237222.htm">Dating</A>&nbsp;&nbsp;');  
  document.writeln('<A href="http://expert-talk.com/tips/968/internet-chat-rooms-are-we-missign-the-point-201968.htm">Chat Rooms</A>&nbsp;&nbsp;');    
  document.writeln('<a href="http://121wow.com"><img src="http://121wow.com/121wow_short.gif" alt="121 WOW!" border="0"></a>&nbsp;&nbsp;');  
}
function doRight2 () {
}
function doRight3 () {
  document.writeln('<script type="text/javascript"><!--');
  document.writeln('google_ad_client = "pub-3815439110720945";');
  document.writeln('google_ad_slot = "4820644944";');
  document.writeln('google_ad_width = 180;');
  document.writeln('google_ad_height = 150;');
  document.writeln('//-->');
  document.writeln('</script>');
  document.writeln('<script type="text/javascript"');
  document.writeln('src="http://pagead2.googlesyndication.com/pagead/show_ads.js">');
  document.writeln('</script>');

  return;
}

function doRight4 () {
  document.writeln('<script type="text/javascript"><!--');
  document.writeln('google_ad_client = "pub-3815439110720945";');
  document.writeln('google_alternate_color = "FFFFFF";');
  document.writeln('google_ad_width = 200;');
  document.writeln('google_ad_height = 90;');
  document.writeln('google_ad_format = "200x90_0ads_al";');
  document.writeln('google_ad_channel ="8112203674";');
  document.writeln('google_color_border = "FFFFFF";');
  document.writeln('google_color_bg = "FFFFFF";');
  document.writeln('google_color_link = "003399";');
  document.writeln('google_color_text = "003399";');
  document.writeln('google_color_url = "003399";');
  document.writeln('//--></script>');
  document.writeln('<script type="text/javascript"');
  document.writeln('  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">');
  document.writeln('</script>');
}

function doRight5 () {
return;
  document.writeln('<script type="text/javascript"><!--');
  document.writeln('google_ad_client = "pub-3815439110720945";');
  document.writeln('/* 180x150, created 3/2/08 */');
  document.writeln('google_ad_slot = "6785350291";');
  document.writeln('google_ad_width = 180;');
  document.writeln('google_ad_height = 150;');
  document.writeln('google_cpa_choice = ""; // on file');
  document.writeln('//-->');
  document.writeln('</script>');
  document.writeln('<script type="text/javascript"');
  document.writeln('src="http://pagead2.googlesyndication.com/pagead/show_ads.js">');
  document.writeln('</script>');
}

function doRight6 () {
  document.writeln('<script type="text/javascript"><!--');  
  document.writeln('  amazon_ad_tag = "kickjava-20";  amazon_ad_width = "160";  amazon_ad_height = "600";  amazon_color_link = "003399";  amazon_color_price = "000000";  amazon_color_logo = "FFFFFF";  amazon_ad_logo = "hide";  amazon_ad_border = "hide";');  
  document.writeln('//--></script>');  
  document.writeln('<script type="text/javascript" src="http://www.assoc-amazon.com/s/ads.js"></script>  ');  
}

function vote (id, type)
{
  try {
    var url = top.location.href.toLowerCase();
    var pos1 = url.lastIndexOf("-");
    var pos2 = url.lastIndexOf(".");
    id = url.substring(pos1 + 1, pos2);
    
    var target1 = document.getElementById ('mnms-' + type);
    var target2 = document.getElementById ('mnmlink-' + type);

    if (target2.innerHTML.charAt(target2.innerHTML.length - 1) == 'd')
    {
       return;
    }

    var prevColor = target1.style.backgroundColor;
    target1.innerHTML = parseInt(target1.innerHTML) + 1;
    target1.style.backgroundColor = prevColor;
    target2.innerHTML = target2.innerHTML + 'd';

    updFrame('/cmn/stat.php?' + type + '=' + id);
    
    return;
  } catch (ex) {}
}

function submitComment_done (){
   var frm = document.getElementById ('frmComment');
   frm.innerHTML = "Thank you!";
}

function submitComment ()
{
  try {
   
   var frm = document.getElementById ('frmComment');
   frm.submit();
   window.setTimeout("submitComment_done()",500); 
  } catch (ex) {}

  return false;
}

function saveTo (site)
{
  try {
  
    switch (site)
    {
      case "digg":
	window.open('http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title));
	break;
      case "google":
	location.href='http://www.google.com/bookmarks/mark?op=add&bkmk='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);
	break;
      case "live":	
	d=document;
	t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');
	void(live=window.open('https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url='+escape(d.location.href)+'&title='+escape(d.title)+'&top=1','live','scrollbars=no,status=no,resizable=yes'));
	live.focus();
	break;
      case "icio":	
	d=document;
	t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');
	void(del = window.open('http://del.icio.us/login/?url=' + escape(d.location.href) + '&title=' + escape(d.title), 'del','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));
	del.focus();
	break;
      case "diigo":	
	var s=document.createElement('script');
	s.type='text/javascript';
	s.src='http://www.diigo.com/javascripts/webtoolbar/diigolet_b_h_b.js';
	document.body.appendChild(s);
	break;
      case "blinklist":	
        u=location.href;
        p=/https/;
        httpvar=(u.search(p)!=-1)?'https':'http';
        s=document.body.appendChild(document.createElement('script'));
        s.id='fs';
        s.language='javascript';
        void(s.src=httpvar+'://www.blinklist.com/Theme/Script/fav.js');
	break;
      case "furl":	
        var s=document.createElement('script');
        s.setAttribute('src','http://www.furl.net/resources/furlItComplete.jsp');
        s.setAttribute('type','text/javascript');
        document.getElementsByTagName('head')[0].appendChild(s);
	break;
      case "yahoo":	
	window.open('http://myweb.yahoo.com/myresults/bookmarklet?t='+encodeURIComponent(document.title)+'&u='+encodeURIComponent(window.location.href)+'&ei=UTF-8','popup','width=520px,height=420px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0);
	break;
      case "blogmarks":	
	var q='';
	var r='';
	if(document.selection)q=document.selection.createRange().text;
	else if(window.getSelection())q=window.getSelection();
	if(document.referrer)r=document.referrer;
	void(open('http://blogmarks.net/my/marks,new?mini=1'+'&title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href)+'&summary='+encodeURIComponent(q)+'&via='+encodeURIComponent(r),'blogmarks','location=no,toolbar=no,scrollbars=yes,width=350,height=450,status=no'));
	break;
      case "shadows":	
	window.open('http://www.shadows.com/bookmark/saveLink.rails?page='+escape(location.href)+'&title='+escape(document.title)+'&ei=UTF-8','popup','width=520px,height=420px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0);
	break;
      case "stumbleupon":	
        window.open('http://www.stumbleupon.com/submit?url='+escape(location.href)+'&title='+escape(document.title)+'&ei=UTF-8','popup','width=520px,height=420px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0);
	break;
      case "reddit":	
	location.href='http://reddit.com/submit?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);
         break;
      default:
     }
     
  } catch (ex) {}

  return false;
}

function openBook(bookID) {
   updFrame('/cmn/stat.php?link=' + bookID);
    
   var link='/cmn/okFreeBooks.php?ok2020bookID='+bookID;
   var okWin=window.open(link,'2020OKbook', 'width='+screen.availWidth*0.85+',height='+screen.availHeight+',left='+screen.availWidth*0.14+',top=0,menubar=1,location=1,toolbar=1,scrollbars=1,resizable=1');
   okWin.focus();
}

function updFrame(srcURL) {
  try {
    var iframe = document.getElementById("iframeStat");
    iframe.src = srcURL;
    iframe.window.location.reload(true);
  } catch (ex) {
//    alert(ex + '-' + srcURL);
  }
}
