﻿var fBrw=(navigator.userAgent.indexOf('MSIE')!= -1 && navigator.userAgent.indexOf('Windows')!= -1);
var fDSp=(typeof(document.getElementById)!='undefined');
var RefDiLeft = new Array();
var RefFlLeft = new Array();
var strDomain = 'vietnextco.net'
var sLocation = location.href;

var pos = sLocation.indexOf("vietnextco.net")
//if (pos < 1) location.href='http://vietnextco.net';
if (typeof(PageHost) == 'undefined') var PageHost = '';

/*
if (typeof(SkipTopWindow) == 'undefined')
{
	if (window.parent!=window)
	{	
		alert('This website violate "The vietnextco.net © Copyright Notice".\r\nClick OK to Access vietnextco.net!');
		window.open(location.href, '_top', '');
	}
}
*/

function ShowDivLogoLeft()
{
	if (RefDiLeft.length==0) return;
	
	document.writeln('<table cellspacing=0 cellpadding=0 border=0>');
	for (i=0; i < RefDiLeft.length; i++)
	{
		if (RefDiLeft[i][1]=='')
		{
			//document.writeln('<tr><td><img name="LeftDivLogo', RefDiLeft[i][5],'" src="', PageHost.concat(RefDiLeft[i][0]), '" width=100 border=0></td></tr>');							
			document.writeln('<tr><td><a href="',RefDiLeft[i][6],'" target="_blank"><img name="LeftDivLogo', RefDiLeft[i][5],'" src="', PageHost.concat(RefDiLeft[i][0]), '" border=0></a></td></tr>');							
		}
		else
		{
			//document.writeln('<tr><td><a href="', RefDiLeft[i][1], '" onClick="return openMeExt(this, ', RefDiLeft[i][2], ', 1)"><img name="LeftDivLogo', RefDiLeft[i][5],'" src="', PageHost.concat(RefDiLeft[i][0]), '" width=100 border=0></a></td></tr>');								
			document.writeln('<tr><td><a href="',RefDiLeft[i][6],'" target="_blank"><img name="LeftDivLogo', RefDiLeft[i][5],'" src="', PageHost.concat(RefDiLeft[i][0]), '" border=0></a></td></tr>');								
		}
		document.writeln('<tr><td height=2></td></tr>');							
	}	
	document.writeln('</table>');	
}

function ShowDivLogoRight()
{
	if (RefDRight.length==0) return;
	
	document.writeln('<table cellspacing=0 cellpadding=0 border=0 width=100% align="left">');
	for (i=0; i < RefDRight.length; i++)
	{
		if( RefDRight[i][1]=='')
		{
			document.writeln('<tr><td><a href="',RefDRight[i][6],'" target="_blank"><img name="RightDivLogo', RefDRight[i][5],'" src="', PageHost.concat(RefDRight[i][0]), '" border=0></a></td></tr>');							
		}
		else
		{
			document.writeln('<tr><td align=center><a href="',RefDRight[i][6],'" target="_blank"><img name="RightDivLogo', RefDRight[i][5],'" src="', PageHost.concat(RefDRight[i][0]), '" border=0></a></td></tr>');									
		}
		document.writeln('<tr><td height=2></td></tr>');							
	}	
	document.writeln('</table>');	
}

function ShowDivLogoLeftFloat()
{
	if (RefFlLeft.length==0) return;
	
	document.writeln('<table cellspacing=0 cellpadding=0 border=0>');
	for (i=0; i < RefFlLeft.length; i++)
	{
		if( RefFlLeft[i][1]=='')
		{
			document.writeln('<tr><td><a href="',RefFlLeft[i][6],'" target="_blank"><img name="LeftFloatDivLogo', RefFlLeft[i][5],'" src="', PageHost.concat(RefFlLeft[i][0]), '" border=0></a></td></tr>');							
		}
		else
		{
			document.writeln('<tr><td><a href="',RefFlLeft[i][6],'" target="_blank"><img name="LeftFloatDivLogo', RefFlLeft[i][5],'" src="', PageHost.concat(RefFlLeft[i][0]), '" border=0></a></td></tr>');									
		}
		document.writeln('<tr><td height=2></td></tr>');							
	}	
	document.writeln('</table>');	
}

