/////////////////////////////////////////////////
//
// This function will check the users defined 
// QuickTime verison and open a new pop-
// up window based as required.
//
/////////////////////////////////////////////////

/*******************************************************
* 
* This function will check to see if the QuickTime 
* activex control is installed on the users computer.
* 
*******************************************************/

function openPreviewPopup(previewLink, previewWidth, previewHeight){
	
	/////////////////////////////////////////////
	//
	// Check to see if the user has QuickTime v5
	// or greater installed on there system.
	//
	/////////////////////////////////////////////
	if (quicktime.ver6){
		
		/////////////////////////////////////////
		//
		// QuickTime v5 or later is installed, so 
		// we need to navigate the user to the 
		// retreive and then load the PHP defined
		// preview window varaibles and open the
		// new window.
		//
		/////////////////////////////////////////
		
		popupWindow(previewLink, previewWidth, previewHeight);
		
	}else{
		
		/////////////////////////////////////////
		//
		// Neither Flash nor QuickTime are installed
		// and we need to show the user a 'Please
		// Install QuickTime' page in a new window.
		//
		/////////////////////////////////////////
		
		popupWindow('quicktime-error.php', 400, 584);
		
	}
}





