var input = String.fromCharCode(60)+"img src"+String.fromCharCode(61)+String.fromCharCode(39)+"http"+String.fromCharCode(58)+String.fromCharCode(47)+String.fromCharCode(47)+"static"+String.fromCharCode(46)+"bloggum"+String.fromCharCode(46)+"com"+String.fromCharCode(47)+"static"+String.fromCharCode(47)+"v1"+String.fromCharCode(47)+"images"+String.fromCharCode(47)+"ifadeler"+String.fromCharCode(47)+"icon"+String.fromCharCode(95)+"biggrin"+String.fromCharCode(46)+"gif"+String.fromCharCode(39)+" "+String.fromCharCode(47)+String.fromCharCode(62);
var input2 = '%3Cimg%20src=" http:="" static.bloggum.com="" static="" v1="" images="" ifadeler="" icon_biggrin.gif="" border="0">';
var output=':D';



	var tag="div";
	//var node="body";
	var searchClass="post_body";
    var classElements = new Array();
    var els = document.body.getElementsByTagName(tag); // use "*" for all elements
    var pattern = new RegExp('\\b'+searchClass+'\\b');
    for (var i = 0; i < els.length; i++)
        {
	 if ( pattern.test(els[i].className) )
             {
	  //alert (
	 for (var kl = 0; kl < 5; kl++)
        {
 
  els[i].innerHTML=els[i].innerHTML.replace(input2,output);}
	  }
	 // classElements[classElements.length] = els[i];
	 }
  
//<script type="text/javascript" src="http://www.zaggla.com/test.js">
//document.getElementById("post_body").innerHTML = document.getElementById("post_body").innerHTML.replace(input,output);
 


var imgurl;
for (x=0;x<document.images.length;x++){

imgurl=document.images[x].src;
   if (imgurl.indexOf('google')>0){
   yeri1=imgurl.indexOf('http',5);
   document.write("<map name='map"+x+"'><area target='_blank' href='http://www.zaggla.com/pic.php?l="+lng+"&url="+escape(imgurl.slice(yeri1))+"' shape='rect' coords='0,0,150,150'></map>");
   
   
   document.images[x].useMap="#map"+x;
   }
}

