
	function mpos(i, items ,twidth)
	{
		var pos ;
		twidth=twidth-10
		var w = wwidth()
		if( w > twidth)
		{
			pos = ((w-twidth) / 2)+0 + (twidth / items * i)

		}
		else
		{
			pos = (twidth / items * i) + 15
		}

		var r = (w- twidth ) / 2 + twidth;

		//if (pos + 160 > r )
		//	return r - 160;		
		//else
			return pos;
	}
	



	function kmpos(i, items ,twidth)
	{


		var pos ;
		twidth=twidth-10
		

		var w = wwidth()
		if( w > twidth)
		{
//			pos = ((w-twidth) / 2)+0 + (twidth / items * i)
			pos = ((w-954) / 2) + (954 / items * i)

		}
		else
		{
//			pos = (twidth / items * i) + 15
			pos = (954 / items * i) 

		}

		var r = (w- twidth ) / 2 + twidth;

			
		pos +=27;


//		if (pos + 160 > r )
//			return r - 160;		
//		else
			return pos;
	}
	


	
	function wwidth()
	{
  		var myWidth = 0
  		if( typeof( window.innerWidth ) == 'number' ) {
    			//Non-IE
    			myWidth = window.innerWidth;

		  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    			//IE 6+ in 'standards compliant mode'
    			myWidth = document.documentElement.clientWidth;
		  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    			//IE 4 compatible
    			myWidth = document.body.clientWidth;
		  }
		return myWidth;
	}
function showflash(s,w,h )
{
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+w+"' height='"+h+"'>");
document.write("<param name='movie' value='"+s+"'>");
document.write("<param name='quality' value='high'>");
document.write("<param name='wmode' value='transparent'>");
document.write("<embed src='"+s+"' quality='high'  wmode='transparent' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"'></embed>");
document.write("</object>");
}

function showflash_noloop(s,w,h )
{
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+w+"' height='"+h+"'>");
document.write("<param name='movie' value='"+s+"'>");
document.write("<param name='quality' value='high'>");
document.write("<param name='wmode' value='transparent'>");
document.write("<param name='false' value='false'>");
document.write("<embed src='"+s+"' quality='high'  wmode='transparent' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' loop='false' width='"+w+"' height='"+h+"'></embed>");
document.write("</object>");
}

