
// Site functionality
// Requires: prototype.js + tuksi.js
// Author: Andreas Mailand, ama@dwarf.dk

// sIFR 2 setup and replacements
/*
Tuksi.prototype.sifrLoad = function (){
	if(typeof sIFR == "function"){
		sIFR.setup();
		sIFR.replaceElement("div.mainLeft h2", named({sFlashSrc: "/flash/copperplate_sifr2.swf", sColor: "#6f0714", sWmode: "Transparent", sCase: "upper", sLinkColor:"#383f33"}));
		sIFR.replaceElement("div.mainLeft h1", named({sFlashSrc: "/flash/copperplate_sifr2.swf", sColor: "#151611", sWmode: "Transparent", sCase: "upper"}));
	}
}
*/

//DropDown menu (Suckerfish)
/*
Tuksi.prototype.startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("menu");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
*/

// aktiver javascript - inden indhold er loadet ind
Tuksi.prototype.preInit = function(){

}

// aktiver javascript - efter indhold er loadet ind
Tuksi.prototype.postInit = function(){
	//tuksi.sifrLoad();
	//tuksi.startList();
	tuksi.preloadImages('/images/menu/bn_m_forside_normal.gif,'+
											'/images/menu/bn_m_forside_active.gif,'+
											'/images/menu/bn_m_nyhedsbrev_active.gif,'+
											'/images/menu/bn_m_nyhedsbrev_normal.gif,'+
											'/images/menu/bn_m_links_active.gif,'+
											'/images/menu/bn_m_links_normal.gif,'+
											//'/images/menu/bn_m_sub_ski_normal.gif,'+
											//'/images/menu/bn_m_sub_ski_hover.gif,'+
										  //'/images/menu/bn_m_sub_surf_normal.gif,'+
											//'/images/menu/bn_m_sub_surf_hover.gif,'+
											//'/images/menu/bn_m_sub_snowboard_normal.gif,'+
											//'/images/menu/bn_m_sub_snowboard_hover.gif,'+
											//'/images/menu/bn_m_sub_golf_hover.gif,'+
											//'/images/menu/bn_m_sub_golf_normal.gif,'+
											'/images/menu/bn_m_om_butikken_active.gif,'+
											'/images/menu/bn_m_om_butikken_normal.gif,'+
											'/images/menu/bn_m_produkter-tilbud_normal.gif,'+
											'/images/menu/bn_m_produkter-tilbud_active.gif,'+
											'/images/menu/bg_m_sub_sub.gif');
}


//jQuery start
$(document).ready(function(){
// Functions begin::::::::::::::::::::::::::::::::::::::: 

	$('#slideshow').cycle('fade');

  $('#menu').droppy();

	
	
//Functions end///////////////////////////////////////////
});
