﻿function show_div(name, aaa) {
	var obj=document.getElementById(name);
	obj.style.display="block";
	var obj1=document.getElementById(aaa);
	//obj1.style.backgroundColor="images/bookmark_o.gif";
	//obj1.style.backgroundColor="#efebef";
}
function hidden_div(name1,name2,bbb,ccc) {
	var obj1=document.getElementById(name1);
	var obj2=document.getElementById(name2);
	obj1.style.display="none";
	obj2.style.display="none";
	var obj3=document.getElementById(bbb);
	var obj4=document.getElementById(ccc);
	//obj3.style.backgroundColor="images/bookmark_n.gif";
	//obj4.style.backgroundColor="images/bookmark_n.gif";
	//obj3.style.backgroundColor="#d6d7d6";
	//obj4.style.backgroundColor="#d6d7d6";
}
var Rimifon = { 
	    "Ads" : new Object, 
	     "NewFloatAd" : function(imgUrl, strLink) 
	     { 
	         var ad = document.createElement("a"); 
	         ad.DirV = true; 
	         ad.DirH = true; 
	         ad.AutoMove = true; 
	         ad.Image = new Image; 
	         ad.Seed = Math.random(); 
	         ad.Timer = setInterval("Rimifon.Float(" + ad.Seed + ")", 50); 
	         this.Ads[ad.Seed] = ad; 
	         ad.Image.Parent = ad; 
	         ad.style.position = "absolute"; 
	         ad.style.left =(document.documentElement.clientWidth-document.body.clientWidth)/2;
	         ad.style.top = 0; 
	         ad.Image.src = imgUrl; 
	         ad.Image.width=180;
	         ad.Image.height=165; 
	         ad.Image.border=0;
	         ad.Image.onmouseover = function(){this.Parent.AutoMove = false;} 
	         ad.Image.onmouseout = function(){this.Parent.AutoMove = true;} 
	         if(strLink) 
	         { 
	             ad.href = strLink; 
	             ad.Image.border = 0; 
	             ad.target = "_blank"; 
	         } 
	         ad.appendChild(ad.Image); 
	         document.body.appendChild(ad); 
	         return ad; 
	     }, 
	     "Float" : function(floatId) 
	     { 
	         var ad = this.Ads[floatId]; 
	         if(ad.AutoMove) 
	         { 
	             var curLeft = parseInt(ad.style.left); 
	             var curTop = parseInt(ad.style.top); 
	             
	             if(ad.offsetWidth + curLeft > document.body.clientWidth + document.body.scrollLeft - 1+(document.documentElement.clientWidth-document.body.clientWidth)/2) 
	             { 
	                 curLeft = document.body.scrollLeft + document.body.clientWidth - ad.offsetWidth+(document.documentElement.clientWidth-document.body.clientWidth)/2; 
	                 ad.DirH = false; 
	             } 
	             if(ad.offsetHeight + curTop > document.documentElement.clientHeight+document.documentElement.scrollTop - 1) 
	             { 
	                 curTop = document.documentElement.clientHeight+document.documentElement.scrollTop - ad.offsetHeight; 
	                 ad.DirV = false; 
	             } 
	             if(curLeft < document.body.scrollLeft+(document.documentElement.clientWidth-document.body.clientWidth)/2) 
	             { 
	                 curLeft = document.body.scrollLeft+(document.documentElement.clientWidth-document.body.clientWidth)/2; 
	                 ad.DirH = true; 
	             } 
	             if(curTop < document.documentElement.scrollTop) 
	             { 
	                 curTop = document.documentElement.scrollTop; 
	                 ad.DirV = true; 
	             } 
	             
	             ad.style.left = curLeft + (ad.DirH ? 1 : -1) + "px"; 
	             ad.style.top = curTop + (ad.DirV ? 1 : -1) + "px"; 
	         } 
	     } 
	} 