// JavaScript Document

// override Highslide settings here
    // instead of editing the highslide.js file
	hs.captionOverlay.position = "above";
	
	

    hs.graphicsDir = '/projects/bikrapub/js/highslide/graphics/';
	hs.outlineStartOffset = "333";
	hs.outlineType = 'drop-shadow';
	hs.showCredits = false;
	hs.wrapperClassName = 'borderless';
	
	
	
	function init() {
			//==========================================================================================
			// if supported, initialize TransMenus
			//==========================================================================================
			// Check isSupported() so that menus aren't accidentally sent to non-supporting browsers.
			// This is better than server-side checking because it will also catch browsers which would
			// normally support the menus but have javascript disabled.
			//
			// If supported, call initialize() and then hook whatever image rollover code you need to do
			// to the .onactivate and .ondeactivate events for each menu.
			//==========================================================================================
			if (TransMenu.isSupported()) {
				TransMenu.initialize();

				// hook all the highlight swapping of the main toolbar to menu activation/deactivation
				// instead of simple rollover to get the effect where the button stays hightlit until
				// the menu is closed.
                
           menu1.onactivate = function() { document.getElementById("m1").className = "hover"; MM_swapImage('imm1','','/projects/bikrapub/design/uteplitel_over.png',1); };
		   //menu1.onactivate = function() { document.getElementById("m1").className = "hover"; MM_swapImage('imm1','','/projects/bikrapub/design/linoleum-h.jpg',1); };
		   menu1.ondeactivate = function() { document.getElementById("m1").className = ""; MM_swapImgRestore(); };
		   
           menu2.onactivate = function() { document.getElementById("m2").className = "hover"; MM_swapImage('imm2','','/projects/bikrapub/design/gidroizol_over.png',1); };
		   //menu2.onactivate = function() { document.getElementById("m2").className = "hover"; MM_swapImage('imm2','','/projects/bikrapub/design/kovrpokr-h.jpg',1); };
		   menu2.ondeactivate = function() { document.getElementById("m2").className = ""; MM_swapImgRestore(); };
		   
           menu3.onactivate = function() { document.getElementById("m3").className = "hover"; MM_swapImage('imm3','','/projects/bikrapub/design/sypychie_over.png',1); };
		   //menu3.onactivate = function() { document.getElementById("m3").className = "hover"; MM_swapImage('imm3','','/projects/bikrapub/design/smesi-h.jpg',1); };
		   menu3.ondeactivate = function() { document.getElementById("m3").className = ""; MM_swapImgRestore(); };
		   
           menu4.onactivate = function() { document.getElementById("m4").className = "hover"; MM_swapImage('imm4','','/projects/bikrapub/design/otdelochnye_over.png',1); };
           //menu4.onactivate = function() { document.getElementById("m4").className = "hover"; MM_swapImage('imm4','','/projects/bikrapub/design/laminat-h.jpg',1); };
		   menu4.ondeactivate = function() { document.getElementById("m4").className = ""; MM_swapImgRestore(); };
		   
           menu5.onactivate = function() { document.getElementById("m5").className = "hover"; MM_swapImage('imm5','','/projects/bikrapub/design/stenovye_over.png',1); };
           //menu5.onactivate = function() { document.getElementById("m5").className = "hover"; MM_swapImage('imm5','','/projects/bikrapub/design/uteplit-h.jpg',1); };
		   menu5.ondeactivate = function() { document.getElementById("m5").className = ""; MM_swapImgRestore(); };
		   /*
		   menu6.onactivate = function() { document.getElementById("m6").className = "hover"; MM_swapImage('imm6','','/projects/bikrapub/design/smesi-h.jpg',1); };
		   menu6.ondeactivate = function() { document.getElementById("m6").className = ""; MM_swapImgRestore(); };
		   */
				
			}


LinksAll = document.getElementsByTagName('a');
for (var i=0; LinkOne = LinksAll[i]; i++)
{
	if ((LinkOne.href.indexOf('.jpg') != -1) || (LinkOne.href.indexOf('.gif') != -1) || (LinkOne.href.indexOf('.png') != -1) || (LinkOne.href.indexOf('.jpeg') != -1))
		LinkOne.onclick = function(){return hs.expand(this)};
}
		}