
var before="End Of Message standard 2007"
var current="End Of Message standard 2007"
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")

function countdown(yr,m,d){
theyear=yr;themonth=m;theday=d;
var today=new Date();
var todayy=today.getYear();
if (todayy < 1000)
todayy+=1900;
var todaym=today.getMonth();
var todayd=today.getDate();
var todayh=today.getHours();
var todaymin=today.getMinutes();
var todaysec=today.getSeconds();
var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec;
futurestring=montharray[m-1]+" "+d+", "+yr;
dd=Date.parse(futurestring)-Date.parse(todaystring);
dday=Math.floor(dd/(60*60*1000*24)*1);
dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1);
dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1);
dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1);
if((dday==0&&dhour==0&&dmin==0&&dsec==1)||(dday<0)){
document.getElementById("phase2").innerHTML=current;
return current;
}
else
document.getElementById("phase2").innerHTML=before+'<br><font size="30" color="#ffffff">'+dday+' days</font><br> '+dhour+':'+dmin+':'+dsec;
setTimeout("countdown(theyear,themonth,theday)",1000);
}
//enter the count down date using the format year/month/day

function ganti_tombol(obj){
	var x = document.getElementsByName('tombol');
	for(i=0;i<x.length;i++){		
	x[i].parentNode.className="menu_atas_out";
	x[i].style.color="#ffffff";
	}
obj.parentNode.className="menu_atas_over";
obj.style.color="#000000";
//alert(obj);
}



//----------------------------------------------------------



var menu1=new Array()
menu1[0]='<a href="javascript:void(0);" onclick="pilihan(\'about\',\'about\');ganti_tombol(document.getElementById(\'about\'));">Overview</a>'
menu1[1]='<a href="javascript:void(0);" onclick="pilihan(\'about\',\'contact\');ganti_tombol(document.getElementById(\'about\'));">Contacts</a>'
menu1[2]='<a href="javascript:void(0);" onclick="pilihan(\'about\',\'career\');ganti_tombol(document.getElementById(\'about\'));">Career @ VenSys</a>'
menu1[3]='<a href="javascript:void(0);" onclick="pilihan(\'about\',\'client\');ganti_tombol(document.getElementById(\'about\'));">Our Clients</a>'

var menu2=new Array()
menu2[0]='<a href="javascript:void(0);" onclick="pilihan(\'services\',\'swift_services\');ganti_tombol(document.getElementById(\'services\'));">SWIFT Services</a>'
menu2[1]='<a href="javascript:void(0);" onclick="pilihan(\'services\',\'application_development\');ganti_tombol(document.getElementById(\'services\'));">Application Development</a>'
menu2[2]='<a href="javascript:void(0);" onclick="pilihan(\'services\',\'it_outsourcing\');ganti_tombol(document.getElementById(\'services\'));">IT Outsourcing</a>'
menu2[3]='<a href="javascript:void(0);" onclick="pilihan(\'services\',\'hardware\');ganti_tombol(document.getElementById(\'services\'));">System Integration</a>'
//menu2[4]='<a href="javascript:void(0);" onclick="pilihan(\'services\',\'consulting\');ganti_tombol(document.getElementById(\'services\'));">Consulting Services</a>'

var menu3=new Array()
menu3[0]='<a href="javascript:void(0);" onclick="pilihan(\'products\',\'anti_money_laundering\');ganti_tombol(document.getElementById(\'products\'));">AML & Compliance</a>'
menu3[1]='<a href="javascript:void(0);" onclick="pilihan(\'products\',\'swift_empowering_tools\');ganti_tombol(document.getElementById(\'products\'));">SWIFT Empowering Tools</a>'
menu3[2]='<a href="javascript:void(0);" onclick="pilihan(\'products\',\'recon\');ganti_tombol(document.getElementById(\'products\'));">Reconciliation</a>'
menu3[3]='<a href="javascript:void(0);" onclick="pilihan(\'products\',\'core_banking\');ganti_tombol(document.getElementById(\'products\'));">Integrated Core Banking</a>'
menu3[4]='<a href="javascript:void(0);" onclick="pilihan(\'products\',\'central_bank_reporting_tools\');ganti_tombol(document.getElementById(\'products\'));">Central Bank Reporting Tools</a>'

//var menu4=new Array()
//menu4[0]='<a href="javascript:void(0);" onclick="pilihan(\'partner\',\'swift\');ganti_tombol(document.getElementById(\'partner\'));">SWIFT</a>'
//menu4[1]='<a href="javascript:void(0);" onclick="pilihan(\'partner\',\'side\');ganti_tombol(document.getElementById(\'partner\'));">SIDE</a>'

		
var menuwidth='120px' //default menu width
var menubgcolor='#ffffff'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)


dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+10+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu




//--------------------------------------




function sidebar_down(obj)
{
obj.className="menu_sisi_tekan";
}
function sidebar_up(obj)
{
obj.className="menu_sisi";
}



//--------------------------------------



function tampilkan(objnama,objgambar,objdeskripsi)
{
document.getElementById("nama").innerHTML = objnama;
document.getElementById("gambar").src = "images/" + objgambar;
document.getElementById("deskripsi").innerHTML = objdeskripsi;
document.getElementById("tampil").style.visibility = "visible";
document.getElementById("kotak").style.visibility = "visible";
}
function show_coords(event)
{
x=event.clientX + 10;
y=event.clientY + 10;
document.getElementById("tampil").style.left =  x + "px";
document.getElementById("tampil").style.top =  y + "px";
}
function hilang()
{
document.getElementById("tampil").style.visibility = "hidden";
document.getElementById("kotak").style.visibility = "hidden";
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}