// JavaScript Document

//  -----=====oooooOOOOO[    Style change function     ]OOOOOooooo=====-----

	var ie4x = (document.all) ? true:false;
	var ns4x = (document.layers) ? true:false;
	var ns6x = ((document.getElementById) && (!ie4x)) ? true:false;

	if (ie4x || ns6x) document.write('<link rel=\"StyleSheet\" href=\".\/style\/style.css\" type=\"text\/css\">')
	   else document.write('<link rel=\"StyleSheet\" href=\".\/style\/style_other.css\" type=\"text\/css\">');
	
	function cc() {
		args = cc.arguments;
		for (var i = 0; i < args.length; i += 2) {
			if (ie4x) { document.all[args[i]].className = args[i+1] }
			else if(ns6x) { document.getElementById(args[i]).className = args[i+1] }
		}
	}
	
	/* function cl(elementname,stylename) {
		if (ie4x) { document.all[elementname].className = stylename }
		else if(ns6x) { document.getElementById(elementname).className = stylename }
	}*/
	
	function cpic(picName,picSrc) {
		document.images[picName].src = picSrc;
	}

//  -----=====oooooOOOOO[    Layer change function     ]OOOOOooooo=====-----
	
	function clayer() {
		var args = clayer.arguments;
		//i = 0;
		for (var i = 0; i < args.length; i += 2) {
			if (ie4x) document.all[args[i]].style.visibility = (args[i+1] == 'v') ? "visible":"hidden";
			if (ns6x) document.getElementById(args[i]).style.visibility = (args[i+1] == 'v') ? "visible":"hidden";
			else if (ns4x) document.layers[args[i]].visibility = (args[i+1] == 'v') ? "show":"hide";
		}
	}
	
//  -----=====oooooOOOOO[    Clock funtion     ]OOOOOooooo=====-----

	var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
	// Handle all the the FSCommand messages in a Flash movie
	function ora_DoFSCommand(command, args) {
	  var oraObj = InternetExplorer ? ora : document.ora;
	  //
	  // Place your code here...
	  //
	}
	// Hook for Internet Explorer 
	if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
		  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('Sub ora_FSCommand(ByVal command, ByVal args)\n');
		document.write('  call ora_DoFSCommand(command, args)\n');
		document.write('end sub\n');
		document.write('</SCRIPT\> \n');
	}
	
	function MM_jumpMenu(targ,selObj,restore){ //v3.0
	  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	  if (restore) selObj.selectedIndex=0;
	}
	
//  -----=====oooooOOOOO[    Other funtion     ]OOOOOooooo=====-----
	
	function JumpToOpener(URL) {
		parent.window.href = URL;
	}
	
	function JumpToURL(URL) {
		document.location.href = URL;
	}
	
	function popUpWindow(PICStr)	{
		popUpWin = open(PICStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=200,height=200');
		popUpWin.document.body.leftMargin = 0;
		popUpWin.document.body.topMargin = 0;
		popUpWin.resizeTo(popUpWin.document.images[0].width,popUpWin.document.images[0].height);
	}
