
/* *
 * Popup function for system messages
 * 
 * 
 * */




function popupWindow(el, target){	

	//var iframeURL="";
	var url=target + "&width=937&height=530";
	//var url = "video-thickbox.html?&width=937&height=530";
   
   if (document.getElementById("TB_window") != null) {

		//hide previous and load next
		$("#TB_window").animate({ opacity: 'hide'}, 500,function(){
			$("#TB_window").remove();	
	 	});
	 	return false;
	}	
			
	//continue and show, 3 params is the function to call back on closeComplete
	TB_show(null, url, syspopup_close);
				
	//iframeURL = $("#"+el.id).attr('href');
	
	//$("#videoPlayer").html('<iframe id="videoFrame" width="640" height="390" src="'+iframeURL+'" frameborder="0" allowfullscreen></iframe>');
	//$("#videoTitle").html(el.title);
	
	/*if ($("#"+el.id).hasClass('video_iPhoneApp')){
		$("#videoPopupHdr h2 em").html('Introducing BP Locator for iPhone');
	}*/
	
	
	$("#TB_window").animate({ opacity: 'show'}, 250);	
		
	return false; 		
}

function syspopup_close(){
	return false;		
}




