// JavaScript Document
var url = 'http://www.master-minds.no/extension/ezwebin/design/ezwebin/stylesheets/';
var mm_location_bottom_left = 'mm_location_main_1.gif';
var mm_location_top_right = 'mm_location_main_top_right.gif';
var mm_location_top_left = 'mm_location_main_top_left.gif';


function mm_show(id){
	document.getElementById(id + '_content').style.visibility = 'visible';
}
function mm_hide(id){
	document.getElementById(id + '_content').style.visibility = 'hidden';
}



function mm_change_bg(id, mm_image){
	document.getElementById(id).style.backgroundImage = 'url(' + url + 'images/' + mm_image + ')';
	document.getElementById('mm_location_top_left').style.backgroundImage = 'url(' + url + 'images/mm_location_main_top_left_sub.gif)';
}

function mm_restore_bg(){
	document.getElementById('mm_location_bottom_left').style.backgroundImage = 'url(' + url + 'images/' + mm_location_bottom_left + ')';
	document.getElementById('mm_location_top_right').style.backgroundImage = 'url(' + url + 'images/' + mm_location_top_right + ')';
	document.getElementById('mm_location_top_left').style.backgroundImage = 'url(' + url + 'images/' + mm_location_top_left + ')';
}

function mm_change_bg_click(id, mm_image){
	
}

function preloader(){
     var i = 0;
     imageObj = new Image();
     images = new Array();
	 
     images[0]= url + "mm_location_main_top_center.gif";
     images[1]= url + "mm_location_main_1_19_boa.gif";
     images[2]= url + "mm_location_main_1_24.gif";
     images[3]= url + "mm_location_main_1_53.gif";
	 images[4]= url + "mm_location_main_1_19_kunst.gif";
	 
     for(i=0; i<=4; i++){
          imageObj.src=images[i];
     }
} 

