
function past(){
	window.open('past.html','window1','width=400,height=600,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,')
	}


function apec(){
	window.open('past.html#apec2003','window1','width=400,height=600,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,')
	}
	
function subWin(wURL,wName,wOPTION){
	window.open(wURL,wName,wOPTION);
	}
	
function apec2003(url){
	window.open(url,'flyer','width="358, height="510",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,');
	}
	
function manana1227(url){
	window.open(url,'flyer','width="770, height="497",toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=0,resizable=1,');
	}
	
function manana1217(url){
	window.open(url,'flyer','width="672, height="495",toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=0,resizable=1,');
}

function commma02(url){
	window.open(url,'flyer','width="400, height="500",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,');
}

var scW = screen.availWidth;
var scH = screen.availHeight;
var winW = 10;
var winH = scH;
var posX = 0;
var posY = 0;
var stepX = 10;
var stepY = 10;
var timerID;
var ua = navigator.userAgent;

function reWin01(){
	if( ua.indexOf("MSIE",0) ){
		window.resizeTo(winW, winH);
	}
	else if( ua.indexOf("mozilla/4",0) || ua.indexOf("Netscape6",0) ){
		window.outerWidth = winW;
		window.outerHeight = winH;
	}
}

function moveWin(){
	if(posX < 100000000){
	 posX = posX+stepX;
		posY = posY+stepY;
posY = -posY;
		window.moveTo(posX,posY)
		timerID = setTimeout("moveWin01()",1);
		}
		else{
		clearTimeout(timerID);
	}
}

function winOpenCenter(url,winN,winW,winH){
	winX=(screen.width-winW)/2;
	winY=(screen.height-winH)/2;
	window.open(url,winN,'left='+winX+',top='+winY+',width='+winW+',height='+winH+',scrollbars=0,resizable=1');
}

function cenwin(url,winN,winW,winH){
	winX=(screen.width-winW)/2;
	winY=(screen.height-winH)/2;
	window.open(url,winN,'left='+winX+',top='+winY+',width='+winW+',height='+winH+',scrollbars=0,resizable=1');
}

function cenwin02(url,winN,winW,winH){
	winX=(screen.width-winW)/2;
	winY=(screen.height-winH)/2;
	window.open(url,winN,'left='+winX+',top='+winY+',width='+winW+',height='+winH+',scrollbars=1,resizable=1');
}

function cenwinNoResize(url,winN,winW,winH){
	winX=(screen.width-winW)/2;
	winY=(screen.height-winH)/2;
	window.open(url,winN,'left='+winX+',top='+winY+',width='+winW+',height='+winH+',scrollbars=0,resizable=0');
}


/* „rollover image */
function preLoadImage() 
{
		if (document.images)
		{
				if (typeof(document.WM) == 'undefined')
				{
						document.WM = new Object();
				}
    document.WM.loadedImages = new Array();
    var argLength = preLoadImage.arguments.length;
				for(var index=0; index<argLength; index++)
				{
						document.WM.loadedImages[index] = new Image();
						document.WM.loadedImages[index].src = preLoadImage.arguments[index];
    }
		}
}

function swapImage(Name,Src)
{
		document.images[Name].src=Src;
}
/* £rollover image */

function movieWindow(url){
	var winWidth = screen.width;
	var winHeight = screen.height;
	var optionString = "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes";
	optionString += "width=" +winWidth + ", height=" + winHeight + ",left=" + 0 + ",top=" +0 ;
	var win1 = window.open(url, 'movie',optionString);
}