// JavaScript Document

function openWindow(source, w, h)
{
	var width 	= w;
	var height 	= h;
	
	leftVal 	= (screen.width - width) / 2;
	topVal 		= (screen.height - height) / 2;
	
	newWindow 	= window.open(source, '', 'width = ' + width + ', height = ' + height + ', left = ' + leftVal + ', top = ' + topVal + ',titlebar=no, directories=no, location=no, toolbar=no, menubar=no ,scrollbars = no,resizable=no, status = no, fullscreen=no');
	newWindow.focus();
}


function openWindowWithSrollbar(source, w, h)
{
	var width 	= w;
	var height 	= h;
	
	leftVal 	= (screen.width - width) / 2;
	topVal 		= (screen.height - height) / 2;
	
	newWindow 	= window.open(source, '', 'width = ' + width + ', height = ' + height + ', left = ' + leftVal + ', top = ' + topVal + ', scrollbars = yes, location = no, status = no');
	newWindow.focus();
}

function openWindowForCDDemo()
{
	var width 	= 1024;
	var height 	= 768;
	
	leftVal 	= (screen.width - width) / 2;
	topVal 		= (screen.height - height) / 2;
	
	newWindow 	= window.open("/wp-content/themes/Catglobe/CDDemo/CDDemo.html", '', 'width = ' + width + ', height = ' + height + ', left = ' + leftVal + ', top = ' + topVal + ',titlebar=no, directories=no, location=no, toolbar=no, menubar=no ,scrollbars = no,resizable=no, status = no, fullscreen=no');
	newWindow.focus();
}