// JavaScript Document

	function flash(k,y,u) {
		var flash_tag = "";
		
		flash_tag = '<OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '; 
		flash_tag +='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" '; 
		flash_tag +='WIDTH="'+k+'" HEIGHT="'+y+'" >'; 
		flash_tag +='<param name="movie" value="'+u+'">'; 
		flash_tag +='<param name="quality" value="high">'; 
		flash_tag +='<param name="wmode" value="transparent">'; 
		flash_tag +='<embed src="'+u+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" '; 
		flash_tag +='type="application/x-shockwave-flash"  WIDTH="'+k+'" HEIGHT="'+y+'" wmode="transparent"></embed></object>' 
		
		document.write(flash_tag);
	}
	
	function setIndexBackground()
	{
		var theDiv = document.getElementById("ba_index_online_banking");
		theDiv.style.background = "url(../banner/"+backgroundImages[Math.floor(Math.random()*4)]+") no-repeat";
	}
	
	function open_target(theURL)
	{
		window.open(theURL, "_blank");
		return;
	}
	
	function move_site(theURL)
	{
		location.href = theURL;
		return;
	}
	
	function setListHighlighted(theList)
	{
		theList.style.borderLeftColor = "#dedede";
		theList.style.borderRightColor = "#dedede";
		theList.style.color = "#cccccc";
		return;
	}
	
	function setListNormal(theList)
	{
		theList.style.borderLeftColor = "#ffffff";
		theList.style.borderRightColor = "#ffffff";
		theList.style.color = "#666666";
	}
	
/*
	JAVASCRIPT FUNCTION FOR USING PNG-24 IMAGE IN IE6
	
	TO USE PNG-24 IMAGE IN <IMG> TAG, USE THIS FUNCTION WITH CLASS STYLE BELOW:
	.(CLASSNAME) {
		tmp:expression(setPng24(this));
	}
	
	TO USE PNG-24 IMAGE AS BACKGROUND, USE CLASS STYLE BELOW:
	.(TARGET CLASSNAME) {
		background:url(PNG24_PATH);
		_background:none;
		_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='PNG24_PATH',sizingMethod='crop');
	}
*/
	
	function setPng24(obj)
	{
		obj.width = obj.height = 1;
		obj.className = obj.className.replace(/\bpng24\b/i,'');
		obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+obj.src+"',sizingMethod='image');";
		obj.src='';
		return '';
	}