<!-- begin hiding from non-Javascript enabled browsers
// Redirect to search result
function GoToSearchResults(cboCategory)
{
	var index = cboCategory.selectedIndex;
	
	if (index > 0)
	{
		var category = cboCategory[index].value;
		document.location.href = '../catalogue/SearchResults.aspx?category=' + category;
	}
}

function IsFlash()
{
	var isFlash = true ;
	
	if (navigator.mimeTypes) {
		if (navigator.mimeTypes.length > 0) {
			isFlash = false;
			for (i = 0 ; i < navigator.plugins.length ; i++ ) {
				if (navigator.plugins[i].name.indexOf('Shockwave Flash') >= 0) {
					if (navigator.plugins[i].description.indexOf('5.') >= 0) isFlash = true ;
					if (navigator.plugins[i].description.indexOf('6.') >= 0) isFlash = true ;
					if (navigator.plugins[i].description.indexOf('7.') >= 0) isFlash = true ;
				}
			}
		}
	}
//	if (!document.images) isFlash = false ;
	//return isFlash;
	return false;
}

function MM_checkPlugin(plgIn, autoGo) { //v4.0
  var isFlash = true ;
  var ok=false; document.MM_returnValue = false;
  with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
    ok=(plugins && plugins[plgIn]);
  } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
    if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null){
		 ok=window.MM_flash;
		 isFlash = true;
    }
    else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) {
		ok=window.MM_dir;
		isFlash = true;
	}
    else ok=autoGo; }
  if (!ok)   {

	isFlash= false;
  }
  
return isFlash;
//return false;


}




function WriteFlashSubCat(src,x_width,y_height, siteId)
{
	if ( MM_checkPlugin('Shockwave Flash',true)	&& siteId == 100)
	{		

//		document.write("<OBJECT CLASSID=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\' CODEBASE=\'http://active.macromedia.com/flash/cabs/swflash.cab#version=3,0,0,11\' WIDTH=\'" + x_width + "\' HEIGHT=\'" + y_height + "\'>");
		document.write("<OBJECT CLASSID=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\' CODEBASE=\'https://active.macromedia.com/flash/cabs/swflash.cab#version=3,0,0,11\' WIDTH=\'" + x_width + "\' HEIGHT=\'" + y_height + "\'>");
		document.write("<PARAM NAME=\'Movie\' VALUE=\'" + src + ".swf\'>");
		document.write("<PARAM NAME=\'quality\' VALUE=\'high\'>");
		document.write("<PARAM NAME=\'Loop\' VALUE=\'true\'>");
		document.write("<PARAM NAME=\'play\' VALUE=\'true\'>");

		//If this browser understands the mimeTypes property and recognizes the MIME Type //"application/x-shockwave-flash"...
		if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]){
			//...write out the following <EMBED> tag into the document.
			document.write("<EMBED SRC=\'" + src + ".swf\' LOOP=\'true\' QUALITY=\'high\' WIDTH=\'" + x_width + "\' HEIGHT=\'" + y_height + "\'>");
		}

		//Otherwise,...
		else {
					document.write("<p><IMG SRC=\'" + src + ".gif\' WIDTH=\'" + x_width + "\' HEIGHT=\'" + y_height + "\' BORDER=\'0\' usemap=\'#map\'>\
		<map name='map'><area shape='rect' coords='4,6,104,100' href='../catalogue/SearchResults.aspx?category=1008'>\
				<area shape='rect' coords='113,5,220,105' href='../catalogue/SearchResults.aspx?category=1007'>\
				<area shape='rect' coords='231,6,327,105' href='../catalogue/SearchResults.aspx?category=1005'>\
				<area shape='rect' coords='8,118,100,218' href='../catalogue/SearchResults.aspx?category=1009'>\
				<area shape='rect' coords='115,117,222,212' href='../catalogue/SearchResults.aspx?category=1006'>\
				<area shape='rect' coords='231,120,331,214' href='../catalogue/SearchResults.aspx?category=1011'>");
				if(siteId == 100) { 
						document.write("<area shape='rect' coords='6,234,106,331' href='../staticpages/Static.aspx?pageid=travel'>\
				</map></p>");
				}
				else {
					document.write("<area shape='rect' coords='6,234,106,331' href='../staticpages/Static.aspx?pageid=travel3'>\
					</map></p>");
				}	
				document.write("<area shape='rect' coords='116,236,219,328' href='../catalogue/SearchResults.aspx?category=1012'>\
								<area shape='rect' coords='234,238,331,330' href='../catalogue/SearchResults.aspx?category=1013'>");
		}
		document.write("</OBJECT>");
	}
	else
	{
		//...write out the following <IMG> tag into the document. The image need
		//not be the same size as the Flash Player movie, but it may help you lay out the
		//page if you can predict the size of the object reliably.
		//document.write("<IMG SRC=\'" + src + ".gif\' WIDTH=\'" + x_width + "\' HEIGHT=\'" + y_height + "\'>");	
		
		document.write("<p><IMG SRC=\'" + src + ".gif\' WIDTH=\'" + x_width + "\' HEIGHT=\'" + y_height + "\' BORDER=\'0\' usemap=\'#map\'>\
		<map name='map'><area shape='rect' coords='4,6,104,100' href='../catalogue/SearchResults.aspx?category=1008'>\
				<area shape='rect' coords='113,5,220,105' href='../catalogue/SearchResults.aspx?category=1007'>\
				<area shape='rect' coords='231,6,327,105' href='../catalogue/SearchResults.aspx?category=1005'>\
				<area shape='rect' coords='8,118,100,218' href='../catalogue/SearchResults.aspx?category=1009'>\
				<area shape='rect' coords='115,117,222,212' href='../catalogue/SearchResults.aspx?category=1006'>\
				<area shape='rect' coords='231,120,331,214' href='../catalogue/SearchResults.aspx?category=1011'>");
				if(siteId == 100) { 
						document.write("<area shape='rect' coords='6,234,106,331' href='../staticpages/Static.aspx?pageid=travel'>");
				}
				else {
					document.write("<area shape='rect' coords='6,234,106,331' href='../staticpages/Static.aspx?pageid=travel3'>");
				}	
				document.write("<area shape='rect' coords='116,236,219,328' href='../catalogue/SearchResults.aspx?category=1012'>\
								<area shape='rect' coords='234,238,331,330' href='../catalogue/SearchResults.aspx?category=1013'></map></p>");
	}
	
}		

function WriteFlash(src,x_width,y_height)
{
	if ( MM_checkPlugin('Shockwave Flash',true)	)
	{		

//		document.write("<OBJECT CLASSID=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\' CODEBASE=\'http://active.macromedia.com/flash/cabs/swflash.cab#version=3,0,0,11\' WIDTH=\'" + x_width + "\' HEIGHT=\'" + y_height + "\'>");
		document.write("<OBJECT CLASSID=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\' CODEBASE=\'https://active.macromedia.com/flash/cabs/swflash.cab#version=3,0,0,11\' WIDTH=\'" + x_width + "\' HEIGHT=\'" + y_height + "\'>");
		document.write("<PARAM NAME=\'Movie\' VALUE=\'" + src + ".swf\'>");
		document.write("<PARAM NAME=\'quality\' VALUE=\'high\'>");
		document.write("<PARAM NAME=\'Loop\' VALUE=\'true\'>");
		document.write("<PARAM NAME=\'play\' VALUE=\'true\'>");

		//If this browser understands the mimeTypes property and recognizes the MIME Type //"application/x-shockwave-flash"...
		if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]){
			//...write out the following <EMBED> tag into the document.
			document.write("<EMBED SRC=\'" + src + ".swf\' LOOP=\'true\' QUALITY=\'high\' WIDTH=\'" + x_width + "\' HEIGHT=\'" + y_height + "\'>");
		}

		//Otherwise,...
		else {
					document.write("<p><IMG SRC=\'" + src + ".gif\' WIDTH=\'" + x_width + "\' HEIGHT=\'" + y_height + "\' BORDER=\'0\' usemap=\'#map\'>\
		<map name='map'><area shape='rect' coords='4,6,104,100' href='../catalogue/SearchResults.aspx?category=1007'>\
				<area shape='rect' coords='113,5,220,105' href='../catalogue/SearchResults.aspx?category=1006'>\
				<area shape='rect' coords='231,6,327,105' href='../catalogue/SearchResults.aspx?category=1008'>\
				<area shape='rect' coords='8,118,100,218' href='../catalogue/SearchResults.aspx?category=1009'>\
				<area shape='rect' coords='115,117,222,212' href='../catalogue/SearchResults.aspx?category=1011'>\
				<area shape='rect' coords='231,120,331,214' href='../catalogue/SearchResults.aspx?category=1013'>\
				<area shape='rect' coords='6,234,106,331' href='../catalogue/SearchResults.aspx?category=1012'>\
				<area shape='rect' coords='116,236,219,328' href='../catalogue/SearchResults.aspx?category=1005'>\
				<area shape='rect' coords='234,238,331,330' href='../staticpages/Static.aspx?pageid=travel'>\
		</map></p>");
			
		}
		document.write("</OBJECT>");
	}
	else
	{
		//...write out the following <IMG> tag into the document. The image need
		//not be the same size as the Flash Player movie, but it may help you lay out the
		//page if you can predict the size of the object reliably.
		//document.write("<IMG SRC=\'" + src + ".jpg\' WIDTH=\'" + x_width + "\' HEIGHT=\'" + y_height + "\'>");	
		document.write("<p><IMG SRC=\'" + src + ".gif\' WIDTH=\'" + x_width + "\' HEIGHT=\'" + y_height + "\' BORDER=\'0\' usemap=\'#map\'>\
		<map name='map'><area shape='rect' coords='4,6,104,100' href='../catalogue/SearchResults.aspx?category=1007'>\
				<area shape='rect' coords='113,5,220,105' href='../catalogue/SearchResults.aspx?category=1006'>\
				<area shape='rect' coords='231,6,327,105' href='../catalogue/SearchResults.aspx?category=1008'>\
				<area shape='rect' coords='8,118,100,218' href='../catalogue/SearchResults.aspx?category=1009'>\
				<area shape='rect' coords='115,117,222,212' href='../catalogue/SearchResults.aspx?category=1011'>\
				<area shape='rect' coords='231,120,331,214' href='../catalogue/SearchResults.aspx?category=1013'>\
				<area shape='rect' coords='6,234,106,331' href='../catalogue/SearchResults.aspx?category=1012'>\
				<area shape='rect' coords='116,236,219,328' href='../catalogue/SearchResults.aspx?category=1005'>\
				<area shape='rect' coords='234,238,331,330' href='../staticpages/Static.aspx?pageid=travel'>\
		</map></p>");
	}
	
}
	
function popupContest(){
test = '<%=Context.Items["LangID"]%>';
/*
	URL = "../clients/bncovation/staticpages/contest/<%=Context.Items['LangID']%>/contest.htm";
	eval("page" + " = window.open(URL, '" + "caca" + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=638,height=425,left = 0,top = 0');");
*/
}
	
// STOP HIDING FROM OTHER BROWSERS -->
