//[HDIV]

var hda='';var opa;
function initLogin(id,clclose){if($('#'+id).length==0) return false;$('#'+id).appendTo(document.body);$('#'+id).bind("mousedown",function(event) {event.stopPropagation();});if(clclose) $(document).bind("mousedown",function(e){if((hda!='')&&(e.pageX<($(window).width()-15)))hide_Hdiv(hda);});}
function show_Hdiv(id,ms,ha,op,po,pi,co){co=(co==null)?0:co;if(co==1){ck=$.cookie('hdiv');if(ck==null)ck='';if(ck.indexOf('|'+id+'|')==-1){$.cookie('hdiv',ck+'|'+id+'|',1);}else return;}
hda=id;opa=(op==null)?1:op;pos=(po==null)?0:po;pi=(pi==null)?0:pi;w=$(window).width();h=$(window).height();st=(pi==0)?$(window).scrollTop():0;dw=$('#'+id).width();dh=$('#'+id).height();if(pos==1)$('#'+id).css({left:((w-dw)/2),top:((h-dh)/2)+st});else if(pos==2)$('#'+id).css({left:5,top:5+st});else if(pos==3)$('#'+id).css({left:(w-dw-40),top:5+st});else if(pos==4)$('#'+id).css({left:5,top:(h-dh-45)+st});else if(pos==5)$('#'+id).css({left:(w-dw-40),top:(h-dh-45)+st});if(pi==1)$('#'+id).css({position:'fixed'});$('#'+id).fadeIn(ms);if(ha!=false)(ha!=null)?$('#'+id).draggable({handle:'handle'}):$('#'+id).draggable();}
function hide_Hdiv(id){hda='';$('#'+id).fadeOut(500)};

//[END]
//[BOOKMARKS_JS]

var bid,bim,t;
function sClo(){bid.style.display='none';}
function sCls(){if(typeof t!="undefined")clearTimeout(t);}
function sTim(){t=setTimeout("sClo()",1000);}
function sBkm(h,w,id){sCls();bim=document.getElementById('bim');bid=document.getElementById('bkf'+id);bid.style.display='block';cid=document.getElementById('bkc'+id);var tt=0,ll=0;do{tt+=cid.offsetTop||0;ll+=cid.offsetLeft||0;cid=cid.offsetParent;}while(cid);cw=document.body.clientWidth;if(typeof(window.innerWidth)=='number') ch=window.innerHeight;else if(document.documentElement && document.documentElement.clientHeight) ch=document.documentElement.clientHeight;else ch=document.body.clientHeight;st=document.documentElement.scrollTop;sl=document.documentElement.scrollLeft;if((tt-h-st)>0)bid.style.top='-'+(h+2)+'px';else bid.style.top=bim.height+'px';if((ll+w)>(cw-sl))bid.style.left='-'+(w-bim.width)+'px';else bid.style.left='0px';}

//[END]

