﻿function topads(type)
{
	if(Number(type) == 1)
	{
		document.write("<div align='center'><img src='/newimages/guide_03.gif' border='0'></div>");
	}
	if(Number(type) == 2)
	{
		document.write("<div align='center'><img src='/newimages/index_07.gif' border='0'></div>");
	}
	if(Number(type) == 3)
	{
		document.write("<div align='center'><img src='/newimages/market_03.gif' border='0' alt='world ports guide and maritime resources'></div>");
	}
	if(Number(type) == 4)
	{
		document.write("<div align='center'><img src='/newimages/news_03.gif' border='0'></div>");
	}
	if(Number(type) == 5)
	{
		document.write("<div align='center'><img src='/newimages/directory_03.gif' border='0'></div>");
	}
	if(Number(type) == 6)
	{
		document.write("<div align='center'><img src='/newimages/links_03.gif' border='0'></div>");
	}
}
function rightads(type)
{
	if(Number(type) == 1)
	{
		document.write("<div class='pic'><img src='/newimages/index_p1.gif' alt='world ports and maritime market' border='0'></div>");
		document.write("<div class='pic'><img src='/newimages/index_p2.gif' alt='world ports and maritime market' border='0'></div>");
		document.write("<div class='pic'><img src='/newimages/index_p3.gif' alt='world ports and maritime market' border='0'></div>");
		document.write("<div class='pic'><img src='/newimages/index_p4.gif' alt='world ports and maritime market' border='0'></div>");
		document.write("<div class='pic'><img src='/newimages/index_19.gif' alt='world ports and maritime market' border='0'></div>");
		document.write("<div class='pic'><img src='/newimages/index_33.gif' alt='world ports and maritime market' border='0'></div>");
		document.write("<div class='pic'><img src='/newimages/index_44.gif' alt='world ports and maritime market' border='0'></div>");
	}
	if(Number(type) == 2)
	{
		document.write("<div class='pic'><img src='/newimages/index_p1.gif' border='0'></div>");
		document.write("<div class='pic'><img src='/newimages/index_p2.gif' border='0'></div>");
		document.write("<div class='pic'><img src='/newimages/index_p3.gif' border='0'></div>");
		document.write("<div class='pic'><img src='/newimages/index_p4.gif' border='0'></div>");
		document.write("<div class='pic'><img src='/newimages/index_33.gif' border='0'></div>");
		document.write("<div class='pic'><img src='/newimages/index_44.gif' border='0'></div>");
	}
}
function newspic(type,divID)
{
	var divpic=document.getElementById(divID);
	if(Number(type) == 1)
	{
		 divpic.innerHTML=" <div align='center'><img src='/newimages/index_07.gif' border='0'></div>";
	}
	if(Number(type) == 2)
	{
		divpic.innerHTML="<div class='pic'><img src='/img/ads/port1.gif' border='0' height='250' width='192'><img src='/img/ads/port3.gif' border='0' height='245' width='192'><img src='/img/ads/port2.gif' border='0' height='245' width='192'></div>";
	}
	if(Number(type) == 3)
	{
		divpic.innerHTML="<a href='#'><img src='/img/ads/witkey.gif' border='0' height='31'></a>&nbsp;&nbsp;&nbsp;<a href='#'><img src='/img/ads/41d.jpg' border='0' height='31'></a>&nbsp;&nbsp;&nbsp;<a href='#'><img src='/img/ads/3.gif' border='0' height='31'></a>&nbsp;&nbsp;&nbsp;<a href='#'><img src='/img/ads/3.gif' border='0' height='31'></a>&nbsp;&nbsp;&nbsp;<a href='#'><img src='/img/ads/3.gif' border='0' height='31'></a>&nbsp;&nbsp;&nbsp;<a href='#'><img src='/img/ads/3.gif' border='0' height='31'></a>";
	}
}
function entads(type,divId)
{
	var entdivID=document.getElementById(divId);
	if(Number(type) == 1)
	{
		 entdivID.innerHTML="<a href='#'><img src='/img/ads/witkey.gif' border='0' height='31'></a>&nbsp;&nbsp;&nbsp;<a href='#'><img src='/img/ads/41d.jpg' border='0' height='31'></a>&nbsp;&nbsp;&nbsp;<a href='#'><img src='/img/ads/3.gif' border='0' height='31'></a>&nbsp;&nbsp;&nbsp;<a href='#'><img src='/img/ads/3.gif' border='0' height='31'></a>&nbsp;&nbsp;&nbsp;<a href='#'><img src='/img/ads/3.gif' border='0' height='31'></a>&nbsp;&nbsp;&nbsp;<a href='#'><img src='/img/ads/3.gif' border='0' height='31'></a>";
	}
	if(Number(type) == 2)
	{
		 entdivID.innerHTML="<a href='#'><img src='/img/ads/witkey.gif' border='0' height='31'></a>&nbsp;&nbsp;&nbsp;<a href='#'><img src='/img/ads/41d.jpg' border='0' height='31'></a>&nbsp;&nbsp;&nbsp;<a href='#'><img src='/img/ads/3.gif' border='0' height='31'></a>&nbsp;&nbsp;&nbsp;<a href='#'><img src='/img/ads/3.gif' border='0' height='31'></a>&nbsp;&nbsp;&nbsp;<a href='#'><img src='/img/ads/3.gif' border='0' height='31'></a>&nbsp;&nbsp;&nbsp;<a href='#'><img src='/img/ads/3.gif' border='0' height='31'></a>";
	}
}