/**********************************初始*/
	var DialogID = 'Dialog';
	
	$(document).ready(function(){
							_CB_ALL('CB_ALL', 'CB');
						   	$('body').append('<div id="Dialog" style="display:none;"></div>');		
							});
	function Create_Dialog(Data, Title, Width, Height, Resizable){		
		$('#' + DialogID).html(Data);
		_Dialog(DialogID, Title, Width, Height, Resizable);
		}
	/*******************詳細資料JS*/
	$(document).ready(function(){
		   $('.Detail').hover(
							  function(){
									$(this).css({
										'cursor'			:	'pointer',
										'text-decoration'	:	'underline'
										});  
								},
							  function(){
									$(this).css({														
										'text-decoration'	:	'none'
										});
								}
							  )
						.click(
							function(){
								var ID = $(this).attr('name');
								
								var mid = ID;
								var Result = _Ajax('index_info.php', 'mid=' + ID, 1, 1);
								var Field = new Array('','網站名稱', '網址');
								var Data  = Result;
								var Html  = '';
								var Title = '';
								var Url = '';
								for(var i = 0; i < Data.length ; i++){
									var Value = decodeURIComponent(Data[i]);
										Value = Value.replace(/\+/g, ' ');
									if(i == 0) Html = '<a style="float:center;">'+Value+'</a>';
									if(i == 1) Title = Value;
									if(i == 2) Url = Value;
								}
								Create_Dialog(Html,Title +' '+ Url, 700, 400);
								});
		});
