//-------------------------------------------------------------------------------------
// File        : GF Embedding.js
// Description : Code for embedding menus and flash elements
//
//--------------------- GeckoFoot Limited COPYRIGHT © 2006 ----------------------------
// The  information  contained here-in is the property of GeckoFoot Limited and
// is not to be copied, altered or used without prior permission. All rights reserved. 
//-------------------------------------------------------------------------------------

function gfembedflash ( src, width, height )
{
	flashStr = new String ( "<object  classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"" + width + "\" height=\"" + height + "\" class=\"leftObject\"><param name=\"movie\" value=\"" ) ;
	flashStr += src ;
	flashStr += "\"<param name=\"quality\" value=\"best\" /><param name=\"allowScriptAccess\" value=\"always\">\n <embed src=\"" ;
	flashStr += src ;
	flashStr += "\" quality=\"best\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + width + "\" height=\"" + height + "\" allowScriptAccess=\"always\"></embed></object>" ;
	document.write ( flashStr ) ;
}

function gfembedflashnofloat ( src, width, height )
{
	flashStr = new String ( "<object  classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"" + width + "\" height=\"" + height + "\" class=\"noFloat\"><param name=\"movie\" value=\"" ) ;
	flashStr += src ;
	flashStr += "\"<param name=\"quality\" value=\"high\" /><embed src=\"" ;
	flashStr += src ;
	flashStr += "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + width + "\" height=\"" + height + "\"></embed></object>" ;
	document.write ( flashStr ) ;
}

function gfembedpaddedflash ( src, width, height )
{
	flashStr = new String ( "<object  classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"" + width + "\" height=\"" + height + "\" class=\"paddedObject\"><param name=\"movie\" value=\"" ) ;
	flashStr += src ;
	flashStr += "\"<param name=\"quality\" value=\"high\" /><embed src=\"" ;
	flashStr += src ;
	flashStr += "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + width + "\" height=\"" + height + "\"></embed></object>" ;
	document.write ( flashStr ) ;
}

function gfembedtopmenu ( img, tint, head, url, i1, u1, i2, u2, i3, u3 )
{
	gfembedflash ( "Multimedia/GF Pic " + /*Top */ "Menu.swf?imgSrc=" + img + "&tint=" + tint + "&headline=" + head + "&mainURL=" + url + "&item1text=" + i1 + "&item1URL=" + u1 + "&item2text=" + i2 + "&item2URL=" + u2 + "&item3text=" + i3 + "&item3URL=" + u3, 140, 110 ) ;
}

function gfembedmenu ( img, tint, head, url, i1, u1, i2, u2, i3, u3, rootDir )
{
	gfembedflash ( rootDir + "Multimedia/GF Pic Menu.swf?imgSrc=" + img + "&tint=" + tint + "&headline=" + head + 
				  "&mainURL=" + url + "&item1text=" + i1 + "&item1URL=" + u1 + "&item2text=" + i2 + 
				  "&item2URL=" + u2 + "&item3text=" + i3 + "&item3URL=" + u3,
				  140, 110 ) ;
}

function gfembednews ( img, tint, headline, detail, urlLink, rootDir )
{
	gfembedpaddedflash ( rootDir + "Multimedia/GF News.swf?imgSrc=" + img + "&tint=" + tint + 
		"&headline=" + headline + "&detail=" + detail + "&urlLink=" + urlLink, 
		140, 140 ) ;
}


function gfembednewsnopad ( img, tint, headline, detail, urlLink, rootDir )
{
	gfembedflash ( rootDir + "Multimedia/GF News.swf?imgSrc=" + img + "&tint=" + tint + 
		"&headline=" + headline + "&detail=" + detail + "&urlLink=" + urlLink, 
		140, 140 ) ;
}

function gfembedrss ( rssURL, tint, rootDir, img )
{
	gfembedpaddedflash ( rootDir + "Multimedia/GF News XML.swf?rssURL=" + rssURL + 
		"&rootDirectory=" + rootDir + "&tint=" + tint + "&imgSrc=" + img, 140, 140 ) ;
}

function GFEmbedRSS ( rssURL, tint, backCol, img )
{
	gfembedpaddedflash ( "http://www.PimpUpYourSite.com/Multimedia/GF News XML.swf?rssURL=" + rssURL + 
		"&rootDirectory=http://www.GeckoFoot.com/&backCol=" + backCol + "&tint=" + tint +
		"&imgSrc=" + img, 140, 140 ) ;
}

function gfembedrssnopad ( rssURL, tint, rootDir, img )
{
	gfembedflash ( rootDir + "Multimedia/GF News XML.swf?rssURL=" + rssURL + 
		"&rootDirectory=" + rootDir + "&tint=" + tint + "&imgSrc=" + img, 140, 140 ) ;
}

function gfembedsidemenu ( rootDir )
{	
	document.write ( "<img src='" + rootDir + "Images/Menu Top.jpg' alt='' name='MenuTop' width='140' height='140' " +
					  "border='0' align='top' usemap='#m_Menu20Top' id='MenuTop' />    " +
				"<map name='m_Menu20Top' id='m_Menu20Top'>       " +
					"<area shape='circle' coords='14,85,14' href='javascript:;' " +
				  		"alt='Switch to HTML' />" +
					"<area shape='circle' coords='15,61,14' " +
						"href='javascript:if (history.length &gt; 0){history.back()};' alt='Back' />" +
					"<area shape='circle' coords='14,35,14' href='" + rootDir + "index.html' alt='Home' />     </map>" ) ;

	gfembedmenu ( rootDir + "Images/Foot 2.jpg", "0x550000",
				  "Home",               rootDir + "index.html",
				  "Login to Services",  "http://services.GeckoFoot.com",
				  "PimpUpYourSite.com", "http://www.PimpUpYourSite.com",
				  "Site Map",           rootDir + "SiteMap.html", rootDir ) ;
	document.write ( "<img src=\"" + rootDir + "Images/Menu Middle.jpg\" width=\"140\" height=\"15\" />" ) ;

	gfembedmenu ( rootDir + "Images/Variety.jpg",     "0x005500",
				  "Services and Solutions", "#",
				  "Web Solutions", 			rootDir + "WebSolutions.html",
				  "Software Solutions",     rootDir + "SoftwareSolutions.html",
				  "Media Solutions", 	rootDir + "MediaSolutions.html", rootDir ) ;
	document.write ( "<img src=\"" + rootDir + "Images/Menu Middle.jpg\" width=\"140\" height=\"15\" />" ) ;

	gfembedmenu ( rootDir + "Images/JimbAndMatinee.jpg", 	"0x550000", 
				  "About Us", 				    rootDir + "AboutUs.html",
				  "News", 	    	            rootDir + "News",
				  "Company Profile", 	 	    rootDir + "CompanyProfile.html",
				  "Contact Us", 			    rootDir + "ContactUs.html", rootDir ) ;

	gfembedflash ( rootDir + "Multimedia/GF Menu Bottom.swf", 140, 70 ) ;
    document.write ( "<img name='MenuBottom' src='" + rootDir + "Images/Menu%20Bottom.jpg' " +
						"width='140' height='126' border='0' id='MenuBottom' " +
						"usemap='#m_Menu20Bottom' alt='' /> " +
					"<map name='m_Menu20Bottom' id='m_Menu20Bottom'> " +
						"<area shape='circle' coords='15,17,14' " +
							"href='mailto:james@geckofoot.com' alt='E-mail Us' /> " +
					"<area shape='circle' coords='15,46,14' href='" + rootDir + "Help.html' " + 
					"alt='Website Help' /> " +
					"<area shape='circle' coords='15,75,14' href='" + rootDir + "Copyright.html' " +
					"alt='&copy; 2008 GeckoFoot Limited' /> </map>" ) ;	
}

function gfembedcurrentnews ( rootDir )
{
    gfembednews ( rootDir + "Images/Scan 1 Tiny.JPG", "0x555500", 
				  "BarStock Ready...",
				  //"GeckoFoot BarStock", 
				  "Our Bar Stocktaking system is released for trials with key customers/distributors.",
				  rootDir + "News/BarStock.html", rootDir ) ;
    /*gfembednews ( rootDir + "Images/Max.jpg", "0x005555", 
				  "Multimedia Manex", 
				  "Manex brings Photographic, Film and Media talent to the GeckoFoot offering.",
				  rootDir + "News/MatineeClub.html", rootDir ) ;*/
    gfembednews ( "http://www.PimpUpYourSite.com/Images/Pimp140.jpg", "0x550033", 
				  "PimpUpYourSite.com", 
				  "Use GeckoFoot's controls on your site for free - visit our new site 'PimpUpYourSite.com'",
				  "http://www.PimpUpYourSite.com/", rootDir ) ;
	gfembednews ( rootDir + "Images/Emma.jpg", "0x550000", 
				  "Modernising Matinee", //&eacute;
				  "GeckoFoot win contract to develop new website for rebranded retro pop group 'Matinee Club'.",//&eacute;
				  rootDir + "News/MatineeClub.html", rootDir ) ;
    gfembednews ( "http://www.LymeHarbour.co.uk/Images/LymeHarb140.jpg", "0x000055", 
				  "LymeHarbour Launch", 
				  "We announce the launch of a new website for the users of Lyme Regis Harbour.",
				  rootDir + "News/LymeHarbour.html", rootDir ) ;
}

function gfembedmenuabove ( rootDir )
{
  	gfembedtopmenu ( rootDir + "Images/Foot 2.jpg", "0x440000",
				  "Home",               rootDir + "index.html",
				  "Login to Services",  "http://services.GeckoFoot.com",
				  "PimpUpYourSite.com", "http://www.PimpUpYourSite.com",
				  "Site Map",           rootDir + "SiteMap.html" ) ;
	document.write ( "<img src='Images/Menu Top Sep.jpg' width='5' height='110' />" ) ;
	gfembedtopmenu ( "Images/Variety.jpg",     "0x000044",
				  "Services and Solutions", rootDir + "SoftwareSolutions.html",
				  "Web Solutions", 			rootDir + "WebSolutions.html",
				  "Software Solutions",     rootDir + "SoftwareSolutions.html",
				  "Media Solutions",        rootDir + "SoftwareSolutions.html" ) ;
	document.write ( "<img src='Images/Menu Top Sep.jpg' width='5' height='110' />" ) ;
	gfembedtopmenu ( "Images/JimbAndMatinee.jpg", 	"0x004400", 
				  "About Us", 				    rootDir + "AboutUs.html",
				  "News", 	    	            rootDir + "News",
				  "Company Profile", 	 	    rootDir + "CompanyProfile.html",
				  "Contact Us", 			    rootDir + "ContactUs.html" ) ;
}