//[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]
//[DROP_SCRIPT]

var b_el=null;var tog=false;
function ToggleBody(e,r){if(tog&&b_el!=null&&b_el!=e){$("#"+b_el+"Body").slideUp();$("#"+b_el+"Up").attr("src",r+"images/expand.gif");};$("#"+e+"Body").slideToggle(function() {b_el=e;src=($(this).css("display")=="block")?"collapse":"expand";img=r+"images/"+src+".gif";$("#"+e+"Up").attr("src",img);});return false;}

//[END]
//[TABLE-ROLLOVER]

var ns6=document.getElementById&&!document.all;var ie=document.all;var prev_color;

function rollover_on(e,clr,type,r_ex,c_ex,table)
{
el=ie?event.srcElement:e.target;if(el.tagName=="TABLE") return;while(el &&(typeof el.cellIndex=='undefined')){el=ie?el.parentElement:el=el.parentNode;}
if(el){if(el.tagName=="TABLE") return;
if((ie)||(el.parentNode.cells[1] && el.parentNode.cells[1].cellIndex==1)) {ci=el.cellIndex;} else{myCells=el.parentNode.cells;for(j=0;j<myCells.length; j++) {if(el==myCells[j])ci=j;}}
if(type=='TC' || type=='TRTC') {if (ci>0 || c_ex =='') {table.ci=ci;fc=(r_ex=='')?0:1;for(x=fc;x<table.rows.length;x++) {prev_color=table.rows[x].cells[ci].style.backgroundColor;table.rows[x].cells[ci].style.backgroundColor=clr;}}}
el=ie?event.srcElement:e.target;if(el.tagName=="TABLE") return;
while(el.tagName!='TR' && el.tagName!="HTML") el=ns6?el.parentNode:el.parentElement;
ri=el.rowIndex;
if(type=='TRTC' || type=='TR'){if(r_ex=='' || ri>0){table.ri=ri;fc=(c_ex=='')?0:1;for(x=fc;x<table.rows[ri].cells.length;x++) {if(type=='TR' && clr!=table.rows[ri].cells[x].style.backgroundColor){prev_color=table.rows[ri].cells[x].style.backgroundColor;}table.rows[ri].cells[x].style.backgroundColor=clr;}}}
else if(type=='TD'){if((r_ex=='' || ri>0)&&(c_ex=='' || ci>0)){table.ri=ri;table.ci=ci;prev_color=table.rows[ri].cells[ci].style.backgroundColor;table.rows[ri].cells[ci].style.backgroundColor=clr;}}
}}

function rollover_off(e,clr,type,r_ex,c_ex,table)
{
if((type=='TC')||(type=='TRTC')){if((table.ci > 0)||(c_ex=='')){fc=(r_ex=='')?0:1; for(x=fc; x<table.rows.length;x++) table.rows[x].cells[table.ci].style.backgroundColor=prev_color;}}
if(type=='TRTC'||type=='TR'){if(table.rows[table.ri]){fc=(c_ex=='')?0:1;for(x=fc;x<table.rows[table.ri].cells.length;x++) table.rows[table.ri].cells[x].style.backgroundColor=prev_color;;}}
if(type=='TD'&&(table.rows[table.ri])){table.rows[table.ri].cells[table.ci].style.backgroundColor=prev_color;}
}

//[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]

