function setsize()
{
document.getElementById("showtable").width = 760;
document.getElementById("topmenutable").width = 760;
}

function loadpage(page)
{
getscreensize(page);
}

function overlabel(what)
{

}

function getscreensize(page)
	{
	var screenW ;
	var screenH;
	
	screenW = screen.width;
	screenH = screen.height;
	
	if (screenW < 801)
	{
	   var url;
	   var product;
	   var path;
	   var theid;
	   var word;
	   var regexS = "[\\?&]" + "size" + "=([^&#]*)";
	   var regex = new RegExp(regexS);
       var tmpURL = window.location.href;
       var paramVal = regex.exec(tmpURL);

	   if (paramVal)
	   {
        url = paramVal[1];
	   }
		else
	   {
		url="";
	   }

	   regexS = "[\\?&]" + "product" + "=([^&#]*)";
	   regex = new RegExp(regexS);
       paramVal = regex.exec(tmpURL);
	   
	   if (paramVal)
	   {
        product = paramVal[1];
	   }
		else
	   {
		product = "";
	   }
	   
	   regexS = "[\\?&]" + "id" + "=([^&#]*)";
	   regex = new RegExp(regexS);
       paramVal = regex.exec(tmpURL);
       
       if (paramVal)
	   {
        theid = paramVal[1];
	   }
		else
	   {
		theid = "";
	   }
	   
	   regexS = "[\\?&]" + "word" + "=([^&#]*)";
	   regex = new RegExp(regexS);
       paramVal = regex.exec(tmpURL);
       
       if (paramVal)
	   {
        word = paramVal[1];
	   }
		else
	   {
		word = "";
	   }
	   
       if (url != "small")
       {
		path = page + "?size=small"; 
        
			if (product !="")
				{
					path = path + "&product=" + product;        
				}
				
		     if (theid !="")
				{
					path = path + "&id=" + theid;        
				}
				
			  if (word !="")
				{
					path = path + "&word=" + word;        
				}
				
		document.location.href = path
	   }
	   else
	   {
	   setsize();
	   }
	}
}

function selected (what, seriesnum)
		{
			for (var i=((seriesnum - 1) * 10) + 1; i < ((seriesnum - 1) * 10) + 11; i++)
				{	
				if (document.getElementById('page' + i))
				{
					document.getElementById('page' + i).className = "unselected";
				}
				}
				
			document.getElementById(what).className = "selected";
		}
		
function mouseover (what)
		{		
		if (document.getElementById(what).className != "selected")
		{
			document.getElementById(what).className = "mouseover";
		}
		}
		
function mouseout (what)
		{	
		if (document.getElementById(what).className != "selected")
		{	
			document.getElementById(what).className = "unselected";
		}
		}
		
function overlabel (what, where)
{
		if (what == "in")
		{	
		document.getElementById(where).style.cursor = 'hand';
		}
		else
		{
		document.getElementById(where).style.cursor = 'regular';
		}
}
		
