// JavaScript Document
/*///////////////////////////////////////////////////////////////////////////*/

/*Get Name*/
function getURLParam(strParamName){
var strReturn = "";
var strHref = window.location.href;
if ( strHref.indexOf("?") > -1 ){
var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase();
var aQueryString = strQueryString.split("&");
for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
if (aQueryString[iParam].indexOf(strParamName + "=") > -1 ){
var aParam = aQueryString[iParam].split("=");
strReturn = aParam[1];
break;}}}return strReturn;
}

function getURL() {
	var file_name = document.location.href;
	var end = (file_name.indexOf("?") == -1) ? file_name.length : file_name.indexOf("?");
	return file_name.substring(file_name.lastIndexOf("/")+1, file_name.lastIndexOf("."));
}

function getName() {
		var file_name = document.location.href;
		var end = (file_name.indexOf("?") == -1) ? file_name.length : file_name.indexOf("?");
	if (file_name.indexOf("_")<=0){
		return "index"				  
	}else{
		return file_name.substring(file_name.lastIndexOf("/")+1, file_name.indexOf("_"));
	}
}

function getLan() {
	var file_name = document.location.href;
    var end = (file_name.indexOf("?") == -1) ? file_name.length : file_name.indexOf("?");
	return file_name.substring(file_name.lastIndexOf(".html")+0, file_name.indexOf("_")+1);
}

/*///////////////////////////////////////////////////////////////////////////*/
var file_name=getName() ;
function header_en() {
document.write("<div align=center>");
document.write("<table width=995 cellpadding='0' cellspacing='0' border=0>");
document.write("<tr><td height=146 background='images/banner_"+file_name+"_en.jpg' align=right valign=top>");
document.write("<a href=/index.htm><img src=images/blank.gif border=0 width=150 height=140 align=left></a>");
document.write("<a href="+file_name+"_big5.html><img src=images/lang_big5.gif border=0></a>");
document.write("<img src=images/lang_en_over.gif>");
document.write("</td></tr>");
document.write("<tr><td>");
document.write("<table width=100% cellpadding='0' cellspacing='0' border=0>");
document.write("<td height=500 width=160 background='images/menu_bg.jpg' valign='top'>");

document.write("<a href='index.html'><img src='images/btn_about_en.gif' name='about' border=0/></a>");
document.about.onmouseover=about_over
document.about.onmouseout=about_out
function about_out(){ document.about.src="images/btn_about_en.gif"}
function about_over(){ document.about.src="images/btn_about_en_over.gif"}

document.write("<a href='products_en.html'><img src='images/btn_products_en.gif' name='products' border=0/></a>");
document.products.onmouseover=products_over
document.products.onmouseout=products_out
function products_out(){ document.products.src="images/btn_products_en.gif"}
function products_over(){ document.products.src="images/btn_products_en_over.gif"}

document.write("<a href='retailers_en.html'><img src='images/btn_retailers_en.gif' name='retailers' border=0/></a>");
document.retailers.onmouseover=retailers_over
document.retailers.onmouseout=retailers_out
function retailers_out(){ document.retailers.src="images/btn_retailers_en.gif"}
function retailers_over(){ document.retailers.src="images/btn_retailers_en_over.gif"}

document.write("<a href='#footer_pos'><img src='images/btn_contact_en.gif' name='contact' border=0/></a>");
document.contact.onmouseover=contact_over
document.contact.onmouseout=contact_out
function contact_out(){ document.contact.src="images/btn_contact_en.gif"}
function contact_over(){ document.contact.src="images/btn_contact_en_over.gif"}


document.write("<br><br><a href=/index.htm><img src=images/head_en.gif border=0></a>");
document.write("</td>");
document.write("<td bgcolor='#FFFFFF' valign='top' align='left'>");
}

function header_big5() {
document.write("<div align=center>");
document.write("<table width=995 cellpadding='0' cellspacing='0' border=0>");
document.write("<tr><td height=146 background='images/banner_"+file_name+"_big5.jpg' align=right valign=top>");
document.write("<a href=/index.htm><img src=images/blank.gif border=0 width=150 height=140 align=left></a>");
document.write("<img src=images/lang_big5_over.gif border=0>");
if (file_name=="index"){
document.write("<a href="+file_name+".html><img src=images/lang_en.gif border=0></a>");}else{
document.write("<a href="+file_name+"_en.html><img src=images/lang_en.gif border=0></a>");}
document.write("</td></tr>");
document.write("<tr><td>");
document.write("<table width=100% cellpadding='0' cellspacing='0' border=0>");
document.write("<td height=500 width=160 background='images/menu_bg.jpg' valign='top'>");

document.write("<a href='index_big5.html'><img src='images/btn_about_big5.gif' name='about' border=0/></a>");
document.about.onmouseover=about_over
document.about.onmouseout=about_out
function about_out(){ document.about.src="images/btn_about_big5.gif"}
function about_over(){ document.about.src="images/btn_about_big5_over.gif"}

document.write("<a href='products_big5.html'><img src='images/btn_products_big5.gif' name='products' border=0/></a>");
document.products.onmouseover=products_over
document.products.onmouseout=products_out
function products_out(){ document.products.src="images/btn_products_big5.gif"}
function products_over(){ document.products.src="images/btn_products_big5_over.gif"}

document.write("<a href='retailers_big5.html'><img src='images/btn_retailers_big5.gif' name='retailers' border=0/></a>");
document.retailers.onmouseover=retailers_over
document.retailers.onmouseout=retailers_out
function retailers_out(){ document.retailers.src="images/btn_retailers_big5.gif"}
function retailers_over(){ document.retailers.src="images/btn_retailers_big5_over.gif"}

document.write("<a href='#footer_pos'><img src='images/btn_contact_big5.gif' name='contact' border=0/></a>");
document.contact.onmouseover=contact_over
document.contact.onmouseout=contact_out
function contact_out(){ document.contact.src="images/btn_contact_big5.gif"}
function contact_over(){ document.contact.src="images/btn_contact_big5_over.gif"}


document.write("<br><br><a href=/index.htm><img src=images/head_big5.gif border=0></a>");
document.write("</td>");
document.write("<td bgcolor='#FFFFFF' valign='top' align='left'>");
}


function foot_en(){
document.write("<a name='footer_pos' id='footer_pos'></a>");
document.write("<p align='right' class='contact' >");
document.write("<img src='images/index_contact_title_en.gif' /><br />");
document.write("<br />");
document.write("Tel: (852) 8100 6188<br />");
document.write("Fax: (852) 8169 9618<br />");
document.write("Email: <a href=mailto:enquiry@loutinapets.com>enquiry@loutinapets.com</a></p>");

document.write("<p align='right' class='footer'>Copyright © Loutina Pets Co., Ltd.  All rights reserved.      Powered by CommuniLink.Net</p>");
document.write("</td>");
document.write("</tr>");
document.write("</table>");
document.write("</td>");
document.write("</tr>");
document.write("</table>");
document.write("</div>");
}

function foot_big5(){
document.write("<a name='footer_pos' id='footer_pos'></a>");
document.write("<p align='right' class='contact' >");
document.write("<img src='images/index_contact_title_big5.gif' /><br />");
document.write("<br />");
document.write("電話: (852) 8100 6188<br />");
document.write("傳真: (852) 8169 9618<br />");
document.write("電郵: <a href=mailto:enquiry@loutinapets.com>enquiry@loutinapets.com</a></p>");

document.write("<p align='right' class='footer'>Copyright © Loutina Pets Co., Ltd.  All rights reserved.      Powered by <a href=http://www.communilink.net>CommuniLink.Net</a></p>");
document.write("</td>");
document.write("</tr>");
document.write("</table>");
document.write("</td>");
document.write("</tr>");
document.write("</table>");
document.write("</div>");
}