﻿function openImageNews(vLink, vHeight, vWidth)
{
	var sLink = (typeof(vLink.href) == 'undefined') ? vLink : vLink.href;
	var sAlt = (typeof(vLink.getAttribute('alt')) == 'undefined') ? '' : vLink.getAttribute('alt');		
	if (sLink == '')
	{
		return false;
	}

	winDef = 'status=no,resizable=no,scrollbars=no,toolbar=no,location=no,fullscreen=no,titlebar=yes,height='.concat(vHeight).concat(',').concat('width=').concat(vWidth).concat(',');
	winDef = winDef.concat('top=').concat((screen.height - vHeight)/2).concat(',');
	winDef = winDef.concat('left=').concat((screen.width - vWidth)/2);
	newwin = open('', '_blank', winDef);
	newwin.document.writeln('<title>Kymdan </title><body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">');
	newwin.document.writeln('<div align="center"><a href="" onClick="window.close(); return false;"><img src="', sLink, '" alt="', 'Close', '" border=0></a>');
	newwin.document.writeln('<br><b>' ,sAlt , ' </b></div>');
	newwin.document.writeln('</body>');
	if (typeof(vLink.href) != 'undefined')
	{
		return false;
	}
}

function display(s,t,total)
{

	 MItem = document.all(total);


          if (MItem != null)
          {
              for (i=1; i<=MItem.value; i++)
              {

				   MItem1 = document.all(t+i);

		         MItem1.style.display = "none";


	           }
              
          }	

	MItem = document.all(t + s);
	MItem.style.display = ""
} 
function rollIn(elem,t,s)
{

    MItem = document.all(s);

    for (i=1; i<=MItem.value; i++)
	{

		MItem1 = document.all(t +i);

		MItem1.style.color = "#000000"


    }
	 
	elem.style.color = "#000000"		

}
function rollOut(elem)
{
	
}
