<!--

var BROWSER_IE4 = "IE4"
var BROWSER_NN4 = "NN4"
var BROWSER_IE = "IE"
var BROWSER_VER;
BROWSER_VER = checkBrowser()


//if (document.layers) { // Netscape
//    document.captureEvents(Event.MOUSEMOVE);
  //  document.onmousemove = captureMousePosition;
//} else if (document.all) { // Internet Explorer
  //  document.onmousemove = captureMousePosition;
//} else if (document.getElementById) { // Netcsape 6
    //document.onmousemove = captureMousePosition;
//}
// Global variables
xMousePos = 0; // Horizontal position of the mouse on the screen
yMousePos = 0; // Vertical position of the mouse on the screen
xMousePosMax = 0; // Width of the page
yMousePosMax = 0; // Height of the page


function checkBrowser() {
var BROWSER_VER;
  if (document.all && !document.getElementById) 
	BROWSER_VER = BROWSER_IE4
  else if (document.layers) 
	BROWSER_VER = BROWSER_NN4
  else if (document.getElementById) 
	BROWSER_VER = BROWSER_IE
  else 
	BROWSER_VER = BROWSER_IE
   return(BROWSER_VER)
}

function changeBackground(objectToChange,colorToUse){
	if (document.all){
		prefix = "document.all";}
	else if (document.layers){
		prefix = "document.layers";}
	holder = eval(prefix)
	if (prefix == "document.all"){
		holder[objectToChange].style.backgroundColor = colorToUse;}
	else if (prefix == "document.layers"){
		holder[objectToChange].backgroundColor = colorToUse;}
}



function showBubbleTable(tableToShow,position){

holder = eval("document.all")
holder[tableToShow].style.top = getTop(position)+5;
holder[tableToShow].style.left = getLeft(position);
if (holder[tableToShow].style.visibility == 'visible') {
holder[tableToShow].style.visibility = 'hidden';
}
else{
holder[tableToShow].style.visibility = 'visible';
}

}

function OpenWindow(PageName,PageFrame,PageProperties) { //v2.0
  PageProperties= PageProperties +',scrollbars=1,resizable=1'
  MyWindow = window.open (PageName,PageFrame,PageProperties)
}

function download_document(newwindow)
{
	oselect = getMyHTMLElement("download")
	if (oselect != null)
	{
		if(oselect.selectedIndex>=0)
			sfilename = oselect.options[oselect.selectedIndex].value
		if (sfilename!='')
		{
			sfilename = m_sstore_url + 'downloads/' + sfilename
			if (newwindow==1)
				open_win(sfilename,'download','scrollbars=yes,width=700,height=500')	
			else
				window.location = sfilename
		}
	}
}




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_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_findObj(n, d) { //v3.0
  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); 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 swapImage(imageName,imageFile)
{
	var swapImageName = eval('document.' + imageName);
	swapImageName.src = imageFile;
}





function showTableMousePosition(tableToShow,position){
	if (document.all){
		prefix = "document.all";}
	else if (document.layers){
		prefix = "document.layers";}
	holder = eval(prefix)

	if (prefix == "document.all"){
		holder[tableToShow].style.top = yMousePos;
		holder[tableToShow].style.left = xMousePos; 
	}
	else if (prefix == "document.layers"){
		holder[tableToShow].top = yMousePos;
		holder[tableToShow].left = xMousePos;
	}
	showTable(tableToShow)
}

function printPage(){
window.print()
}

function addToFavorite(urlToAdd,titleToAdd){
window.external.AddFavorite(urlToAdd,titleToAdd)
}


var folderX = ''
			function expandit2(curobj,showReq,forceShow){
				folderX=document.all[curobj.sourceIndex+showReq].style
					if (folderX.display=="none")
						folderX.display=""
					else
						folderX.display="none"
				if (forceShow == 1){folderX.display=""}
			}

function swapPlusFlags2(curobj,path){
			//curobj=document.all[curobj.sourceIndex+1]
			alert('path')
			if (curobj.src == path + "images/plus.gif"){
			curobj.src = path + "images/minus.gif";
			}
			else{
			curobj.src = path +  "images/plus.gif";
			}
			}

function ShowMessages(visibility) {

if (visibility == 'show') {
window.document.all.messageEditText.style.visibility='visible'
}else
{
window.document.all.messageEditText.style.visibility='hidden'
}
}

function Showfav(visibility) {

if (visibility == 'show') {
window.document.all.fav_layer.style.visibility='visible'
}else
{
window.document.all.fav_layer.style.visibility='hidden'
}
}


function setMenuScroll(td,table,maxSize){
	if (document.all[table].style.visibility == 'hidden')
		{
		document.all[table].style.height=1
		openScrollBoxMenu(table)
		setMenu(td,table)
		}
	}

function hideMenuScroll(table){
	hideMenu()
}

function openScrollBoxMenu(currentOptionBox)
	{
	if (parseInt(document.all[currentOptionBox].style.height) < 201)
		{
		document.all[currentOptionBox].style.height = (parseInt(document.all[currentOptionBox].style.height)+ 2) + 'px'
		timeO = setTimeout("openScrollBoxMenu('"+currentOptionBox+"')",1)
		}
	else{
	clearTimeout(timeO)
	}
	}


function open_win(url,wname,attr)
{
	if (wname=='undefined') wname = "win"
	if (attr=='undefined') attr = "toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=0,resizable=0,width=645,height=540"
	var new_win = window.open(url, wname, attr);
	new_win.focus();
}  
function redirectToValue(curObj)
{
	pathRedir = curObj.options[curObj.selectedIndex].value;
	if (pathRedir != "") {document.location.href = pathRedir}
}



function addprod_to_basket(sformname)
{
	var oform = document.forms[sformname]
	oform.submit()
}


function addprod_to_wishlist(sformname,surl)
{
	var oform = document.forms[sformname]
	oform.action = surl;
	oform.submit()
}


function limittext(field, maxlimit) 
{
	if (field.value.length > maxlimit) // if too long...trim it!
		field.value = field.value.substring(0, maxlimit);

}


function captureMousePosition(e) {
    if (document.layers) {
        xMousePos = e.pageX;
        yMousePos = e.pageY;
        xMousePosMax = window.innerWidth+window.pageXOffset;
        yMousePosMax = window.innerHeight+window.pageYOffset;
    } else if (document.all) {
        xMousePos = window.event.x+document.body.scrollLeft;
        yMousePos = window.event.y+document.body.scrollTop;
        xMousePosMax = document.body.clientWidth+document.body.scrollLeft;
        yMousePosMax = document.body.clientHeight+document.body.scrollTop;
    } else if (document.getElementById) {
        xMousePos = e.pageX;
        yMousePos = e.pageY;
        xMousePosMax = window.innerWidth+window.pageXOffset;
        yMousePosMax = window.innerHeight+window.pageYOffset;
    }
//window.status = "xMousePos=" + xMousePos + ", yMousePos=" + yMousePos + ", xMousePosMax=" + xMousePosMax + ", yMousePosMax=" + yMousePosMax;

}

function popUp(url) {
	sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450');
	self.name = "mainWin"; 
}
			
function popUp2(url,w,h) {
	sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width='+w+',height='+h);
	self.name = "mainWin"; 
}


function CurrencyFormatted(amount)
{
	var i = parseFloat(amount);
	if(isNaN(i)) { i = 0.00; }
	var minus = '';
	if(i < 0) { minus = '-'; }
	i = Math.abs(i);
	i = parseInt((i + .005) * 100);
	i = i / 100;
	s = new String(i);
	if(s.indexOf('.') < 0) { s += '.00'; }
	if(s.indexOf('.') == (s.length - 2)) { s += '0'; }
	s = minus + s;
	return s;
}

function CommaFormatted(amount)
{
	var delimiter = ",";
	var a = amount.split('.',2)
	var d = a[1];
	var i = parseInt(a[0]);
	if(isNaN(i)) { return ''; }
	var minus = '';
	if(i < 0) { minus = '-'; }
	i = Math.abs(i);
	var n = new String(i);
	var a = [];
	while(n.length > 3)
	{
		var nn = n.substr(n.length-3);
		a.unshift(nn);
		n = n.substr(0,n.length-3);
	}
	if(n.length > 0) { a.unshift(n); }
	n = a.join(delimiter);
	if(d.length < 1) { amount = n; }
	else { amount = n + '.' + d; }
	amount = minus + amount;
	return amount;
}

function LTrim(str)
{
   var whitespace = new String(" \t\n\r");

   var s = new String(str);

   if (whitespace.indexOf(s.charAt(0)) != -1) {
      var j=0, i = s.length;
      while (j < i && whitespace.indexOf(s.charAt(j)) != -1)
         j++;
      s = s.substring(j, i);
   }
   return s;
}

function RTrim(str)
{
   var whitespace = new String(" \t\n\r");

   var s = new String(str);

   if (whitespace.indexOf(s.charAt(s.length-1)) != -1) {

      var i = s.length - 1;       // Get length of string

      while (i >= 0 && whitespace.indexOf(s.charAt(i)) != -1)
         i--;

      s = s.substring(0, i+1);
   }

   return s;
}

function Trim(str)
{
   return RTrim(LTrim(str));
}

function getMyHTMLElement(sid)
{
	var oelement;
	if(BROWSER_VER==BROWSER_IE4)
		oelement = document.all[sid]
	else if(BROWSER_VER==BROWSER_NN4)
		oelement = document.layers[sid]
	else if(BROWSER_VER==BROWSER_IE)
		oelement = document.getElementById(sid)
	else
		oelement = document.getElementById(sid)
	return(oelement)
}

// PARASPAR: Dev's Simple Javascript Functions (Compatible with IE, NN, Gecko, Opera and practically everything I've tested it on!)

function getTop(item){
var top =0;
var mywhere;
mywhere = document.all[item];
	while (mywhere.tagName.toLowerCase() != 'body')
	{
	top += mywhere.offsetTop;
	mywhere = mywhere.offsetParent;
	}
return top;
}

function getLeft(item){
var left =0;
var mywhere;
mywhere = document.all[item];
	while (mywhere.tagName.toLowerCase() != 'body')
	{
	left += mywhere.offsetLeft;
	mywhere = mywhere.offsetParent;
	}
return left;
}

function hideTables(tableToHide,indexNo){
if (document.all){
prefix = "document.all";}
else if (document.layers){
prefix = "document.layers";}
holder = eval(prefix)

for(i=1;i<indexNo+1;i++){

	if (prefix == "document.all"){
		holder[tableToHide + i].style.visibility = 'hidden';}
	else if (prefix == "document.layers"){
		holder[tableToHide + i].visibility = 'hidden';}
}

}



function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? getLyrRef(id,document): null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}

function getLyrRef(lyr,doc) {
	if (document.layers) {
		var theLyr;
		for (var i=0; i<doc.layers.length; i++) {
	  	theLyr = doc.layers[i];
			if (theLyr.name == lyr) return theLyr;
			else if (theLyr.document.layers.length > 0) 
	    	if ((theLyr = getLyrRef(lyr,theLyr.document)) != null)
					return theLyr;
	  }
		return null;
  }
}


function showSingleLevelTable2(tableToShow,position,leftPos,topPos,leftAdj,topAdj){
if (document.layers) { // Netscape 4 +
	document.layers[tableToShow].top = topPos + topAdj;
	document.layers[tableToShow].left = leftPos + leftAdj;
} else if (document.all) { // Internet Explorer
	document.all[tableToShow].style.top = getTop(position) + topAdj;
	document.all[tableToShow].style.left = getLeft(position) + leftAdj;
} else if (document.getElementById) { // Netcsape 6 + 
	var lyr = getElemRefs(tableToShow);
	lyr.css.left = leftPos + leftAdj;
	lyr.css.top = topPos + topAdj;
	
}
showTable(tableToShow)
}

var previousMenuItem = ""

function showSingleLevelTable(tableToShow,position,leftPos,topPos,leftAdj,topAdj){
if (everythingLoaded == true){
if (tableToShow != previousMenuItem && previousMenuItem != ""){hideDisplayTable(previousMenuItem)}
	previousMenuItem = tableToShow
	var lyr = getMyHTMLElement(tableToShow);
	lyr.style.left =(getLeft(position) + leftAdj )+ "px";
	lyr.style.top = (getTop(position) + topAdj) + "px";
	
	showDisplayTable(tableToShow)
	}
}
function thinkAboutHidingTable(tableToHide){if (tableToHide != "") thinkAboutTimeOut = setTimeout("hideDisplayTable('"+tableToHide+"')",100);}
function forgetAboutHidingTable(tableToHide){if (typeof thinkAboutTimeOut != 'undefined') {clearTimeout(thinkAboutTimeOut)}}

function showDisplayTable(tableToShow){
	getMyHTMLElement(tableToShow).style.display='';
	}

function hideDisplayTable(tableToHide){
	getMyHTMLElement(tableToHide).style.display='none';
}



function showTable(tableToShow){

if (document.layers) { // Netscape
	document.layers[tableToShow].visibility = 'visible';
} else if (document.all) { // Internet Explorer
	document.all[tableToShow].style.visibility = 'visible';
} else if (document.getElementById) { // Netcsape 6
	var lyr = getElemRefs(tableToShow);
	if (lyr && lyr.css) lyr.css.visibility = "visible";
}

}



function hideTable(tableToHide){
if (document.layers) { // Netscape
	document.layers[tableToHide].visibility = 'hidden';
} else if (document.all) { // Internet Explorer
	document.all[tableToHide].style.visibility = 'hidden';
} else if (document.getElementById) { // Netcsape 6
	var lyr = getElemRefs(tableToHide);
	if (lyr && lyr.css) lyr.css.visibility = "hidden";
}
}

function switchTable(tableToShow){
	if (document.all){
		prefix = "document.all";}
	else if (document.layers){
		prefix = "document.layers";}
	holder = eval(prefix)
	if (prefix == "document.all"){
		if (holder[tableToShow].style.visibility == 'visible'){
			hideTable(tableToShow)
		}
		else{
			showTable(tableToShow)
		}
	}
	else if (prefix == "document.layers"){
		if (holder[tableToShow].visibility == 'visible'){
			hideTable(tableToShow)
		}
		else{
			showTable(tableToShow)
		}
	}
}

function replaceString(aSearch, aFind, aReplace)
    {
    result = aSearch;
    if (result != null && result.length > 0)
        {
        a = 0;
        b = 0;
        while (true)
            {
            a = result.indexOf(aFind, b);
            if (a != -1)
                {
                result = result.substring(0, a) + aReplace + result.substring(a + aFind.length);
                b = a + aReplace.length;
            }
            else
            break;
        }
    }
    return result;
}


function resizewin()
{
	var w = 0, h = 0;
	var o = new GetWindowSize(w,h);
	if (o.myWidth<500 || o.myHeight<300)
	{
	window.moveTo(0, 0);
	window.resizeTo(screen.availWidth,screen.availHeight) 
	}
	
}

function GetWindowSize(myWidth,myHeight) {
  this.myWidth = 0;
  this.myHeight = 0
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    this.myWidth = window.innerWidth;
    this.myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    this.myWidth = document.documentElement.clientWidth;
    this.myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    this.myWidth = document.body.clientWidth;
    this.myHeight = document.body.clientHeight;
  }
}


// End of PARASPAR Simple Javascript Functions


// New site functions

var value = 0;

function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}


function showPopup(link){
    if(detectBrowser()=="IE")
    {ext_h=2;}
    else
    {ext_h=103;}
    if( getMyHTMLElement("video_div")!=null)
    {
        getMyHTMLElement("video_div").style.visibility="hidden";;
    }
    //alert(getMyHTMLElement('finish_position').offsetTop+ "," +document.documentElement.clientHeight);
    if(getMyHTMLElement("vs")!=null){
    getMyHTMLElement("vs").innerHTML="<img src='/images/logos/verisign.jpg' alt='verisign' />";}
    getMyHTMLElement('overlayBox').style.display='block';
    getMyHTMLElement('overlayBox').style.zIndex="998";
    getMyHTMLElement("vs").innerHTML="<img src='/images/logos/verisign.jpg' alt='verisign' />";
	getMyHTMLElement('overlayBox').style.height= getMyHTMLElement('finish_position').offsetTop +ext_h +"px";
    getMyHTMLElement('overlayContent').innerHTML = getMyHTMLElement(link).innerHTML;
    getMyHTMLElement('overlayContent').style.position="absolute";
    getMyHTMLElement('overlayContent').style.zIndex="1001";
    if (window.sidebar){fadeTimer = setTimeout("MOZ('overlayContent')",1)}
    else{
        if (document.all){fadeTimer = setTimeout("IE('overlayContent')",1)}
        else{fadeTimer = setTimeout("MOZ('overlayContent')",1)}
    }

    
}

function showPopup_Country(link){
    if(detectBrowser()=="IE")
    {ext_h=2;}
    else
    {ext_h=103;}
    if(getMyHTMLElement("vs")!=null){
    getMyHTMLElement("vs").innerHTML="<img src='/images/logos/verisign.jpg' alt='verisign' />";}
    //alert(getMyHTMLElement('finish_position').offsetTop+ "," +document.documentElement.clientHeight);
    getMyHTMLElement('overlayBox').style.display='block';
    //getMyHTMLElement('overlayBox').style.position="absolute";
    getMyHTMLElement('overlayBox').style.zIndex="998";
   
    getMyHTMLElement('overlayBox').style.position="absolute";
	getMyHTMLElement('overlayBox').style.height= getMyHTMLElement('finish_position').offsetTop + ext_h +"px";
    //getMyHTMLElement('overlayContent').innerHTML = getMyHTMLElement(link).innerHTML;
    
    if (window.sidebar){fadeTimer = setTimeout("MOZ('" + link + "')",1)}
    else{
        if (document.all){fadeTimer = setTimeout("IE('" + link + "')",1)}
        else{fadeTimer = setTimeout("MOZ('" + link + "')",1)}
    }
    getMyHTMLElement(link).style.position="absolute";
    getMyHTMLElement(link).style.zIndex="1000";
   
}

function hidePopup(link){
    getMyHTMLElement('overlayContent').style.display='none';
    getMyHTMLElement('country_section').style.display='none';
    getMyHTMLElement('overlayBox').style.display='none';
     if ( getMyHTMLElement('storePopup')!=null)
     {
        getMyHTMLElement('storePopup').style.display='none';
      
     }
    if (window.sidebar){document.getElementById("overlayBox").style.MozOpacity=0;}
    if (document.all){document.getElementById("overlayBox").filters[0].opacity=0;}
    value = 0;
    if( getMyHTMLElement("video_div")!=null)
    {
        getMyHTMLElement("video_div").style.visibility="visible";;
    }
    //fadeTimer = "";
    }
function IE(link){
    if (value < 70){
        value = value + 10;
        document.getElementById("overlayBox").filters[0].opacity=value ;
        fadeTimer = setTimeout("IE('" + link + "')",1);
    }
    else{
       getMyHTMLElement(link).style.display='';
        getMyHTMLElement(link).style.visibility="hidden";     
	   getMyHTMLElement(link).style.left = (parent.document.body.offsetWidth  - 600) /2+"px";        
       getMyHTMLElement(link).style.top = document.documentElement.clientHeight/2- getMyHTMLElement(link).clientHeight/2 + document.documentElement.scrollTop+"px";
       
        //alert(  document.getElementById('overlayContent').clientHeight);
       if(navigator.appVersion.indexOf("Safari")>0){
       getMyHTMLElement(link).style.top = (parseInt(document.documentElement.clientHeight)/2)- parseInt(getMyHTMLElement(link).offsetHeight)/2 + parseInt(document.body.scrollTop)+"px";
       
        }
  
         getMyHTMLElement(link).style.visibility="visible";   
    }
}
function MOZ(link){
    if (value < 70){
        value = value + 10
        getMyHTMLElement("overlayBox").style.MozOpacity=value/100           		   
		getMyHTMLElement("overlayBox").style.opacity  = value/100  ;
		getMyHTMLElement("overlayBox").style.KhtmlOpacity = value/100 ;
        fadeTimer = setTimeout("MOZ('" + link + "')",1)
    }
    else{
        getMyHTMLElement(link).style.display='';        
        getMyHTMLElement(link).style.visibility="hidden";        
        getMyHTMLElement(link).style.left =parseInt(document.documentElement.clientWidth- getMyHTMLElement(link).offsetWidth)*0.5 + "px";
       
        if(navigator.appVersion.indexOf("Safari")>0){
            getMyHTMLElement(link).style.top = (parseInt(document.documentElement.clientHeight)/2)- parseInt(getMyHTMLElement(link).offsetHeight)/2 + parseInt(document.body.scrollTop)+"px";
        }else{        
            getMyHTMLElement(link).style.top = (parseInt(document.documentElement.clientHeight)/2)- parseInt(getMyHTMLElement(link).offsetHeight)/2 + parseInt(document.documentElement.scrollTop)+"px";
        } 
       getMyHTMLElement(link).style.visibility="visible";      
    //end timeout
    }
}

function changeQty(objName,mathematics){
	qtyChanged()
	place = eval('document.basketform.' + objName)
	place.value = parseInt(place.value) + parseInt(mathematics);
		if (place.value < 0){place.value = 0;}
		if (isNaN(place.value)){place.value = 1;}
	}

if (document.location.href == 'http://www.foodsaver.de/' || document.location.href == 'http://www.foodsaver.de'){
document.location.href = "http://www.bestdirect.tv/de/category.asp?cat_id=DE_Foodsaver"
}

langArray = new Array();
sentenceArray = new Array();
langArray[1] 		= "<span class='splash_2'><strong>Welcome to Best Direct</strong></span><br />(United Kingdom)";
sentenceArray[1] 	= "the Best products Direct to you";
langArray[2] 		= "<span class='splash_2'><strong>Willkommen bei Best Direct</strong></span><br />(Schweiz)";
sentenceArray[2] 	= "die besten Produkte, direkt zu Ihnen";
langArray[3] 		= "<span class='splash_2'><strong>Willkommen bei Best Direct</strong></span><br />(Deutschland)";
sentenceArray[3] 	= "die besten Produkte, direkt zu Ihnen";
langArray[4] 		= "<span class='splash_2'><strong>Welcome to Best Direct</strong></span><br />(Holland)";
sentenceArray[4] 	= "the Best products Direct to you";
langArray[5] 		= "<span class='splash_2'><strong>Welcome to Best Direct</strong></span><br />(Poland)";
sentenceArray[5] 	= "the Best products Direct to you";
langArray[6] 		= "<span class='splash_2'><strong>Willkommen bei Best Direct</strong></span><br />(&Ouml;sterreich)";
sentenceArray[6] 	= "die besten Produkte, direkt zu Ihnen";
langArray[7] 		= "<span class='splash_2'><strong>Добро пожаловать в Бест Директ</strong></span><br />(РОССИЯ)";
sentenceArray[7] 	= "Самые лучшие товары  - только для Вас";
langArray[8] 		= "<span class='splash_2'><strong>Welcome to Best Direct</strong></span><br />(United States)";
sentenceArray[8] 	= "the Best products Direct to you";
langArray[9] 		= "<span class='splash_2'><strong>Welcome to AeroGarden</strong></span><br />(United Kingdom)";
sentenceArray[9] 	= "the Best products Direct to you";



function showTextForLocale(locale){
		// to work in FF needs to use getElementById("line1").innerHTML instead of line1.innerHTML
		document.getElementById("line1").innerHTML = langArray[locale];
		document.getElementById("line2").innerHTML = sentenceArray[locale];
		document.getElementById("polish_img").alt="РОССИЯ (Best Direct Polish Shop)";
//		window.status = langArray[locale];
}
function set_polish()
{
document.getElementById("polish_text").innerHTML="РОССИЯ (Polish Shop)";
}

function replace_back(astr)
{
return astr.replace("&amp;","&");
}

function changebg(aid)
{

   
    document.getElementById(aid).style.backgroundImage="url(/images/core/tab_left_MO.gif)";
    document.getElementById(aid).style.backgroundRepeat="repeat-x";
    //document.getElementById(aid).style.border="solid 1px red";
     //alert(document.getElementById(aid).style.backgroundImage);
   
}
    
 function removebg(aid)
{
   
    document.getElementById(aid).style.backgroundImage="";
 //document.getElementById(aid).style.border="solid 0 red";
    }

//-->
