


////change title by flash //////by danny


var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;


function myflash_DoFSCommand(command, args) 
               {
  var myflashObj = InternetExplorer ? myflash : document.myflash;
	//alert (args);
	document.title = args;
}
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 myflash_FSCommand(ByVal command, ByVal args)\n');
  document.write(' call myflash_DoFSCommand(command, args)\n');
  document.write('end sub\n');
  document.write('</SCRIPT\> \n');
} 

////change title by flash - end ///

/*/
//////////////// window.open DIMENSIONAL*/








var win=null;

function NewWindow(mypage,myname,w,h,pos,infocus,loc) {
	if(pos=="random"){
		myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
		mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
	}
	
	if(pos=="center"){
		myleft=(screen.width)?(screen.width-w)/2:100;
		mytop=(screen.height)?(screen.height-h)/2:100;
	}

	else if((pos!='center' && pos!="random") || pos==null){
		myleft=0;mytop=20
	}
	
	settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location= " + loc + ",directories=no,status=no,menubar=no,toolbar=no,resizable=yes";

		win=window.open(mypage,myname,settings);
		win.focus();
	}




/////////////////






function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


