
//-------------control---------------------------

//var mock_up = true;
var mock_up = false;

var status = "general";   //all products 
//var status = "hase";		//hase eli only
//var status = "mac";       //mac eli only

//<--------------While changing the module, we just change the above 3 variable by comment

var block_mac = false;   //prevent viewing bookmarked mac pages
var block_hase = false;   //prevent viewing bookmarked hase pages

if(status == "hase"){
	block_mac = true;	
}else if(status == "mac"){
	block_hase = true;	
}



//-------------end control---------------------------

function sta_bra(){
	if(mock_up == true){
		document.write("[");
	}
}

function end_bra(){
	if(mock_up == true){
		document.write("]")	;
	}
}

function write_tele(){
	if(mock_up == true){
		document.write("[telephone number]");
	}else{
		document.write("2998 9898");
	}
}

function disable_page(location){    //disabling mac pages
	if (block_mac==true){
		window.location = location;
	}
}

function disable_page_hase(location){    //disabling mac pages
	if (block_hase==true){
		window.location = location;
	}
}

function check_page(page_id,file_name,ext){  // switching between complete, hase and mac pages .
	if (page_id != status){
		if (status != "general"){
			window.location = file_name + "_" + status + "." + ext ;
		}else{
			window.location = file_name + "." + ext ;
		}
		
	}
}


