// JavaScript Document

function activeflash(i_flash,v_flash,filename)
{
	
	if (i_flash && v_flash>=8.0)
	{
		
				document.writeln("<div style=\"width:378px; height:257px;\"><embed src=\"flash/"+filename+"\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"378\" height=\"257\" wmode=\"Opaque windowless\" ><\/embed><\/div>");
				
		
	}
	else
		{
		document.write("<div style=\"width:800px; height:600px; margin-top:-300px; margin-left:-400px; background:url(images/whithout-flashplayer-2_1.jpg) no-repeat; position:absolute; top:50%; left:50%;\">"+
			"<div style=\"position:absolute; color:#FFFFFF; top: 400px;\" >"+
				"<p style=\"font-family:Geneva, Arial, Helvetica, sans-serif; font-style:italic; font-size:10px;\">For the best experience inside the Knickers 'n Lace website, you should have the Flash Player plugin installed and Javascript turned on in your browser preferences. <\/p>"+
				"<p style=\"font-family:Geneva, Arial, Helvetica, sans-serif; text-align:center; font-style:italic; font-size:10px;\">If you prefer, your can also view the non-Flash version <a href=\"html/index.html\">here<\/a>.<\/p>"+
				"<p style=\"font-family:Geneva, Arial, Helvetica, sans-serif; text-align:center; font-style:italic; font-size:11px;\">You can download it for free at <a href=\"http://www.adobe.com/flashplayer\" target=\"_blank\">www.adobe.com/flashplayer<\/a>.<\/p>"+
			"<\/div>"+
		"<\/div>");
		}

}
function activeflash1(i_flash,v_flash,filename)
{
	
	if (i_flash && v_flash>=8.0)
	{
		
				document.writeln("<div style=\"width:383px; height:212px;margin-left:23px;border:2px solid #B7B7B7;border-top:none;\"><embed src=\"flash/"+filename+"\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"383\" height=\"212\" ><\/embed><\/div>");
				
		
	}
}
function clearflash(num,showid)
{
	var id,i
	for (i=1;i<=num;i++)
	{
		id = "flash"+i
		if (id != showid)
		{
			document.getElementById(id).className='noshow'
		}
		else
		{
			document.getElementById(id).className='show'
		}
	}
}
