function print_progmenu(xx)
{
var menu_link = new Array();
menu_link[1] = "dadawa.html";
menu_link[2] = "feather.html";
menu_link[3] = "mortal.html";
menu_link[4] = "sandmoon.html";
menu_link[5] = "butterfly.html";
menu_link[6] = "mars.html";
menu_link[7] = "golden.html";
menu_link[8] = "into.html";
menu_link[9] = "peony.html";
menu_link[10] = "grand.html";
menu_link[11] = "vampire.html";
menu_link[12] = "nextgen.html";
menu_link[13] = "mystic.html";
menu_link[14] = "guo.html";
menu_link[15] = "matteoricci.html";
menu_link[16] = "../other/exhibition.html";

var menuhtml = "";

menuhtml +='<div id="slider">';
menuhtml +='<ul>';
menuhtml +='<li>';
for(i=1; i<=16; i++)
{
if(i==5||i==9||i==13)
{
menuhtml +='</li><li>';
}
if (i==xx)
{
	if(i==4||i==8||i==12||i==16)
	{
		menuhtml +='<img alt="" src="../../img/'+w+'/scroll_pic'+i+'_over.jpg" border="0"/>';
	}
	else
	{
		menuhtml +='<img alt="" style="margin-right:3px" src="../../img/'+w+'/scroll_pic'+i+'_over.jpg" border="0"/>';
	}
}
else
{
if(i==4||i==8||i==12||i==16)
{
menuhtml +='<a href="'+menu_link[i]+'"><img alt="" onMouseOut="imgSwapfade(this)" onMouseOver="imgSwapfade(this)" src="../../img/'+w+'/scroll_pic'+i+'_off.jpg" border="0" /></a>';
}
else
{
menuhtml +='<a href="'+menu_link[i]+'"><img style="margin-right:3px" alt="" onMouseOut="imgSwapfade(this)" onMouseOver="imgSwapfade(this)" src="../../img/'+w+'/scroll_pic'+i+'_off.jpg" border="0" /></a>';
}
}
}
menuhtml +='</li>';
menuhtml +='</ul>';
menuhtml +='</div>';

document.write(menuhtml);
}
function print_fb_link()
{
var url = document.location.href.replace('/prog/', '/fb/');
window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
}
function print_progbtn(path, ap_guide, video_id)
{

var menu_link = new Array();
menu_link[1] = "player.html?video_id="+video_id;
if(w=="en") menu_link[2] = "../../php/fd_form.php";
if(w=="b5") menu_link[2] = "../../php/fd_form2.php";
if(w=="gb") menu_link[2] = "../../php/fd_form3.php";
menu_link[3] = "javascript:print_fb_link();";
if(w=="en") menu_link[4] = "../../php/feedback_en.php";
if(w=="b5") menu_link[4] = "../../php/feedback_b5.php";
if(w=="gb") menu_link[4] = "../../php/feedback_gb.php";
if(w=="en")
{
menu_link[5] = "../other/ap_guide.html#"+ap_guide;
}
else
{
menu_link[5] = "../other/ap_guide.html?type="+ap_guide;
}
menu_link[6] = "http://www.urbtix.hk";
var btntml = "";
for(i=1; i<=6; i++)
{
	if (i==1)
	{
	if(video_id!=undefined)
	{
	btntml +='<a href="'+menu_link[i]+'" class="video_c"><img alt="" onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" src="../../img/'+w+'/function_btn'+i+'_off.gif" border="0" /></a> ';
	}
	else
	{
	}
	}
	else
	{
		if (i==5)
		{
		if(ap_guide==undefined || ap_guide=='')
		{
		}
		else
		{
		btntml +='<a href="'+menu_link[i]+'"><img alt="" onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" src="../../img/'+w+'/function_btn'+i+'_off.gif" border="0" /></a> ';
		}
		}
		else
		{
		if (i==2)
		{
		btntml +='<a href="'+menu_link[i]+'" class="send_fd"><img alt="" onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" src="../../img/'+w+'/function_btn'+i+'_off.gif" border="0" /></a> ';
		}
		else
		{
		if(i==6)
		{
		btntml +='<a href="'+menu_link[i]+'" target="_blank"><img alt="" onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" src="../../img/'+w+'/function_btn'+i+'_off.gif" border="0" /></a> ';
		}
		else
		{
		if (i==4)
		{
		btntml +='<a href="'+menu_link[i]+'" class="feedback2"><img alt="" onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" src="../../img/'+w+'/function_btn'+i+'_off.gif" border="0" /></a> ';
		}
		else
		{
		btntml +='<a href="'+menu_link[i]+'"><img alt="" onMouseOut="imgSwap(this)" onMouseOver="imgSwap(this)" src="../../img/'+w+'/function_btn'+i+'_off.gif" border="0" /></a> ';
		}
		}
		}
		}
	}
}
if(path==1)
{
if(w=="en")
{
btntml +='<div id="feedback" style="display:none; position:absolute; z-index:300"><div class="feedback_index"><div style="background:#f2f2f2; padding:5px;text-align:left"><div style="text-align:right"><a href="javascript:feedbackoff()">Close</a></div>Feedback</div><div style="background:#ffffff;padding:5px;">If you have any general views on our programmes, please write to us by email <a href="mailto:fo@lcsd.gov.hk">fo@lcsd.gov.hk</a> or by fax 2371 4171.</div></div></div>';
}
else
{
btntml +='<div id="feedback" style="display:none; position:absolute; z-index:300"><div class="feedback_index"><div style="background:#f2f2f2; padding:5px;text-align:left"><div style="text-align:right"><a href="javascript:feedbackoff()">關閉</a></div>意見</div><div style="background:#ffffff;padding:5px;">若您對我們舉辦的節目有任何意見，歡迎電郵至<a href="mailto:fo@lcsd.gov.hk">fo@lcsd.gov.hk</a>，或傳真至2371 4171。</div></div></div>';
}
}
else
{
if(w=="en")
{
btntml +='<div id="feedback" style="display:none; position:absolute; z-index:300"><div class="feedback"><div style="background:#f2f2f2; padding:5px;text-align:left"><div style="text-align:right"><a href="javascript:feedbackoff()">Close</a></div>Feedback</div><div style="background:#ffffff;padding:5px;">If you have any general views on our programmes, please write to us by email <a href="mailto:fo@lcsd.gov.hk">fo@lcsd.gov.hk</a> or by fax 2371 4171.</div></div></div>';
}
else
{
btntml +='<div id="feedback" style="display:none; position:absolute; z-index:300"><div class="feedback"><div style="background:#f2f2f2; padding:5px;text-align:left"><div style="text-align:right"><a href="javascript:feedbackoff()">關閉</a></div>意見</div><div style="background:#ffffff;padding:5px;">若您對我們舉辦的節目有任何意見，歡迎電郵至<a href="mailto:fo@lcsd.gov.hk">fo@lcsd.gov.hk</a>，或傳真至2371 4171。</div></div></div>';
}
}
document.write(btntml);
}

function feedbackon()
{
document.getElementById("feedback").style.display = 'block';
}

function feedbackoff()
{
document.getElementById("feedback").style.display = 'none';
}
