// misc gs javascript functions used on many pages

var isIMG = document.images;
var Arrowon;
var Arrowoff;

if (isIMG) {
   Arrowon = new Image(7,7);
   Arrowon.src = "http://ilivetocook.com/common/images/bullets/arrow_on.gif";
   Arrowoff = new Image(7,7);
   Arrowoff.src = "http://ilivetocook.com/common/images/bullets/arrow_off.gif";
}
function Arrow(Arrowname) {
   if (isIMG) {
     document[Arrowname].src = (document[Arrowname].src.indexOf('arrow_on.gif') != -1) ? 'http://ilivetocook.com/common/images/bullets/arrow_off.gif' : 'http://ilivetocook.com/common/images/bullets/arrow_on.gif';

   }
}


var thisPageURL = window.location.href;
var popupRes = thisPageURL.match(/gscpopup/g); 
if (popupRes == null) { 
	window.name="mainWindow"; 
}

var url = document.referrer;
function newWindow(newContent) {
	winContent = window.open(newContent, 'nextWin', 'left=100,top=10,width=450,height=485,toolbar=no,scrollbars=no,resizable=no');
	if (document.referrer.length > 0) {
		window.location.href = document.referrer;
	}
}

function newWindow2(newContent) {
	winContent = window.open(newContent, 'nextWin', 'left=100,top=10,width=450,height=485,toolbar=no,scrollbars=no,resizable=no');
}

function mOvr(src,clrOver){ 
	if (!src.contains(event.fromElement)){ 
		src.style.cursor = 'hand'; 
		src.bgColor = clrOver; 
	} 
} 

function mOut(src,clrIn){ 
	if (!src.contains(event.toElement)){ 
		src.style.cursor = 'default'; 
		src.bgColor = clrIn; 
	} 
}

function mClk(src){ 
	if(event.srcElement.tagName=='TD')
		src.children.tags('A')[0].click();
}

		function goForm(){
		//alert(document.goForm.goFormSelect.options[document.goForm.goFormSelect.selectedIndex].value)
		window.location.href = document.goForm.goFormSelect.options[document.goForm.goFormSelect.selectedIndex].value;
	}
		function goRecipe(){
		//alert(document.goRecipe.goRecipeSelect.options[document.goRecipe.goRecipeSelect.selectedIndex].value)
		window.location.href = document.goRecipe.goRecipeSelect.options[document.goRecipe.goRecipeSelect.selectedIndex].value;
	}	

var hidetracking = 0;








