/**
 *  common.js
 *  By 2G B.V.
 *  
 *  © copyright 2005 - 2008 2G B.V. All rights reserved.
 *  The computer program(s) is the proprietary information of the original authors. 
 *  and provided under the relevant License Agreement containing restrictions 
 *  on use and disclosure. Use is subject to the License Agreement.
 *
 *  No part of this package may be reproduced and/or published by print, 
 *  photoprint, microfilm, audiotape, electronically, mechanically or any other means, 
 *  or stored in an information retrieval system, without prior permission from 2G B.V. www.2g-it.nl.
 * 
 *  @original authors: jwvdiermen
 */
 
var Schouten = {};
Schouten.Home = {};
Schouten.Home.HighlightMainLink_OnMouseOver = function (sDivId)
{
	var sOtherDivId = (sDivId == 'divAgroTechniek') ? 'divGroenTechniek' : 'divAgroTechniek';
	
	var oDivElement = document.getElementById(sDivId);
	var oOtherDivElement = document.getElementById(sOtherDivId);
	
	var oLinkElement = oDivElement.getElementsByTagName('a')[0];
	var sInnerHTML = oLinkElement.innerHTML;
	oLinkElement.originalInnerHTML = sInnerHTML;
	oLinkElement.innerHTML = sInnerHTML + " &gt;";
	
	oOtherDivElement.oldInnerHTML = oOtherDivElement.innerHTML;
	oOtherDivElement.innerHTML = '<div style="width: 400px; padding-left: 30px; color: #FFFFFF;">' + g_oMainMenuDescriptions[sDivId] + '</div>';
}


Schouten.Home.HighlightMainLink_OnMouseOut = function (sDivId)
{
	var sOtherDivId = (sDivId == 'divAgroTechniek') ? 'divGroenTechniek' : 'divAgroTechniek';
	
	var oDivElement = document.getElementById(sDivId);
	var oOtherDivElement = document.getElementById(sOtherDivId);
	
	var oLinkElement = oDivElement.getElementsByTagName('a')[0];
	var sOriginalHTML = oLinkElement.originalInnerHTML;
	oLinkElement.innerHTML = sOriginalHTML;
	
	oOtherDivElement.innerHTML = oOtherDivElement.oldInnerHTML;
	//oOtherDivElement.oldInnerHTML = null;
}

Schouten.Common = {};
Schouten.Common.ProductSearcher = function (sValue)
{
    //if(sValue == "AGROTECHNIQUE" || sValue == "GREENTECHNIQUE")
    //{
        var sCat = (sValue == 'AGROTECHNIQUE') ? '1' : '2';
        document.location = sValue;
    //}else{
     //   document.location = '?page=product_item&productgroup='+sValue;
    //} 
}
Schouten.Common.DealerSearcher = function (sValue)
{
	document.location = sValue;
}

