try
{
    if(ShowKiller==1)
    {
        // square ad variables:
        var square_ad_top = -300;
        var square_ad_left = -300;
        var square_ad_height = 250;
        var square_ad_width = 300;
        var square_ad_hX = -320;
        var square_ad_vY = -305;

        // rectangle ad variables:
        var rec_ad_top = -700;
        var rec_ad_right = 10;
        var rec_ad_height = 600;
        var rec_ad_width = 142;
        var rec_ad_hX_IE = 10;
        var rec_ad_hX_Mozilla = 145;
        var rec_ad_hX = 145;
        var rec_ad_vY = -655;

        // cookie expire hours
        var CookieExpireHours=12;

        if(navigator.appName.indexOf('Microsoft') > -1)
        {
        var rec_ad_hX = rec_ad_hX_IE;
        }
        else
        {
        var rec_ad_hX = rec_ad_hX_Mozilla;
        }


        var blogpage;

        try
        {			
	        blogpage = jblog;
        }
        catch (error)
        {
	        jblog = false;
        }

        // write ad html code to the page
        document.write("<div id=\"FloatMail\" name=\"FloatMail\" style=\"position: absolute; overflow: visible; width: 1px; height: 1px;display:none;\">");
        document.write("<center><table width=\"100%\" height=\"145\" border=\"0\" align=\"center\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#FFFFFF\">");
        document.write("<tr><td height=\"25\" align=\"right\" valign=\"top\"><table border=\"0\" cellspacing=\"1\" cellpadding=\"1\" >");
        document.write("<tr><td>&nbsp;</td> <td><img src=\"http://www.jeeran.com/im/close.gif\" width=\"18\" height=\"16\" border=\"0\" onClick=\"moveback();\"/>");
        document.write("</td></tr></table></td></tr>");
        document.write("<tr><td id = \"contentcell\" width=\"1\" height=\"1\" align=\"center\" valign=\"top\" bgcolor=\"#FFFFFF\" style=\"PADDING-RIGHT: 1px; PADDING-LEFT: 1px;PADDING-BOTTOM: 1px; VERTICAL-ALIGN: top; PADDING-TOP: 1px;\">");
        document.write("<iframe src=\"\" width=\"100\" height=\"100\" frameborder=\"0\" scrolling=\"no\" id=\"adframe\" name=\"adframe\"></iframe>");
        document.write("</td></tr><tr><td height=\"25\" align=\"right\" valign=\"top\"><table border=\"0\" cellspacing=\"1\" cellpadding=\"1\">");
        document.write("<tr><td>&nbsp;</td><td><img src=\"http://www.jeeran.com/im/close.gif\" width=\"18\" height=\"16\" border=\"0\" onClick=\"moveback();\"/></td>");
        document.write("</tr></table></td></tr></table></center></div>");

        // script to float ads
        var now = new Date();
        var hours = CookieExpireHours;
        now.setTime(now.getTime() + 1 * hours * 60 * 60 * 1000);
        var Random_num = (Math.round((Math.random()*90)));

        //if ((Random_num %2) == 0){

        //var hX = rec_ad_hX;
        //var vY = rec_ad_vY;
        //document.getElementById('FloatMail').top = rec_ad_top;
        //document.getElementById('FloatMail').right = rec_ad_right;
        //document.getElementById('adframe').height= rec_ad_height;
        //document.getElementById('adframe').width= rec_ad_width;
        //window.frames["adframe"].location = 'http://www.jeeran.com/asp-bin/ad/iframes/blank.html';
        //}
        //else{

        var hX = square_ad_hX;
        var vY = square_ad_vY;
        document.getElementById('FloatMail').top= square_ad_top;
        document.getElementById('FloatMail').left= square_ad_left;
        document.getElementById('adframe').height= square_ad_height;
        document.getElementById('adframe').width= square_ad_width;
        window.frames["adframe"].location = 'http://www.jeeran.com/asp-bin/ad/iframes/blank.html';	
        //}

        if (get_cookie('layer_ad')==''){
        fun_displayLayer(Random_num);
        document.cookie="layer_ad=yes; expires=" + now;
        }

        function fun_displayLayer(Random){

        	if ((Random %2) == 0){ //we check if the number is even or odd
        		window.frames["adframe"].location = 'http://www.jeeran.com/adserver/MemberPageAd_SkyScraper.htm';
        		setTimeout("ShowAd();floatMail_vertical(hX,vY,'FloatMail').Fm();",1000);
        	}
        	else{
		        window.frames["adframe"].location = 'http://www.jeeran.com/adserver/MemberPageAd_Killer.htm';
		        setTimeout("ShowAd();floatMail_diagonal(hX,vY,'FloatMail').Fm();",1000);
        }
        }
        function moveback() {
        document.getElementById('FloatMail').style.display="none";
        }
        function ShowAd() {
        document.getElementById('FloatMail').style.display="block";
        }
        var nn=(navigator.appName.indexOf("Netscape")!=-1);
        var dD=document,dDD=document.body,dH=dD.html,px=dD.layers?'':'px';
        if(jblog){
        dDD=document.documentElement;
        }
        function floatMail_diagonal(iX,iY,id){
        var L=dD.getElementById?dD.getElementById(id):dD.all?dD.all[id]:dD.layers[id];
        this[id+'O']=L;if(dD.layers)L.style=L;L.nX=L.iX=iX;L.nY=L.iY=iY;
        L.P=function(x,y){this.style.left=x+px;this.style.top=y+px;};L.Fm=function(){var pX, pY;
        pX=(this.iX >=0)?0:nn?innerWidth:nn&&dH.clientWidth?dH.clientWidth:dDD.clientWidth;
        pY=nn?pageYOffset:nn&&dH.scrollTop?dH.scrollTop:dDD.scrollTop;
        if(this.iY<0)pY+=nn?innerHeight:nn&&dH.clientHeight?dH.clientHeight:dDD.clientHeight;
        this.nX+=.1*(pX+this.iX-this.nX);this.nY+=.1*(pY+this.iY-this.nY);this.P(this.nX,this.nY);
        setTimeout(this.id+'O.Fm()',33);};
        return L;}

        function floatMail_vertical(iX,iY,id){
        var L=dD.getElementById?dD.getElementById(id):dD.all?dD.all[id]:dD.layers[id];
        this[id+'O']=L;if(dD.layers)L.style=L;L.nX=L.iX=iX;L.nY=L.iY=iY;
        L.P=function(x,y){this.style.right=x+px;this.style.top=y+px;};L.Fm=function(){var pX, pY;
        pX=(this.iX >=0)?0:nn?innerWidth:nn&&dH.clientWidth?dH.clientWidth:dDD.clientWidth;
        pY=nn?pageYOffset:nn&&dH.scrollTop?dH.scrollTop:dDD.scrollTop;
        if(this.iY<0)pY+=nn?innerHeight:nn&&dH.clientHeight?dH.clientHeight:dDD.clientHeight;
        this.nX+=.1*(pX+this.iX-this.nX);this.nY+=.1*(pY+this.iY-this.nY);this.P(this.nX,this.nY);
        setTimeout(this.id+'O.Fm()',33);};
        return L;}

        function get_cookie(Name) {
          var search = Name + "="
          var returnvalue = "";
          if (document.cookie.length > 0) {
            offset = document.cookie.indexOf(search)
            if (offset != -1) {
              offset += search.length
              end = document.cookie.indexOf(";", offset);
              if (end == -1)
                 end = document.cookie.length;
              returnvalue=unescape(document.cookie.substring(offset, end))
              }
           }
          return returnvalue;
        }
    }
}
catch(error)
{

}