


////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 ///





function noscroll(){
 	document.write("<style>");
 	document.write("body { overflow:hidden }");
	document.write("</style>");
}


//800
function scr800(){
	
	document.write("<div align='center'>")
	document.write("<table width='100%' height='100%' border='0' align='center' cellpadding='0' cellspacing='0'>")
	document.write(" <tr>")
	document.write(" <td><div align='center'>")
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' 	codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='100%' height='100%' id='myFlash'>")
	document.write(" <param name='movie' value='index.swf'>")
	document.write("<param name='quality' value='high'>")
	document.write(" <param name='menu' value='false'>")
	document.write("<param name='BGCOLOR' value='#ffffff'>")
	document.write(" <embed src='index.swf' width='100%' height='100%' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' 	type='application/x-shockwave-flash' name='myFlash' swLiveConnect='true'></embed></object>")
	document.write("</div></td></tr></table>")
	document.write("</div>")
	document.myFlash.SetVariable('_level0.mikro', 'true')

	}
	

//1024
function scr1024(){
	document.write("<div align='center'>")
	document.write("<table width='100%' height='100%' border='0' align='center' cellpadding='0' cellspacing='0'>")
	document.write(" <tr>")
	document.write(" <td><div align='center'>")
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' 	codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='1003' height='594' id='myFlash'>")
	document.write(" <param name='movie' value='index.swf'>")
	document.write("<param name='quality' value='high'>")
	document.write(" <param name='menu' value='false'>")
	document.write("<param name='BGCOLOR' value='#ffffff'>")
	document.write(" <embed src='index.swf' width='1003' height='594' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' 	type='application/x-shockwave-flash' name='myFlash' swLiveConnect='true'></embed></object>")
	document.write("</div></td></tr></table>")
	document.write("</div>")
	noscroll()


	}

//1280
function scr1280(){
	document.write("<div align='center'>")
	document.write("<table width='100%' height='100%' border='0' align='center' cellpadding='0' cellspacing='0'>")
	document.write(" <tr>")
	document.write(" <td><div align='center'>")
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' 	codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='1003' height='600' id='myFlash'>")
	document.write(" <param name='movie' value='index.swf'>")
	document.write("<param name='quality' value='high'>")
	document.write(" <param name='menu' value='false'>")
	document.write("<param name='BGCOLOR' value='#ffffff'>")
	document.write(" <embed src='index.swf' width='1003' height='600' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' 	type='application/x-shockwave-flash' name='myFlash' swLiveConnect='true'></embed></object>")
	document.write("</div></td></tr></table>")
	document.write("</div>")
	noscroll()
	}





if (screen.width<1024){

		scr800();
		
	} else if (screen.width==1024){

		scr1024();

	   }  else {

		scr1280();	
		}	





/*/
//////////////// 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);


