//[OPENPIC]

function openpic(title,url,lo,me,re,sc,st,to,closingtime,w,h,t,l)
{
 
 if(t<0 || l<0){l=Math.round((screen.availWidth-w)/2);t=Math.round((screen.availHeight-h)/2)-25;}
 aw=window.open('','','toolbar='+to+',menubar='+me+',scrollbars='+sc+',resizable='+re+',status='+st+',location='+lo+',width='+w+',height='+h+',top='+t+',left='+l);
 temp='<html><head><title>'+title+'<\/title><\/head><body style="margin:0;padding:0"><table cellspacing="0" cellpadding="0" style="width:100%;height:100%;background:#FFFFFF"><tr><td width="100%"><p align="center"><a href="javascript:window.close();"><img width="'+w+'" border="0" src="'+url+'"><\/a>';
 
 temp+='<\/td><\/tr><\/table><\/body><\/HTML>';aw.document.write(temp);
 if (closingtime!=0) aw.setTimeout('window.close()',closingtime);
}

//[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]
//[HDIV]

var hda = new Array();

function opacity(id,opacStart,opacEnd,millisec) {
var speed=Math.round(millisec/100);var timer=0;
if(opacStart>opacEnd)
{for(i=opacStart;i>=opacEnd;i--){setTimeout("changeOpac("+i+",'"+id+"')",(timer * speed));
  	timer++;
  }
 }
 else if(opacStart < opacEnd)
 {
  for(i = opacStart; i <= opacEnd; i++)
  {
  	setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
  	timer++;
  }
 }
}

function changeOpac(opacity, id)
{
 var object = document.getElementById(id).style;
 object.opacity = (opacity / 101);
 object.MozOpacity = (opacity / 101);
 object.KhtmlOpacity = (opacity / 100);
 object.filter = "alpha(opacity=" + opacity + ")";
}

function blenddiv(divid, millisec)
{
 var speed = Math.round(millisec / 100);
 var timer = 0;
 for(i = 0; i <= 100; i++)
 {setTimeout("changeOpac("+i+",'"+divid+"')",(timer*speed));timer++;
}
}

function stopEvent(e)
{
if(!e) var e=window.event;
e.cancelBubble=true;
if(e.stopPropagation) e.stopPropagation();
}

function initLogin(id,clclose)
{
hdp=document.getElementById('hdp_' + id);
if(!hdp) {return false;}
hda.push('hdp_'+id);
hdp.onmousedown=stopEvent;
document.onmousedown1=function(id) {document.getElementById('hdp_' + id).className=''}
if(clclose) document.onmousedown=function() {for(var i=0;i<hda.length;i++) document.getElementById(hda[i]).className='';}
document.getElementById('hdpc_'+id).onmousedown=function(e) {document.onmousedown1(id);return false;}
}

function showHdiv(id,ms) {
if(ms!=0){changeOpac(0,'hdp_'+id);}
hdp=document.getElementById('hdp_'+id);
hdp.className='popup';
if(ms!=0) {blenddiv('hdp_'+id,ms);}}

//[END]
//[BLENDIMAGES]

var ie=(navigator.appName.indexOf("Microsoft")!= -1);
function unblend(ci){co=ci;hv=setInterval("hl(co)",40);}
function blend(ci){clearInterval(hv);if(ie){ci.filters.alpha.opacity=20;}else if(ci.style.opacity) ci.style.opacity=0.2;}
function hl(ci){if(ie && ci.filters.alpha.opacity<100) ci.filters.alpha.opacity+=5;else if(!ie && ci.style.opacity<1) ci.style.opacity=parseFloat(ci.style.opacity)+0.05;else if(window.hv) clearInterval(hv);}

//[END]
