<!--
//DECLARATION -------------------------------------
var strImgPath = '../../img/';
var strLinkPath = '../../htm/';

function writeMisLink()
{
	if (document.location.href.indexOf('htm/mis/faq') != -1)
	{
		document.writeln('<font style="TEXT-DECORATION:UNDERLINE;">' + strMisLink1 + '</font>&nbsp;&nbsp;|&nbsp;&nbsp;');
	}
	else
	{
		document.writeln('<a href="' + strLinkPath + 'mis/' + strMisLink1_link + '" title="' + strMisLink1 + '">' + strMisLink1 + '</a>&nbsp;&nbsp;|&nbsp;&nbsp;');
	}

	if (document.location.href.indexOf('htm/mis/enquiry') != -1)
	{
		document.writeln('<font style="TEXT-DECORATION:UNDERLINE;">' + strMisLink2 + '</font>&nbsp;&nbsp;|&nbsp;&nbsp;');
	}
	else
	{
		document.writeln('<a href="' + strLinkPath + 'mis/' + strMisLink2_link + '" title="' + strMisLink2 + '">' + strMisLink2 + '</a>&nbsp;&nbsp;|&nbsp;&nbsp;');
	}
	
	if (document.location.href.indexOf('htm/mis/contact') != -1)
	{
		document.writeln('<font style="TEXT-DECORATION:UNDERLINE;">' + strMisLink3 + '</font>&nbsp;&nbsp;|&nbsp;&nbsp;');
	}
	else
	{
		document.writeln('<a href="' + strLinkPath + 'mis/' + strMisLink3_link + '" title="' + strMisLink3 + '">' + strMisLink3 + '</a>&nbsp;&nbsp;|&nbsp;&nbsp;');
	}
	
	if (document.location.href.indexOf('htm/mis/join') != -1)
	{
		document.writeln('<font style="TEXT-DECORATION:UNDERLINE;">' + strMisLink4 + '</font>');
	}
	else
	{
		document.writeln('<a href="' + strLinkPath + 'mis/' + strMisLink4_link + '" title="' + strMisLink4 + '">' + strMisLink4 + '</a>');
	}
}


function writeFooter()
{
	document.writeln(strFooter);
	document.writeln('<br>');
	document.writeln('<span>' + strBestView + '</span>');
	
}

function goto(strLink, intBrowseType)
{
	if (intBrowseType=='1')
	{
		window.location.href=strLink;
	}
	else
	{
		window.open (strLink,'mywindow','menubar=0,resizable=0,scrollbars=1,width=724,height=600');
	}
}

function writeDogOfTheMonth()
{
	var d = new Date();
	var mon = d.getMonth() + 1;
	
	document.writeln('<table cellpadding="0" cellspacing="0" border="0">');	
	document.writeln('<tr>');	
	document.writeln('<td colspan="5" style="PADDING-BOTTOM:1px;"><div id="divDog" style="background: url(' + strImgPath + 'cmn/dog/' + eval('strDog' + mon + '_big') + ') NO-REPEAT 0% 0%;"><a href="javascript:goto(strDogLink,intDogBrowseType);"><img src="' + strImgPath + 'cmn/dog/' + eval('strDog' + mon + '_big') + '" border="0" alt="' + eval('strDog' + mon + '_title') + '" id="imgDog" style="filter: alpha(opacity=0); -moz-opacity: 0; opacity: 0;"></a></div></td>');	
	document.writeln('</tr>');	
	document.writeln('<tr style="PADDING-BOTTOM:1px;">');	
	document.writeln('<td><a href="javascript:blendimage(\'divDog\',\'imgDog\', \'' + strImgPath + 'cmn/dog/' + strDog1_big + '\',1000,\'' + strDog1_title + '\');" onclick="strDogLink = \'' + strDog1_link + '\'; intDogBrowseType = \'' + strDog1_browse + '\';"><img src="' + strImgPath + 'cmn/dog/' + strDog1 + '" border="0" alt="' + strDog1_title + '"></a></td>');	
	document.writeln('<td><a href="javascript:blendimage(\'divDog\',\'imgDog\', \'' + strImgPath + 'cmn/dog/' + strDog2_big + '\',1000,\'' + strDog2_title + '\');" onclick="strDogLink = \'' + strDog2_link + '\'; intDogBrowseType = \'' + strDog2_browse + '\';"><img src="' + strImgPath + 'cmn/dog/' + strDog2 + '" border="0" alt="' + strDog2_title + '"></a></td>');	
	document.writeln('<td><a href="javascript:blendimage(\'divDog\',\'imgDog\', \'' + strImgPath + 'cmn/dog/' + strDog3_big + '\',1000,\'' + strDog3_title + '\');" onclick="strDogLink = \'' + strDog3_link + '\'; intDogBrowseType = \'' + strDog3_browse + '\';"><img src="' + strImgPath + 'cmn/dog/' + strDog3 + '" border="0" alt="' + strDog3_title + '"></a></td>');	
	document.writeln('<td><a href="javascript:blendimage(\'divDog\',\'imgDog\', \'' + strImgPath + 'cmn/dog/' + strDog4_big + '\',1000,\'' + strDog4_title + '\');" onclick="strDogLink = \'' + strDog4_link + '\'; intDogBrowseType = \'' + strDog4_browse + '\';"><img src="' + strImgPath + 'cmn/dog/' + strDog4 + '" border="0" alt="' + strDog4_title + '"></a></td>');	
	document.writeln('<td><a href="javascript:blendimage(\'divDog\',\'imgDog\', \'' + strImgPath + 'cmn/dog/' + strDog5_big + '\',1000,\'' + strDog5_title + '\');" onclick="strDogLink = \'' + strDog5_link + '\'; intDogBrowseType = \'' + strDog5_browse + '\';"><img src="' + strImgPath + 'cmn/dog/' + strDog5 + '" border="0" alt="' + strDog5_title + '"></a></td>');	
	document.writeln('</tr>');
	document.writeln('<tr>');	
	document.writeln('<td><a href="javascript:blendimage(\'divDog\',\'imgDog\', \'' + strImgPath + 'cmn/dog/' + strDog6_big + '\',1000,\'' + strDog6_title + '\');" onclick="strDogLink = \'' + strDog6_link + '\'; intDogBrowseType = \'' + strDog6_browse + '\';"><img src="' + strImgPath + 'cmn/dog/' + strDog6 + '" border="0" alt="' + strDog6_title + '"></a></td>');	
	document.writeln('<td><a href="javascript:blendimage(\'divDog\',\'imgDog\', \'' + strImgPath + 'cmn/dog/' + strDog7_big + '\',1000,\'' + strDog7_title + '\');" onclick="strDogLink = \'' + strDog7_link + '\'; intDogBrowseType = \'' + strDog7_browse + '\';"><img src="' + strImgPath + 'cmn/dog/' + strDog7 + '" border="0" alt="' + strDog7_title + '"></a></td>');	
	document.writeln('<td><a href="javascript:blendimage(\'divDog\',\'imgDog\', \'' + strImgPath + 'cmn/dog/' + strDog8_big + '\',1000,\'' + strDog8_title + '\');" onclick="strDogLink = \'' + strDog8_link + '\'; intDogBrowseType = \'' + strDog8_browse + '\';"><img src="' + strImgPath + 'cmn/dog/' + strDog8 + '" border="0" alt="' + strDog8_title + '"></a></td>');	
	document.writeln('<td><a href="javascript:blendimage(\'divDog\',\'imgDog\', \'' + strImgPath + 'cmn/dog/' + strDog9_big + '\',1000,\'' + strDog9_title + '\');" onclick="strDogLink = \'' + strDog9_link + '\'; intDogBrowseType = \'' + strDog9_browse + '\';"><img src="' + strImgPath + 'cmn/dog/' + strDog9 + '" border="0" alt="' + strDog9_title + '"></a></td>');	
	document.writeln('<td><a href="javascript:blendimage(\'divDog\',\'imgDog\', \'' + strImgPath + 'cmn/dog/' + strDog10_big + '\',1000,\'' + strDog10_title + '\');" onclick="strDogLink = \'' + strDog10_link + '\'; intDogBrowseType = \'' + strDog10_browse + '\';"><img src="' + strImgPath + 'cmn/dog/' + strDog10 + '" border="0" alt="' + strDog10_title + '"></a></td>');	
	document.writeln('</tr>');	
	document.writeln('</table>');	
}

function writeHighlight()
{
	document.writeln('<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%" class="bg_hightlight">');	
	document.writeln('<tr>');
	document.writeln('<td align="left" style="PADDING-TOP:15px; PADDING-BOTTOM:10px;"><img src="' + strImgPath + 'hom/home_highlight.gif"></td>');
	document.writeln('</tr>');
	document.writeln('<tr>');
	document.writeln('<td style="PADDING-LEFT:15px; PADDING-RIGHT:30px;">' + strNews1_date + '</td>');
	document.writeln('</tr>');
	
	document.writeln('<tr>');
	if (strNews1_link == '')
	{
		document.writeln('<td style="PADDING-LEFT:15px; PADDING-RIGHT:30px;"><u><b>' + strNews1 + '</b></u></td>');
	}
	else
	{
		document.writeln('<td style="PADDING-LEFT:15px; PADDING-RIGHT:30px;"><a href="' + strNews1_link + '" title="' + strNews1 + '"><b>' + strNews1 + '</b></a></td>');
	}
	document.writeln('</tr>');
	
	document.writeln('<tr>');
	document.writeln('<td style="PADDING-LEFT:15px; PADDING-RIGHT:30px;">' + strNews1_desc + '</td>');
	document.writeln('</tr>');
	document.writeln('<tr>');
	document.writeln('<td style="PADDING-LEFT:15px; PADDING-RIGHT:30px;"><br></td>');
	document.writeln('</tr>');
	document.writeln('<tr>');
	document.writeln('<td style="PADDING-LEFT:15px; PADDING-RIGHT:30px;">' + strNews2_date + '</td>');
	document.writeln('</tr>');
	
	document.writeln('<tr>');
	if (strNews2_link == '')
	{
		document.writeln('<td style="PADDING-LEFT:15px; PADDING-RIGHT:30px;"><u><b>' + strNews2 + '</b></u></td>');
	}
	else
	{
		document.writeln('<td style="PADDING-LEFT:15px; PADDING-RIGHT:30px;"><a href="' + strNews2_link + '" title="' + strNews2 + '"><b>' + strNews2 + '</b></a></td>');
	}
	document.writeln('</tr>');
	
	document.writeln('<tr>');
	document.writeln('<td style="PADDING-LEFT:15px; PADDING-RIGHT:30px;">' + strNews2_desc + '</td>');
	document.writeln('</tr>');
	document.writeln('<tr>');
	document.writeln('<td height="100%" style="PADDING-LEFT:15px; PADDING-RIGHT:40px;" align="right"><br><a href="' + strLinkPath + 'new/news.html" title="learn more" onmouseover="swapImage(\'imgLearnMore\', \'imageLearnMore_ov\');" onmouseout="swapImage(\'imgLearnMore\', \'imageLearnMore\');"><img src="../../img/hom/learnmore.gif" border="0" alt="learn more" id="imgLearnMore"></a></td>');
	document.writeln('</tr>');	
	document.writeln('</table>');	
}

function writeHighlight2()
{
	document.writeln('<table cellpadding="0" cellspacing="0" border="0" width="278" height="100%" class="bg_sub_hightlight">');	
	document.writeln('<tr>');
	document.writeln('<td align="left" style="PADDING-TOP:15px; PADDING-BOTTOM:10px;"><img src="' + strImgPath + 'sub/sub_highlight.jpg"></td>');
	document.writeln('</tr>');
	document.writeln('<tr>');
	document.writeln('<td style="PADDING-LEFT:15px; PADDING-RIGHT:15px;">' + strNews1_date + '</td>');
	document.writeln('</tr>');
	
	document.writeln('<tr>');
	if (strNews1_link == '')
	{
		document.writeln('<td style="PADDING-LEFT:15px; PADDING-RIGHT:15px;"><u><b>' + strNews1 + '</b></u></td>');
	}
	else
	{
		document.writeln('<td style="PADDING-LEFT:15px; PADDING-RIGHT:15px;"><a href="' + strNews1_link + '" title="' + strNews1 + '"><b>' + strNews1 + '</b></a></td>');
	}
	document.writeln('</tr>');
	
	document.writeln('<tr>');
	document.writeln('<td style="PADDING-LEFT:15px; PADDING-RIGHT:15px;">' + strNews1_desc + '</td>');
	document.writeln('</tr>');
	document.writeln('<tr>');
	document.writeln('<td style="PADDING-LEFT:15px; PADDING-RIGHT:15px;"><br></td>');
	document.writeln('</tr>');
	document.writeln('<tr>');
	document.writeln('<td style="PADDING-LEFT:15px; PADDING-RIGHT:15px;">' + strNews2_date + '</td>');
	document.writeln('</tr>');
	
	document.writeln('<tr>');
	if (strNews2_link == '')
	{
		document.writeln('<td style="PADDING-LEFT:15px; PADDING-RIGHT:15px;"><u><b>' + strNews2 + '</b></u></td>');
	}
	else
	{
		document.writeln('<td style="PADDING-LEFT:15px; PADDING-RIGHT:15px;"><a href="' + strNews2_link + '" title="' + strNews2 + '"><b>' + strNews2 + '</b></a></td>');
	}
	document.writeln('</tr>');
	
	document.writeln('<tr>');
	document.writeln('<td style="PADDING-LEFT:15px; PADDING-RIGHT:15px;">' + strNews2_desc + '</td>');
	document.writeln('</tr>');
	document.writeln('<tr>');
	document.writeln('<td height="100%" style="PADDING-LEFT:15px; PADDING-RIGHT:25px;" align="right"><br><a href="' + strLinkPath + 'new/news.html" title="learn more" onmouseover="swapImage(\'imgLearnMore\', \'imageLearnMore_ov\');" onmouseout="swapImage(\'imgLearnMore\', \'imageLearnMore\');"><img src="../../img/hom/learnmore.gif" border="0" alt="learn more" id="imgLearnMore"></a></td>');
	document.writeln('</tr>');	
	document.writeln('</table>');	
}

function writeNews()
{
	document.writeln('<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">');	
	
	for(i=1;i<=intTotalNews;i++)
	{
		document.writeln('<tr>');
		document.writeln('<td class="sub_actual_content"><font class="header8">' + eval('strNews' + i + '_date') + '</font></td>');
		document.writeln('</tr>');
		
		document.writeln('<tr>');
		if (eval('strNews' + i + '_link') == '')
		{
			document.writeln('<td class="sub_actual_content"><font class="header4"><b>' + eval('strNews' + i) + '</b></font></td>');
		}
		else
		{
			document.writeln('<td class="sub_actual_content"><font class="header4"><a href="' + eval('strNews' + i + '_link') + '" title="' + eval('strNews' + i) + '"><b>' + eval('strNews' + i) + '</b></a></font></td>');
		}
		document.writeln('</tr>');
		
		document.writeln('<tr>');
		document.writeln('<td class="sub_actual_content">' + eval('strNews' + i + '_desc') + '</td>');
		document.writeln('</tr>');
		
		if(eval('strNews' + i + '_desc2') != '')
		{
			document.writeln('<tr>');
			document.writeln('<td class="sub_actual_content">' + eval('strNews' + i + '_desc2') + '</td>');
			document.writeln('</tr>');	
		}
		
		document.writeln('<tr>');
		document.writeln('<td><br></td>');
		document.writeln('</tr>');	
	}
	
	document.writeln('</table>');	
}

function writeBreadcrumb()
{
	var stBreadcrumbRoot = '<a href="' + strLinkPath + 'hom/home.html" title="HOME">HOME</a>';
	
	if(document.location.href.indexOf('/htm/abo/') != -1)
	{
		document.writeln(stBreadcrumbRoot + ' > ABOUT US');	
	}
	else if(document.location.href.indexOf('/htm/mis/faq') != -1)
	{
		document.writeln(stBreadcrumbRoot + ' > FAQ');
	}	
	else if(document.location.href.indexOf('/htm/mis/contact') != -1)
	{
		document.writeln(stBreadcrumbRoot + ' > CONTACT US');
	}
	else if(document.location.href.indexOf('/htm/mis/enquiry') != -1)
	{
		document.writeln(stBreadcrumbRoot + ' > ENQUIRY');
	}
	else if(document.location.href.indexOf('/htm/mis/join') != -1)
	{
		document.writeln(stBreadcrumbRoot + ' > JOIN OUR TEAM');
	}	
	else if(document.location.href.indexOf('/htm/mis/upgrade') != -1)
	{
		document.writeln(stBreadcrumbRoot + ' > UPGRADING');
	}
	else if(document.location.href.indexOf('/htm/pro') != -1)
	{
		document.writeln(stBreadcrumbRoot + ' > PRODUCT & SERVICES');
	}	
	else if(document.location.href.indexOf('/htm/mem') != -1)
	{
		document.writeln(stBreadcrumbRoot + ' > MEMBER\'S CORNER');
	}
	else if(document.location.href.indexOf('upgrade') != -1)
	{
		document.writeln(stBreadcrumbRoot + ' > UPGRADE');
	}
	else if(document.location.href.indexOf('/htm/new') != -1)
	{
		document.writeln(stBreadcrumbRoot + ' > NEWS & EVENTS');
	}	

}

//function writeLeftMenu()
//{
//	document.writeln('<script type="text/javascript">');
//	document.writeln('AC_FL_RunContent( \'id\',\'imgMastHead\',\'codebase\',\'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\',\'width\',\'430\',\'height\',\'449\',\'src\',\'../../img/fla/menu\',\'loop\',\'true\',\'menu\',\'false\',\'quality\',\'best\',\'salign\',\'L\',\'bgcolor\',\'#FFFFFF\',\'pluginspage\',\'http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\',\'movie\',\'../../img/fla/menu\',\'wmode\',\'transparent\' );');
//	document.writeln('</script>');
//	document.writeln('<noscript>');
//	document.writeln('<OBJECT id=\'imgMastHead\' classid=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\' codebase=\'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\' width="430" height="449">');
//	document.writeln('<PARAM NAME=movie id=movie VALUE=\'../../img/fla/menu.swf\'>');
//	document.writeln('<PARAM NAME=menu VALUE=false>');
//	document.writeln('<PARAM NAME=quality VALUE=best>');
//	document.writeln('<PARAM NAME=salign VALUE=L>');
//	document.writeln('<PARAM NAME=bgcolor VALUE=#FFFFFF>');
//	document.writeln('<PARAM NAME="wmode" VALUE="transparent"> ');
//	document.writeln('<EMBED src=\'../../img/fla/menu.swf\' loop=true menu=false quality=best salign=L bgcolor=#FFFFFF width="430" height="449" TYPE=\'application/x-shockwave-flash\' PLUGINSPAGE=\'http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\'></EMBED>');
//	document.writeln('</OBJECT>');
//	document.writeln('</noscript>');	
//}

function writeLeftMenu()
{

	with(milonic=new menuname("Related Menu"))
	{
		padding=0;
		style=mainStyle;
		alwaysvisible=1;
		orientation="vertical";
		position="relative";
		zindex=80;
		
		aI("image=../../img/menu/submenu_hom.jpg;overimage=../../img/menu/submenu_hom_ov.jpg;showmenu=;url=../../htm/hom/home.html;status=Home;");
			
		if(document.location.href.indexOf('/htm/abo') != -1)
		{		
			aI("image=../../img/menu/submenu_abo_sel.jpg;showmenu=aboutus;url=../../htm/abo/corpprofile.html;status=About Us;");
		}
		else
		{		
			aI("image=../../img/menu/submenu_abo.jpg;overimage=../../img/menu/submenu_abo_ov.jpg;showmenu=aboutus;url=../../htm/abo/corpprofile.html;status=About Us;");
		}

		if(document.location.href.indexOf('/htm/pro') != -1)
		{		
			aI("image=../../img/menu/submenu_prod_sel.jpg;showmenu=prodserv;url=../../htm/pro/services.html;status=Products & Services;");
		}
		else
		{
			aI("image=../../img/menu/submenu_prod.jpg;overimage=../../img/menu/submenu_prod_ov.jpg;showmenu=prodserv;url=../../htm/pro/services.html;status=Products & Services;");
		}

		if(document.location.href.indexOf('/htm/new') != -1)
		{		
			aI("image=../../img/menu/submenu_new_sel.jpg;showmenu=news;url=../../htm/new/news.html;status=News & Events;");
		}
		else
		{
			aI("image=../../img/menu/submenu_new.jpg;overimage=../../img/menu/submenu_new_ov.jpg;showmenu=news;url=../../htm/new/news.html;status=News & Events;");
		}

		if(document.location.href.indexOf('/htm/mem') != -1)
		{		
			aI("image=../../img/menu/submenu_mem_sel.jpg;showmenu=member;url=../../htm/mem/member.html;status=Member's Corner;");
		}
		else
		{
			aI("image=../../img/menu/submenu_mem.jpg;overimage=../../img/menu/submenu_mem_ov.jpg;showmenu=member;url=../../htm/mem/member.html;status=Member's Corner;");
		}
	}

	drawMenus();
}

function changeVideo(intVideoNo)
{
	if (intVideoNo==1)
	{
		divVideoHdr.innerHTML = 'Dog Training - Agility Test';
		alert(document.getElementById('divVideo'));
		alert(document.getElementById('divVideo').innerHTML);
		//document.getElementById('divVideo').innerHTML = 'hhh';
		window.document.getElementById('divVideo').innerHTML = '<object width="390" height="330"><param name="movie" value="http://www.youtube.com/v/FmwTvUhHrIg&rel=1" id="movie"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/FmwTvUhHrIg&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="390" height="330" id="movie"></embed></object>'
	}

	if (intVideoNo==2)
	{
		divVideoHdr.innerHTML = 'Dog Training - SKC Obedience Trail';
		document.getElementById('divVideo').innerHTML = '<object width="390" height="330"><param name="movie" value="http://www.youtube.com/v/Y3Bmr2nWiQA&rel=1" id="movie"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/Y3Bmr2nWiQA&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="390" height="330" id="movie"></embed></object>'
	}

	if (intVideoNo==3)
	{
		divVideoHdr.innerHTML = 'Dog Training - SKC Obedience Trail 2';
		document.getElementById('divVideo').innerHTML = '<object width="390" height="330"><param name="movie" value="http://www.youtube.com/v/5ktQ4HzTzoA&rel=1" id="movie"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/5ktQ4HzTzoA&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="390" height="330" id="movie"></embed></object>'
	}

	if (intVideoNo==4)
	{
		divVideoHdr.innerHTML = 'Dog Training - SKC Obedience Trail 3';
		document.getElementById('divVideo').innerHTML = '<object width="390" height="330"><param name="movie" value="http://www.youtube.com/v/t3uwOxepR38&rel=1" id="movie"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/t3uwOxepR38&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="390" height="330" id="movie"></embed></object>'
	}	
}

function writeStat()
{
	if(document.location.href.indexOf('www.globalpets.com.my') != -1)
	{
	 	document.writeln('<iframe src="http://www.webteq.com.my/webstat/stat.asp?uid=gp2008082124hn8l" width="100%" height="20" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>');
	}
	else
	{
		document.writeln('<iframe src="http://www.webteq.com.my/webstat/stat.asp?uid=gp2008082155we0d" width="100%" height="20" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>');
	}
}

//-->