//[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]
//[OPENHTML]

function openhtml(url,lo,me,re,sc,st,to,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(url,'_blank','toolbar='+to+',menubar='+me+',scrollbars='+sc+',resizable='+re+',status='+st+',location='+lo+',width='+w+',height='+h+',top='+t+',left='+l);
 aw.opener=self;aw.focus();return false;
}

//[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]
//[HDIV]

var hda='';var opa;
function stopEvent(e){if(!e) var e=window.event;e.cancelBubble=true;if(e.stopPropagation) e.stopPropagation();}
function initLogin(id,clclose){hdp=document.getElementById(id);if(!hdp) return false;hdp.onmousedown=stopEvent;if(clclose) document.onmousedown=function() {if(hda!='')hideHdiv(hda);};}
function show_Hdiv(id,ms,ha,op){hda=id;opa=(op==null)?1:op;new Fx.Tween(id,{duration:ms}).start('opacity',0,opa);if(ha!=false)var myDrag=(ha!=null)?$(id).makeDraggable({'handle':$(ha)}):$(id).makeDraggable();}
function hide_Hdiv(id){hda='';new Fx.Tween(id,{duration:500}).start('opacity',opa,0);}

//[END]
