//globals.js

function spamcheater(who)		{
	window.location = "mailto:" + who + "@northshorepro" + ".com";
	return;
	}	
	
function showMedia2006(targetID)	{
	var params="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=700,height=407,dependent";
	var requestMedia = "http://www.northshorepro.com/2006gallery.php?clip_id=" + targetID;
	
//	alert("that tickles " + targetID + " times!");
	
	width=700;
	height=407;
	
	// subroutine for popup location	
	if(navigator.appName == "Microsoft Internet Explorer")	{
		screenY = document.body.offsetHeight
		screenX = window.screen.availWidth
	} else { 
		// Navigator coordinates
		//		screenY = window.outerHeight
		//		screenX = window.outerWidth
		// change made 3/16/01 to work with Netscape:
		screenY = screen.height;
		screenX = screen.width;
}
	leftvar = (screenX - width) / 2;
	rightvar = (screenY - height) / 2;
		
	if(navigator.appName == "Microsoft Internet Explorer")
	{
		leftprop = leftvar;
		topprop = rightvar;
	}
	else
	{ // adjust Netscape coordinates for scrolling
		leftprop = (leftvar - pageXOffset)
		topprop = (rightvar - pageYOffset)
	}

	params += ",left="+leftprop;
	params += ",top="+topprop;

	newWin = window.open(requestMedia, '', params);
	
}
	
function showMedia(title,format,source,x,y)	{
	var params="toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=440,height=330,dependent";
	//next line hard-coded to avoid NN4 errors
	var requestMedia = "http://www.northshorepro.com/video_window.php";
	// passes five params: mediaType (QT,MP3,WM) and mediaSource (filename in the /media/ directory)
	// mediaX (integer) and mediaY (integer)
	requestMedia += "?mediaTitle=" + title;
	requestMedia += "&mediaType=" + format;
	requestMedia += "&mediaSource=" + source;
	requestMedia += "&mediaX=" + x;
	requestMedia += "&mediaY=" + y;

	width=440;
	height=330;
	
	// subroutine for popup location	
	if(navigator.appName == "Microsoft Internet Explorer")	{
		screenY = document.body.offsetHeight
		screenX = window.screen.availWidth
	} else { 
		// Navigator coordinates
		//		screenY = window.outerHeight
		//		screenX = window.outerWidth
		// change made 3/16/01 to work with Netscape:
		screenY = screen.height;
		screenX = screen.width;
}
	leftvar = (screenX - width) / 2;
	rightvar = (screenY - height) / 2;
		
	if(navigator.appName == "Microsoft Internet Explorer")
	{
		leftprop = leftvar;
		topprop = rightvar;
	}
	else
	{ // adjust Netscape coordinates for scrolling
		leftprop = (leftvar - pageXOffset)
		topprop = (rightvar - pageYOffset)
	}

	params += ",left="+leftprop;
	params += ",top="+topprop;

	newWin = window.open(requestMedia, '', params);
	
	}
