// JavaScript Document
var platform;
var browser;
var window_size;
if(navigator.userAgent.indexOf('Win') == -1) {
	platform = 'MAC'; 
} else { 
	platform = 'WIN'; 
} 
if(navigator.appName.indexOf('Netscape') == -1) {
	browser = 'IE'; 
} else { 
	browser = 'NN';
}
var mode;
var w = screen.width - 12;
var h = screen.height - 31;
var file_path = "tipTopFrameset.html";
function openMyWindow(arg, w, h, fileName, posX, posY, windowUniqueIndex){
    mode = arg;
	if(platform == 'WIN' && browser == 'IE'){
		/*
		if(mode == 'fullscreen') {	
			newwin=window.open(fileName,fileName,"fullscreen=1,scrollbars=0,resizable=no,location=no,menubar=no,status=no");
		}
		else if (mode == 'pop_up'){
			
			newwin=window.open(fileName,fileName,"scrollbars=0,resizable=no,location=no,menubar=no,status=no,left=" + posX + ",top=" + posY);
			newwin.resizeTo(w,h);
		}
		*/
		window_size = "width=" + w + ",height=" + h +",";
		newwin=window.open(fileName, "mainWin" + windowUniqueIndex, "status=no,scrollbars=no,resizable=no,height=" + h + ",width=" + w + ",top=" + posX +",left=" + posY);
		
	}else if(platform == 'MAC' && browser == 'IE'){
		/*	
		newwin=window.open(fileName,"mainWin" + windowUniqueIndex,"scrollbars=0,resizable=no,location=no,menubar=no,status=no,left=" + posX + ",top=" + posY);
		newwin.resizeTo(50, 200);
		*/
		window_size = "width=" + w + ",height=" + h +",";
		newwin=window.open(fileName, "mainWin" + windowUniqueIndex, "status=no,scrollbars=no,resizable=no,height=" + h + ",width=" + w + ",top=" + posX +",left=" + posY);
		
			
	}else if(platform == 'MAC' && browser == 'NN'){
		window_size = "width=" + w + ",height=" + h +",innerWidth=" + w + ",innerHeight=" + h;
		newwin=window.open(fileName, "mainWin" + windowUniqueIndex,"scrollbars=0,resizable=no,location=no,menubar=no,status=no," + window_size);
		newwin.moveTo(posX,posY);
	}else if( platform == 'WIN' && browser == 'NN'){
		window_size = "width=" + w + ",height=" + h +",innerWidth=" + w + ",innerHeight=" + h;
		newwin=window.open(fileName,"mainWin" + windowUniqueIndex,"scrollbars=0,resizable=no,location=no,menubar=no,status=no," + window_size);
		newwin.moveTo(posX,posY);
	}		
}
function openAll()
{
		if (browser == 'IE')
		{
			
			openMyWindow('mapping festival', 1000, 515, "http://www.mappingfestival.com/mapping2005/flashHolder.html", 0, 0, 1);
		} else
		{
		
			openMyWindow('mapping festival', 1000, 515, "http://www.mappingfestival.com/mapping2005/flashHolder.html", 0, 0, 1);
		}
}
// show -->

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
//-->