function openQuicktime(link){
	var href = link.href;
		
	var matches = href.match(/(?:\?|&)x=(\d+)/);			
	var width = (matches && matches.length>1 ? matches[1] : -1);			
	
	var matches = href.match(/(?:\?|&)y=(\d+)/);			
	var height = (matches && matches.length>1 ? matches[1] : -1);									
	
	var matches = href.match(/(?:\?|&)file=([^&]+)/);
	var file = (matches && matches.length>1 ? matches[1] : -1);
	
	if ((width!=-1) && (height!=-1) && (file!=-1)){
		var video = window.open('/cms/js/qtvideo.php?x='+width+'&y='+height+'&file='+file, 'video', 'width='+width+',height='+(height*1+15));
		return false;
	}							
	
	return true;
}

function openFlash(link){
	var href = link.href;
		
	var matches = href.match(/(?:\?|&)x=(\d+)/);			
	var width = (matches && matches.length>1 ? matches[1] : -1);			
	
	var matches = href.match(/(?:\?|&)y=(\d+)/);			
	var height = (matches && matches.length>1 ? matches[1] : -1);									
	
	var matches = href.match(/(?:\?|&)file=([^&]+)/);
	var file = (matches && matches.length>1 ? matches[1] : -1);
	
	var matches = href.match(/(?:\?|&)version=(\d+)/);
	var version = (matches && matches.length>1 ? matches[1] : -1);
	
	if ((width!=-1) && (height!=-1) && (file!=-1)){
		var video = window.open('/cms/js/flash.php?x='+width+'&y='+height+'&file='+file+(version>-1?('&version='+version):''), 'flash', 'width='+width+',height='+height);
		return false;
	}							
	
	return true;
}