// JavaScript Document

// Se habre un popup centrado
var win = null;
function NewWindowDemo(mypage,myname,w,h,scroll){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition;
	win = window.open(mypage,myname,settings)
}


// Desaparece el mensaje en la barra de estado
var statusmsg=""

function hidestatus(){
window.status=statusmsg
return true
}


// Muestra los screenshots
function showScreenShot(ss) {

	mHTML = '<img src="images/content/screenshots/'+ ss + '.gif" width="570" height="420" border="0" />'; 
	document.getElementById("ScreenShotsViewer").innerHTML = mHTML;
	
}



/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings =
	'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	win = window.open(mypage,myname,settings)
	win.document.open();
	win.document.write('<style>body { margin:0 }</style> <body><img src="'+ mypage +'"/></body>');
	win.document.close();
	win.focus();
}



