//-------------------------------------------------------------------------------------
// 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 GFGetFlashString ( src, width, height, className )
{
	flashStr = new String ( "<object  classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"" ) ;
	flashStr +=	width + "\" height=\"" + height + "\" class=\"" + className + "\"><param name=\"movie\" value=\"" ;
	flashStr += src ;
	flashStr += "\"/><param name=\"allowScriptAccess\" value=\"always\"><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 + "\" allowScriptAccess=\"always\"></embed></object>" ;
	return ( flashStr ) ;
}

function gfembedflash ( src, width, height )
{
	document.write ( GFGetFlashString ( src, width, height, "leftObject" ) ) ;
}

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 += "\"/>\n <param name=\"allowScriptAccess\" value=\"always\">\n <param name=\"quality\" value=\"high\" />\n   <embed src=\"" ;
	flashStr += src ;
	flashStr += "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + width + "\" height=\"" + height + "\" allowScriptAccess=\"always\"></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 += "\"/>\n <param name=\"allowScriptAccess\" value=\"always\">\n <param name=\"quality\" value=\"high\" />\n   <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 ) ;
}

/*
Copyright (c) Copyright (c) 2007, Carl S. Yestrau All rights reserved.
Code licensed under the BSD License: http://www.featureblend.com/license.txt
Version: 1.0.3
*/
var FlashDetect = new function(){
	var self = this;
	self.installed = false;
	self.raw = "";
	self.major = -1;
	self.minor = -1;
	self.revision = -1;
	self.revisionStr = "";
	var activeXDetectRules = [
		{
			"name":"ShockwaveFlash.ShockwaveFlash.7",
			"version":function(obj){
				return getActiveXVersion(obj);
			}
		},
		{
			"name":"ShockwaveFlash.ShockwaveFlash.6",
			"version":function(obj){
				var version = "6,0,21";
				try{
					obj.AllowScriptAccess = "always";
					version = getActiveXVersion(obj);
				}catch(err){}
				return version;
			}
		},
		{
			"name":"ShockwaveFlash.ShockwaveFlash",
			"version":function(obj){
				return getActiveXVersion(obj);
			}
		}
	];
	var getActiveXVersion = function(activeXObj){
		var version = -1;
		try{
			version = activeXObj.GetVariable("$version");
		}catch(err){}
		return version;
	};
	var getActiveXObject = function(name){
		var obj = -1;
		try{
			obj = new ActiveXObject(name);
		}catch(err){}
		return obj;
	};
	var parseActiveXVersion = function(str){
		var versionArray = str.split(",");//replace with regex
		return {
			"raw":str,
			"major":parseInt(versionArray[0].split(" ")[1], 10),
			"minor":parseInt(versionArray[1], 10),
			"revision":parseInt(versionArray[2], 10),
			"revisionStr":versionArray[2]
		};
	};
	var parseStandardVersion = function(str){
		var descParts = str.split(/ +/);
		var majorMinor = descParts[2].split(/\./);
		var revisionStr = descParts[3];
		return {
			"raw":str,
			"major":parseInt(majorMinor[0], 10),
			"minor":parseInt(majorMinor[1], 10), 
			"revisionStr":revisionStr,
			"revision":parseRevisionStrToInt(revisionStr)
		};
	};
	var parseRevisionStrToInt = function(str){
		return parseInt(str.replace(/[a-zA-Z]/g, ""), 10) || self.revision;
	};
	self.majorAtLeast = function(version){
		return self.major >= version;
	};
	self.FlashDetect = function(){
		if(navigator.plugins && navigator.plugins.length>0){
			var type = 'application/x-shockwave-flash';
			var mimeTypes = navigator.mimeTypes;
			if(mimeTypes && mimeTypes[type] && mimeTypes[type].enabledPlugin && mimeTypes[type].enabledPlugin.description){
				var version = mimeTypes[type].enabledPlugin.description;
				var versionObj = parseStandardVersion(version);
				self.raw = versionObj.raw;
				self.major = versionObj.major;
				self.minor = versionObj.minor; 
				self.revisionStr = versionObj.revisionStr;
				self.revision = versionObj.revision;
				self.installed = true;
			}
		}else if(navigator.appVersion.indexOf("Mac")==-1 && window.execScript){
			var version = -1;
			for(var i=0; i<activeXDetectRules.length && version==-1; i++){
				var obj = getActiveXObject(activeXDetectRules[i].name);
				if(typeof obj == "object"){
					self.installed = true;
					version = activeXDetectRules[i].version(obj);
					if(version!=-1){
						var versionObj = parseActiveXVersion(version);
						self.raw = versionObj.raw;
						self.major = versionObj.major;
						self.minor = versionObj.minor; 
						self.revision = versionObj.revision;
						self.revisionStr = versionObj.revisionStr;
					}
				}
			}
		}
	}();
};
FlashDetect.release = "1.0.3";

function gfembedmenu ( img, tint, head, url, i1, u1, i2, u2, i3, u3, rootDir )
{
	if ( !FlashDetect.installed )
	{
		html = "<table width=140 height=110 background='" + img + "'><tr><td valign='bottom'>";
		html = html + "<table width='100%' class='menuTable' background='" + rootDir + "Images/MenuShade.png'>";
		html = html + "<tr><td><a href='" + url + "'>" + head + "</a></td></tr>";
		html = html + "<tr><td><a href='" + u1 + "'>"  + i1 + "</a></td></tr>";
		html = html + "<tr><td><a href='" + u2 + "'>"  + i2 + "</a></td></tr>";
		html = html + "<tr><td><a href='" + u3 + "'>"  + i3 + "</a></td></tr>";
		html = html + "</table></td></tr></table>";
		document.write ( html );
	}
	else
	{
		gfembedflash ( "http://www.geckofoot.com/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 GFInsertMenuBlock ( img, tint, head, url, i1, u1, i2, u2, i3, u3 )
{
	if ( !FlashDetect.installed )
	{
		html = "<table width=140 height=110 background='" + img + "'><tr><td valign='bottom'>";
		html = html + "<table width='100%' class='menuTable' background='http://www.bar-stock.com/Images/MenuShade.png'>";
		html = html + "<tr><td><a href='" + url + "'>" + head + "</a></td></tr>";
		html = html + "<tr><td><a href='" + u1 + "'>"  + i1 + "</a></td></tr>";
		html = html + "<tr><td><a href='" + u2 + "'>"  + i2 + "</a></td></tr>";
		html = html + "<tr><td><a href='" + u3 + "'>"  + i3 + "</a></td></tr>";
		html = html + "</table></td></tr></table>";
		document.write ( html );
	}
	else
	{
		gfembedflash ( "http://www.geckofoot.com/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 gfembedsearch ()
{
	if ( FlashDetect.installed )
	{
		gfembedflash ( "http://www.geckofoot.com/Multimedia/GF Menu Bottom.swf", 140, 70 ) ;
	}
	else
	{
		document.write ( "<img src='http://www.geckofoot.com/Images/Menu Empty Search.jpg'/><br/>" );
	}
}

function gfembednews ( img, tint, headline, detail, urlLink, rootDir )
{
	if ( !FlashDetect.installed )
	{
		html = "<table width=140 height=140 background='" + img + "'><tr><td valign='bottom'>";
		html = html + "<table width='100%' class='menuTable' background='" + rootDir + "Images/MenuShade.png'>";
		html = html + "<tr><td><strong><a href='" + urlLink + "'>" + headline + "</a></strong></td></tr>";
		html = html + "<tr><td><a href='" + urlLink + "'>"  + detail + "</a></td></tr>";
		html = html + "</table></td></tr></table>";
		document.write ( html );
	}
	else
	{
		gfembedflash ( "http://www.geckofoot.com/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 ( "http://www.pimpupyoursite.com/Multimedia/GF News.swf?imgSrc=" + img + "&backCol=0xFFFFFF&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 ( "http://www.geckofoot.com/Multimedia/GF News XML.swf?rssURL=" + rssURL + 
		"&rootDirectory=" + rootDir + "&tint=" + tint + "&imgSrc=" + img, 140, 140 ) ;
}

function gfembedsidemenu ( rootDir )
{	
	gfembedmenu ( rootDir +  "Images/140_BarStock_onblue.jpg", "0x3333CC",
				  "BarStock Home",      rootDir + "index.shtml",
				  "About BarStock", 		rootDir + "info.shtml",
				  "About Stocktaking", 		rootDir + "stocktaking",
				  "About our Customers",  	rootDir + "clients",
				 // "Visit GeckoFoot", 	"http://www.GeckoFoot.com", 
				 rootDir ) ;
	document.write ( "<img src=\"" + rootDir + "Images/Menu Middle.jpg\" width=\"140\" height=\"15\"/>" ) ;

	gfembedmenu ( rootDir + "Images/140_BarStock_Win_onblue.jpg",     "0x33AAcc",
				  "Get Latest Software",             rootDir + "install",
				  "Register for Trial",             rootDir + "register",
				  "Download Latest", 		rootDir + "install",
				  "Buy or Upgrade",     	        rootDir + "shop", rootDir ) ;
	document.write ( "<img src=\"" + rootDir + "Images/Menu Middle.jpg\" width=\"140\" height=\"15\" />" ) ;

	gfembedmenu ( rootDir + "Images/140_BarStock_Help_onblue.jpg", 	"0x9933cc", 
				  "Help and Support", 				rootDir + "support",
				  				  "Forum", 	    	"http://www.bar-stock.com/forum",
				  "Online Help",                  "http://www.bar-stock.com/help",
				  "Contact Us", 			    "http://www.bar-stock.com/contact", rootDir ) ;

	gfembedsearch ();
    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='" + rootDir + "contact' alt='Contact Us' /> " +
					"<area shape='circle' coords='15,46,14' href='http://www.bar-stock.com/support' " + 
					"alt='Suuport Centre' /> " +
					"<area shape='circle' coords='15,75,14' href='http://www.geckofoot.com/Copyright.shtml' " +
					"alt='&copy; 2009 GeckoFoot Limited' /> </map>" ) ;	
}

function GFInsertMenu ()
{	
	GFInsertMenuBlock ( "http://www.bar-stock.com/Images/140_BarStock_onblue.jpg", "0x3333CC",
				  "BarStock Home",      "http://www.bar-stock.com/index.shtml",
				  "About BarStock", 		"http://www.bar-stock.com/info.shtml",
				  "About Stocktaking", 		"http://www.bar-stock.com/stocktaking",
				  "About our Customers",  	"http://www.bar-stock.com/clients" ) ;
	document.write ( "<img src=\"http://www.bar-stock.com/Images/Menu Middle.jpg\" width=\"140\" height=\"15\"/>" ) ;

	GFInsertMenuBlock ( "http://www.bar-stock.com/Images/140_BarStock_Win_onblue.jpg",     "0x33AAcc",
				  "Latest News",             "http://www.bar-stock.com/news",
				  "Testimonials",              "http://www.bar-stock.com/clients/whattheysay",
				  "Get Latest Software", 		"http://www.bar-stock.com/install",
				  "BarStock SHOP",     	        "http://www.bar-stock.com/shop" ) ;
	document.write ( "<img src=\"" + "http://www.bar-stock.com/Images/Menu Middle.jpg\" width=\"140\" height=\"15\" />" ) ;

	GFInsertMenuBlock ( "http://www.bar-stock.com/Images/140_BarStock_Help_onblue.jpg", 	"0x9933cc", 
				  "Help and Support", 				"http://www.bar-stock.com/support",
				  "Forum", 	    	"http://www.bar-stock.com/forum",
				  "Online Help",                  "http://www.bar-stock.com/help",
				  "Contact Us", 			    "http://www.bar-stock.com/contact" ) ;

	gfembedsearch ();
    document.write ( "<img name='MenuBottom' src='http://www.bar-stock.com/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='http://www.bar-stock.com/contact' alt='Contact Us' /> " +
					"<area shape='circle' coords='15,46,14' href='http://www.bar-stock.com/support' " + 
					"alt='Suuport Centre' /> " +
					"<area shape='circle' coords='15,75,14' href='http://www.geckofoot.com/Copyright.shtml' " +
					"alt='&copy; 2011 GeckoFoot Limited' /> </map>" ) ;	
}




function gfembedcurrentnews ( rootDir )
{
    gfembednews ( rootDir + "Images/Scan 1 Tiny.JPG", "0x555500", 
				  "BarStock Revolution",
				  //"GeckoFoot BarStock", 
				  "We are proud to announce GeckoFoot BarStock, a revolution in Bar Stocktaking.",
				  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", "#",
				  "Web Solutions", 			rootDir + "WebSolutions.html",
				  "Software Solutions",     rootDir + "SoftwareSolutions.html",
				  "Media Solutions", 		rootDir + "MediaSolutions.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" ) ;
}


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function contactUs ()
{
//	newWin = window.open ( 'http://barstock.GeckoFoot.com/WebserverFailure.html','','width=500,height=620,location=0,top=' + ( ( screen.availHeight - 620 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
	newWin = window.open ( 'http://services.GeckoFoot.com/Contact.aspx?client=gfadmin&title=Contact GeckoFoot Support&opt1=I need to Report a Software Issue&opt2=I have a Query about your Software or Services&opt3=I would like to Request a Change or New Report&opt4=I would like to Suggest an Enhancement&txt1=Business Name&txt2=Priority/Due Date&txt3=Subject&txtBlock=Description&redirect=http://barstock.geckofoot.com/ThankYou.html','','width=500,height=620,location=0,top=' + ( ( screen.availHeight - 620 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
}

function firmDirectory ()
{
//	newWin = window.open ( 'http://barstock.GeckoFoot.com/WebserverFailure.html','','width=500,height=620,location=0,top=' + ( ( screen.availHeight - 620 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
	newWin = window.open ( 'http://services.GeckoFoot.com/Contact.aspx?client=gfadmin&title=Contact GeckoFoot&opt1=I am interested in using a stocktaking firm that uses Bar-Stock&opt2=I am a professional stocktaker and am interested in being part of your on-line directory&opt3=I have another query&txt1=Business Name&txt2=Location&txtBlock=Comments&redirect=http://barstock.geckofoot.com/ThankYou.html','','width=500,height=620,location=0,top=' + ( ( screen.availHeight - 620 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
}


function bar09Info ()
{
//	newWin = window.open ( 'http://barstock.GeckoFoot.com/WebserverFailure.html','','width=500,height=620,location=0,top=' + ( ( screen.availHeight - 620 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
	newWin = window.open ( 'http://services.GeckoFoot.com/Contact.aspx?client=gfadmin&title=Bar 09 Request&opt1=I would like to pick up an install CD&opt2=I would like a demo of the product&opt3=I would like to look at different hardware options&opt4=I would like help attending Bar 09&txt1=Business Name&txt2=Attending Date&&txtBlock=Comments&redirect=http://barstock.geckofoot.com/ThankYou.html','','width=500,height=620,location=0,top=' + ( ( screen.availHeight - 620 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
}

function paymentQuery ()
{
//	newWin = window.open ( 'http://barstock.GeckoFoot.com/WebserverFailure.html','','width=500,height=620,location=0,top=' + ( ( screen.availHeight - 620 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
	newWin = window.open ( 'http://services.GeckoFoot.com/Contact.aspx?client=gfadmin&title=Payment Query&opt1=I would like to arrange a bank transfer to pay for my order&opt2=Please let me know when I can pay with Credit/Debit Card&opt3=I have another payment query&txt1=Business Name&txt2=Business Website&txt3=Phone Number&txt4=FAX Number (opt)&txtBlock=Comments&redirect=http://barstock.geckofoot.com/ThankYou.html','','width=500,height=620,location=0,top=' + ( ( screen.availHeight - 620 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
}

function distrubtorQuery ()
{
//	newWin = window.open ( 'http://barstock.GeckoFoot.com/WebserverFailure.html','','width=500,height=620,location=0,top=' + ( ( screen.availHeight - 620 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
	newWin = window.open ( 'http://services.GeckoFoot.com/Contact.aspx?client=gfadmin&title=Distribution Query&opt1=I would like to be contacted by a distributor&opt2=I have another Query about your Software or Services&txt1=Business Name&txt2=Telephone Number (opt)&txtBlock=Comments&redirect=http://barstock.geckofoot.com/ThankYou.html','','width=500,height=600,location=0,top=' + ( ( screen.availHeight - 600 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
}

function distrubtorRegistration ()
{
//	newWin = window.open ( 'http://barstock.GeckoFoot.com/WebserverFailure.html','','width=500,height=620,location=0,top=' + ( ( screen.availHeight - 620 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
	newWin = window.open ( 'http://services.GeckoFoot.com/Contact.aspx?client=gfadmin&title=Distribution Query&opt1=I am an existing distributor to the bar/hospitality industry&opt2=I am a distributor for other software or systems&opt3=I have another existing role in the bar/hospitality industry&opt4=I am new to the industry&txt1=Business Name&txt2=Business Website (opt)&txt3=Telephone (opt)&txtBlock=Comments&redirect=http://barstock.geckofoot.com/ThankYou.html','','width=500,height=600,location=0,top=' + ( ( screen.availHeight - 600 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
}

function liquidLevelQuery ()
{
//	newWin = window.open ( 'http://barstock.GeckoFoot.com/WebserverFailure.html','','width=500,height=620,location=0,top=' + ( ( screen.availHeight - 620 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
	newWin = window.open ( 'http://services.GeckoFoot.com/Contact.aspx?client=gfadmin&title=Liquid Level to Volume Conversion&opt1=I am interested in setting up Liquid Level to Volume conversion&opt2=I would like someone to set it up for me&opt3=I have a number of venues with similar products&opt4=I have another Query about your Software or Services&txt1=Business Name&txt2=Telephone (opt)&txtBlock=Comments&redirect=http://barstock.geckofoot.com/ThankYou.html','','width=500,height=600,location=0,top=' + ( ( screen.availHeight - 600 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
}

function subscribe ()
{
//	newWin = window.open ( 'http://barstock.GeckoFoot.com/WebserverFailure.html','','width=500,height=620,location=0,top=' + ( ( screen.availHeight - 620 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
	newWin = window.open ( 'http://services.GeckoFoot.com/Contact.aspx?client=gfadmin&title=Subscribe to Mailing List&opt1=Please keep me posted on BarStock developments&txt1=Business Name&txt2=Business Type&txt3=Telephone (opt)&txtBlock=Address (opt)&redirect=http://barstock.geckofoot.com/ThankYou.html','','width=500,height=530,location=0,top=' + ( ( screen.availHeight - 600 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
}


function summerTrainingQuery ()
{
//	newWin = window.open ( 'http://barstock.GeckoFoot.com/WebserverFailure.html','','width=500,height=620,location=0,top=' + ( ( screen.availHeight - 620 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
	newWin = window.open ( 'http://services.GeckoFoot.com/Contact.aspx?client=gfadmin&title=Stocktaking Training&opt1=I am interested in attending on Monday 20th July 2009&opt2=I am interested in attending on Monday 3rd August 2009&opt3=I am interested and could make either date&opt4=I am interested, but cannot make the date or location&opt5=I would rather you came to my venue&txt1=Business Name&txt2=Business Type&txt3=Business Type&txt4=Telephone&txtBlock=Address&redirect=http://barstock.geckofoot.com/ThankYou.html','','width=500,height=600,location=0,top=' + ( ( screen.availHeight - 600 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
}


function summerAdvTrainingQuery ()
{
//	newWin = window.open ( 'http://barstock.GeckoFoot.com/WebserverFailure.html','','width=500,height=620,location=0,top=' + ( ( screen.availHeight - 620 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
	newWin = window.open ( 'http://services.GeckoFoot.com/Contact.aspx?client=gfadmin&title=Advanced BarStock Training&opt1=I am interested in attending on Friday 15th August 2009&opt2=I am interested in attending but cannot make the date or location&txt1=Business Name&txt2=Business Type&txt3=Business Type&txt4=Telephone&txtBlock=Address&redirect=http://barstock.geckofoot.com/ThankYou.html','','width=500,height=600,location=0,top=' + ( ( screen.availHeight - 600 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
}

function barsolutions ()
{
//	newWin = window.open ( 'http://barstock.GeckoFoot.com/WebserverFailure.html','','width=500,height=620,location=0,top=' + ( ( screen.availHeight - 620 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
	newWin = window.open ( 'http://services.GeckoFoot.com/Contact.aspx?client=gfadmin&title=GeckoFoot Bar Solutions&opt1=I am interested in Barstaff Training for my venue&opt2=I am interested in Cocktail Menu Design&opt3=I am interested in Photography for my Bar&opt4=I would like a quote on a website&txt1=Business Name&txt2=Business Type&txt3=Telephone&txtBlock=Address&redirect=http://barstock.geckofoot.com/ThankYou.html','','width=500,height=580,location=0,top=' + ( ( screen.availHeight - 600 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
}

function RegisterInterest ()
{
//	newWin = window.open ( 'http://barstock.GeckoFoot.com/WebserverFailure.html','','width=500,height=620,location=0,top=' + ( ( screen.availHeight - 620 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
	newWin = window.open ( 'http://services.GeckoFoot.com/Contact.aspx?client=gfadmin&title=GeckoFoot BarStock Query&opt1=I am interested in seeing a full quote for my venue or chain&opt2=I would like to be sent more information about your product&opt3=I am interested in someone contacting me to discuss options&txt1=Business Name&txt2=Location&txt3=Telephone&redirect=http://barstock.geckofoot.com/ThankYou.html','','width=500,height=470,location=0,top=' + ( ( screen.availHeight - 600 ) / 2 ) + ',left=' + ( ( screen.availWidth - 430 ) / 2 ) );
}

//
// This is the function that will open the
// new window when the mouse is moved over the link
//var new_window;
function hover_window( html ) 
{
	new_window = open("","hoverwindow","width=300,height=200,left=10,top=10");
	
	// open new document 
	new_window.document.open();
	
	// Text of the new document
	// Replace your " with ' or \" or your document.write statements will fail
	new_window.document.write("<html><title>GeckoFoot BarStock</title>");
	new_window.document.write("<body bgcolor=\"#000000\">");
	new_window.document.write(html);
	new_window.document.write("</body></html>");
	
	// close the document
	new_window.document.close(); 
}

// This is the function that will close the
// new window when the mouse is moved off the link
function close_window() 
{
//	new_window.close();
}
