function playMovie(alb,id)
{
  var s1 = new SWFObject('./js/player.swf', 'playlist', '620', '480', '7');
	  s1.addParam('allowfullscreen',     'true');
	  s1.addVariable('width',            '620');
	  s1.addVariable('height',           '480');
	  s1.addVariable('displayheight',    '480');
	  s1.addVariable('file',             '../Images/albums/' + alb + '/' + alb + '_' + id + '.flv');
	//s1.addVariable('file',             'http://my.domain.com/path/playlist.xml');
	//s1.addVariable('overstretch',      'true');  // expands to fit h & v   "true"  -will stretch them proportionally to fill the display
	  s1.addVariable('overstretch',      'false'); // expands to fit h or v  "false" -will stretch them to fit
	//s1.addVariable('overstretch',      'fit');   // expands to fit h & v   "fit"   -will stretch them disproportionally to fit both height and width
	//s1.addVariable('overstretch',      'none');  // displays native size   "none"  -will show all items in their original dimensions
	  s1.addVariable('showdigits',       'true');
	  s1.addVariable('autostart',        'true');
	  s1.addVariable('shuffle',          'false');
	  s1.addVariable('repeat',           'list');
	  s1.addVariable('showicons',        'true');
	  s1.addVariable('thumbsinplaylist', 'true');
	  s1.addVariable('logo',             '');
	  s1.addVariable('backcolor',        '0xFFFFFF'); // face of buttons
	  s1.addVariable('frontcolor',       '0x404040'); // button symbols & playlist text
	  s1.addVariable('lightcolor',       '0x808080'); // highlighted playlist item
	  s1.addVariable('screencolor',      '0x000000'); // screen background color
	  s1.write('player');
};
/*
function tophone(i,p)
{
 loadWin = window.open('','','width=270,height=400,resizable=no,scrollbars=auto');
 loadWin.window.location='./send_to_phone.php?i=' + i + '&p=' + p;
}

var rotate_delay = 5000; // delay in milliseconds (5000 = 5 secs)

current = 0;

function nybild(bildid) 
{
	current=bildid;
	document.images['imgBild'].src= obj[bildid];
}

function next() 
{
	if (obj[current+1]) 
	{
		document.images['imgBild'].src = obj[++current];
	}
	else first();
	return false;
}

function previous() 
{
	if (current-1 >= 0) 
	{
		document.images['imgBild'].src = obj[--current];
	}
	else last();
}

function first() 
{
	current = 0;
	document.images['imgBild'].src = obj[0];
}

function last() 
{
	current =sizeof(obj)-1;
	document.images['imgBild'].src = obj[current];
}

function ap(text) 
{
	if(document.images['slide'].src == "http://www.naknasvenskor.com/Images/control_play.png")
		document.images['slide'].src = "http://www.naknasvenskor.com/Images/control_stop.png";
	else
		document.images['slide'].src = "http://www.naknasvenskor.com/Images/control_play.png"
	rotate();
}

function change() 
{
	current = document.slideform.slide.selectedIndex;
	document.images['imgBild'].src = document.slideform.slide[current].value;
}

rotate_exists=true;

function rotate() 
{
	if (document.images['slide'].src == "http://www.naknasvenskor.com/Images/control_stop.png") 
	{
		current = (current == sizeof(obj)-1) ? 0 : current+1;
		document.images['imgBild'].src = obj[current];
		window.setTimeout("rotate()", rotate_delay);
	}
}
*/
