

function sendEmail (mailto, subject, body)
	{
	window.location= "mailto:"+ mailto + "?subject=" + subject + "&body=" + escape(body) + "";
	}

function addBookmark(bookmarkurl)
	{
	var ver = navigator.appName
	var num = parseInt(navigator.appVersion)
	
	if ((ver == "Microsoft Internet Explorer")&&(num >= 4))	
		{
		window.external.AddFavorite(bookmarkurl,'ViewSonic Awards Results');
		}
	else
		{
		alert( 'Please Hit CTRL-D to bookmark this page');
		}
	}
	
	
var rotatingImages = new Array();
var imageCounter = 0;

function addRotateImage(src, w, h)
	{
	var img = new Object();
	img.src = rootDirectory + '/images/award_images/' + src;
	img.width = w;
	img.height = h;
	rotatingImages.push(img);
	}

function rotateImage()
	{
	document.rotate_img.width = rotatingImages[imageCounter].width;
	document.rotate_img.height = rotatingImages[imageCounter].height;
	document.rotate_img.src = rotatingImages[imageCounter].src;	
	
	imageCounter++;
	// only rotate the image if there is another one after this one
	if(imageCounter < rotatingImages.length)
		{
		// preload the next image
		nextImg = new Image();
		nextImg.src = rotatingImages[imageCounter].src;	
		// set the next image to load
		timedRotateImage(3000);
		}
	}

function timedRotateImage(milliseconds)
	{
	setTimeout("rotateImage()", milliseconds);
	}
	
	
function PINT_PopAward( launcherLinkTarget )
	{
	PINTPW_Pop( launcherLinkTarget, 'awardDetail', PINTPW_NOCHROME, 617, 400, PINTPW_WINDOWCENTER, 'scrollbars=yes,status=yes' );
	}