// JavaScript Document

// open windows
function NewWindow(sURL, sHeight, sWidth){	
	var win = null;	
	/*Auto center window */	
	sName = 'pop'
	LeftPosition = (screen.width) ? (screen.width-sWidth)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-sHeight)/2 : 0;
	settings ='height=' +sHeight+ ',width=' +sWidth+ ',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable, location=no, status=no, titlebar=no'
	win = window.open(sURL,sName,settings);	
}

function NewsWin(sURL, sHeight, sWidth){	
	var win = null;	
	/*Auto center window */	
	sName = 'news'
	LeftPosition = (screen.width) ? (screen.width-sWidth)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-sHeight)/2 : 0;
	settings ='height=' +sHeight+ ',width=' +sWidth+ ',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable, location=no, status=no, titlebar=no'
	win = window.open(sURL,sName,settings);	
}

function CalendarWin(sURL, sHeight, sWidth){	
	var win = null;	
	/*Auto center window */	
	sName = 'calendar'
	LeftPosition = (screen.width) ? (screen.width-sWidth)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-sHeight)/2 : 0;
	settings ='height=' +sHeight+ ',width=' +sWidth+ ',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable, location=no, status=no, titlebar=no'
	win = window.open(sURL,sName,settings);	
}

function NewsLetterWin(sURL, sHeight, sWidth){	
	var win = null;	
	/*Auto center window */	
	sName = 'newsLetter'
	LeftPosition = (screen.width) ? (screen.width-sWidth)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-sHeight)/2 : 0;
	settings ='height=' +sHeight+ ',width=' +sWidth+ ',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable, location=no, status=no, titlebar=no'
	win = window.open(sURL,sName,settings);	
}

function MerchanWin(sURL, sHeight, sWidth){	
	var win = null;	
	/*Auto center window */	
	sName = 'merchan'
	LeftPosition = (screen.width) ? (screen.width-sWidth)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-sHeight)/2 : 0;
	settings ='height=' +sHeight+ ',width=' +sWidth+ ',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable, location=no, status=no, titlebar=no'
	win = window.open(sURL,sName,settings);	
}

function VideoWin(sURL, sHeight, sWidth){	
	var win = null;	
	/*Auto center window */	
	sName = 'video'
	LeftPosition = (screen.width) ? (screen.width-sWidth)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-sHeight)/2 : 0;
	settings ='height=' +sHeight+ ',width=' +sWidth+ ',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable, location=no, status=no, titlebar=no'
	win = window.open(sURL,sName,settings);	
}

function WeeklyWin(sURL, sHeight, sWidth){	
	var win = null;	
	/*Auto center window */	
	sName = 'weekly'
	LeftPosition = (screen.width) ? (screen.width-sWidth)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-sHeight)/2 : 0;
	settings ='height=' +sHeight+ ',width=' +sWidth+ ',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable, location=no, status=no, titlebar=no'
	win = window.open(sURL,sName,settings);	
}

function FloorWin(sURL, sHeight, sWidth){	
	var win = null;	
	/*Auto center window */	
	sName = 'floor'
	LeftPosition = (screen.width) ? (screen.width-sWidth)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-sHeight)/2 : 0;
	settings ='height=' +sHeight+ ',width=' +sWidth+ ',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable, location=no, status=no, titlebar=no'
	win = window.open(sURL,sName,settings);	
}

// open windows (scrollbars = yes)
function AlbumWindow(sURL, sHeight, sWidth){
	var win = null;
	 /*Auto center window */
	sName = 'popAlbum';
	LeftPosition = (screen.width) ? (screen.width-sWidth)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-sHeight)/2 : 0;
	settings ='height=' +sHeight+ ',width=' +sWidth+ ',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable, location=no, status=no, titlebar=no'
	win = window.open(sURL,sName,settings)
}
