/* This is the script file for all of Garrett-italia.com */
var text
function over(ele) {
	var callingAnchor = document.getElementById(ele)
	// bullet is the hidden div with a bullet entity in it.
	var dot = document.createTextNode(document.getElementById("bullet").childNodes[0].nodeValue) 
	text = document.createTextNode(callingAnchor.childNodes[0].nodeValue)
	callingAnchor.removeChild(callingAnchor.childNodes[0])
	callingAnchor.appendChild(dot)
	callingAnchor.appendChild(text)
	callingAnchor.style.marginLeft = "-7px"
}
function out(ele) {
	callingAnchor = document.getElementById(ele)
	callingAnchor.removeChild(callingAnchor.childNodes[0])
	callingAnchor.style.marginLeft = "0px"
	callingAnchor.appendChild(text)
}
function pmOver(ele) { //Product menu link hover
	var callingAnchor = document.getElementById(ele)
	// bullet is the hidden div with a bullet entity in it.
	var dot = document.createTextNode(document.getElementById("bullet").childNodes[0].nodeValue) 
	text = document.createTextNode(callingAnchor.childNodes[0].nodeValue)
	callingAnchor.removeChild(callingAnchor.childNodes[0])
	callingAnchor.appendChild(dot)
	callingAnchor.appendChild(text)
	callingAnchor.style.marginLeft = "-7px"
}
function pmOut(ele) {  //Product menu link hover
	callingAnchor = document.getElementById(ele)
	callingAnchor.removeChild(callingAnchor.childNodes[0])
	callingAnchor.style.marginLeft = "0px"
	callingAnchor.appendChild(text)
}

/*function over(ele) {
	text = ele.innerText
	ele.innerHTML = ("&#8226; " + text)
	ele.style.textIndent = "8px"
}
function out(ele) {
	ele.style.textIndent = "18px"
	ele.innerHTML = (text)
}
function pmOver(element) { //Product menu link hover
	text = element.innerText
	element.innerHTML = ("&#8226; " + text)
	element.style.textIndent = "7px"
}
function pmOut(element) {  //Product menu link hover
	element.style.textIndent = "18px"
	element.innerHTML = (text)
}*/
function searchGoogle()
{
	var sstring = "http://www.google.it/search?hl=it&q="
	var squery = (document.getElementById("searchquery").value)
	var sq = (squery.split(' ')).join('+')
	window.location = (sstring + sq + '+' + "site%3Agarrett-italia.com&btnG=Cerca&meta=lr%3Dlang_it")	
}